jufubao-admin-library 1.1.232 → 1.1.233

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,42 @@
1
+ import Layout from '@/layoutJbz'
2
+
3
+ import {setModuleName} from "@/utils/xd.base";
4
+ import roles from '@/constant/permissions';
5
+ const levels = roles.levels
6
+
7
+
8
+ const levelsConfigRouter = {
9
+ path: '/levels_config',
10
+ component: Layout,
11
+ sort: 90,
12
+ name: '闯关活动配置',
13
+ alwaysShow: true,
14
+ hidden: true,
15
+ meta: {
16
+ title: '闯关活动配置',
17
+ icon: 'iconhuodongtubiao',
18
+ iconSize: 20,
19
+ //roles: [levels.getLevelsList, levels.setLevelsBaseConfig]
20
+ },
21
+ children: [
22
+ {
23
+ // #ifdef admin saas-admin
24
+ path: 'config/:map_id?/:activity_id?',
25
+ // #endif
26
+ // #ifdef sms-breakthrough
27
+ path: 'config/:map_id?/:activity_id?/:site_id?',
28
+ // #endif
29
+ name: 'LevelsConfigMap',
30
+ hidden: true,
31
+ component: () => setModuleName(import('@/viewsClearLevels/config.vue'),'LevelsConfigMap'),
32
+ meta: {
33
+ title: '闯关活动配置',
34
+ icon: 'el-icon-document',
35
+ activeMenu: "/levels_activity/list"
36
+ //roles: [levels.getLevelsList]
37
+ }
38
+ },
39
+ ]
40
+ }
41
+
42
+ export default levelsConfigRouter
@@ -0,0 +1,182 @@
1
+ 'use strict'
2
+
3
+ module.exports = {
4
+ name: 'levels',
5
+ title: '闯关活动管理',
6
+ vuex: true,
7
+ model: [
8
+ //点位操作
9
+ {
10
+ title: '闯关活动管理 - 点位列表',
11
+ mapFn: "getLevelsPointList",
12
+ // #ifdef saas-admin
13
+ path: '/saas-app-company/v1/breakthrough/x_map_point/items',
14
+ // #endif
15
+ // #ifdef sms-breakthrough
16
+ path: '/saas-app-partner/v1/breakthrough/x_map_point/items',
17
+ // #endif
18
+ isRule: false,
19
+ data: {
20
+ filters: ['filter', 'Object', '非必填'],
21
+ page_size: ['每页', 'String', '必填'],
22
+ page_token: ['页数', 'String', '必填'],
23
+ },
24
+ disabled: true,
25
+ role: '',
26
+ },
27
+ {
28
+ title: '闯关活动管理 - 获取点位',
29
+ mapFn: "getLevelsPoint",
30
+ // #ifdef saas-admin
31
+ path: '/saas-app-company/v1/breakthrough/x_map_point/item/:id',
32
+ // #endif
33
+ // #ifdef sms-breakthrough
34
+ path: '/saas-app-partner/v1/breakthrough/x_map_point/item/:id',
35
+ // #endif
36
+ isRule: false,
37
+ params: {
38
+ id:['id', 'String', '必填'],
39
+ },
40
+ disabled: true,
41
+ role: '',
42
+ },
43
+ {
44
+ title: '闯关活动管理 - 新增点位',
45
+ mapFn: "createLevelsPoint",
46
+ // #ifdef saas-admin
47
+ path: '/saas-app-company/v1/breakthrough/x_map_point',
48
+ // #endif
49
+ // #ifdef sms-breakthrough
50
+ path: '/saas-app-partner/v1/breakthrough/x_map_point',
51
+ // #endif
52
+ isRule: false,
53
+ data: {
54
+ item:['模版对象', 'Object', '必填'],
55
+ },
56
+ disabled: true,
57
+ role: '',
58
+ },
59
+ {
60
+ title: '闯关活动管理 - 编辑点位',
61
+ mapFn: "editLevelsPoint",
62
+ // #ifdef saas-admin
63
+ path: '/saas-app-company/v1/breakthrough/x_map_point/:id',
64
+ // #endif
65
+ // #ifdef sms-breakthrough
66
+ path: '/saas-app-partner/v1/breakthrough/x_map_point/:id',
67
+ // #endif
68
+ isRule: false,
69
+ data: {
70
+ item:['模版对象', 'Object', '必填'],
71
+ id:['模版ID', 'string', '必填']
72
+ },
73
+ disabled: true,
74
+ role: '',
75
+ method:'put'
76
+ },
77
+ {
78
+ title: '闯关活动:地图 - 完成制作',
79
+ mapFn: "levelsPointFinishMake",
80
+ // #ifdef saas-admin
81
+ path: '/saas-app-company/v1/breakthrough/activity/finish-make/:id',
82
+ // #endif
83
+ // #ifdef sms-breakthrough
84
+ path: '/saas-app-partner/v1/breakthrough/activity/finish-make/:id',
85
+ // #endif
86
+ isRule: false,
87
+ data: {
88
+ id:['模版ID', 'string', '必填']
89
+ },
90
+ disabled: true,
91
+ role: '',
92
+ method:'put'
93
+ },
94
+ {
95
+ title: '闯关活动:地图 - 修改点位颜色',
96
+ mapFn: "levelsPointColor",
97
+ // #ifdef saas-admin
98
+ path: '/saas-app-company/v1/breakthrough/x_map/point-color/:id',
99
+ // #endif
100
+ // #ifdef sms-breakthrough
101
+ path: '/saas-app-partner/v1/breakthrough/x_map/point-color/:id',
102
+ // #endif
103
+ isRule: false,
104
+ data: {
105
+ id:['点位ID', 'string', '必填'],
106
+ map_point_color:['地图点位颜色(已到达点位)', 'string', '必填'],
107
+ map_point_color_for_no_arrived:['地图点位颜色(未到达点位)', 'string', '必填'],
108
+ },
109
+ disabled: true,
110
+ role: '',
111
+ method:'put'
112
+ },
113
+ {
114
+ title: '闯关活动:地图 - 修改点位大小',
115
+ mapFn: "levelsPointSize",
116
+ // #ifdef saas-admin
117
+ path: '/saas-app-company/v1/breakthrough/x_map/point-size/:id',
118
+ // #endif
119
+ // #ifdef sms-breakthrough
120
+ path: '/saas-app-partner/v1/breakthrough/x_map/point-size/:id',
121
+ // #endif
122
+ isRule: false,
123
+ data: {
124
+ id:['点位ID', 'string', '必填'],
125
+ map_point_size:['map_point_size', 'string', '必填'],
126
+ },
127
+ disabled: true,
128
+ role: '',
129
+ method:'put'
130
+ },
131
+ {
132
+ title: '闯关活动:地图 - 删除点位',
133
+ mapFn: "levelsPointDelete",
134
+ // #ifdef saas-admin
135
+ path: '/saas-app-company/v1/breakthrough/x_map_point/:id',
136
+ // #endif
137
+ // #ifdef sms-breakthrough
138
+ path: '/saas-app-partner/v1/breakthrough/x_map_point/:id',
139
+ // #endif
140
+ isRule: false,
141
+ data: {
142
+ id:['点位ID', 'string', '必填'],
143
+ },
144
+ disabled: true,
145
+ role: '',
146
+ method:'delete'
147
+ },
148
+ {
149
+ title: '闯关活动管理 - 获取模版信息',
150
+ mapFn: "getLevelsTemplate",
151
+ // #ifdef saas-admin
152
+ path: '/saas-app-company/v1/breakthrough/x_map/item/:id',
153
+ // #endif
154
+ // #ifdef sms-breakthrough
155
+ path: '/saas-app-partner/v1/breakthrough/x_map/item/:id',
156
+ // #endif
157
+ isRule: false,
158
+ params: {
159
+ id: ['模版ID', 'string', '必填']
160
+ },
161
+ disabled: true,
162
+ role: '',
163
+ },
164
+ // #ifdef sms-breakthrough
165
+ {
166
+ title: '奖品 - 电子码可绑活动',
167
+ mapFn: "getCodeActivityForForign",
168
+ isPublic: true,
169
+ path: '/code-partner/v1/code-activity-for-forign',
170
+ isRule: false,
171
+ params: {
172
+ activity_name: ['activity_name', 'String', '非必填'],
173
+ activity_use_scene: ['activity_use_scene', 'String', '非必填'],
174
+ selected_activity_id: ['selected_activity_id', 'String', '非必填'],
175
+ site_id: ['site_id', 'String', '非必填'],
176
+ },
177
+ disabled: true,
178
+ role: '',
179
+ },
180
+ // #endif
181
+ ],
182
+ }