cloud-web-corejs 1.0.163 → 1.0.165
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 +2 -1
- package/src/components/vb-tabs/x-tabs.vue +30 -13
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +419 -0
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +71 -50
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +102 -73
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +41 -27
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +13 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +9 -2
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +133 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +962 -0
- package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +7 -2
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +7 -0
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +44 -27
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +19 -11
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +11 -7
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +11 -8
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +106 -76
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +13 -263
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +47 -81
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +37 -16
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +42 -18
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +57 -34
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +84 -53
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +35 -44
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +68 -3
- package/src/components/xform/form-render/container-item/containerItemMixin.js +2 -2
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/container-item/tab-item.vue +64 -32
- package/src/components/xform/form-render/index.vue +69 -23
- package/src/components/xform/form-render/indexMixin.js +18 -17
- package/src/components/xform/lang/zh-CN.js +8 -2
- package/src/components/xform/utils/formula-util.js +306 -5
- package/src/components/xform/utils/util.js +1 -1
- package/src/components/xform/utils/vue2js-generator.js +2 -2
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +1 -1
- package/src/views/bd/setting/config_manage/list.vue +7 -0
- package/src/views/user/area/dialog.vue +223 -116
- package/src/views/user/area/list.vue +318 -0
- package/src/views/user/form/vform/render.vue +54 -36
- package/src/views/user/form/view/list.vue +103 -10
- package/src/views/user/menu/list.vue +24 -1
- package/src/views/user/role/authConfig.vue +89 -0
- package/src/views/user/role/dialog.vue +70 -48
- package/src/views/user/role/edit.vue +114 -4
|
@@ -1,42 +1,70 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="containt">
|
|
3
3
|
<template v-if="layoutType == 'PC'">
|
|
4
|
-
<x-tabs ref="xTabs" v-model="activeName" class="tab-box">
|
|
4
|
+
<x-tabs ref="xTabs" v-model="activeName" class="tab-box" :tabNameEnable="true">
|
|
5
5
|
<el-tab-pane :label="$t2('常规')" name="first">
|
|
6
6
|
<vFormRender
|
|
7
|
+
ref="edit"
|
|
7
8
|
:formCode.sync="formCode1"
|
|
8
9
|
:dataId.sync="dataId"
|
|
9
10
|
:param="param"
|
|
10
11
|
:formData="formData"
|
|
11
12
|
v-if="showEdit"
|
|
12
13
|
visible-key="showEdit"
|
|
14
|
+
:visiable.sync="showEdit"
|
|
13
15
|
:parent-target="_self"
|
|
14
16
|
@reload="reload"
|
|
15
17
|
@openCopyEditTab="openCopyEditTab"
|
|
16
18
|
></vFormRender>
|
|
17
19
|
</el-tab-pane>
|
|
18
|
-
<el-tab-pane :label="$t2('列表')" name="second">
|
|
20
|
+
<el-tab-pane :label="$t2(formConfig.customListTabLabel || '列表')" name="second">
|
|
19
21
|
<div class="grid-height">
|
|
20
22
|
<vFormRender
|
|
23
|
+
ref="list"
|
|
21
24
|
:formCode="formCode"
|
|
22
25
|
style="height: 100%"
|
|
23
26
|
v-if="showRender"
|
|
24
27
|
visible-key="showRender"
|
|
28
|
+
:visiable.sync="showRender"
|
|
25
29
|
:parent-target="_self"
|
|
26
30
|
@reload="$reloadHandle"
|
|
27
31
|
:openEditDialog="openEditDialog"
|
|
28
32
|
></vFormRender>
|
|
29
33
|
</div>
|
|
30
34
|
</el-tab-pane>
|
|
35
|
+
<el-tab-pane
|
|
36
|
+
v-for="(item, index) in otherTabList"
|
|
37
|
+
:key="index"
|
|
38
|
+
:label="$t2(item.label)"
|
|
39
|
+
:name="`otherTab${index}`"
|
|
40
|
+
>
|
|
41
|
+
<div class="grid-height">
|
|
42
|
+
<vFormRender
|
|
43
|
+
:ref="`list${index}`"
|
|
44
|
+
:formCode.sync="item.formCode"
|
|
45
|
+
:dataId.sync="item.dataId"
|
|
46
|
+
:param="item.param"
|
|
47
|
+
v-if="item.showContent"
|
|
48
|
+
:parent-target="_self"
|
|
49
|
+
@reload="
|
|
50
|
+
(...args) => {
|
|
51
|
+
reloadAutoContent(...args);
|
|
52
|
+
}
|
|
53
|
+
"
|
|
54
|
+
:openEditDialog="openEditDialog1"
|
|
55
|
+
></vFormRender>
|
|
56
|
+
</div>
|
|
57
|
+
</el-tab-pane>
|
|
31
58
|
<template #editTab="{ tab, index, reloadTabContent }">
|
|
32
59
|
<el-tab-pane
|
|
33
|
-
:key="tab.
|
|
34
|
-
:label="tab.data[
|
|
35
|
-
:name="tab.
|
|
60
|
+
:key="tab.tabName"
|
|
61
|
+
:label="tab.data[tab.tabLabelField]"
|
|
62
|
+
:name="tab.tabName"
|
|
36
63
|
:closable="true"
|
|
37
64
|
>
|
|
38
65
|
<vFormRender
|
|
39
|
-
|
|
66
|
+
ref="multiEdit"
|
|
67
|
+
:formCode.sync="tab.formCode"
|
|
40
68
|
:dataId.sync="tab.dataId"
|
|
41
69
|
:param="tab.param"
|
|
42
70
|
v-if="tab.showContent"
|
|
@@ -103,8 +131,7 @@ export default {
|
|
|
103
131
|
return {
|
|
104
132
|
activeName: "second",
|
|
105
133
|
showEdit: false,
|
|
106
|
-
|
|
107
|
-
formJson: {},
|
|
134
|
+
formJson: { formConfig: {} },
|
|
108
135
|
formConfig: {},
|
|
109
136
|
showRender: false,
|
|
110
137
|
formTemplate: null,
|
|
@@ -119,12 +146,30 @@ export default {
|
|
|
119
146
|
param: {},
|
|
120
147
|
multiTabLabelField: null,
|
|
121
148
|
formData: null,
|
|
149
|
+
otherTabList: [],
|
|
122
150
|
};
|
|
123
151
|
},
|
|
152
|
+
watch: {
|
|
153
|
+
activeName(val) {
|
|
154
|
+
if (
|
|
155
|
+
this.formJson.formConfig.otherTabEnabled &&
|
|
156
|
+
this.otherTabList.length > 0 &&
|
|
157
|
+
val.startsWith("otherTab")
|
|
158
|
+
) {
|
|
159
|
+
let num = Number(val.substring("otherTab".length));
|
|
160
|
+
this.otherTabList[num].showContent = true;
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
},
|
|
124
164
|
created() {
|
|
125
165
|
this.initParam();
|
|
126
166
|
this.getReportTemplate();
|
|
127
167
|
},
|
|
168
|
+
provide() {
|
|
169
|
+
return {
|
|
170
|
+
_self: this,
|
|
171
|
+
};
|
|
172
|
+
},
|
|
128
173
|
methods: {
|
|
129
174
|
initParam() {
|
|
130
175
|
let path = this.$route.path;
|
|
@@ -135,7 +180,7 @@ export default {
|
|
|
135
180
|
},
|
|
136
181
|
getReportTemplate() {
|
|
137
182
|
this.$http({
|
|
138
|
-
aes: true,
|
|
183
|
+
// aes: true,
|
|
139
184
|
url: USER_PREFIX + `/formTemplate/getByFormCode`,
|
|
140
185
|
method: `post`,
|
|
141
186
|
data: { stringOne: this.formCode },
|
|
@@ -149,6 +194,7 @@ export default {
|
|
|
149
194
|
? JSON.parse(formTemplate.formViewContent)
|
|
150
195
|
: {};
|
|
151
196
|
this.formJson = formJson;
|
|
197
|
+
this.formConfig = formJson.formConfig || {};
|
|
152
198
|
this.layoutType = formJson.formConfig?.layoutType;
|
|
153
199
|
let addFormCode = formJson.formConfig?.addFormCode ?? null;
|
|
154
200
|
let formCode2 = formJson.formConfig?.editFormCode ?? null;
|
|
@@ -158,6 +204,7 @@ export default {
|
|
|
158
204
|
}
|
|
159
205
|
this.addFormCode = addFormCode;
|
|
160
206
|
this.multiTabLabelField = formJson.formConfig?.multiTabLabelField;
|
|
207
|
+
this.initOtherTabList();
|
|
161
208
|
},
|
|
162
209
|
});
|
|
163
210
|
},
|
|
@@ -167,7 +214,16 @@ export default {
|
|
|
167
214
|
return;
|
|
168
215
|
}
|
|
169
216
|
let formConfig = this.formJson.formConfig;
|
|
170
|
-
let
|
|
217
|
+
let tabLabelField = option?.multiTabLabelField || formConfig.multiTabLabelField;
|
|
218
|
+
let multiTabEnabled = false;
|
|
219
|
+
if (tabLabelField) {
|
|
220
|
+
if (option?.multiTabEnabled) {
|
|
221
|
+
multiTabEnabled = true;
|
|
222
|
+
} else if (formConfig.multiTabEnabled && option?.multiTabEnabled !== false) {
|
|
223
|
+
multiTabEnabled = true;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
171
227
|
let dataId = row && row.id ? row.id : null;
|
|
172
228
|
this.dataId = dataId;
|
|
173
229
|
let formCode = null;
|
|
@@ -180,6 +236,8 @@ export default {
|
|
|
180
236
|
this.$refs.xTabs.openEditTab(row, param, {
|
|
181
237
|
tabParam: {
|
|
182
238
|
formCode,
|
|
239
|
+
tabLabelField,
|
|
240
|
+
tabName: formCode + dataId,
|
|
183
241
|
},
|
|
184
242
|
});
|
|
185
243
|
} else {
|
|
@@ -192,6 +250,9 @@ export default {
|
|
|
192
250
|
this.$openEditView("showEdit");
|
|
193
251
|
}
|
|
194
252
|
},
|
|
253
|
+
openEditDialog1(row, param, option) {
|
|
254
|
+
this.openEditDialog(row, param, { multiTabEnabled: false, ...option });
|
|
255
|
+
},
|
|
195
256
|
openEditH5Dialog(row) {
|
|
196
257
|
this.formCode1 = this.addFormCode;
|
|
197
258
|
this.dataId = row && row.id ? row.id : null;
|
|
@@ -221,6 +282,38 @@ export default {
|
|
|
221
282
|
this.formData = {};
|
|
222
283
|
this.$reloadHandle(...arguments);
|
|
223
284
|
},
|
|
285
|
+
initOtherTabList() {
|
|
286
|
+
if (!this.formJson.formConfig.otherTabEnabled) return;
|
|
287
|
+
this.otherTabList = this.formJson.formConfig.otherTabList
|
|
288
|
+
.filter((item) => !!item.formCode && !!item.label)
|
|
289
|
+
.map((item) => {
|
|
290
|
+
return {
|
|
291
|
+
label: item.label,
|
|
292
|
+
formCode: item.formCode,
|
|
293
|
+
showContent: false,
|
|
294
|
+
dataId: null,
|
|
295
|
+
param: null,
|
|
296
|
+
};
|
|
297
|
+
});
|
|
298
|
+
},
|
|
299
|
+
reloadAutoContent(target, param, tab) {
|
|
300
|
+
let updateParam =
|
|
301
|
+
param != null && param.updateParam != null ? param.updateParam : {};
|
|
302
|
+
for (let key in updateParam) {
|
|
303
|
+
target.$emit("update:" + key, updateParam[key]);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
if (!tab) {
|
|
307
|
+
let activeName = this.activeName;
|
|
308
|
+
tab = this.tabs.find((item) => item.label == activeName);
|
|
309
|
+
}
|
|
310
|
+
if (tab) {
|
|
311
|
+
tab.showContent = false;
|
|
312
|
+
setTimeout(() => {
|
|
313
|
+
tab.showContent = true;
|
|
314
|
+
}, 200);
|
|
315
|
+
}
|
|
316
|
+
},
|
|
224
317
|
},
|
|
225
318
|
};
|
|
226
319
|
</script>
|
|
@@ -351,7 +351,7 @@ export default {
|
|
|
351
351
|
treeNodeUrl: USER_PREFIX + '/menu/listChildren',
|
|
352
352
|
editSaveUrl: USER_PREFIX + '/menu/save',
|
|
353
353
|
editDefaultRow: () => {
|
|
354
|
-
return {enabled: true, type: this.menuType};
|
|
354
|
+
return {enabled: true, type: this.menuType,checkPermission: 0};
|
|
355
355
|
},
|
|
356
356
|
param: () => {
|
|
357
357
|
return this.formData;
|
|
@@ -450,6 +450,29 @@ export default {
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
},
|
|
453
|
+
{
|
|
454
|
+
field: 'checkPermission',
|
|
455
|
+
title: this.$t1('查询数据权限'),
|
|
456
|
+
width: 150,
|
|
457
|
+
editRender: {},
|
|
458
|
+
slots: {
|
|
459
|
+
default: ({row}) => {
|
|
460
|
+
if (row.checkPermission) {
|
|
461
|
+
return [<div class="txt-status">{this.$t1('启用')}</div>];
|
|
462
|
+
} else {
|
|
463
|
+
return [<div class="txt-status s-3">{this.$t1('禁用')}</div>];
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
edit: ({row}) => {
|
|
467
|
+
return [
|
|
468
|
+
<el-select v-model={row.checkPermission}>
|
|
469
|
+
<el-option value={1} label={this.$t1('启用')}></el-option>
|
|
470
|
+
<el-option value={0} label={this.$t1('禁用')}></el-option>
|
|
471
|
+
</el-select>
|
|
472
|
+
]
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
},
|
|
453
476
|
// { field: 'treePathName', title: '上级菜单', width: 200 },
|
|
454
477
|
{field: 'orders', title: this.$t1('序号'), width: 100, editRender: {name: 'input'}},
|
|
455
478
|
{
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form
|
|
3
|
+
:model="formData"
|
|
4
|
+
status-icon
|
|
5
|
+
label-width="100px"
|
|
6
|
+
class="demo-ruleForm"
|
|
7
|
+
style="border: solid 1px #e9e9e9; padding: 5px"
|
|
8
|
+
>
|
|
9
|
+
<el-form-item :label="$t1('查询数据权限')">
|
|
10
|
+
<el-radio-group
|
|
11
|
+
v-model="formData.permissions"
|
|
12
|
+
@change="formData.menuRolePermOrgDTOs = []"
|
|
13
|
+
>
|
|
14
|
+
<el-radio :label="1">{{ $t1("创建人") }}</el-radio>
|
|
15
|
+
<el-radio :label="3">{{ $t1("所有") }}</el-radio>
|
|
16
|
+
<el-radio :label="2">{{ $t1("当前与下级所有机构权限") }}</el-radio>
|
|
17
|
+
</el-radio-group>
|
|
18
|
+
</el-form-item>
|
|
19
|
+
<el-form-item :label="$t1('额外机构')" v-if="formData.permissions == 2">
|
|
20
|
+
<el-tag
|
|
21
|
+
v-for="(item, index) in formData.menuRolePermOrgDTOs"
|
|
22
|
+
:key="index"
|
|
23
|
+
type="warning"
|
|
24
|
+
:disable-transitions="false"
|
|
25
|
+
:closable="true"
|
|
26
|
+
@close="formData.menuRolePermOrgDTOs.splice(index, 1)"
|
|
27
|
+
>
|
|
28
|
+
<el-tooltip
|
|
29
|
+
:enterable="false"
|
|
30
|
+
effect="dark"
|
|
31
|
+
:content="item.saleOrgName"
|
|
32
|
+
placement="bottom"
|
|
33
|
+
>
|
|
34
|
+
<span>{{ item.saleOrgName }}</span>
|
|
35
|
+
</el-tooltip>
|
|
36
|
+
</el-tag>
|
|
37
|
+
<el-button
|
|
38
|
+
icon="el-icon-plus"
|
|
39
|
+
type="warning"
|
|
40
|
+
class="el-button-tag"
|
|
41
|
+
@click="openProjectTagDialog"
|
|
42
|
+
></el-button>
|
|
43
|
+
</el-form-item>
|
|
44
|
+
<saleOrgsDialog
|
|
45
|
+
v-if="showSaleOrgsDialog"
|
|
46
|
+
:visiable.sync="showSaleOrgsDialog"
|
|
47
|
+
@confirm="confirmSaleOrgsDialog"
|
|
48
|
+
></saleOrgsDialog>
|
|
49
|
+
</el-form>
|
|
50
|
+
</template>
|
|
51
|
+
<script>
|
|
52
|
+
import saleOrgsDialog from "@base/views/user/sale_org/dialog.vue";
|
|
53
|
+
export default {
|
|
54
|
+
props: {
|
|
55
|
+
formData: {
|
|
56
|
+
type: Object,
|
|
57
|
+
default: () => {},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
components: {
|
|
61
|
+
saleOrgsDialog,
|
|
62
|
+
},
|
|
63
|
+
data() {
|
|
64
|
+
return {
|
|
65
|
+
showSaleOrgsDialog: false,
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
methods: {
|
|
69
|
+
openProjectTagDialog() {
|
|
70
|
+
this.showSaleOrgsDialog = true;
|
|
71
|
+
},
|
|
72
|
+
confirmSaleOrgsDialog(rows) {
|
|
73
|
+
if (rows.length) {
|
|
74
|
+
let ids = this.formData.menuRolePermOrgDTOs.map((item) => item.saleOrgId);
|
|
75
|
+
let items = rows
|
|
76
|
+
.filter((item) => !ids.includes(item.id))
|
|
77
|
+
.map((item) => {
|
|
78
|
+
return {
|
|
79
|
+
menus: this.formData.id,
|
|
80
|
+
saleOrgId: item.id,
|
|
81
|
+
saleOrgName: item.name,
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
if (items.length) this.formData.menuRolePermOrgDTOs.push(...items);
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
</script>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
v-el-drag-dialog
|
|
13
13
|
v-el-dialog-center
|
|
14
14
|
>
|
|
15
|
-
<div class="cont" style="height:65vh">
|
|
15
|
+
<div class="cont" style="height: 65vh">
|
|
16
16
|
<vxe-grid
|
|
17
17
|
class="is-pointer"
|
|
18
18
|
ref="table-m1"
|
|
@@ -26,24 +26,41 @@
|
|
|
26
26
|
<template #form>
|
|
27
27
|
<div class="clearfix screen-btns">
|
|
28
28
|
<div class="fr">
|
|
29
|
-
<vxe-button
|
|
30
|
-
|
|
29
|
+
<vxe-button
|
|
30
|
+
icon="el-icon-brush"
|
|
31
|
+
class="button-sty"
|
|
32
|
+
@click="resetEvent"
|
|
33
|
+
type="text"
|
|
34
|
+
status="primary"
|
|
35
|
+
plain
|
|
36
|
+
>{{ $t1("重置") }}
|
|
31
37
|
</vxe-button>
|
|
32
|
-
<vxe-button
|
|
33
|
-
|
|
38
|
+
<vxe-button
|
|
39
|
+
status="warning"
|
|
40
|
+
icon="el-icon-search"
|
|
41
|
+
class="button-sty"
|
|
42
|
+
@click="searchEvent"
|
|
43
|
+
>
|
|
44
|
+
{{ $t1("搜索") }}
|
|
34
45
|
</vxe-button>
|
|
35
46
|
</div>
|
|
36
47
|
</div>
|
|
37
|
-
<vxe-form
|
|
38
|
-
|
|
39
|
-
|
|
48
|
+
<vxe-form
|
|
49
|
+
class="screen-box"
|
|
50
|
+
title-width="92px"
|
|
51
|
+
title-align="right"
|
|
52
|
+
:data="formData"
|
|
53
|
+
@submit="searchEvent"
|
|
54
|
+
@reset="resetEvent"
|
|
55
|
+
>
|
|
56
|
+
<vxe-form-item :title="$t1('用户角色') + ':'" field="name">
|
|
40
57
|
<template v-slot>
|
|
41
|
-
<el-input v-model="formData.name" size="small" clearable/>
|
|
58
|
+
<el-input v-model="formData.name" size="small" clearable />
|
|
42
59
|
</template>
|
|
43
60
|
</vxe-form-item>
|
|
44
|
-
<vxe-form-item :title="$t1('角色编码')+':'" field="code">
|
|
61
|
+
<vxe-form-item :title="$t1('角色编码') + ':'" field="code">
|
|
45
62
|
<template v-slot>
|
|
46
|
-
<el-input v-model="formData.code" size="small" clearable/>
|
|
63
|
+
<el-input v-model="formData.code" size="small" clearable />
|
|
47
64
|
</template>
|
|
48
65
|
</vxe-form-item>
|
|
49
66
|
<vxe-button type="submit" @click="searchEvent" v-show="false"></vxe-button>
|
|
@@ -58,9 +75,12 @@
|
|
|
58
75
|
</div>
|
|
59
76
|
</label>
|
|
60
77
|
<div class="multipleChoice">
|
|
61
|
-
<el-tooltip
|
|
62
|
-
|
|
63
|
-
|
|
78
|
+
<el-tooltip
|
|
79
|
+
:enterable="false"
|
|
80
|
+
effect="dark"
|
|
81
|
+
:content="$t1('全部删除')"
|
|
82
|
+
placement="top"
|
|
83
|
+
><a class="allDel icon-quanbushanchu" @click="clearChecked()"></a>
|
|
64
84
|
</el-tooltip>
|
|
65
85
|
<div class="list">
|
|
66
86
|
<div class="item" v-for="(checkRow, index) in checkRows" :key="index">
|
|
@@ -70,25 +90,27 @@
|
|
|
70
90
|
</div>
|
|
71
91
|
</div>
|
|
72
92
|
<span slot="footer" class="dialog-footer">
|
|
73
|
-
<span class="fl tips" v-if="!selectMulti">{{
|
|
93
|
+
<span class="fl tips" v-if="!selectMulti">{{
|
|
94
|
+
$t1("注:双击确认选择(单选)")
|
|
95
|
+
}}</span>
|
|
74
96
|
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
|
75
97
|
<i class="el-icon-close el-icon"></i>
|
|
76
|
-
{{ $t1(
|
|
98
|
+
{{ $t1("取 消") }}
|
|
77
99
|
</el-button>
|
|
78
100
|
<el-button type="primary" @click="dialogPrimary" class="button-sty">
|
|
79
101
|
<i class="el-icon-check el-icon"></i>
|
|
80
|
-
{{ $t1(
|
|
102
|
+
{{ $t1("确 定") }}
|
|
81
103
|
</el-button>
|
|
82
104
|
</span>
|
|
83
105
|
</el-dialog>
|
|
84
106
|
</template>
|
|
85
107
|
|
|
86
108
|
<script>
|
|
87
|
-
import {selectDialogMixins} from
|
|
109
|
+
import { selectDialogMixins } from "@base/mixins/selectDialog/index.js";
|
|
88
110
|
|
|
89
111
|
export default {
|
|
90
|
-
name:
|
|
91
|
-
props: [
|
|
112
|
+
name: "roleDialog",
|
|
113
|
+
props: ["visiable", "multi", "rows", "param"],
|
|
92
114
|
mixins: [selectDialogMixins],
|
|
93
115
|
created() {
|
|
94
116
|
this.initSetting();
|
|
@@ -103,64 +125,64 @@ export default {
|
|
|
103
125
|
falseValue: false,
|
|
104
126
|
selectMulti: true,
|
|
105
127
|
formData: {},
|
|
106
|
-
vxeOption: {}
|
|
128
|
+
vxeOption: {},
|
|
107
129
|
};
|
|
108
130
|
},
|
|
109
131
|
methods: {
|
|
110
132
|
initTableM1() {
|
|
111
133
|
let that = this;
|
|
112
|
-
let url = USER_PREFIX +
|
|
134
|
+
let url = USER_PREFIX + "/role/listCurrentPage";
|
|
113
135
|
let tableOption = {
|
|
114
136
|
vue: that,
|
|
115
|
-
tableRef:
|
|
116
|
-
tableName:
|
|
137
|
+
tableRef: "table-m1",
|
|
138
|
+
tableName: "basic_role_dialog-m1",
|
|
117
139
|
path: url,
|
|
118
140
|
param: () => {
|
|
119
141
|
return {
|
|
120
142
|
...this.formData,
|
|
121
|
-
...this.param
|
|
143
|
+
...this.param,
|
|
122
144
|
};
|
|
123
145
|
},
|
|
124
146
|
columns: [
|
|
125
|
-
{type:
|
|
126
|
-
{title: this.$t1(
|
|
127
|
-
{title: this.$t1(
|
|
128
|
-
{title: this.$t1(
|
|
147
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
148
|
+
{ title: this.$t1("用户角色"), field: "name", width: 250, fixed: "left" },
|
|
149
|
+
{ title: this.$t1("角色编码"), field: "code", width: 150 },
|
|
150
|
+
{ title: this.$t1("角色描述"), field: "description", width: 150 },
|
|
129
151
|
{
|
|
130
|
-
title: this.$t1(
|
|
131
|
-
field:
|
|
152
|
+
title: this.$t1("是否内置"),
|
|
153
|
+
field: "systems",
|
|
132
154
|
width: 150,
|
|
133
155
|
slots: {
|
|
134
|
-
default: ({row}) => {
|
|
156
|
+
default: ({ row }) => {
|
|
135
157
|
if (row.systems) {
|
|
136
|
-
return this.$t1(
|
|
158
|
+
return this.$t1("是");
|
|
137
159
|
} else {
|
|
138
|
-
return this.$t1(
|
|
160
|
+
return this.$t1("否");
|
|
139
161
|
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
162
|
+
},
|
|
163
|
+
},
|
|
142
164
|
},
|
|
143
|
-
{title: this.$t1(
|
|
144
|
-
{title: this.$t1(
|
|
165
|
+
{ title: this.$t1("所属组织"), field: "companyName", width: 150 },
|
|
166
|
+
{ title: this.$t1("创建时间"), field: "createDate", width: 150 },
|
|
145
167
|
{
|
|
146
168
|
width: 47,
|
|
147
|
-
fixed:
|
|
148
|
-
title:
|
|
149
|
-
sortable: false
|
|
150
|
-
}
|
|
169
|
+
fixed: "right",
|
|
170
|
+
title: "",
|
|
171
|
+
sortable: false,
|
|
172
|
+
},
|
|
151
173
|
],
|
|
152
174
|
config: {
|
|
153
175
|
checkboxConfig: {
|
|
154
176
|
checkStrictly: true,
|
|
155
177
|
showHeader: this.selectMulti,
|
|
156
|
-
trigger:
|
|
157
|
-
}
|
|
158
|
-
}
|
|
178
|
+
trigger: "row",
|
|
179
|
+
},
|
|
180
|
+
},
|
|
159
181
|
};
|
|
160
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
182
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
161
183
|
that.vxeOption = opts;
|
|
162
184
|
});
|
|
163
|
-
}
|
|
164
|
-
}
|
|
185
|
+
},
|
|
186
|
+
},
|
|
165
187
|
};
|
|
166
188
|
</script>
|