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.
Files changed (202) hide show
  1. package/package.json +1 -1
  2. package/src/components/formOplog/mixins.js +1 -1
  3. package/src/components/jsonImport/exportDialog.vue +1 -1
  4. package/src/components/jsonImport/index.vue +151 -202
  5. package/src/components/jsonImport/mixins.js +1 -309
  6. package/src/components/projectTag/addButton.vue +3 -50
  7. package/src/components/projectTag/deleteButton.vue +3 -50
  8. package/src/components/projectTag/mixins/addButton.js +5 -0
  9. package/src/components/projectTag/mixins/deleteButton.js +5 -0
  10. package/src/components/projectTag/mixins/view.js +5 -0
  11. package/src/components/projectTag/view.vue +33 -72
  12. package/src/components/xform/mixins/scriptHttp.js +1 -1
  13. package/src/index.js +0 -2
  14. package/src/layout/components/Sidebar/default.vue +4 -6
  15. package/src/router/modules/system.js +1 -1
  16. package/src/store/config/index.js +3 -0
  17. package/src/store/getters.js +2 -0
  18. package/src/store/modules/permission.js +2 -2
  19. package/src/store/modules/user.js +2 -1
  20. package/src/utils/request.js +28 -29
  21. package/src/utils/vab.js +27 -27
  22. package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -87
  23. package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -92
  24. package/src/views/bd/setting/bd_attach_setting/list.vue +4 -214
  25. package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +89 -0
  26. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +96 -0
  27. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +219 -0
  28. package/src/views/bd/setting/form_script/dialog.vue +3 -137
  29. package/src/views/bd/setting/form_script/edit.vue +3 -127
  30. package/src/views/bd/setting/form_script/edit1.vue +3 -142
  31. package/src/views/bd/setting/form_script/form_list.vue +4 -259
  32. package/src/views/bd/setting/form_script/list.vue +55 -223
  33. package/src/views/bd/setting/form_script/list1.vue +117 -444
  34. package/src/views/bd/setting/form_script/list2.vue +3 -4
  35. package/src/views/bd/setting/form_script/mixins/dialog.js +142 -0
  36. package/src/views/bd/setting/form_script/mixins/edit.js +134 -0
  37. package/src/views/bd/setting/form_script/mixins/edit1.js +149 -0
  38. package/src/views/bd/setting/form_script/mixins/form_list.js +264 -0
  39. package/src/views/bd/setting/form_script/mixins/list.js +176 -0
  40. package/src/views/bd/setting/form_script/mixins/list1.js +336 -0
  41. package/src/views/bd/setting/form_script/mixins/list2.js +14 -0
  42. package/src/views/bd/setting/form_template/dialog.vue +104 -212
  43. package/src/views/bd/setting/form_template/edit.vue +183 -329
  44. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +46 -131
  45. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +88 -175
  46. package/src/views/bd/setting/form_template/itemEdit.vue +174 -270
  47. package/src/views/bd/setting/form_template/itemList.vue +56 -300
  48. package/src/views/bd/setting/form_template/list.vue +211 -766
  49. package/src/views/bd/setting/form_template/mixins/dialog.js +114 -0
  50. package/src/views/bd/setting/form_template/mixins/edit.js +155 -0
  51. package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +94 -0
  52. package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +95 -0
  53. package/src/views/bd/setting/form_template/mixins/itemEdit.js +106 -0
  54. package/src/views/bd/setting/form_template/mixins/itemList.js +254 -0
  55. package/src/views/bd/setting/form_template/mixins/list.js +562 -0
  56. package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -0
  57. package/src/views/bd/setting/form_template/preformDialog.vue +57 -77
  58. package/src/views/bd/setting/menu_kind/authDialog.vue +84 -308
  59. package/src/views/bd/setting/menu_kind/dialog.vue +89 -226
  60. package/src/views/bd/setting/menu_kind/list.vue +86 -262
  61. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +232 -0
  62. package/src/views/bd/setting/menu_kind/mixins/dialog.js +144 -0
  63. package/src/views/bd/setting/menu_kind/mixins/list.js +187 -0
  64. package/src/views/bd/setting/table_model/dialog.vue +95 -161
  65. package/src/views/bd/setting/table_model/edit.vue +5 -767
  66. package/src/views/bd/setting/table_model/list.vue +130 -491
  67. package/src/views/bd/setting/table_model/mixins/dialog.js +74 -0
  68. package/src/views/bd/setting/table_model/mixins/edit.js +778 -0
  69. package/src/views/bd/setting/table_model/mixins/list.js +367 -0
  70. package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -0
  71. package/src/views/bd/setting/table_model/zdDialog.vue +95 -201
  72. package/src/views/support/export_template/edit.vue +40 -36
  73. package/src/views/support/export_template/list.vue +40 -52
  74. package/src/views/user/access_log/edit.vue +18 -17
  75. package/src/views/user/access_log/list.vue +27 -26
  76. package/src/views/user/access_log/statistics_list.vue +19 -17
  77. package/src/views/user/api_request/edit.vue +14 -11
  78. package/src/views/user/api_request/list.vue +13 -11
  79. package/src/views/user/area/dialog.vue +14 -27
  80. package/src/views/user/area_attribute/configDialog.vue +11 -13
  81. package/src/views/user/area_attribute/edit.vue +8 -6
  82. package/src/views/user/area_attribute/list.vue +1 -1
  83. package/src/views/user/attachment/uploadDialog.vue +1 -1
  84. package/src/views/user/bill_setting/button/previewButton.vue +2 -2
  85. package/src/views/user/bill_setting/compareView.vue +1 -1
  86. package/src/views/user/bill_setting/edit.vue +24 -17
  87. package/src/views/user/bill_setting/h5_ModifyDialog.vue +1 -1
  88. package/src/views/user/bill_setting/itemViewDialog.vue +3 -66
  89. package/src/views/user/bill_setting/list.vue +28 -26
  90. package/src/views/user/bill_setting/mixins/wf.js +8 -8
  91. package/src/views/user/bill_setting/previewDialog.vue +1 -1
  92. package/src/views/user/bill_setting/render.vue +29 -29
  93. package/src/views/user/bill_setting/userDialog.vue +7 -5
  94. package/src/views/user/code_rules/edit.vue +21 -18
  95. package/src/views/user/code_rules/list.vue +27 -19
  96. package/src/views/user/commMenu/index.vue +3 -3
  97. package/src/views/user/common_attribute/edit.vue +7 -5
  98. package/src/views/user/common_attribute/itemEdit.vue +22 -22
  99. package/src/views/user/common_attribute/list.vue +25 -24
  100. package/src/views/user/common_script/edit.vue +12 -12
  101. package/src/views/user/common_script/list.vue +30 -32
  102. package/src/views/user/company_info/dialog.vue +9 -9
  103. package/src/views/user/company_info/edit.vue +11 -8
  104. package/src/views/user/country/dialog.vue +11 -9
  105. package/src/views/user/country/edit.vue +12 -9
  106. package/src/views/user/country/list.vue +12 -12
  107. package/src/views/user/data_type_setting/dialog.vue +10 -10
  108. package/src/views/user/data_type_setting/editDialog.vue +6 -6
  109. package/src/views/user/ea/eagroup/eaobj_list.vue +25 -25
  110. package/src/views/user/ea/eagroup/edit.vue +48 -42
  111. package/src/views/user/ea/eaobj/edit.vue +6 -5
  112. package/src/views/user/ea/eaobj/list.vue +9 -8
  113. package/src/views/user/extend_datasource/dialog.vue +19 -24
  114. package/src/views/user/extend_datasource/edit.vue +20 -16
  115. package/src/views/user/extend_datasource/list.vue +23 -24
  116. package/src/views/user/fieldTranslation/editDialog.vue +28 -28
  117. package/src/views/user/fieldTranslation/list.vue +59 -57
  118. package/src/views/user/field_values_invisible/edit.vue +15 -14
  119. package/src/views/user/field_values_invisible/list.vue +23 -22
  120. package/src/views/user/file_type/edit.vue +12 -21
  121. package/src/views/user/file_type/list.vue +21 -36
  122. package/src/views/user/file_type/userEdit.vue +14 -9
  123. package/src/views/user/file_view_area/edit.vue +3 -3
  124. package/src/views/user/file_view_area/itemEdit.vue +11 -9
  125. package/src/views/user/file_view_area/list.vue +17 -16
  126. package/src/views/user/file_view_ins/list.vue +29 -28
  127. package/src/views/user/file_view_ins/propertiesDialog.vue +15 -15
  128. package/src/views/user/form/form_template/edit.vue +1 -1
  129. package/src/views/user/form/form_template/itemEdit.vue +1 -1
  130. package/src/views/user/form/form_template/itemList.vue +2 -2
  131. package/src/views/user/form/form_template/list.vue +3 -3
  132. package/src/views/user/form/form_type/edit.vue +1 -1
  133. package/src/views/user/form/form_type/list.vue +1 -1
  134. package/src/views/user/form/report_requestaccess/edit.vue +1 -1
  135. package/src/views/user/form/report_requestaccess/list.vue +1 -1
  136. package/src/views/user/form/vform/designer.vue +2 -0
  137. package/src/views/user/form/vform/out_render.vue +1 -0
  138. package/src/views/user/form/vform/render.vue +1 -0
  139. package/src/views/user/form/view/list.vue +2 -1
  140. package/src/views/user/groups/dialog.vue +159 -0
  141. package/src/views/user/groups/edit.vue +131 -0
  142. package/src/views/user/groups/list.vue +167 -0
  143. package/src/views/user/home/index.vue +3 -3
  144. package/src/views/user/lang_tag/dialog.vue +185 -0
  145. package/src/views/user/lang_tag/edit.vue +138 -0
  146. package/src/views/user/lang_tag/list.vue +170 -0
  147. package/src/views/user/language_setting/edit.vue +11 -9
  148. package/src/views/user/language_setting/list.vue +20 -18
  149. package/src/views/user/login/default.vue +129 -0
  150. package/src/views/user/login/index.vue +3 -117
  151. package/src/views/user/menu/list.vue +39 -55
  152. package/src/views/user/mobile_menu/list.vue +18 -54
  153. package/src/views/user/notify_message/dialog.vue +1 -1
  154. package/src/views/user/notify_message/infoDialog.vue +1 -1
  155. package/src/views/user/notify_message/list.vue +24 -23
  156. package/src/views/user/notify_template/edit.vue +13 -11
  157. package/src/views/user/notify_template/list.vue +19 -16
  158. package/src/views/user/oplog/edit.vue +12 -12
  159. package/src/views/user/oplog/list.vue +20 -18
  160. package/src/views/user/position/dialog.vue +6 -6
  161. package/src/views/user/position/edit.vue +11 -8
  162. package/src/views/user/position/list.vue +11 -11
  163. package/src/views/user/project_tag/dialog.vue +11 -9
  164. package/src/views/user/project_tag/edit.vue +8 -6
  165. package/src/views/user/project_tag/list.vue +15 -12
  166. package/src/views/user/push_setting/edit.vue +20 -17
  167. package/src/views/user/push_setting/list.vue +1 -1
  168. package/src/views/user/role/dialog.vue +11 -11
  169. package/src/views/user/role/edit.vue +14 -12
  170. package/src/views/user/role/list.vue +14 -12
  171. package/src/views/user/sale_org/dialog.vue +12 -12
  172. package/src/views/user/sale_org/list.vue +43 -48
  173. package/src/views/user/system_notice/edit.vue +13 -11
  174. package/src/views/user/system_notice/infoDialog.vue +2 -2
  175. package/src/views/user/system_notice/list.vue +19 -17
  176. package/src/views/user/system_parameter/edit.vue +7 -6
  177. package/src/views/user/system_parameter/list.vue +12 -10
  178. package/src/views/user/user/edit.vue +1 -1
  179. package/src/views/user/user/form_edit.vue +50 -7
  180. package/src/views/user/user/form_list.vue +34 -132
  181. package/src/views/user/user/info.vue +20 -19
  182. package/src/views/user/user/infoEdit.vue +18 -18
  183. package/src/views/user/user/infoIframeDialog.vue +1 -1
  184. package/src/views/user/user/modifyPasswordDialog.vue +9 -9
  185. package/src/views/user/wf/iframe/dialog.vue +1 -1
  186. package/src/views/user/wf/wf_auto_submit_data/edit.vue +11 -10
  187. package/src/views/user/wf/wf_auto_submit_data/edith.vue +14 -13
  188. package/src/views/user/wf/wf_auto_submit_data/list.vue +43 -41
  189. package/src/views/user/wf/wf_diy_attribute/edit.vue +11 -8
  190. package/src/views/user/wf/wf_manage/list.vue +66 -61
  191. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  192. package/src/views/user/wf/wf_obj_config/dialog.vue +11 -11
  193. package/src/views/user/wf/wf_obj_config/edit.vue +12 -9
  194. package/src/views/user/wf/wf_obj_config/edit_form.vue +11 -9
  195. package/src/views/user/wf/wf_obj_config/itemEdit.vue +31 -27
  196. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +8 -6
  197. package/src/views/user/wf/wf_obj_config/list.vue +42 -41
  198. package/src/views/user/wf/wf_obj_config/list_form.vue +14 -12
  199. package/src/views/user/wf/wf_param/edit.vue +7 -5
  200. package/src/views/user/wf/wf_work_calendar/configDialog.vue +9 -24
  201. package/src/views/user/wf/wf_work_calendar/list.vue +6 -3
  202. 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
- export default {
49
- name: "preformDialog",
50
- data() {
51
- return {
52
- showDialog: true,
53
- formData: {
54
- logContent: null
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 userDialog from "@base/views/user/user/dialog";
76
-
77
- export default {
78
- name: "fileObjAuthDialog",
79
- props: {
80
- currentMenuKind: Object
81
- },
82
- components: {
83
- userDialog
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>