cloud-web-corejs 1.0.54-dev.343 → 1.0.54-dev.345
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.
- package/package.json +1 -1
- package/src/components/VabUpload/mixins.js +1 -1490
- package/src/components/VabUpload/view.vue +138 -55
- package/src/components/wf/content.vue +772 -411
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -0
- package/src/components/wf/wf.js +2117 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +92 -0
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +725 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +62 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -19
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +59 -0
- package/src/components/xform/lang/zh-CN.js +1 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +100 -70
- package/src/views/bd/setting/config_manage/list.vue +16 -1
- package/src/views/bd/setting/logic_param/edit.vue +146 -0
- package/src/views/bd/setting/logic_param/edit1.vue +106 -0
- package/src/views/bd/setting/logic_param/edit2.vue +122 -0
- package/src/views/bd/setting/logic_param/list.vue +74 -0
- package/src/views/bd/setting/logic_param/list1.vue +12 -0
- package/src/views/bd/setting/logic_param/list2.vue +12 -0
- package/src/views/bd/setting/logic_param/mixins/edit.js +93 -0
- package/src/views/bd/setting/logic_param/mixins/list.js +358 -0
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -300
@@ -1,300 +1,300 @@
|
|
1
|
-
import userDialog from "@base/views/user/user/dialog.vue";
|
2
|
-
import {getJsxBtn} from "@base/views/bd/setting/utils/index";
|
3
|
-
import {getBdEnv} from "@base/api/user";
|
4
|
-
|
5
|
-
let modules = {};
|
6
|
-
modules = {
|
7
|
-
props: {
|
8
|
-
currentMenuKind: Object
|
9
|
-
},
|
10
|
-
components: {
|
11
|
-
userDialog
|
12
|
-
},
|
13
|
-
computed: {
|
14
|
-
menuKindId() {
|
15
|
-
return this.currentMenuKind.id;
|
16
|
-
}
|
17
|
-
},
|
18
|
-
async mounted() {
|
19
|
-
await this.initBdEnv();
|
20
|
-
this.initTableList();
|
21
|
-
},
|
22
|
-
data() {
|
23
|
-
let that = this;
|
24
|
-
return {
|
25
|
-
showDialog: true,
|
26
|
-
activeName: 'second',
|
27
|
-
value10: '',
|
28
|
-
dataId: '',
|
29
|
-
showEdit: false,
|
30
|
-
formData: {
|
31
|
-
nickName: null,
|
32
|
-
},
|
33
|
-
vxeOption: {},
|
34
|
-
showUserDialog: false,
|
35
|
-
showPositionDialog: false,
|
36
|
-
showSaleOrgDialog: false,
|
37
|
-
operateIndex: 0,
|
38
|
-
showViewDialog: false,
|
39
|
-
|
40
|
-
tableData: [],
|
41
|
-
showUserRowDialog: false,
|
42
|
-
showUserAddDialog: false,
|
43
|
-
currentRow: null,
|
44
|
-
isDev: true
|
45
|
-
|
46
|
-
};
|
47
|
-
},
|
48
|
-
methods: {
|
49
|
-
getFieldDisabled() {
|
50
|
-
|
51
|
-
},
|
52
|
-
searchEvent() {
|
53
|
-
this.$refs['table-m1'].commitProxy('reload');
|
54
|
-
},
|
55
|
-
resetEvent() {
|
56
|
-
this.formData = {};
|
57
|
-
this.$refs['table-m1'].commitProxy('reload');
|
58
|
-
},
|
59
|
-
openEditDialog(id) {
|
60
|
-
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
61
|
-
this.activeName = 'first';
|
62
|
-
this.showViewDialog = true;
|
63
|
-
this.$openEditView('showEdit');
|
64
|
-
},
|
65
|
-
initBdEnv() {
|
66
|
-
return getBdEnv({
|
67
|
-
success: res => {
|
68
|
-
this.isDev = res.objx == "dev"
|
69
|
-
}
|
70
|
-
});
|
71
|
-
},
|
72
|
-
initTableList() {
|
73
|
-
let that = this;
|
74
|
-
let valMap = {
|
75
|
-
0: this.$t1('否'),
|
76
|
-
1: this.$t1('是')
|
77
|
-
};
|
78
|
-
let tableOption = {
|
79
|
-
vue: this,
|
80
|
-
tableRef: 'table-m1',
|
81
|
-
tableName: 'user_fileLibrary-fileAuto-list-m1',
|
82
|
-
config: {
|
83
|
-
height: "auto"
|
84
|
-
},
|
85
|
-
columns: [
|
86
|
-
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
87
|
-
{
|
88
|
-
title: this.$t1('用户'),
|
89
|
-
field: 'nickName',
|
90
|
-
width: 350,
|
91
|
-
slots: {
|
92
|
-
default: "user"
|
93
|
-
}
|
94
|
-
},
|
95
|
-
{
|
96
|
-
title: this.$t1('编辑'),
|
97
|
-
field: 'editAuth',
|
98
|
-
width: 150,
|
99
|
-
params: {disabled: !this.currentMenuKind.editAuth},
|
100
|
-
slots: {
|
101
|
-
default: "switch"
|
102
|
-
}
|
103
|
-
},
|
104
|
-
{
|
105
|
-
title: this.$t1('导出发布'),
|
106
|
-
field: 'exportAuth',
|
107
|
-
width: 150,
|
108
|
-
params: {disabled: !this.currentMenuKind.exportAuth},
|
109
|
-
slots: {
|
110
|
-
default: "switch"
|
111
|
-
}
|
112
|
-
},
|
113
|
-
...(this.isDev ? [{
|
114
|
-
title: this.$t1('可选导出发布类型'),
|
115
|
-
field: 'selectTypeAuth',
|
116
|
-
width: 200,
|
117
|
-
params: {disabled: !this.currentMenuKind.selectTypeAuth},
|
118
|
-
slots: {
|
119
|
-
default: "switch"
|
120
|
-
}
|
121
|
-
}] : []),
|
122
|
-
|
123
|
-
{
|
124
|
-
title: this.$t1('数据表权限'),
|
125
|
-
field: 'szTaMbAuth',
|
126
|
-
width: 150,
|
127
|
-
params: {disabled: !this.currentMenuKind.szTaMbAuth},
|
128
|
-
slots: {
|
129
|
-
default: "switch"
|
130
|
-
}
|
131
|
-
},
|
132
|
-
{
|
133
|
-
title: this.$t1('
|
134
|
-
field: 'formAuth',
|
135
|
-
width: 150,
|
136
|
-
params: {disabled: !this.currentMenuKind.formAuth},
|
137
|
-
slots: {
|
138
|
-
default: "switch"
|
139
|
-
}
|
140
|
-
},
|
141
|
-
{
|
142
|
-
title: this.$t1('
|
143
|
-
field: 'formScriptAuth',
|
144
|
-
width: 150,
|
145
|
-
params: {disabled: !this.currentMenuKind.formScriptAuth},
|
146
|
-
slots: {
|
147
|
-
default: "switch"
|
148
|
-
}
|
149
|
-
},
|
150
|
-
|
151
|
-
{
|
152
|
-
width: 100,
|
153
|
-
fixed: 'right',
|
154
|
-
title: '',
|
155
|
-
sortable: false,
|
156
|
-
slots: {
|
157
|
-
default: ({row, rowIndex, $table}) => {
|
158
|
-
return getJsxBtn({
|
159
|
-
iconName: "el-icon-delete",
|
160
|
-
content: this.$t1('删除'),
|
161
|
-
onclick: () => {
|
162
|
-
this.tableData.splice(rowIndex, 1)
|
163
|
-
}
|
164
|
-
});
|
165
|
-
}
|
166
|
-
}
|
167
|
-
}
|
168
|
-
]
|
169
|
-
};
|
170
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
171
|
-
this.vxeOption = opts;
|
172
|
-
});
|
173
|
-
this.initData();
|
174
|
-
},
|
175
|
-
initData() {
|
176
|
-
this.$http({
|
177
|
-
aes: true,
|
178
|
-
url: USER_PREFIX + '/menu_kind_auth/list',
|
179
|
-
method: `post`,
|
180
|
-
data: {
|
181
|
-
menuKindId: this.menuKindId,
|
182
|
-
},
|
183
|
-
isLoading: true,
|
184
|
-
modalStrictly: true,
|
185
|
-
success: res1 => {
|
186
|
-
let tableData = res1.objx || [];
|
187
|
-
this.tableData = tableData;
|
188
|
-
|
189
|
-
}
|
190
|
-
});
|
191
|
-
},
|
192
|
-
confirmInsertUser(rows) {
|
193
|
-
if (rows.length) {
|
194
|
-
let row = rows[0];
|
195
|
-
this.formData.userId = row.id;
|
196
|
-
this.formData.nickName = row.nickName;
|
197
|
-
}
|
198
|
-
},
|
199
|
-
dialogClose() {
|
200
|
-
this.$emit('update:visiable', false)
|
201
|
-
},
|
202
|
-
deleteRows() {
|
203
|
-
let checkRows = this.$refs['table-m1'].getCheckboxRecords(true);
|
204
|
-
if (!checkRows.length) {
|
205
|
-
this.$message({
|
206
|
-
message: this.$t1('请选择需要删除的表单分类权限'),
|
207
|
-
type: 'error',
|
208
|
-
showClose: true,
|
209
|
-
duration: 3000,
|
210
|
-
});
|
211
|
-
return;
|
212
|
-
}
|
213
|
-
let keys = checkRows.map(item => item._X_ROW_KEY)
|
214
|
-
this.tableData = this.tableData.filter(item => !keys.includes(item._X_ROW_KEY))
|
215
|
-
},
|
216
|
-
openUserRowDialog(row, rowIndex) {
|
217
|
-
this.operateIndex = rowIndex;
|
218
|
-
this.showUserRowDialog = true;
|
219
|
-
},
|
220
|
-
confirmtUserRow(rows) {
|
221
|
-
if (rows.length) {
|
222
|
-
let row = rows[0];
|
223
|
-
let item = this.tableData[this.operateIndex]
|
224
|
-
item.userId = row.id;
|
225
|
-
item.nickName = row.nickName;
|
226
|
-
}
|
227
|
-
},
|
228
|
-
openUserAddDialog(row, rowIndex) {
|
229
|
-
this.showUserAddDialog = true;
|
230
|
-
},
|
231
|
-
confirmtUserAddDialog(rows) {
|
232
|
-
if (rows.length) {
|
233
|
-
const tableData = this.tableData;
|
234
|
-
const map = {};
|
235
|
-
tableData.filter(item => !!item.userId).forEach(function (item) {
|
236
|
-
map[item.userId] = 1;
|
237
|
-
});
|
238
|
-
let items = [];
|
239
|
-
|
240
|
-
rows.forEach((row, index) => {
|
241
|
-
let item = this.createRow();
|
242
|
-
item.userId = row.id;
|
243
|
-
item.nickName = row.nickName;
|
244
|
-
if (!map[item.userId]) {
|
245
|
-
items.push(item);
|
246
|
-
}
|
247
|
-
});
|
248
|
-
this.tableData.push(...items);
|
249
|
-
}
|
250
|
-
},
|
251
|
-
saveData() {
|
252
|
-
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
253
|
-
var url = USER_PREFIX + `/menu_kind_auth/save`;
|
254
|
-
this.$http({
|
255
|
-
aes: true,
|
256
|
-
url: url,
|
257
|
-
method: `post`,
|
258
|
-
data: {
|
259
|
-
menuKindId: this.menuKindId,
|
260
|
-
menuKindAuthDTOs: this.tableData
|
261
|
-
},
|
262
|
-
isLoading: true,
|
263
|
-
success: res => {
|
264
|
-
this.$message({
|
265
|
-
message: res.content,
|
266
|
-
type: 'success',
|
267
|
-
duration: 500,
|
268
|
-
onClose: t => {
|
269
|
-
this.dialogClose()
|
270
|
-
}
|
271
|
-
});
|
272
|
-
}
|
273
|
-
});
|
274
|
-
});
|
275
|
-
},
|
276
|
-
createRow() {
|
277
|
-
let editAuth = this.currentMenuKind.editAuth ? 1 : 0;
|
278
|
-
let exportAuth = this.currentMenuKind.exportAuth ? 1 : 0;
|
279
|
-
|
280
|
-
let szTaMbAuth = this.currentMenuKind.szTaMbAuth ? 1 : 0;
|
281
|
-
let formAuth = this.currentMenuKind.formAuth ? 1 : 0;
|
282
|
-
let formScriptAuth = this.currentMenuKind.formScriptAuth ? 1 : 0;
|
283
|
-
|
284
|
-
let row = {
|
285
|
-
nickName: null,
|
286
|
-
userId: null,
|
287
|
-
editAuth,
|
288
|
-
exportAuth,
|
289
|
-
selectTypeAuth: 0,
|
290
|
-
menuKindId: this.menuKindId,
|
291
|
-
|
292
|
-
szTaMbAuth,
|
293
|
-
formAuth,
|
294
|
-
formScriptAuth
|
295
|
-
}
|
296
|
-
return row;
|
297
|
-
}
|
298
|
-
}
|
299
|
-
}
|
300
|
-
export default modules
|
1
|
+
import userDialog from "@base/views/user/user/dialog.vue";
|
2
|
+
import {getJsxBtn} from "@base/views/bd/setting/utils/index";
|
3
|
+
import {getBdEnv} from "@base/api/user";
|
4
|
+
|
5
|
+
let modules = {};
|
6
|
+
modules = {
|
7
|
+
props: {
|
8
|
+
currentMenuKind: Object
|
9
|
+
},
|
10
|
+
components: {
|
11
|
+
userDialog
|
12
|
+
},
|
13
|
+
computed: {
|
14
|
+
menuKindId() {
|
15
|
+
return this.currentMenuKind.id;
|
16
|
+
}
|
17
|
+
},
|
18
|
+
async mounted() {
|
19
|
+
await this.initBdEnv();
|
20
|
+
this.initTableList();
|
21
|
+
},
|
22
|
+
data() {
|
23
|
+
let that = this;
|
24
|
+
return {
|
25
|
+
showDialog: true,
|
26
|
+
activeName: 'second',
|
27
|
+
value10: '',
|
28
|
+
dataId: '',
|
29
|
+
showEdit: false,
|
30
|
+
formData: {
|
31
|
+
nickName: null,
|
32
|
+
},
|
33
|
+
vxeOption: {},
|
34
|
+
showUserDialog: false,
|
35
|
+
showPositionDialog: false,
|
36
|
+
showSaleOrgDialog: false,
|
37
|
+
operateIndex: 0,
|
38
|
+
showViewDialog: false,
|
39
|
+
|
40
|
+
tableData: [],
|
41
|
+
showUserRowDialog: false,
|
42
|
+
showUserAddDialog: false,
|
43
|
+
currentRow: null,
|
44
|
+
isDev: true
|
45
|
+
|
46
|
+
};
|
47
|
+
},
|
48
|
+
methods: {
|
49
|
+
getFieldDisabled() {
|
50
|
+
|
51
|
+
},
|
52
|
+
searchEvent() {
|
53
|
+
this.$refs['table-m1'].commitProxy('reload');
|
54
|
+
},
|
55
|
+
resetEvent() {
|
56
|
+
this.formData = {};
|
57
|
+
this.$refs['table-m1'].commitProxy('reload');
|
58
|
+
},
|
59
|
+
openEditDialog(id) {
|
60
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
61
|
+
this.activeName = 'first';
|
62
|
+
this.showViewDialog = true;
|
63
|
+
this.$openEditView('showEdit');
|
64
|
+
},
|
65
|
+
initBdEnv() {
|
66
|
+
return getBdEnv({
|
67
|
+
success: res => {
|
68
|
+
this.isDev = res.objx == "dev"
|
69
|
+
}
|
70
|
+
});
|
71
|
+
},
|
72
|
+
initTableList() {
|
73
|
+
let that = this;
|
74
|
+
let valMap = {
|
75
|
+
0: this.$t1('否'),
|
76
|
+
1: this.$t1('是')
|
77
|
+
};
|
78
|
+
let tableOption = {
|
79
|
+
vue: this,
|
80
|
+
tableRef: 'table-m1',
|
81
|
+
tableName: 'user_fileLibrary-fileAuto-list-m1',
|
82
|
+
config: {
|
83
|
+
height: "auto"
|
84
|
+
},
|
85
|
+
columns: [
|
86
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
87
|
+
{
|
88
|
+
title: this.$t1('用户'),
|
89
|
+
field: 'nickName',
|
90
|
+
width: 350,
|
91
|
+
slots: {
|
92
|
+
default: "user"
|
93
|
+
}
|
94
|
+
},
|
95
|
+
{
|
96
|
+
title: this.$t1('编辑'),
|
97
|
+
field: 'editAuth',
|
98
|
+
width: 150,
|
99
|
+
params: {disabled: !this.currentMenuKind.editAuth},
|
100
|
+
slots: {
|
101
|
+
default: "switch"
|
102
|
+
}
|
103
|
+
},
|
104
|
+
{
|
105
|
+
title: this.$t1('导出发布'),
|
106
|
+
field: 'exportAuth',
|
107
|
+
width: 150,
|
108
|
+
params: {disabled: !this.currentMenuKind.exportAuth},
|
109
|
+
slots: {
|
110
|
+
default: "switch"
|
111
|
+
}
|
112
|
+
},
|
113
|
+
...(this.isDev ? [{
|
114
|
+
title: this.$t1('可选导出发布类型'),
|
115
|
+
field: 'selectTypeAuth',
|
116
|
+
width: 200,
|
117
|
+
params: {disabled: !this.currentMenuKind.selectTypeAuth},
|
118
|
+
slots: {
|
119
|
+
default: "switch"
|
120
|
+
}
|
121
|
+
}] : []),
|
122
|
+
|
123
|
+
{
|
124
|
+
title: this.$t1('数据表权限'),
|
125
|
+
field: 'szTaMbAuth',
|
126
|
+
width: 150,
|
127
|
+
params: {disabled: !this.currentMenuKind.szTaMbAuth},
|
128
|
+
slots: {
|
129
|
+
default: "switch"
|
130
|
+
}
|
131
|
+
},
|
132
|
+
{
|
133
|
+
title: this.$t1('表单模板权限'),
|
134
|
+
field: 'formAuth',
|
135
|
+
width: 150,
|
136
|
+
params: {disabled: !this.currentMenuKind.formAuth},
|
137
|
+
slots: {
|
138
|
+
default: "switch"
|
139
|
+
}
|
140
|
+
},
|
141
|
+
{
|
142
|
+
title: this.$t1('逻辑脚本权限'),
|
143
|
+
field: 'formScriptAuth',
|
144
|
+
width: 150,
|
145
|
+
params: {disabled: !this.currentMenuKind.formScriptAuth},
|
146
|
+
slots: {
|
147
|
+
default: "switch"
|
148
|
+
}
|
149
|
+
},
|
150
|
+
|
151
|
+
{
|
152
|
+
width: 100,
|
153
|
+
fixed: 'right',
|
154
|
+
title: '',
|
155
|
+
sortable: false,
|
156
|
+
slots: {
|
157
|
+
default: ({row, rowIndex, $table}) => {
|
158
|
+
return getJsxBtn({
|
159
|
+
iconName: "el-icon-delete",
|
160
|
+
content: this.$t1('删除'),
|
161
|
+
onclick: () => {
|
162
|
+
this.tableData.splice(rowIndex, 1)
|
163
|
+
}
|
164
|
+
});
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
]
|
169
|
+
};
|
170
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
171
|
+
this.vxeOption = opts;
|
172
|
+
});
|
173
|
+
this.initData();
|
174
|
+
},
|
175
|
+
initData() {
|
176
|
+
this.$http({
|
177
|
+
aes: true,
|
178
|
+
url: USER_PREFIX + '/menu_kind_auth/list',
|
179
|
+
method: `post`,
|
180
|
+
data: {
|
181
|
+
menuKindId: this.menuKindId,
|
182
|
+
},
|
183
|
+
isLoading: true,
|
184
|
+
modalStrictly: true,
|
185
|
+
success: res1 => {
|
186
|
+
let tableData = res1.objx || [];
|
187
|
+
this.tableData = tableData;
|
188
|
+
|
189
|
+
}
|
190
|
+
});
|
191
|
+
},
|
192
|
+
confirmInsertUser(rows) {
|
193
|
+
if (rows.length) {
|
194
|
+
let row = rows[0];
|
195
|
+
this.formData.userId = row.id;
|
196
|
+
this.formData.nickName = row.nickName;
|
197
|
+
}
|
198
|
+
},
|
199
|
+
dialogClose() {
|
200
|
+
this.$emit('update:visiable', false)
|
201
|
+
},
|
202
|
+
deleteRows() {
|
203
|
+
let checkRows = this.$refs['table-m1'].getCheckboxRecords(true);
|
204
|
+
if (!checkRows.length) {
|
205
|
+
this.$message({
|
206
|
+
message: this.$t1('请选择需要删除的表单分类权限'),
|
207
|
+
type: 'error',
|
208
|
+
showClose: true,
|
209
|
+
duration: 3000,
|
210
|
+
});
|
211
|
+
return;
|
212
|
+
}
|
213
|
+
let keys = checkRows.map(item => item._X_ROW_KEY)
|
214
|
+
this.tableData = this.tableData.filter(item => !keys.includes(item._X_ROW_KEY))
|
215
|
+
},
|
216
|
+
openUserRowDialog(row, rowIndex) {
|
217
|
+
this.operateIndex = rowIndex;
|
218
|
+
this.showUserRowDialog = true;
|
219
|
+
},
|
220
|
+
confirmtUserRow(rows) {
|
221
|
+
if (rows.length) {
|
222
|
+
let row = rows[0];
|
223
|
+
let item = this.tableData[this.operateIndex]
|
224
|
+
item.userId = row.id;
|
225
|
+
item.nickName = row.nickName;
|
226
|
+
}
|
227
|
+
},
|
228
|
+
openUserAddDialog(row, rowIndex) {
|
229
|
+
this.showUserAddDialog = true;
|
230
|
+
},
|
231
|
+
confirmtUserAddDialog(rows) {
|
232
|
+
if (rows.length) {
|
233
|
+
const tableData = this.tableData;
|
234
|
+
const map = {};
|
235
|
+
tableData.filter(item => !!item.userId).forEach(function (item) {
|
236
|
+
map[item.userId] = 1;
|
237
|
+
});
|
238
|
+
let items = [];
|
239
|
+
|
240
|
+
rows.forEach((row, index) => {
|
241
|
+
let item = this.createRow();
|
242
|
+
item.userId = row.id;
|
243
|
+
item.nickName = row.nickName;
|
244
|
+
if (!map[item.userId]) {
|
245
|
+
items.push(item);
|
246
|
+
}
|
247
|
+
});
|
248
|
+
this.tableData.push(...items);
|
249
|
+
}
|
250
|
+
},
|
251
|
+
saveData() {
|
252
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
253
|
+
var url = USER_PREFIX + `/menu_kind_auth/save`;
|
254
|
+
this.$http({
|
255
|
+
aes: true,
|
256
|
+
url: url,
|
257
|
+
method: `post`,
|
258
|
+
data: {
|
259
|
+
menuKindId: this.menuKindId,
|
260
|
+
menuKindAuthDTOs: this.tableData
|
261
|
+
},
|
262
|
+
isLoading: true,
|
263
|
+
success: res => {
|
264
|
+
this.$message({
|
265
|
+
message: res.content,
|
266
|
+
type: 'success',
|
267
|
+
duration: 500,
|
268
|
+
onClose: t => {
|
269
|
+
this.dialogClose()
|
270
|
+
}
|
271
|
+
});
|
272
|
+
}
|
273
|
+
});
|
274
|
+
});
|
275
|
+
},
|
276
|
+
createRow() {
|
277
|
+
let editAuth = this.currentMenuKind.editAuth ? 1 : 0;
|
278
|
+
let exportAuth = this.currentMenuKind.exportAuth ? 1 : 0;
|
279
|
+
|
280
|
+
let szTaMbAuth = this.currentMenuKind.szTaMbAuth ? 1 : 0;
|
281
|
+
let formAuth = this.currentMenuKind.formAuth ? 1 : 0;
|
282
|
+
let formScriptAuth = this.currentMenuKind.formScriptAuth ? 1 : 0;
|
283
|
+
|
284
|
+
let row = {
|
285
|
+
nickName: null,
|
286
|
+
userId: null,
|
287
|
+
editAuth,
|
288
|
+
exportAuth,
|
289
|
+
selectTypeAuth: 0,
|
290
|
+
menuKindId: this.menuKindId,
|
291
|
+
|
292
|
+
szTaMbAuth,
|
293
|
+
formAuth,
|
294
|
+
formScriptAuth
|
295
|
+
}
|
296
|
+
return row;
|
297
|
+
}
|
298
|
+
}
|
299
|
+
}
|
300
|
+
export default modules
|