Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FLIPPED-AURORA
gin-vue-admin
提交
076d5c91
G
gin-vue-admin
项目概览
FLIPPED-AURORA
/
gin-vue-admin
大约 1 年 前同步成功
通知
342
Star
18155
Fork
5506
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
076d5c91
编写于
12月 13, 2020
作者:
Mr.奇淼(
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
清理图标 form table 富文本 示例
上级
5c457447
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
138 addition
and
539 deletion
+138
-539
server/cmd/datas/authority_menus.go
server/cmd/datas/authority_menus.go
+1
-12
server/cmd/datas/menus.go
server/cmd/datas/menus.go
+21
-25
web/package-lock.json
web/package-lock.json
+116
-126
web/package.json
web/package.json
+0
-2
web/src/main.js
web/src/main.js
+0
-19
web/src/view/example/form/form.vue
web/src/view/example/form/form.vue
+0
-187
web/src/view/example/rte/rte.vue
web/src/view/example/rte/rte.vue
+0
-53
web/src/view/example/table/table.vue
web/src/view/example/table/table.vue
+0
-115
未找到文件。
server/cmd/datas/authority_menus.go
浏览文件 @
076d5c91
...
@@ -41,17 +41,9 @@ var AuthorityMenus = []SysAuthorityMenus{
...
@@ -41,17 +41,9 @@ var AuthorityMenus = []SysAuthorityMenus{
{
"888"
,
27
},
{
"888"
,
27
},
{
"888"
,
28
},
{
"888"
,
28
},
{
"888"
,
29
},
{
"888"
,
29
},
{
"888"
,
30
},
{
"888"
,
31
},
{
"888"
,
32
},
{
"888"
,
33
},
{
"8881"
,
1
},
{
"8881"
,
1
},
{
"8881"
,
2
},
{
"8881"
,
2
},
{
"8881"
,
8
},
{
"8881"
,
8
},
{
"8881"
,
17
},
{
"8881"
,
18
},
{
"8881"
,
19
},
{
"8881"
,
20
},
{
"9528"
,
1
},
{
"9528"
,
1
},
{
"9528"
,
2
},
{
"9528"
,
2
},
{
"9528"
,
3
},
{
"9528"
,
3
},
...
@@ -64,13 +56,10 @@ var AuthorityMenus = []SysAuthorityMenus{
...
@@ -64,13 +56,10 @@ var AuthorityMenus = []SysAuthorityMenus{
{
"9528"
,
10
},
{
"9528"
,
10
},
{
"9528"
,
11
},
{
"9528"
,
11
},
{
"9528"
,
12
},
{
"9528"
,
12
},
{
"9528"
,
13
},
{
"9528"
,
14
},
{
"9528"
,
14
},
{
"9528"
,
15
},
{
"9528"
,
15
},
{
"9528"
,
16
},
{
"9528"
,
17
},
{
"9528"
,
17
},
{
"9528"
,
18
},
{
"9528"
,
19
},
{
"9528"
,
20
},
}
}
func
InitSysAuthorityMenus
(
db
*
gorm
.
DB
)
{
func
InitSysAuthorityMenus
(
db
*
gorm
.
DB
)
{
...
...
server/cmd/datas/menus.go
浏览文件 @
076d5c91
...
@@ -20,35 +20,31 @@ var BaseMenus = []model.SysBaseMenu{
...
@@ -20,35 +20,31 @@ var BaseMenus = []model.SysBaseMenu{
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
7
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"3"
,
Path
:
"user"
,
Name
:
"user"
,
Component
:
"view/superAdmin/user/user.vue"
,
Sort
:
4
,
Meta
:
model
.
Meta
{
Title
:
"用户管理"
,
Icon
:
"coordinate"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
7
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"3"
,
Path
:
"user"
,
Name
:
"user"
,
Component
:
"view/superAdmin/user/user.vue"
,
Sort
:
4
,
Meta
:
model
.
Meta
{
Title
:
"用户管理"
,
Icon
:
"coordinate"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
8
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
true
,
ParentId
:
"0"
,
Path
:
"person"
,
Name
:
"person"
,
Component
:
"view/person/person.vue"
,
Sort
:
4
,
Meta
:
model
.
Meta
{
Title
:
"个人信息"
,
Icon
:
"message-solid"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
8
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
true
,
ParentId
:
"0"
,
Path
:
"person"
,
Name
:
"person"
,
Component
:
"view/person/person.vue"
,
Sort
:
4
,
Meta
:
model
.
Meta
{
Title
:
"个人信息"
,
Icon
:
"message-solid"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
9
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"0"
,
Path
:
"example"
,
Name
:
"example"
,
Component
:
"view/example/index.vue"
,
Sort
:
6
,
Meta
:
model
.
Meta
{
Title
:
"示例文件"
,
Icon
:
"s-management"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
9
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"0"
,
Path
:
"example"
,
Name
:
"example"
,
Component
:
"view/example/index.vue"
,
Sort
:
6
,
Meta
:
model
.
Meta
{
Title
:
"示例文件"
,
Icon
:
"s-management"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
10
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"9"
,
Path
:
"table"
,
Name
:
"table"
,
Component
:
"view/example/table/table.vue"
,
Sort
:
1
,
Meta
:
model
.
Meta
{
Title
:
"表格示例"
,
Icon
:
"s-order"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
10
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"9"
,
Path
:
"excel"
,
Name
:
"excel"
,
Component
:
"view/example/excel/excel.vue"
,
Sort
:
4
,
Meta
:
model
.
Meta
{
Title
:
"excel导入导出"
,
Icon
:
"s-marketing"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
11
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"9"
,
Path
:
"form"
,
Name
:
"form"
,
Component
:
"view/example/form/form.vue"
,
Sort
:
2
,
Meta
:
model
.
Meta
{
Title
:
"表单示例"
,
Icon
:
"document"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
11
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"9"
,
Path
:
"upload"
,
Name
:
"upload"
,
Component
:
"view/example/upload/upload.vue"
,
Sort
:
5
,
Meta
:
model
.
Meta
{
Title
:
"上传下载"
,
Icon
:
"upload"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
12
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"9"
,
Path
:
"rte"
,
Name
:
"rte"
,
Component
:
"view/example/rte/rte.vue"
,
Sort
:
3
,
Meta
:
model
.
Meta
{
Title
:
"富文本编辑器"
,
Icon
:
"reading"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
12
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"9"
,
Path
:
"breakpoint"
,
Name
:
"breakpoint"
,
Component
:
"view/example/breakpoint/breakpoint.vue"
,
Sort
:
6
,
Meta
:
model
.
Meta
{
Title
:
"断点续传"
,
Icon
:
"upload"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
13
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"9"
,
Path
:
"excel"
,
Name
:
"excel"
,
Component
:
"view/example/excel/excel.vue"
,
Sort
:
4
,
Meta
:
model
.
Meta
{
Title
:
"excel导入导出"
,
Icon
:
"s-marketing"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
13
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"9"
,
Path
:
"customer"
,
Name
:
"customer"
,
Component
:
"view/example/customer/customer.vue"
,
Sort
:
7
,
Meta
:
model
.
Meta
{
Title
:
"客户列表(资源示例)"
,
Icon
:
"s-custom"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
14
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"9"
,
Path
:
"upload"
,
Name
:
"upload"
,
Component
:
"view/example/upload/upload.vue"
,
Sort
:
5
,
Meta
:
model
.
Meta
{
Title
:
"上传下载"
,
Icon
:
"upload"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
14
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"0"
,
Path
:
"systemTools"
,
Name
:
"systemTools"
,
Component
:
"view/systemTools/index.vue"
,
Sort
:
5
,
Meta
:
model
.
Meta
{
Title
:
"系统工具"
,
Icon
:
"s-cooperation"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
15
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"9"
,
Path
:
"breakpoint"
,
Name
:
"breakpoint"
,
Component
:
"view/example/breakpoint/breakpoint.vue"
,
Sort
:
6
,
Meta
:
model
.
Meta
{
Title
:
"断点续传"
,
Icon
:
"upload"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
15
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"14"
,
Path
:
"autoCode"
,
Name
:
"autoCode"
,
Component
:
"view/systemTools/autoCode/index.vue"
,
Sort
:
1
,
Meta
:
model
.
Meta
{
Title
:
"代码生成器"
,
Icon
:
"cpu"
,
KeepAlive
:
true
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
16
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"9"
,
Path
:
"customer"
,
Name
:
"customer"
,
Component
:
"view/example/customer/customer.vue"
,
Sort
:
7
,
Meta
:
model
.
Meta
{
Title
:
"客户列表(资源示例)"
,
Icon
:
"s-custom"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
16
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"14"
,
Path
:
"formCreate"
,
Name
:
"formCreate"
,
Component
:
"view/systemTools/formCreate/index.vue"
,
Sort
:
2
,
Meta
:
model
.
Meta
{
Title
:
"表单生成器"
,
Icon
:
"magic-stick"
,
KeepAlive
:
true
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
17
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"0"
,
Path
:
"systemTools"
,
Name
:
"systemTools"
,
Component
:
"view/systemTools/index.vue"
,
Sort
:
5
,
Meta
:
model
.
Meta
{
Title
:
"系统工具"
,
Icon
:
"s-cooperation"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
17
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"14"
,
Path
:
"system"
,
Name
:
"system"
,
Component
:
"view/systemTools/system/system.vue"
,
Sort
:
3
,
Meta
:
model
.
Meta
{
Title
:
"系统配置"
,
Icon
:
"s-operation"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
18
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"17"
,
Path
:
"autoCode"
,
Name
:
"autoCode"
,
Component
:
"view/systemTools/autoCode/index.vue"
,
Sort
:
1
,
Meta
:
model
.
Meta
{
Title
:
"代码生成器"
,
Icon
:
"cpu"
,
KeepAlive
:
true
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
18
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"3"
,
Path
:
"dictionary"
,
Name
:
"dictionary"
,
Component
:
"view/superAdmin/dictionary/sysDictionary.vue"
,
Sort
:
5
,
Meta
:
model
.
Meta
{
Title
:
"字典管理"
,
Icon
:
"notebook-2"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
19
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"17"
,
Path
:
"formCreate"
,
Name
:
"formCreate"
,
Component
:
"view/systemTools/formCreate/index.vue"
,
Sort
:
2
,
Meta
:
model
.
Meta
{
Title
:
"表单生成器"
,
Icon
:
"magic-stick"
,
KeepAlive
:
true
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
19
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
true
,
ParentId
:
"3"
,
Path
:
"dictionaryDetail/:id"
,
Name
:
"dictionaryDetail"
,
Component
:
"view/superAdmin/dictionary/sysDictionaryDetail.vue"
,
Sort
:
1
,
Meta
:
model
.
Meta
{
Title
:
"字典详情"
,
Icon
:
"s-order"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
20
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"17"
,
Path
:
"system"
,
Name
:
"system"
,
Component
:
"view/systemTools/system/system.vue"
,
Sort
:
3
,
Meta
:
model
.
Meta
{
Title
:
"系统配置"
,
Icon
:
"s-operation"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
20
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"3"
,
Path
:
"operation"
,
Name
:
"operation"
,
Component
:
"view/superAdmin/operation/sysOperationRecord.vue"
,
Sort
:
6
,
Meta
:
model
.
Meta
{
Title
:
"操作历史"
,
Icon
:
"time"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
21
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"0"
,
Path
:
"iconList"
,
Name
:
"iconList"
,
Component
:
"view/iconList/index.vue"
,
Sort
:
2
,
Meta
:
model
.
Meta
{
Title
:
"图标集合"
,
Icon
:
"star-on"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
21
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"9"
,
Path
:
"simpleUploader"
,
Name
:
"simpleUploader"
,
Component
:
"view/example/simpleUploader/simpleUploader"
,
Sort
:
6
,
Meta
:
model
.
Meta
{
Title
:
"断点续传(插件版)"
,
Icon
:
"upload"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
22
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"3"
,
Path
:
"dictionary"
,
Name
:
"dictionary"
,
Component
:
"view/superAdmin/dictionary/sysDictionary.vue"
,
Sort
:
5
,
Meta
:
model
.
Meta
{
Title
:
"字典管理"
,
Icon
:
"notebook-2"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
22
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"0"
,
Path
:
"https://www.gin-vue-admin.com"
,
Name
:
"https://www.gin-vue-admin.com"
,
Hidden
:
false
,
Component
:
"/"
,
Sort
:
0
,
Meta
:
model
.
Meta
{
Title
:
"官方网站"
,
Icon
:
"s-home"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
23
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
true
,
ParentId
:
"3"
,
Path
:
"dictionaryDetail/:id"
,
Name
:
"dictionaryDetail"
,
Component
:
"view/superAdmin/dictionary/sysDictionaryDetail.vue"
,
Sort
:
1
,
Meta
:
model
.
Meta
{
Title
:
"字典详情"
,
Icon
:
"s-order"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
23
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"0"
,
Path
:
"state"
,
Name
:
"state"
,
Hidden
:
false
,
Component
:
"view/system/state.vue"
,
Sort
:
6
,
Meta
:
model
.
Meta
{
Title
:
"服务器状态"
,
Icon
:
"cloudy"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
24
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"3"
,
Path
:
"operation"
,
Name
:
"operation"
,
Component
:
"view/superAdmin/operation/sysOperationRecord.vue"
,
Sort
:
6
,
Meta
:
model
.
Meta
{
Title
:
"操作历史"
,
Icon
:
"time"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
24
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"0"
,
Path
:
"workflow"
,
Name
:
"workflow"
,
Hidden
:
false
,
Component
:
"view/workflow/index.vue"
,
Sort
:
5
,
Meta
:
model
.
Meta
{
Title
:
"工作流功能"
,
Icon
:
"phone"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
25
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
Hidden
:
false
,
ParentId
:
"9"
,
Path
:
"simpleUploader"
,
Name
:
"simpleUploader"
,
Component
:
"view/example/simpleUploader/simpleUploader"
,
Sort
:
6
,
Meta
:
model
.
Meta
{
Title
:
"断点续传(插件版)"
,
Icon
:
"upload"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
25
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"24"
,
Path
:
"workflowCreate"
,
Name
:
"workflowCreate"
,
Hidden
:
false
,
Component
:
"view/workflow/workflowCreate/workflowCreate.vue"
,
Sort
:
0
,
Meta
:
model
.
Meta
{
Title
:
"工作流绘制"
,
Icon
:
"circle-plus"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
26
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"0"
,
Path
:
"https://www.gin-vue-admin.com"
,
Name
:
"https://www.gin-vue-admin.com"
,
Hidden
:
false
,
Component
:
"/"
,
Sort
:
0
,
Meta
:
model
.
Meta
{
Title
:
"官方网站"
,
Icon
:
"s-home"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
26
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"24"
,
Path
:
"workflowProcess"
,
Name
:
"workflowProcess"
,
Hidden
:
false
,
Component
:
"view/workflow/workflowProcess/workflowProcess.vue"
,
Sort
:
0
,
Meta
:
model
.
Meta
{
Title
:
"工作流列表"
,
Icon
:
"s-cooperation"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
27
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"0"
,
Path
:
"state"
,
Name
:
"state"
,
Hidden
:
false
,
Component
:
"view/system/state.vue"
,
Sort
:
6
,
Meta
:
model
.
Meta
{
Title
:
"服务器状态"
,
Icon
:
"cloudy"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
27
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"24"
,
Path
:
"workflowUse"
,
Name
:
"workflowUse"
,
Hidden
:
true
,
Component
:
"view/workflow/workflowUse/workflowUse.vue"
,
Sort
:
0
,
Meta
:
model
.
Meta
{
Title
:
"使用工作流"
,
Icon
:
"video-play"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
28
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"0"
,
Path
:
"workflow"
,
Name
:
"workflow"
,
Hidden
:
false
,
Component
:
"view/workflow/index.vue"
,
Sort
:
5
,
Meta
:
model
.
Meta
{
Title
:
"工作流功能"
,
Icon
:
"phone"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
28
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"24"
,
Path
:
"started"
,
Name
:
"started"
,
Hidden
:
false
,
Component
:
"view/workflow/userList/started.vue"
,
Sort
:
0
,
Meta
:
model
.
Meta
{
Title
:
"我发起的"
,
Icon
:
"s-order"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
29
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"28"
,
Path
:
"workflowCreate"
,
Name
:
"workflowCreate"
,
Hidden
:
false
,
Component
:
"view/workflow/workflowCreate/workflowCreate.vue"
,
Sort
:
0
,
Meta
:
model
.
Meta
{
Title
:
"工作流绘制"
,
Icon
:
"circle-plus"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
29
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"24"
,
Path
:
"need"
,
Name
:
"need"
,
Hidden
:
false
,
Component
:
"view/workflow/userList/need.vue"
,
Sort
:
0
,
Meta
:
model
.
Meta
{
Title
:
"我的待办"
,
Icon
:
"s-platform"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
30
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"28"
,
Path
:
"workflowProcess"
,
Name
:
"workflowProcess"
,
Hidden
:
false
,
Component
:
"view/workflow/workflowProcess/workflowProcess.vue"
,
Sort
:
0
,
Meta
:
model
.
Meta
{
Title
:
"工作流列表"
,
Icon
:
"s-cooperation"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
31
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"28"
,
Path
:
"workflowUse"
,
Name
:
"workflowUse"
,
Hidden
:
true
,
Component
:
"view/workflow/workflowUse/workflowUse.vue"
,
Sort
:
0
,
Meta
:
model
.
Meta
{
Title
:
"使用工作流"
,
Icon
:
"video-play"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
32
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"28"
,
Path
:
"started"
,
Name
:
"started"
,
Hidden
:
false
,
Component
:
"view/workflow/userList/started.vue"
,
Sort
:
0
,
Meta
:
model
.
Meta
{
Title
:
"我发起的"
,
Icon
:
"s-order"
}},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
33
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
MenuLevel
:
0
,
ParentId
:
"28"
,
Path
:
"need"
,
Name
:
"need"
,
Hidden
:
false
,
Component
:
"view/workflow/userList/need.vue"
,
Sort
:
0
,
Meta
:
model
.
Meta
{
Title
:
"我的待办"
,
Icon
:
"s-platform"
}},
}
}
func
InitSysBaseMenus
(
db
*
gorm
.
DB
)
{
func
InitSysBaseMenus
(
db
*
gorm
.
DB
)
{
if
err
:=
db
.
Transaction
(
func
(
tx
*
gorm
.
DB
)
error
{
if
err
:=
db
.
Transaction
(
func
(
tx
*
gorm
.
DB
)
error
{
if
tx
.
Where
(
"id IN ?"
,
[]
int
{
1
,
2
7
})
.
Find
(
&
[]
model
.
SysBaseMenu
{})
.
RowsAffected
==
2
{
if
tx
.
Where
(
"id IN ?"
,
[]
int
{
1
,
2
3
})
.
Find
(
&
[]
model
.
SysBaseMenu
{})
.
RowsAffected
==
2
{
color
.
Danger
.
Println
(
"sys_base_menus表的初始数据已存在!"
)
color
.
Danger
.
Println
(
"sys_base_menus表的初始数据已存在!"
)
return
nil
return
nil
}
}
...
...
web/package-lock.json
浏览文件 @
076d5c91
...
@@ -3449,6 +3449,13 @@
...
@@ -3449,6 +3449,13 @@
"integrity": "sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc=",
"integrity": "sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc=",
"dev": true
"dev": true
},
},
"emojis-list": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz",
"integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==",
"dev": true,
"optional": true
},
"fast-deep-equal": {
"fast-deep-equal": {
"version": "3.1.3",
"version": "3.1.3",
"resolved": "https://registry.npm.taobao.org/fast-deep-equal/download/fast-deep-equal-3.1.3.tgz?cache=0&sync_timestamp=1591599659970&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffast-deep-equal%2Fdownload%2Ffast-deep-equal-3.1.3.tgz",
"resolved": "https://registry.npm.taobao.org/fast-deep-equal/download/fast-deep-equal-3.1.3.tgz?cache=0&sync_timestamp=1591599659970&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffast-deep-equal%2Fdownload%2Ffast-deep-equal-3.1.3.tgz",
...
@@ -3476,12 +3483,31 @@
...
@@ -3476,12 +3483,31 @@
"path-exists": "^4.0.0"
"path-exists": "^4.0.0"
}
}
},
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"is-fullwidth-code-point": {
"is-fullwidth-code-point": {
"version": "3.0.0",
"version": "3.0.0",
"resolved": "https://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz",
"integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0=",
"integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0=",
"dev": true
"dev": true
},
},
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"locate-path": {
"locate-path": {
"version": "5.0.0",
"version": "5.0.0",
"resolved": "https://registry.npm.taobao.org/locate-path/download/locate-path-5.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/locate-path/download/locate-path-5.0.0.tgz",
...
@@ -3647,6 +3673,16 @@
...
@@ -3647,6 +3673,16 @@
"ansi-regex": "^5.0.0"
"ansi-regex": "^5.0.0"
}
}
},
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"terser": {
"terser": {
"version": "4.8.0",
"version": "4.8.0",
"resolved": "https://registry.npm.taobao.org/terser/download/terser-4.8.0.tgz?cache=0&sync_timestamp=1599751633316&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fterser%2Fdownload%2Fterser-4.8.0.tgz",
"resolved": "https://registry.npm.taobao.org/terser/download/terser-4.8.0.tgz?cache=0&sync_timestamp=1599751633316&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fterser%2Fdownload%2Fterser-4.8.0.tgz",
...
@@ -3685,6 +3721,31 @@
...
@@ -3685,6 +3721,31 @@
"punycode": "^2.1.1"
"punycode": "^2.1.1"
}
}
},
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.1.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.1.1.tgz",
"integrity": "sha512-wz/+HFg/3SBayHWAlZXARcnDTl3VOChrfW9YnxvAweiuyKX/7IGx1ad/4yJHmwhgWlOVYMAbTiI7GV8G33PfGQ==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"chalk": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
}
}
},
"wrap-ansi": {
"wrap-ansi": {
"version": "6.2.0",
"version": "6.2.0",
"resolved": "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-6.2.0.tgz",
"resolved": "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-6.2.0.tgz",
...
@@ -8846,12 +8907,8 @@
...
@@ -8846,12 +8907,8 @@
"highlight.js": {
"highlight.js": {
"version": "9.15.10",
"version": "9.15.10",
"resolved": "https://registry.npm.taobao.org/highlight.js/download/highlight.js-9.15.10.tgz",
"resolved": "https://registry.npm.taobao.org/highlight.js/download/highlight.js-9.15.10.tgz",
"integrity": "sha1-exjtdckDSMBF7vntCMoTGaIhmtI="
"integrity": "sha1-exjtdckDSMBF7vntCMoTGaIhmtI=",
},
"dev": true
"highlight.js-async-webpack": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/highlight.js-async-webpack/-/highlight.js-async-webpack-1.0.4.tgz",
"integrity": "sha1-wGtnv5nwSQRdYrdW5YVbCRLsYWw="
},
},
"hmac-drbg": {
"hmac-drbg": {
"version": "1.0.1",
"version": "1.0.1",
...
@@ -10230,15 +10287,6 @@
...
@@ -10230,15 +10287,6 @@
"object-visit": "^1.0.0"
"object-visit": "^1.0.0"
}
}
},
},
"mavon-editor": {
"version": "2.7.7",
"resolved": "https://registry.npmjs.org/mavon-editor/-/mavon-editor-2.7.7.tgz",
"integrity": "sha512-lXnYe+dztKepbv8bi2nedRqG/AwyUDF8gmkv9lHD3fpVJ1+pzAS6YILRIryKCvO9qPIOPEThHsda2DxtlzRsZA==",
"requires": {
"highlight.js": "^9.11.0",
"highlight.js-async-webpack": "^1.0.4"
}
},
"md5.js": {
"md5.js": {
"version": "1.3.5",
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz",
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz",
...
@@ -10929,6 +10977,12 @@
...
@@ -10929,6 +10977,12 @@
"resolved": "https://registry.npm.taobao.org/number-is-nan/download/number-is-nan-1.0.1.tgz",
"resolved": "https://registry.npm.taobao.org/number-is-nan/download/number-is-nan-1.0.1.tgz",
"integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0="
"integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0="
},
},
"numericjs": {
"version": "1.2.6",
"resolved": "https://registry.npmjs.org/numericjs/-/numericjs-1.2.6.tgz",
"integrity": "sha1-wNryXEvLIuBDv4NEP5856LM2eYs=",
"dev": true
},
"oauth-sign": {
"oauth-sign": {
"version": "0.9.0",
"version": "0.9.0",
"resolved": "https://registry.npm.taobao.org/oauth-sign/download/oauth-sign-0.9.0.tgz",
"resolved": "https://registry.npm.taobao.org/oauth-sign/download/oauth-sign-0.9.0.tgz",
...
@@ -12443,6 +12497,53 @@
...
@@ -12443,6 +12497,53 @@
"unpipe": "1.0.0"
"unpipe": "1.0.0"
}
}
},
},
"raw-loader": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-3.1.0.tgz",
"integrity": "sha512-lzUVMuJ06HF4rYveaz9Tv0WRlUMxJ0Y1hgSkkgg+50iEdaI0TthyEDe08KIHb0XsF6rn8WYTqPCaGTZg3sX+qA==",
"dev": true,
"requires": {
"loader-utils": "^1.1.0",
"schema-utils": "^2.0.1"
},
"dependencies": {
"ajv": {
"version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
"integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
"dev": true,
"requires": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.4.1",
"uri-js": "^4.2.2"
}
},
"ajv-keywords": {
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
"integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",
"dev": true
},
"fast-deep-equal": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
"dev": true
},
"schema-utils": {
"version": "2.7.1",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz",
"integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==",
"dev": true,
"requires": {
"@types/json-schema": "^7.0.5",
"ajv": "^6.12.4",
"ajv-keywords": "^3.5.2"
}
}
}
},
"read-pkg": {
"read-pkg": {
"version": "5.2.0",
"version": "5.2.0",
"resolved": "https://registry.npm.taobao.org/read-pkg/download/read-pkg-5.2.0.tgz",
"resolved": "https://registry.npm.taobao.org/read-pkg/download/read-pkg-5.2.0.tgz",
...
@@ -14897,94 +14998,6 @@
...
@@ -14897,94 +14998,6 @@
}
}
}
}
},
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.0.0-beta.9",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.9.tgz",
"integrity": "sha512-mu9pg6554GbXDSO8LlxkQM6qUJzUkb/A0FJc9LgRqnU9MCnhzEXwCt1Zx5NObvFpzs2mH2dH/uUCDwL8Qaz9sA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"emojis-list": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz",
"integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-particle-line": {
"vue-particle-line": {
"version": "0.1.4",
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/vue-particle-line/-/vue-particle-line-0.1.4.tgz",
"resolved": "https://registry.npmjs.org/vue-particle-line/-/vue-particle-line-0.1.4.tgz",
...
@@ -14993,15 +15006,6 @@
...
@@ -14993,15 +15006,6 @@
"vue": "^2.5.21"
"vue": "^2.5.21"
}
}
},
},
"vue-quill-editor": {
"version": "3.0.6",
"resolved": "https://registry.npmjs.org/vue-quill-editor/-/vue-quill-editor-3.0.6.tgz",
"integrity": "sha512-g20oSZNWg8Hbu41Kinjd55e235qVWPLfg4NvsLW6d+DhgBTFbEuMpcWlUdrD6qT3+Noim6DRu18VLM9lVShXOQ==",
"requires": {
"object-assign": "^4.1.1",
"quill": "^1.3.4"
}
},
"vue-router": {
"vue-router": {
"version": "3.1.3",
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.1.3.tgz",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.1.3.tgz",
...
@@ -15532,20 +15536,6 @@
...
@@ -15532,20 +15536,6 @@
"integrity": "sha1-f4RzvIOd/YdgituV1+sHUhFXikI=",
"integrity": "sha1-f4RzvIOd/YdgituV1+sHUhFXikI=",
"dev": true
"dev": true
},
},
"wfd-gva": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/wfd-gva/-/wfd-gva-1.0.4.tgz",
"integrity": "sha512-m08qHdhUFUbj7IzJWOoxhN9VAJKzx/QbkTi+XXIHrX24UGovy4XvwmOrWrna+3rHkq60xszHMy1U/MQflNCPlA==",
"requires": {
"@antv/dom-util": "2.0.2",
"@antv/g-canvas": "^0.4.12",
"@antv/g6": "3.5.2",
"@antv/matrix-util": "2.0.7",
"@antv/util": "~2.0.9",
"element-ui": "2.12.0",
"vue": "^2.6.10"
}
},
"which": {
"which": {
"version": "1.3.1",
"version": "1.3.1",
"resolved": "https://registry.npm.taobao.org/which/download/which-1.3.1.tgz",
"resolved": "https://registry.npm.taobao.org/which/download/which-1.3.1.tgz",
...
...
web/package.json
浏览文件 @
076d5c91
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
"core-js"
:
"^3.6.5"
,
"core-js"
:
"^3.6.5"
,
"echarts"
:
"^4.7.0"
,
"echarts"
:
"^4.7.0"
,
"element-ui"
:
"^2.12.0"
,
"element-ui"
:
"^2.12.0"
,
"mavon-editor"
:
"^2.7.7"
,
"node-sass"
:
"^4.14.1"
,
"node-sass"
:
"^4.14.1"
,
"path"
:
"^0.12.7"
,
"path"
:
"^0.12.7"
,
"qs"
:
"^6.8.0"
,
"qs"
:
"^6.8.0"
,
...
@@ -25,7 +24,6 @@
...
@@ -25,7 +24,6 @@
"timeline-vuejs"
:
"1.1.1"
,
"timeline-vuejs"
:
"1.1.1"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
"vue-particle-line"
:
"^0.1.4"
,
"vue-particle-line"
:
"^0.1.4"
,
"vue-quill-editor"
:
"^3.0.6"
,
"vue-router"
:
"^3.1.3"
,
"vue-router"
:
"^3.1.3"
,
"vue-simple-uploader"
:
"^0.7.4"
,
"vue-simple-uploader"
:
"^0.7.4"
,
"vuescroll"
:
"^4.14.4"
,
"vuescroll"
:
"^4.14.4"
,
...
...
web/src/main.js
浏览文件 @
076d5c91
...
@@ -9,28 +9,9 @@ Vue.use(ElementUI);
...
@@ -9,28 +9,9 @@ Vue.use(ElementUI);
// 引入封装的router
// 引入封装的router
import
router
from
'
@/router/index
'
import
router
from
'
@/router/index
'
// canvas背景插件
import
vueParticleLine
from
'
vue-particle-line
'
import
'
vue-particle-line/dist/vue-particle-line.css
'
Vue
.
use
(
vueParticleLine
)
// time line css
// time line css
import
'
../node_modules/timeline-vuejs/dist/timeline-vuejs.css
'
import
'
../node_modules/timeline-vuejs/dist/timeline-vuejs.css
'
// 富文本插件
import
VueQuillEditor
from
'
vue-quill-editor
'
import
'
quill/dist/quill.core.css
'
import
'
quill/dist/quill.snow.css
'
import
'
quill/dist/quill.bubble.css
'
Vue
.
use
(
VueQuillEditor
)
// markdown插件
import
mavonEditor
from
'
mavon-editor
'
import
'
mavon-editor/dist/css/index.css
'
Vue
.
use
(
mavonEditor
)
import
'
@/permission
'
import
'
@/permission
'
import
{
store
}
from
'
@/store/index
'
import
{
store
}
from
'
@/store/index
'
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
...
...
web/src/view/example/form/form.vue
已删除
100644 → 0
浏览文件 @
5c457447
<
template
>
<div>
<el-form
:model=
"form"
label-width=
"80px"
ref=
"form"
>
<el-row>
<el-col
:span=
"3"
:xs=
"6"
><label
for=
""
>
活动名称
</label></el-col>
<el-col
:span=
"10"
:xs=
"14"
><el-input
v-model=
"form.name"
></el-input></el-col>
</el-row>
<el-row>
<el-col
:span=
"3"
:xs=
"6"
><label
for=
""
>
活动区域
</label></el-col>
<el-col
:span=
"10"
:xs=
"14"
>
<el-select
placeholder=
"请选择活动区域"
v-model=
"form.region"
>
<el-option
label=
"上海"
value=
"shanghai"
></el-option>
<el-option
label=
"北京"
value=
"beijing"
></el-option>
</el-select>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"3"
:xs=
"6"
><label
for=
""
>
活动时间
</label></el-col>
<el-col
:span=
"10"
:xs=
"18"
>
<el-col
:span=
"11"
>
<el-date-picker
placeholder=
"选择日期"
style=
"width: 100%;"
type=
"date"
v-model=
"form.date1"
></el-date-picker>
</el-col>
<el-col
:span=
"2"
class=
"line"
>
——
</el-col>
<el-col
:span=
"11"
>
<el-time-picker
placeholder=
"选择时间"
style=
"width: 100%;"
v-model=
"form.date2"
></el-time-picker>
</el-col>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"3"
:xs=
"6"
><label
for=
""
>
即时配送
</label></el-col>
<el-col
:span=
"10"
:xs=
"14"
><el-switch
v-model=
"form.delivery"
></el-switch></el-col>
</el-row>
<el-row>
<el-col
:span=
"3"
:xs=
"6"
><label
for=
""
>
活动性质
</label></el-col>
<el-col
:span=
"10"
:xs=
"14"
>
<el-checkbox-group
v-model=
"form.type"
>
<el-checkbox
label=
"美食/餐厅线上活动"
name=
"type"
></el-checkbox>
<el-checkbox
label=
"地推活动"
name=
"type"
></el-checkbox>
<el-checkbox
label=
"线下主题活动"
name=
"type"
></el-checkbox>
<el-checkbox
label=
"单纯品牌曝光"
name=
"type"
></el-checkbox>
</el-checkbox-group>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"3"
:xs=
"6"
><label
for=
""
>
特殊资源
</label></el-col>
<el-col
:span=
"10"
:xs=
"14"
>
<el-radio-group
v-model=
"form.resource"
>
<el-radio
label=
"线上品牌商赞助"
></el-radio>
<el-radio
label=
"线下场地免费"
></el-radio>
</el-radio-group>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"3"
:xs=
"6"
><label
for=
""
>
活动形式
</label></el-col>
<el-col
:span=
"10"
:xs=
"14"
><el-input
type=
"textarea"
v-model=
"form.desc"
></el-input></el-col>
</el-row>
<el-row>
<el-col
:span=
"3"
:xs=
"6"
><label
for=
""
>
穿梭框
</label></el-col>
<el-col
:span=
"20"
:xs=
"24"
>
<el-transfer
:data=
"data"
:filter-method=
"filterMethod"
filter-placeholder=
"请输入城市拼音"
filterable
v-model=
"value"
></el-transfer>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"3"
:xs=
"6"
><label
for=
""
>
活动时间
</label></el-col>
<el-col
:span=
"10"
><el-input
v-model=
"form.name"
></el-input></el-col>
</el-row>
<el-row
type=
"flex"
justify=
"center"
>
<el-col
:span=
"13"
>
<el-button
@
click=
"onSubmit"
type=
"primary"
>
立即创建
</el-button>
<el-button>
取消
</el-button>
</el-col>
</el-row>
<!--
<el-form-item
label=
"活动名称"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
<el-form-item>
<el-select
label=
"活动区域"
placeholder=
"请选择活动区域"
v-model=
"form.region"
>
<el-option
label=
"上海"
value=
"shanghai"
></el-option>
<el-option
label=
"北京"
value=
"beijing"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"活动时间"
>
<el-col
:span=
"11"
>
<el-date-picker
placeholder=
"选择日期"
style=
"width: 100%;"
type=
"date"
v-model=
"form.date1"
></el-date-picker>
</el-col>
<el-col
:span=
"2"
class=
"line"
style=
"text-align: center"
>
——
</el-col>
<el-col
:span=
"11"
>
<el-time-picker
placeholder=
"选择时间"
style=
"width: 100%;"
v-model=
"form.date2"
></el-time-picker>
</el-col>
</el-form-item>
<el-form-item
label=
"即时配送"
>
<el-switch
v-model=
"form.delivery"
></el-switch>
</el-form-item>
<el-form-item
label=
"活动性质"
>
<el-checkbox-group
v-model=
"form.type"
>
<el-checkbox
label=
"美食/餐厅线上活动"
name=
"type"
></el-checkbox>
<el-checkbox
label=
"地推活动"
name=
"type"
></el-checkbox>
<el-checkbox
label=
"线下主题活动"
name=
"type"
></el-checkbox>
<el-checkbox
label=
"单纯品牌曝光"
name=
"type"
></el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item
label=
"特殊资源"
>
<el-radio-group
v-model=
"form.resource"
>
<el-radio
label=
"线上品牌商赞助"
></el-radio>
<el-radio
label=
"线下场地免费"
></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"活动形式"
>
<el-input
type=
"textarea"
v-model=
"form.desc"
></el-input>
</el-form-item>
<el-form-item
label=
"穿梭框"
>
<el-transfer
:data=
"data"
:filter-method=
"filterMethod"
filter-placeholder=
"请输入城市拼音"
filterable
v-model=
"value"
></el-transfer>
</el-form-item>
<el-form-item>
<el-button
@
click=
"onSubmit"
type=
"primary"
>
立即创建
</el-button>
<el-button>
取消
</el-button>
</el-form-item>
-->
</el-form>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
const
generateData
=
()
=>
{
const
data
=
[]
const
cities
=
[
'
上海
'
,
'
北京
'
,
'
广州
'
,
'
深圳
'
,
'
南京
'
,
'
西安
'
,
'
成都
'
]
const
pinyin
=
[
'
shanghai
'
,
'
beijing
'
,
'
guangzhou
'
,
'
shenzhen
'
,
'
nanjing
'
,
'
xian
'
,
'
chengdu
'
]
cities
.
forEach
((
city
,
index
)
=>
{
data
.
push
({
label
:
city
,
key
:
index
,
pinyin
:
pinyin
[
index
]
})
})
return
data
}
return
{
form
:
{
name
:
''
,
region
:
''
,
date1
:
''
,
date2
:
''
,
delivery
:
false
,
type
:
[],
resource
:
''
,
desc
:
''
},
data
:
generateData
(),
value
:
[],
}
},
methods
:
{
filterMethod
(
query
,
item
)
{
return
item
.
pinyin
.
indexOf
(
query
)
>
-
1
},
onSubmit
()
{
this
.
$message
({
message
:
'
创建成功
'
,
type
:
'
success
'
})
}
}
}
</
script
>
web/src/view/example/rte/rte.vue
已删除
100644 → 0
浏览文件 @
5c457447
<
template
>
<div>
<h1>
富文本编辑器
</h1>
<div
class=
"edit_container"
>
<quill-editor
:options=
"editorOption"
@
blur=
"onEditorBlur($event)"
@
change=
"onEditorChange($event)"
@
focus=
"onEditorFocus($event)"
ref=
"myQuillEditor"
v-model=
"content"
></quill-editor>
<el-button
plain
@
click=
"saveHtml"
>
保存
</el-button>
</div>
<h1>
markdown编辑器
</h1>
<div
class=
"edit"
>
<mavon-editor
v-model=
"model.content"
></mavon-editor>
<el-button
type=
"primary"
size=
"small"
@
click=
"submit"
>
发表
</el-button>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'
App
'
,
data
()
{
return
{
content
:
`<p>hello world</p>`
,
editorOption
:
{},
model
:{
content
:
''
}
}
},
computed
:
{
editor
()
{
return
this
.
$refs
.
myQuillEditor
.
quill
}
},
methods
:
{
// onEditorReady(editor) { // 准备编辑器
// },
onEditorBlur
()
{},
// 失去焦点事件
onEditorFocus
()
{},
// 获得焦点事件
onEditorChange
()
{},
// 内容改变事件
saveHtml
()
{
console
.
log
(
this
.
content
)
},
// 保存方法
submit
(){}
}
}
</
script
>
web/src/view/example/table/table.vue
已删除
100644 → 0
浏览文件 @
5c457447
// table 纯前端示例
<
template
>
<div>
<el-table
:data=
"tableData"
@
selection-change=
"handleSelectionChange"
border
ref=
"multipleTable"
stripe
style=
"width: 100%"
tooltip-effect=
"dark"
>
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
<el-table-column
label=
"日期"
width=
"120"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
date
}}
</
template
>
</el-table-column>
<el-table-column
label=
"姓名"
prop=
"name"
width=
"120"
></el-table-column>
<el-table-column
label=
"年龄"
prop=
"age"
width=
"120"
></el-table-column>
<el-table-column
label=
"住址"
prop=
"address"
min-width=
"200"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"是否禁用"
prop=
"switch"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<el-switch
active-text=
"开启"
inactive-text=
"禁用"
v-model=
"scope.row.switch"
></el-switch>
</
template
>
</el-table-column>
<el-table-column
label=
"按钮组"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"small"
@
click=
"toggleSelection([scope.row])"
>
按钮1
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"toggleSelection([scope.row])"
>
按钮2
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"toggleSelection([scope.row])"
>
按钮3
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
style=
"margin-top: 20px"
>
<el-button
@
click=
"toggleSelection([tableData[1], tableData[2]])"
>
切换第二、第三行的选中状态
</el-button>
<el-button
@
click=
"toggleSelection()"
>
取消选择
</el-button>
</div>
</div>
</template>
<
script
>
export
default
{
name
:
'
Table
'
,
data
()
{
return
{
tableData
:
[
{
date
:
'
2016-05-03
'
,
name
:
'
王小虎
'
,
age
:
12
,
address
:
'
上海市普陀区金沙江路 1518 弄
'
,
switch
:
true
},
{
date
:
'
2016-05-02
'
,
name
:
'
王小虎
'
,
age
:
12
,
address
:
'
上海市普陀区金沙江路 1518 弄
'
,
switch
:
true
},
{
date
:
'
2016-05-04
'
,
name
:
'
王小虎
'
,
age
:
12
,
address
:
'
上海市普陀区金沙江路 1518 弄
'
,
switch
:
true
},
{
date
:
'
2016-05-01
'
,
name
:
'
王小虎
'
,
age
:
12
,
address
:
'
上海市普陀区金沙江路 1518 弄
'
,
switch
:
false
},
{
date
:
'
2016-05-08
'
,
name
:
'
王小虎
'
,
age
:
12
,
address
:
'
上海市普陀区金沙江路 1518 弄
'
,
switch
:
true
},
{
date
:
'
2016-05-06
'
,
name
:
'
王小虎
'
,
age
:
12
,
address
:
'
上海市普陀区金沙江路 1518 弄
'
,
switch
:
true
},
{
date
:
'
2016-05-07
'
,
name
:
'
王小虎
'
,
age
:
12
,
address
:
'
上海市普陀区金沙江路 1518 弄
'
,
switch
:
false
}
],
multipleSelection
:
[]
}
},
methods
:
{
toggleSelection
(
rows
)
{
if
(
rows
)
{
rows
.
forEach
(
row
=>
{
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
)
})
}
else
{
this
.
$refs
.
multipleTable
.
clearSelection
()
}
},
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
}
}
}
</
script
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录