cloud-web-corejs 1.0.27 → 1.0.29
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/formOplog/mixins.js +1 -1
- package/src/components/jsonImport/exportDialog.vue +1 -1
- package/src/components/jsonImport/index.vue +151 -202
- package/src/components/jsonImport/mixins.js +1 -309
- package/src/components/projectTag/addButton.vue +3 -50
- package/src/components/projectTag/deleteButton.vue +3 -50
- package/src/components/projectTag/mixins/addButton.js +5 -0
- package/src/components/projectTag/mixins/deleteButton.js +5 -0
- package/src/components/projectTag/mixins/view.js +5 -0
- package/src/components/projectTag/view.vue +33 -72
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/index.js +0 -2
- package/src/layout/components/Sidebar/default.vue +4 -6
- package/src/router/modules/system.js +1 -1
- package/src/store/config/index.js +3 -0
- package/src/store/getters.js +2 -0
- package/src/store/modules/permission.js +2 -2
- package/src/store/modules/user.js +2 -1
- package/src/utils/request.js +28 -29
- package/src/utils/vab.js +27 -27
- package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -87
- package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -92
- package/src/views/bd/setting/bd_attach_setting/list.vue +4 -214
- package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +89 -0
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +96 -0
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +219 -0
- package/src/views/bd/setting/form_script/dialog.vue +3 -137
- package/src/views/bd/setting/form_script/edit.vue +3 -127
- package/src/views/bd/setting/form_script/edit1.vue +3 -142
- package/src/views/bd/setting/form_script/form_list.vue +4 -259
- package/src/views/bd/setting/form_script/list.vue +55 -223
- package/src/views/bd/setting/form_script/list1.vue +117 -444
- package/src/views/bd/setting/form_script/list2.vue +3 -4
- package/src/views/bd/setting/form_script/mixins/dialog.js +142 -0
- package/src/views/bd/setting/form_script/mixins/edit.js +134 -0
- package/src/views/bd/setting/form_script/mixins/edit1.js +149 -0
- package/src/views/bd/setting/form_script/mixins/form_list.js +264 -0
- package/src/views/bd/setting/form_script/mixins/list.js +176 -0
- package/src/views/bd/setting/form_script/mixins/list1.js +336 -0
- package/src/views/bd/setting/form_script/mixins/list2.js +14 -0
- package/src/views/bd/setting/form_template/dialog.vue +104 -212
- package/src/views/bd/setting/form_template/edit.vue +183 -329
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +46 -131
- package/src/views/bd/setting/form_template/ftHistoryDialog.vue +88 -175
- package/src/views/bd/setting/form_template/itemEdit.vue +174 -270
- package/src/views/bd/setting/form_template/itemList.vue +56 -300
- package/src/views/bd/setting/form_template/list.vue +211 -766
- package/src/views/bd/setting/form_template/mixins/dialog.js +114 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +155 -0
- package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +94 -0
- package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +95 -0
- package/src/views/bd/setting/form_template/mixins/itemEdit.js +106 -0
- package/src/views/bd/setting/form_template/mixins/itemList.js +254 -0
- package/src/views/bd/setting/form_template/mixins/list.js +562 -0
- package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -0
- package/src/views/bd/setting/form_template/preformDialog.vue +57 -77
- package/src/views/bd/setting/menu_kind/authDialog.vue +84 -308
- package/src/views/bd/setting/menu_kind/dialog.vue +89 -226
- package/src/views/bd/setting/menu_kind/list.vue +86 -262
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +232 -0
- package/src/views/bd/setting/menu_kind/mixins/dialog.js +144 -0
- package/src/views/bd/setting/menu_kind/mixins/list.js +187 -0
- package/src/views/bd/setting/table_model/dialog.vue +95 -161
- package/src/views/bd/setting/table_model/edit.vue +5 -767
- package/src/views/bd/setting/table_model/list.vue +130 -491
- package/src/views/bd/setting/table_model/mixins/dialog.js +74 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +778 -0
- package/src/views/bd/setting/table_model/mixins/list.js +367 -0
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -0
- package/src/views/bd/setting/table_model/zdDialog.vue +95 -201
- package/src/views/support/export_template/edit.vue +40 -36
- package/src/views/support/export_template/list.vue +40 -52
- package/src/views/user/access_log/edit.vue +18 -17
- package/src/views/user/access_log/list.vue +27 -26
- package/src/views/user/access_log/statistics_list.vue +19 -17
- package/src/views/user/api_request/edit.vue +14 -11
- package/src/views/user/api_request/list.vue +13 -11
- package/src/views/user/area/dialog.vue +14 -27
- package/src/views/user/area_attribute/configDialog.vue +11 -13
- package/src/views/user/area_attribute/edit.vue +8 -6
- package/src/views/user/area_attribute/list.vue +1 -1
- package/src/views/user/attachment/uploadDialog.vue +1 -1
- package/src/views/user/bill_setting/button/previewButton.vue +2 -2
- package/src/views/user/bill_setting/compareView.vue +1 -1
- package/src/views/user/bill_setting/edit.vue +24 -17
- package/src/views/user/bill_setting/h5_ModifyDialog.vue +1 -1
- package/src/views/user/bill_setting/itemViewDialog.vue +3 -66
- package/src/views/user/bill_setting/list.vue +28 -26
- package/src/views/user/bill_setting/mixins/wf.js +8 -8
- package/src/views/user/bill_setting/previewDialog.vue +1 -1
- package/src/views/user/bill_setting/render.vue +29 -29
- package/src/views/user/bill_setting/userDialog.vue +7 -5
- package/src/views/user/code_rules/edit.vue +21 -18
- package/src/views/user/code_rules/list.vue +27 -19
- package/src/views/user/commMenu/index.vue +3 -3
- package/src/views/user/common_attribute/edit.vue +7 -5
- package/src/views/user/common_attribute/itemEdit.vue +22 -22
- package/src/views/user/common_attribute/list.vue +25 -24
- package/src/views/user/common_script/edit.vue +12 -12
- package/src/views/user/common_script/list.vue +30 -32
- package/src/views/user/company_info/dialog.vue +9 -9
- package/src/views/user/company_info/edit.vue +11 -8
- package/src/views/user/country/dialog.vue +11 -9
- package/src/views/user/country/edit.vue +12 -9
- package/src/views/user/country/list.vue +12 -12
- package/src/views/user/data_type_setting/dialog.vue +10 -10
- package/src/views/user/data_type_setting/editDialog.vue +6 -6
- package/src/views/user/ea/eagroup/eaobj_list.vue +25 -25
- package/src/views/user/ea/eagroup/edit.vue +48 -42
- package/src/views/user/ea/eaobj/edit.vue +6 -5
- package/src/views/user/ea/eaobj/list.vue +9 -8
- package/src/views/user/extend_datasource/dialog.vue +19 -24
- package/src/views/user/extend_datasource/edit.vue +20 -16
- package/src/views/user/extend_datasource/list.vue +23 -24
- package/src/views/user/fieldTranslation/editDialog.vue +28 -28
- package/src/views/user/fieldTranslation/list.vue +59 -57
- package/src/views/user/field_values_invisible/edit.vue +15 -14
- package/src/views/user/field_values_invisible/list.vue +23 -22
- package/src/views/user/file_type/edit.vue +12 -21
- package/src/views/user/file_type/list.vue +21 -36
- package/src/views/user/file_type/userEdit.vue +14 -9
- package/src/views/user/file_view_area/edit.vue +3 -3
- package/src/views/user/file_view_area/itemEdit.vue +11 -9
- package/src/views/user/file_view_area/list.vue +17 -16
- package/src/views/user/file_view_ins/list.vue +29 -28
- package/src/views/user/file_view_ins/propertiesDialog.vue +15 -15
- package/src/views/user/form/form_template/edit.vue +1 -1
- package/src/views/user/form/form_template/itemEdit.vue +1 -1
- package/src/views/user/form/form_template/itemList.vue +2 -2
- package/src/views/user/form/form_template/list.vue +3 -3
- package/src/views/user/form/form_type/edit.vue +1 -1
- package/src/views/user/form/form_type/list.vue +1 -1
- package/src/views/user/form/report_requestaccess/edit.vue +1 -1
- package/src/views/user/form/report_requestaccess/list.vue +1 -1
- package/src/views/user/form/vform/designer.vue +2 -0
- package/src/views/user/form/vform/out_render.vue +1 -0
- package/src/views/user/form/vform/render.vue +1 -0
- package/src/views/user/form/view/list.vue +2 -1
- package/src/views/user/groups/dialog.vue +159 -0
- package/src/views/user/groups/edit.vue +131 -0
- package/src/views/user/groups/list.vue +167 -0
- package/src/views/user/home/index.vue +3 -3
- package/src/views/user/lang_tag/dialog.vue +185 -0
- package/src/views/user/lang_tag/edit.vue +138 -0
- package/src/views/user/lang_tag/list.vue +170 -0
- package/src/views/user/language_setting/edit.vue +11 -9
- package/src/views/user/language_setting/list.vue +20 -18
- package/src/views/user/login/default.vue +129 -0
- package/src/views/user/login/index.vue +3 -117
- package/src/views/user/menu/list.vue +39 -55
- package/src/views/user/mobile_menu/list.vue +18 -54
- package/src/views/user/notify_message/dialog.vue +1 -1
- package/src/views/user/notify_message/infoDialog.vue +1 -1
- package/src/views/user/notify_message/list.vue +24 -23
- package/src/views/user/notify_template/edit.vue +13 -11
- package/src/views/user/notify_template/list.vue +19 -16
- package/src/views/user/oplog/edit.vue +12 -12
- package/src/views/user/oplog/list.vue +20 -18
- package/src/views/user/position/dialog.vue +6 -6
- package/src/views/user/position/edit.vue +11 -8
- package/src/views/user/position/list.vue +11 -11
- package/src/views/user/project_tag/dialog.vue +11 -9
- package/src/views/user/project_tag/edit.vue +8 -6
- package/src/views/user/project_tag/list.vue +15 -12
- package/src/views/user/push_setting/edit.vue +20 -17
- package/src/views/user/push_setting/list.vue +1 -1
- package/src/views/user/role/dialog.vue +11 -11
- package/src/views/user/role/edit.vue +14 -12
- package/src/views/user/role/list.vue +14 -12
- package/src/views/user/sale_org/dialog.vue +12 -12
- package/src/views/user/sale_org/list.vue +43 -48
- package/src/views/user/system_notice/edit.vue +13 -11
- package/src/views/user/system_notice/infoDialog.vue +2 -2
- package/src/views/user/system_notice/list.vue +19 -17
- package/src/views/user/system_parameter/edit.vue +7 -6
- package/src/views/user/system_parameter/list.vue +12 -10
- package/src/views/user/user/edit.vue +1 -1
- package/src/views/user/user/form_edit.vue +50 -7
- package/src/views/user/user/form_list.vue +34 -132
- package/src/views/user/user/info.vue +20 -19
- package/src/views/user/user/infoEdit.vue +18 -18
- package/src/views/user/user/infoIframeDialog.vue +1 -1
- package/src/views/user/user/modifyPasswordDialog.vue +9 -9
- package/src/views/user/wf/iframe/dialog.vue +1 -1
- package/src/views/user/wf/wf_auto_submit_data/edit.vue +11 -10
- package/src/views/user/wf/wf_auto_submit_data/edith.vue +14 -13
- package/src/views/user/wf/wf_auto_submit_data/list.vue +43 -41
- package/src/views/user/wf/wf_diy_attribute/edit.vue +11 -8
- package/src/views/user/wf/wf_manage/list.vue +66 -61
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/dialog.vue +11 -11
- package/src/views/user/wf/wf_obj_config/edit.vue +12 -9
- package/src/views/user/wf/wf_obj_config/edit_form.vue +11 -9
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +31 -27
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +8 -6
- package/src/views/user/wf/wf_obj_config/list.vue +42 -41
- package/src/views/user/wf/wf_obj_config/list_form.vue +14 -12
- package/src/views/user/wf/wf_param/edit.vue +7 -5
- package/src/views/user/wf/wf_work_calendar/configDialog.vue +9 -24
- package/src/views/user/wf/wf_work_calendar/list.vue +6 -3
- package/src/views/user/home/distributor.vue +0 -849
|
@@ -1,77 +1,57 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-dialog
|
|
3
|
-
title="表单提交"
|
|
4
|
-
:visible.sync="showDialog"
|
|
5
|
-
:modal-append-to-body="false"
|
|
6
|
-
:close-on-click-modal="false"
|
|
7
|
-
:modal="false"
|
|
8
|
-
custom-class="dialog-style wf-dialog"
|
|
9
|
-
v-el-drag-dialog
|
|
10
|
-
v-el-dialog-center
|
|
11
|
-
@close="closeDialog"
|
|
12
|
-
>
|
|
13
|
-
<el-form ref="editForm" :model="formData">
|
|
14
|
-
<div id="containt">
|
|
15
|
-
<table class="table-detail">
|
|
16
|
-
<tbody>
|
|
17
|
-
<tr>
|
|
18
|
-
<th>
|
|
19
|
-
<span class="t">
|
|
20
|
-
<em class="f-red">*</em>
|
|
21
|
-
{{ $t1('备注') }}
|
|
22
|
-
</span>
|
|
23
|
-
</th>
|
|
24
|
-
<td>
|
|
25
|
-
<el-form-item prop="logContent" :rules="[{ required:true, trigger: ['blur', 'change'] }]">
|
|
26
|
-
<el-input type="textarea" :rows="8" :placeholder="$t1('请输入内容')"
|
|
27
|
-
v-model="formData.logContent"></el-input>
|
|
28
|
-
</el-form-item>
|
|
29
|
-
</td>
|
|
30
|
-
</tr>
|
|
31
|
-
</tbody>
|
|
32
|
-
</table>
|
|
33
|
-
</div>
|
|
34
|
-
</el-form>
|
|
35
|
-
<span slot="footer" class="dialog-footer">
|
|
36
|
-
<el-button type="primary" plain class="button-sty" @click="closeDialog">
|
|
37
|
-
<i class="el-icon-close el-icon"></i>
|
|
38
|
-
{{ $t1('取 消') }}
|
|
39
|
-
</el-button>
|
|
40
|
-
<el-button type="primary" @click="confirmDialog" class="button-sty">
|
|
41
|
-
<i class="el-icon-check el-icon"></i>
|
|
42
|
-
{{ $t1('确 定') }}
|
|
43
|
-
</el-button>
|
|
44
|
-
</span>
|
|
45
|
-
</el-dialog>
|
|
46
|
-
</template>
|
|
47
|
-
<script>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
methods: {
|
|
59
|
-
closeDialog() {
|
|
60
|
-
this.$emit("update:visiable", false);
|
|
61
|
-
this.showDialog = false;
|
|
62
|
-
},
|
|
63
|
-
confirmDialog() {
|
|
64
|
-
this.$refs.editForm.$baseValidate(valid => {
|
|
65
|
-
if (valid) {
|
|
66
|
-
this.closeDialog();
|
|
67
|
-
this.$emit("confirm", this.formData);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
</script>
|
|
75
|
-
<style scoped>
|
|
76
|
-
|
|
77
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
title="表单提交"
|
|
4
|
+
:visible.sync="showDialog"
|
|
5
|
+
:modal-append-to-body="false"
|
|
6
|
+
:close-on-click-modal="false"
|
|
7
|
+
:modal="false"
|
|
8
|
+
custom-class="dialog-style wf-dialog"
|
|
9
|
+
v-el-drag-dialog
|
|
10
|
+
v-el-dialog-center
|
|
11
|
+
@close="closeDialog"
|
|
12
|
+
>
|
|
13
|
+
<el-form ref="editForm" :model="formData">
|
|
14
|
+
<div id="containt">
|
|
15
|
+
<table class="table-detail">
|
|
16
|
+
<tbody>
|
|
17
|
+
<tr>
|
|
18
|
+
<th>
|
|
19
|
+
<span class="t">
|
|
20
|
+
<em class="f-red">*</em>
|
|
21
|
+
{{ $t1('备注') }}
|
|
22
|
+
</span>
|
|
23
|
+
</th>
|
|
24
|
+
<td>
|
|
25
|
+
<el-form-item prop="logContent" :rules="[{ required:true, trigger: ['blur', 'change'] }]">
|
|
26
|
+
<el-input type="textarea" :rows="8" :placeholder="$t1('请输入内容')"
|
|
27
|
+
v-model="formData.logContent"></el-input>
|
|
28
|
+
</el-form-item>
|
|
29
|
+
</td>
|
|
30
|
+
</tr>
|
|
31
|
+
</tbody>
|
|
32
|
+
</table>
|
|
33
|
+
</div>
|
|
34
|
+
</el-form>
|
|
35
|
+
<span slot="footer" class="dialog-footer">
|
|
36
|
+
<el-button type="primary" plain class="button-sty" @click="closeDialog">
|
|
37
|
+
<i class="el-icon-close el-icon"></i>
|
|
38
|
+
{{ $t1('取 消') }}
|
|
39
|
+
</el-button>
|
|
40
|
+
<el-button type="primary" @click="confirmDialog" class="button-sty">
|
|
41
|
+
<i class="el-icon-check el-icon"></i>
|
|
42
|
+
{{ $t1('确 定') }}
|
|
43
|
+
</el-button>
|
|
44
|
+
</span>
|
|
45
|
+
</el-dialog>
|
|
46
|
+
</template>
|
|
47
|
+
<script>
|
|
48
|
+
import mixin from "./mixins/preformDialog";
|
|
49
|
+
|
|
50
|
+
export default {
|
|
51
|
+
name: 'preformDialog',
|
|
52
|
+
mixins: [mixin]
|
|
53
|
+
}
|
|
54
|
+
</script>
|
|
55
|
+
<style scoped>
|
|
56
|
+
|
|
57
|
+
</style>
|
|
@@ -1,308 +1,84 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-dialog
|
|
4
|
-
title="设置表单分类权限"
|
|
5
|
-
:append-to-body="true"
|
|
6
|
-
:modal-append-to-body="true"
|
|
7
|
-
:close-on-click-modal="false"
|
|
8
|
-
:visible.sync="showDialog"
|
|
9
|
-
:modal="false"
|
|
10
|
-
custom-class="dialog-style list-dialog dialog-checkbox pd_0"
|
|
11
|
-
width="1200px"
|
|
12
|
-
@close="dialogClose"
|
|
13
|
-
v-el-drag-dialog
|
|
14
|
-
v-el-dialog-center
|
|
15
|
-
>
|
|
16
|
-
<div class="cont">
|
|
17
|
-
<div class="grid-height" style="height: 500px">
|
|
18
|
-
<vxe-grid
|
|
19
|
-
class="is-pointer"
|
|
20
|
-
ref="table-m1"
|
|
21
|
-
:data="tableData"
|
|
22
|
-
v-bind="vxeOption"
|
|
23
|
-
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
24
|
-
@custom="$vxeTableUtil.customHandle"
|
|
25
|
-
>
|
|
26
|
-
<template #form>
|
|
27
|
-
<div class="clearfix screen-btns">
|
|
28
|
-
<div class="fl">
|
|
29
|
-
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openUserAddDialog"
|
|
30
|
-
</vxe-button>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="fl screen-breadcrumb" style="margin-left: 30px;">
|
|
33
|
-
<span style="font-size: 12px;">{{ $t1('表单分类路径') }}:</span>
|
|
34
|
-
{{ currentMenuKind.treePathName + currentMenuKind.name + ',' }}
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
</template>
|
|
38
|
-
<template #user="{row,rowIndex}">
|
|
39
|
-
<el-input
|
|
40
|
-
class="search-input"
|
|
41
|
-
v-model="row.nickName"
|
|
42
|
-
clearable
|
|
43
|
-
@clear="
|
|
44
|
-
row.userId = null;
|
|
45
|
-
"
|
|
46
|
-
v-if="!row._isParent"
|
|
47
|
-
v-el-readonly
|
|
48
|
-
>
|
|
49
|
-
<i slot="suffix" class="el-input__icon el-icon-search" @click="openUserRowDialog(row,rowIndex)"></i>
|
|
50
|
-
</el-input>
|
|
51
|
-
<template v-else>{{ row.nickName }}</template>
|
|
52
|
-
</template>
|
|
53
|
-
</vxe-grid>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
<span slot="footer" class="dialog-footer">
|
|
57
|
-
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
|
58
|
-
<i class="el-icon-close el-icon"></i>
|
|
59
|
-
{{ $t1('取 消') }}
|
|
60
|
-
</el-button>
|
|
61
|
-
<el-button type="primary" @click="saveData" class="button-sty">
|
|
62
|
-
<i class="el-icon-check el-icon"></i>
|
|
63
|
-
{{ $t1('确 定') }}
|
|
64
|
-
</el-button>
|
|
65
|
-
</span>
|
|
66
|
-
</el-dialog>
|
|
67
|
-
<userDialog v-if="showUserRowDialog" :visiable.sync="showUserRowDialog" @confirm="confirmtUserRow"
|
|
68
|
-
multi="false" :param="{flag:8}"/>
|
|
69
|
-
<userDialog v-if="showUserAddDialog" :visiable.sync="showUserAddDialog" @confirm="confirmtUserAddDialog"
|
|
70
|
-
multi="true" :param="{flag:8}"/>
|
|
71
|
-
</div>
|
|
72
|
-
</template>
|
|
73
|
-
|
|
74
|
-
<script>
|
|
75
|
-
import
|
|
76
|
-
|
|
77
|
-
export default {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
computed: {
|
|
86
|
-
menuKindId() {
|
|
87
|
-
return this.currentMenuKind.id;
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
mounted() {
|
|
91
|
-
this.initTableList();
|
|
92
|
-
},
|
|
93
|
-
data() {
|
|
94
|
-
let that = this;
|
|
95
|
-
return {
|
|
96
|
-
showDialog: true,
|
|
97
|
-
activeName: 'second',
|
|
98
|
-
value10: '',
|
|
99
|
-
dataId: '',
|
|
100
|
-
showEdit: false,
|
|
101
|
-
formData: {
|
|
102
|
-
nickName: null,
|
|
103
|
-
},
|
|
104
|
-
vxeOption: {},
|
|
105
|
-
showUserDialog: false,
|
|
106
|
-
showPositionDialog: false,
|
|
107
|
-
showSaleOrgDialog: false,
|
|
108
|
-
operateIndex: 0,
|
|
109
|
-
showViewDialog: false,
|
|
110
|
-
|
|
111
|
-
tableData: [],
|
|
112
|
-
showUserRowDialog: false,
|
|
113
|
-
showUserAddDialog: false,
|
|
114
|
-
currentRow: null
|
|
115
|
-
|
|
116
|
-
};
|
|
117
|
-
},
|
|
118
|
-
methods: {
|
|
119
|
-
searchEvent() {
|
|
120
|
-
this.$refs['table-m1'].commitProxy('reload');
|
|
121
|
-
},
|
|
122
|
-
resetEvent() {
|
|
123
|
-
this.formData = {};
|
|
124
|
-
this.$refs['table-m1'].commitProxy('reload');
|
|
125
|
-
},
|
|
126
|
-
openEditDialog(id) {
|
|
127
|
-
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
|
128
|
-
this.activeName = 'first';
|
|
129
|
-
this.showViewDialog = true;
|
|
130
|
-
this.$openEditView('showEdit');
|
|
131
|
-
},
|
|
132
|
-
|
|
133
|
-
initTableList() {
|
|
134
|
-
let that = this;
|
|
135
|
-
let valMap = {
|
|
136
|
-
0: this.$t1('否'),
|
|
137
|
-
1: this.$t1('是')
|
|
138
|
-
};
|
|
139
|
-
let tableOption = {
|
|
140
|
-
vue: this,
|
|
141
|
-
tableRef: 'table-m1',
|
|
142
|
-
tableName: 'user_fileLibrary-fileAuto-list-m1',
|
|
143
|
-
config: {
|
|
144
|
-
height: "auto",
|
|
145
|
-
rowStyle: ({row, rowIndex}) => {
|
|
146
|
-
return row._isParent ? "background-color: #f3f3f3;" : ""
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
columns: [
|
|
151
|
-
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
152
|
-
{
|
|
153
|
-
title: this.$t1('用户'),
|
|
154
|
-
field: 'nickName',
|
|
155
|
-
width: 350,
|
|
156
|
-
slots: {
|
|
157
|
-
default: "user"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
width: 100,
|
|
162
|
-
fixed: 'right',
|
|
163
|
-
title: '',
|
|
164
|
-
sortable: false,
|
|
165
|
-
slots: {
|
|
166
|
-
default: ({row, rowIndex, $table}) => {
|
|
167
|
-
return [
|
|
168
|
-
<a
|
|
169
|
-
href="javascript:void(0);"
|
|
170
|
-
class="a-link"
|
|
171
|
-
onClick={() => {
|
|
172
|
-
this.tableData.splice(rowIndex, 1)
|
|
173
|
-
}}
|
|
174
|
-
v-show={!row._isParent}
|
|
175
|
-
>
|
|
176
|
-
<el-tooltip enterable={false} effect="dark" content="删除" placement="top"
|
|
177
|
-
popper-class="tooltip-skin">
|
|
178
|
-
<i class="el-icon-delete"/>
|
|
179
|
-
</el-tooltip>
|
|
180
|
-
</a>
|
|
181
|
-
];
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
]
|
|
186
|
-
};
|
|
187
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
188
|
-
this.vxeOption = opts;
|
|
189
|
-
});
|
|
190
|
-
this.initData();
|
|
191
|
-
},
|
|
192
|
-
initData() {
|
|
193
|
-
this.$http({
|
|
194
|
-
url: USER_PREFIX + '/menu_kind_auth/list',
|
|
195
|
-
method: `post`,
|
|
196
|
-
data: {
|
|
197
|
-
menuKindId: this.menuKindId,
|
|
198
|
-
},
|
|
199
|
-
isLoading: true,
|
|
200
|
-
modalStrictly: true,
|
|
201
|
-
success: res1 => {
|
|
202
|
-
let tableData = res1.objx || [];
|
|
203
|
-
this.tableData = tableData;
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
},
|
|
208
|
-
confirmInsertUser(rows) {
|
|
209
|
-
if (rows.length) {
|
|
210
|
-
let row = rows[0];
|
|
211
|
-
this.formData.userId = row.id;
|
|
212
|
-
this.formData.nickName = row.nickName;
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
dialogClose() {
|
|
216
|
-
this.$emit('update:visiable', false)
|
|
217
|
-
},
|
|
218
|
-
deleteRows() {
|
|
219
|
-
let checkRows = this.$refs['table-m1'].getCheckboxRecords(true);
|
|
220
|
-
if (!checkRows.length) {
|
|
221
|
-
this.$message({
|
|
222
|
-
message: this.$t1('请选择需要删除的表单分类权限'),
|
|
223
|
-
type: 'error',
|
|
224
|
-
showClose: true,
|
|
225
|
-
duration: 3000,
|
|
226
|
-
});
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
let keys = checkRows.map(item => item._X_ROW_KEY)
|
|
230
|
-
this.tableData = this.tableData.filter(item => !keys.includes(item._X_ROW_KEY))
|
|
231
|
-
},
|
|
232
|
-
openUserRowDialog(row, rowIndex) {
|
|
233
|
-
this.operateIndex = rowIndex;
|
|
234
|
-
this.showUserRowDialog = true;
|
|
235
|
-
},
|
|
236
|
-
confirmtUserRow(rows) {
|
|
237
|
-
if (rows.length) {
|
|
238
|
-
let row = rows[0];
|
|
239
|
-
let item = this.tableData[this.operateIndex]
|
|
240
|
-
item.userId = row.id;
|
|
241
|
-
item.nickName = row.nickName;
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
openUserAddDialog(row, rowIndex) {
|
|
245
|
-
this.showUserAddDialog = true;
|
|
246
|
-
},
|
|
247
|
-
confirmtUserAddDialog(rows) {
|
|
248
|
-
if (rows.length) {
|
|
249
|
-
const tableData = this.tableData;
|
|
250
|
-
const map = {};
|
|
251
|
-
tableData.filter(item => !!item.userId).forEach(function (item) {
|
|
252
|
-
map[item.userId] = 1;
|
|
253
|
-
});
|
|
254
|
-
let items = [];
|
|
255
|
-
|
|
256
|
-
rows.forEach((row, index) => {
|
|
257
|
-
let item = this.createRow();
|
|
258
|
-
item.userId = row.id;
|
|
259
|
-
item.nickName = row.nickName;
|
|
260
|
-
if (!map[item.userId]) {
|
|
261
|
-
items.push(item);
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
this.tableData.push(...items);
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
saveData() {
|
|
268
|
-
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
269
|
-
var url = USER_PREFIX + `/menu_kind_auth/save`;
|
|
270
|
-
this.$http({
|
|
271
|
-
url: url,
|
|
272
|
-
method: `post`,
|
|
273
|
-
data: {
|
|
274
|
-
menuKindId: this.menuKindId,
|
|
275
|
-
menuKindAuthDTOs: this.tableData
|
|
276
|
-
},
|
|
277
|
-
isLoading: true,
|
|
278
|
-
success: res => {
|
|
279
|
-
this.$message({
|
|
280
|
-
message: res.content,
|
|
281
|
-
type: 'success',
|
|
282
|
-
duration: 500,
|
|
283
|
-
onClose: t => {
|
|
284
|
-
this.dialogClose()
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
});
|
|
290
|
-
},
|
|
291
|
-
createRow() {
|
|
292
|
-
let row = {
|
|
293
|
-
nickName: null,
|
|
294
|
-
userId: null,
|
|
295
|
-
// addAuth: 1,
|
|
296
|
-
// editAuth: 1,
|
|
297
|
-
// authAuth: 1,
|
|
298
|
-
menuKindId: this.menuKindId
|
|
299
|
-
}
|
|
300
|
-
return row;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
</script>
|
|
305
|
-
|
|
306
|
-
<style scoped>
|
|
307
|
-
|
|
308
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-dialog
|
|
4
|
+
title="设置表单分类权限"
|
|
5
|
+
:append-to-body="true"
|
|
6
|
+
:modal-append-to-body="true"
|
|
7
|
+
:close-on-click-modal="false"
|
|
8
|
+
:visible.sync="showDialog"
|
|
9
|
+
:modal="false"
|
|
10
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_0"
|
|
11
|
+
width="1200px"
|
|
12
|
+
@close="dialogClose"
|
|
13
|
+
v-el-drag-dialog
|
|
14
|
+
v-el-dialog-center
|
|
15
|
+
>
|
|
16
|
+
<div class="cont">
|
|
17
|
+
<div class="grid-height" style="height: 500px">
|
|
18
|
+
<vxe-grid
|
|
19
|
+
class="is-pointer"
|
|
20
|
+
ref="table-m1"
|
|
21
|
+
:data="tableData"
|
|
22
|
+
v-bind="vxeOption"
|
|
23
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
24
|
+
@custom="$vxeTableUtil.customHandle"
|
|
25
|
+
>
|
|
26
|
+
<template #form>
|
|
27
|
+
<div class="clearfix screen-btns">
|
|
28
|
+
<div class="fl">
|
|
29
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openUserAddDialog">{{ $t1('新增用户') }}
|
|
30
|
+
</vxe-button>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="fl screen-breadcrumb" style="margin-left: 30px;">
|
|
33
|
+
<span style="font-size: 12px;">{{ $t1('表单分类路径') }}:</span>
|
|
34
|
+
{{ currentMenuKind.treePathName + currentMenuKind.name + ',' }}
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
<template #user="{row,rowIndex}">
|
|
39
|
+
<el-input
|
|
40
|
+
class="search-input"
|
|
41
|
+
v-model="row.nickName"
|
|
42
|
+
clearable
|
|
43
|
+
@clear="
|
|
44
|
+
row.userId = null;
|
|
45
|
+
"
|
|
46
|
+
v-if="!row._isParent"
|
|
47
|
+
v-el-readonly
|
|
48
|
+
>
|
|
49
|
+
<i slot="suffix" class="el-input__icon el-icon-search" @click="openUserRowDialog(row,rowIndex)"></i>
|
|
50
|
+
</el-input>
|
|
51
|
+
<template v-else>{{ row.nickName }}</template>
|
|
52
|
+
</template>
|
|
53
|
+
</vxe-grid>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
<span slot="footer" class="dialog-footer">
|
|
57
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
|
58
|
+
<i class="el-icon-close el-icon"></i>
|
|
59
|
+
{{ $t1('取 消') }}
|
|
60
|
+
</el-button>
|
|
61
|
+
<el-button type="primary" @click="saveData" class="button-sty">
|
|
62
|
+
<i class="el-icon-check el-icon"></i>
|
|
63
|
+
{{ $t1('确 定') }}
|
|
64
|
+
</el-button>
|
|
65
|
+
</span>
|
|
66
|
+
</el-dialog>
|
|
67
|
+
<userDialog v-if="showUserRowDialog" :visiable.sync="showUserRowDialog" @confirm="confirmtUserRow"
|
|
68
|
+
multi="false" :param="{flag:8}"/>
|
|
69
|
+
<userDialog v-if="showUserAddDialog" :visiable.sync="showUserAddDialog" @confirm="confirmtUserAddDialog"
|
|
70
|
+
multi="true" :param="{flag:8}"/>
|
|
71
|
+
</div>
|
|
72
|
+
</template>
|
|
73
|
+
|
|
74
|
+
<script>
|
|
75
|
+
import mixin from "./mixins/authDialog";
|
|
76
|
+
|
|
77
|
+
export default {
|
|
78
|
+
mixins: [mixin]
|
|
79
|
+
}
|
|
80
|
+
</script>
|
|
81
|
+
|
|
82
|
+
<style scoped>
|
|
83
|
+
|
|
84
|
+
</style>
|