cloud-web-corejs 1.0.28 → 1.0.30

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 (205) hide show
  1. package/package.json +2 -1
  2. package/src/components/formOplog/mixins.js +1 -1
  3. package/src/components/langTag/addButton.vue +22 -0
  4. package/src/components/langTag/deleteButton.vue +22 -0
  5. package/src/components/langTag/mixins/addButton.js +5 -0
  6. package/src/components/langTag/mixins/deleteButton.js +5 -0
  7. package/src/components/langTag/mixins/view.js +5 -0
  8. package/src/components/langTag/view.vue +33 -0
  9. package/src/components/projectTag/addButton.vue +3 -50
  10. package/src/components/projectTag/deleteButton.vue +3 -50
  11. package/src/components/projectTag/mixins/addButton.js +5 -0
  12. package/src/components/projectTag/mixins/deleteButton.js +5 -0
  13. package/src/components/projectTag/mixins/view.js +5 -0
  14. package/src/components/projectTag/view.vue +33 -72
  15. package/src/components/xform/mixins/scriptHttp.js +1 -1
  16. package/src/index.js +0 -2
  17. package/src/layout/components/Sidebar/default.vue +3 -4
  18. package/src/router/modules/system.js +1 -1
  19. package/src/store/config/index.js +1 -1
  20. package/src/store/getters.js +2 -0
  21. package/src/store/modules/permission.js +1 -1
  22. package/src/store/modules/user.js +2 -1
  23. package/src/utils/request.js +28 -29
  24. package/src/utils/vab.js +27 -27
  25. package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -87
  26. package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -92
  27. package/src/views/bd/setting/bd_attach_setting/list.vue +4 -214
  28. package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +89 -0
  29. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +96 -0
  30. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +219 -0
  31. package/src/views/bd/setting/form_script/dialog.vue +3 -137
  32. package/src/views/bd/setting/form_script/edit.vue +3 -127
  33. package/src/views/bd/setting/form_script/edit1.vue +3 -142
  34. package/src/views/bd/setting/form_script/form_list.vue +4 -259
  35. package/src/views/bd/setting/form_script/list.vue +6 -174
  36. package/src/views/bd/setting/form_script/list1.vue +6 -333
  37. package/src/views/bd/setting/form_script/list2.vue +3 -4
  38. package/src/views/bd/setting/form_script/mixins/dialog.js +142 -0
  39. package/src/views/bd/setting/form_script/mixins/edit.js +134 -0
  40. package/src/views/bd/setting/form_script/mixins/edit1.js +149 -0
  41. package/src/views/bd/setting/form_script/mixins/form_list.js +264 -0
  42. package/src/views/bd/setting/form_script/mixins/list.js +176 -0
  43. package/src/views/bd/setting/form_script/mixins/list1.js +336 -0
  44. package/src/views/bd/setting/form_script/mixins/list2.js +14 -0
  45. package/src/views/bd/setting/form_template/dialog.vue +104 -212
  46. package/src/views/bd/setting/form_template/edit.vue +183 -329
  47. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +46 -131
  48. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +88 -175
  49. package/src/views/bd/setting/form_template/itemEdit.vue +174 -270
  50. package/src/views/bd/setting/form_template/itemList.vue +56 -300
  51. package/src/views/bd/setting/form_template/list.vue +7 -562
  52. package/src/views/bd/setting/form_template/mixins/dialog.js +114 -0
  53. package/src/views/bd/setting/form_template/mixins/edit.js +155 -0
  54. package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +94 -0
  55. package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +95 -0
  56. package/src/views/bd/setting/form_template/mixins/itemEdit.js +106 -0
  57. package/src/views/bd/setting/form_template/mixins/itemList.js +254 -0
  58. package/src/views/bd/setting/form_template/mixins/list.js +562 -0
  59. package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -0
  60. package/src/views/bd/setting/form_template/preformDialog.vue +57 -77
  61. package/src/views/bd/setting/menu_kind/authDialog.vue +84 -308
  62. package/src/views/bd/setting/menu_kind/dialog.vue +89 -226
  63. package/src/views/bd/setting/menu_kind/list.vue +6 -186
  64. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +255 -0
  65. package/src/views/bd/setting/menu_kind/mixins/dialog.js +144 -0
  66. package/src/views/bd/setting/menu_kind/mixins/list.js +187 -0
  67. package/src/views/bd/setting/table_model/dialog.vue +95 -161
  68. package/src/views/bd/setting/table_model/edit.vue +5 -767
  69. package/src/views/bd/setting/table_model/list.vue +8 -369
  70. package/src/views/bd/setting/table_model/mixins/dialog.js +74 -0
  71. package/src/views/bd/setting/table_model/mixins/edit.js +778 -0
  72. package/src/views/bd/setting/table_model/mixins/list.js +367 -0
  73. package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -0
  74. package/src/views/bd/setting/table_model/zdDialog.vue +95 -201
  75. package/src/views/support/export_template/edit.vue +40 -36
  76. package/src/views/support/export_template/list.vue +40 -52
  77. package/src/views/user/access_log/edit.vue +18 -17
  78. package/src/views/user/access_log/list.vue +27 -26
  79. package/src/views/user/access_log/statistics_list.vue +19 -17
  80. package/src/views/user/api_request/edit.vue +14 -11
  81. package/src/views/user/api_request/list.vue +13 -11
  82. package/src/views/user/area/dialog.vue +14 -27
  83. package/src/views/user/area_attribute/configDialog.vue +11 -13
  84. package/src/views/user/area_attribute/edit.vue +8 -6
  85. package/src/views/user/area_attribute/list.vue +1 -1
  86. package/src/views/user/attachment/uploadDialog.vue +1 -1
  87. package/src/views/user/bill_setting/button/previewButton.vue +2 -2
  88. package/src/views/user/bill_setting/compareView.vue +1 -1
  89. package/src/views/user/bill_setting/edit.vue +24 -17
  90. package/src/views/user/bill_setting/h5_ModifyDialog.vue +1 -1
  91. package/src/views/user/bill_setting/itemViewDialog.vue +3 -66
  92. package/src/views/user/bill_setting/list.vue +28 -26
  93. package/src/views/user/bill_setting/mixins/wf.js +8 -8
  94. package/src/views/user/bill_setting/previewDialog.vue +1 -1
  95. package/src/views/user/bill_setting/render.vue +29 -29
  96. package/src/views/user/bill_setting/userDialog.vue +7 -5
  97. package/src/views/user/code_rules/edit.vue +21 -18
  98. package/src/views/user/code_rules/list.vue +27 -19
  99. package/src/views/user/commMenu/index.vue +3 -3
  100. package/src/views/user/common_attribute/edit.vue +7 -5
  101. package/src/views/user/common_attribute/itemEdit.vue +22 -22
  102. package/src/views/user/common_attribute/list.vue +25 -24
  103. package/src/views/user/common_script/edit.vue +12 -12
  104. package/src/views/user/common_script/list.vue +30 -32
  105. package/src/views/user/company_info/dialog.vue +9 -9
  106. package/src/views/user/company_info/edit.vue +11 -8
  107. package/src/views/user/country/dialog.vue +11 -9
  108. package/src/views/user/country/edit.vue +12 -9
  109. package/src/views/user/country/list.vue +12 -12
  110. package/src/views/user/data_type_setting/dialog.vue +10 -10
  111. package/src/views/user/data_type_setting/editDialog.vue +6 -6
  112. package/src/views/user/ea/eagroup/eaobj_list.vue +25 -25
  113. package/src/views/user/ea/eagroup/edit.vue +48 -42
  114. package/src/views/user/ea/eaobj/edit.vue +6 -5
  115. package/src/views/user/ea/eaobj/list.vue +9 -8
  116. package/src/views/user/extend_datasource/dialog.vue +19 -24
  117. package/src/views/user/extend_datasource/edit.vue +20 -16
  118. package/src/views/user/extend_datasource/list.vue +23 -24
  119. package/src/views/user/fieldTranslation/editDialog.vue +28 -28
  120. package/src/views/user/fieldTranslation/list.vue +59 -57
  121. package/src/views/user/field_values_invisible/edit.vue +15 -14
  122. package/src/views/user/field_values_invisible/list.vue +23 -22
  123. package/src/views/user/file_type/edit.vue +12 -21
  124. package/src/views/user/file_type/list.vue +21 -36
  125. package/src/views/user/file_type/userEdit.vue +14 -9
  126. package/src/views/user/file_view_area/edit.vue +3 -3
  127. package/src/views/user/file_view_area/itemEdit.vue +11 -9
  128. package/src/views/user/file_view_area/list.vue +17 -16
  129. package/src/views/user/file_view_ins/list.vue +29 -28
  130. package/src/views/user/file_view_ins/propertiesDialog.vue +15 -15
  131. package/src/views/user/form/form_template/edit.vue +1 -1
  132. package/src/views/user/form/form_template/itemEdit.vue +1 -1
  133. package/src/views/user/form/form_template/itemList.vue +2 -2
  134. package/src/views/user/form/form_template/list.vue +3 -3
  135. package/src/views/user/form/form_type/edit.vue +1 -1
  136. package/src/views/user/form/form_type/list.vue +1 -1
  137. package/src/views/user/form/report_requestaccess/edit.vue +1 -1
  138. package/src/views/user/form/report_requestaccess/list.vue +1 -1
  139. package/src/views/user/form/vform/designer.vue +2 -0
  140. package/src/views/user/form/vform/out_render.vue +1 -0
  141. package/src/views/user/form/vform/render.vue +1 -0
  142. package/src/views/user/form/view/list.vue +2 -1
  143. package/src/views/user/groups/dialog.vue +159 -0
  144. package/src/views/user/groups/edit.vue +131 -0
  145. package/src/views/user/groups/list.vue +167 -0
  146. package/src/views/user/home/index.vue +1 -2
  147. package/src/views/user/lang_tag/dialog.vue +185 -0
  148. package/src/views/user/lang_tag/edit.vue +138 -0
  149. package/src/views/user/lang_tag/list.vue +170 -0
  150. package/src/views/user/language_setting/edit.vue +11 -9
  151. package/src/views/user/language_setting/list.vue +20 -18
  152. package/src/views/user/login/default.vue +129 -0
  153. package/src/views/user/login/index.vue +3 -117
  154. package/src/views/user/menu/list.vue +39 -55
  155. package/src/views/user/mobile_menu/list.vue +18 -54
  156. package/src/views/user/notify_message/dialog.vue +1 -1
  157. package/src/views/user/notify_message/infoDialog.vue +1 -1
  158. package/src/views/user/notify_message/list.vue +24 -23
  159. package/src/views/user/notify_template/edit.vue +13 -11
  160. package/src/views/user/notify_template/list.vue +19 -16
  161. package/src/views/user/oplog/edit.vue +12 -12
  162. package/src/views/user/oplog/list.vue +20 -18
  163. package/src/views/user/position/dialog.vue +6 -6
  164. package/src/views/user/position/edit.vue +11 -8
  165. package/src/views/user/position/list.vue +11 -11
  166. package/src/views/user/project_tag/dialog.vue +11 -9
  167. package/src/views/user/project_tag/edit.vue +8 -6
  168. package/src/views/user/project_tag/list.vue +15 -12
  169. package/src/views/user/push_setting/edit.vue +20 -17
  170. package/src/views/user/push_setting/list.vue +1 -1
  171. package/src/views/user/role/dialog.vue +11 -11
  172. package/src/views/user/role/edit.vue +14 -12
  173. package/src/views/user/role/list.vue +14 -12
  174. package/src/views/user/sale_org/dialog.vue +12 -12
  175. package/src/views/user/sale_org/list.vue +43 -48
  176. package/src/views/user/system_notice/edit.vue +13 -11
  177. package/src/views/user/system_notice/infoDialog.vue +2 -2
  178. package/src/views/user/system_notice/list.vue +19 -17
  179. package/src/views/user/system_parameter/edit.vue +7 -6
  180. package/src/views/user/system_parameter/list.vue +12 -10
  181. package/src/views/user/user/edit.vue +1 -1
  182. package/src/views/user/user/form_edit.vue +50 -7
  183. package/src/views/user/user/form_list.vue +34 -132
  184. package/src/views/user/user/info.vue +20 -19
  185. package/src/views/user/user/infoEdit.vue +18 -18
  186. package/src/views/user/user/infoIframeDialog.vue +1 -1
  187. package/src/views/user/user/modifyPasswordDialog.vue +9 -9
  188. package/src/views/user/wf/iframe/dialog.vue +1 -1
  189. package/src/views/user/wf/wf_auto_submit_data/edit.vue +11 -10
  190. package/src/views/user/wf/wf_auto_submit_data/edith.vue +14 -13
  191. package/src/views/user/wf/wf_auto_submit_data/list.vue +43 -41
  192. package/src/views/user/wf/wf_diy_attribute/edit.vue +11 -8
  193. package/src/views/user/wf/wf_manage/list.vue +66 -61
  194. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  195. package/src/views/user/wf/wf_obj_config/dialog.vue +11 -11
  196. package/src/views/user/wf/wf_obj_config/edit.vue +12 -9
  197. package/src/views/user/wf/wf_obj_config/edit_form.vue +11 -9
  198. package/src/views/user/wf/wf_obj_config/itemEdit.vue +31 -27
  199. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +8 -6
  200. package/src/views/user/wf/wf_obj_config/list.vue +42 -41
  201. package/src/views/user/wf/wf_obj_config/list_form.vue +14 -12
  202. package/src/views/user/wf/wf_param/edit.vue +7 -5
  203. package/src/views/user/wf/wf_work_calendar/configDialog.vue +9 -24
  204. package/src/views/user/wf/wf_work_calendar/list.vue +6 -3
  205. package/src/views/user/home/distributor.vue +0 -849
@@ -0,0 +1,255 @@
1
+ import userDialog from "@base/views/user/user/dialog.vue";
2
+
3
+ let modules = {};
4
+ modules = {
5
+ props: {
6
+ currentMenuKind: Object
7
+ },
8
+ components: {
9
+ userDialog
10
+ },
11
+ computed: {
12
+ menuKindId() {
13
+ return this.currentMenuKind.id;
14
+ }
15
+ },
16
+ mounted() {
17
+ this.initTableList();
18
+ },
19
+ data() {
20
+ let that = this;
21
+ return {
22
+ showDialog: true,
23
+ activeName: 'second',
24
+ value10: '',
25
+ dataId: '',
26
+ showEdit: false,
27
+ formData: {
28
+ nickName: null,
29
+ },
30
+ vxeOption: {},
31
+ showUserDialog: false,
32
+ showPositionDialog: false,
33
+ showSaleOrgDialog: false,
34
+ operateIndex: 0,
35
+ showViewDialog: false,
36
+
37
+ tableData: [],
38
+ showUserRowDialog: false,
39
+ showUserAddDialog: false,
40
+ currentRow: null
41
+
42
+ };
43
+ },
44
+ methods: {
45
+ searchEvent() {
46
+ this.$refs['table-m1'].commitProxy('reload');
47
+ },
48
+ resetEvent() {
49
+ this.formData = {};
50
+ this.$refs['table-m1'].commitProxy('reload');
51
+ },
52
+ openEditDialog(id) {
53
+ this.dataId = !id || typeof id == 'object' ? 0 : id;
54
+ this.activeName = 'first';
55
+ this.showViewDialog = true;
56
+ this.$openEditView('showEdit');
57
+ },
58
+
59
+ initTableList() {
60
+ let that = this;
61
+ let valMap = {
62
+ 0: this.$t1('否'),
63
+ 1: this.$t1('是')
64
+ };
65
+ let tableOption = {
66
+ vue: this,
67
+ tableRef: 'table-m1',
68
+ tableName: 'user_fileLibrary-fileAuto-list-m1',
69
+ config: {
70
+ height: "auto",
71
+ rowStyle: ({row, rowIndex}) => {
72
+ return row._isParent ? "background-color: #f3f3f3;" : ""
73
+
74
+ }
75
+ },
76
+ columns: [
77
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
78
+ {
79
+ title: this.$t1('用户'),
80
+ field: 'nickName',
81
+ width: 350,
82
+ slots: {
83
+ default: "user"
84
+ }
85
+ },
86
+ {
87
+ title: this.$t1('编辑'),
88
+ field: 'editAuth',
89
+ width: 150,
90
+ slots: {
91
+ default: ({row}) => {
92
+ return [
93
+ <el-switch v-model={row.editAuth} active-value={1} inactive-value={0}></el-switch>
94
+ ];
95
+ }
96
+ }
97
+ },
98
+ {
99
+ title: this.$t1('导出发布'),
100
+ field: 'exportAuth',
101
+ width: 150,
102
+ slots: {
103
+ default: ({row}) => {
104
+ return [
105
+ <el-switch v-model={row.exportAuth} active-value={1} inactive-value={0}></el-switch>
106
+ ];
107
+ }
108
+ }
109
+ },
110
+ {
111
+ width: 100,
112
+ fixed: 'right',
113
+ title: '',
114
+ sortable: false,
115
+ slots: {
116
+ default: ({row, rowIndex, $table}) => {
117
+ return [
118
+ <a
119
+ href="javascript:void(0);"
120
+ class="a-link"
121
+ onClick={() => {
122
+ this.tableData.splice(rowIndex, 1)
123
+ }}
124
+ v-show={!row._isParent}
125
+ >
126
+ <el-tooltip enterable={false} effect="dark" content="删除" placement="top"
127
+ popper-class="tooltip-skin">
128
+ <i class="el-icon-delete"/>
129
+ </el-tooltip>
130
+ </a>
131
+ ];
132
+ }
133
+ }
134
+ }
135
+ ]
136
+ };
137
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
138
+ this.vxeOption = opts;
139
+ });
140
+ this.initData();
141
+ },
142
+ initData() {
143
+ this.$http({
144
+ aes:true,
145
+ url: USER_PREFIX + '/menu_kind_auth/list',
146
+ method: `post`,
147
+ data: {
148
+ menuKindId: this.menuKindId,
149
+ },
150
+ isLoading: true,
151
+ modalStrictly: true,
152
+ success: res1 => {
153
+ let tableData = res1.objx || [];
154
+ this.tableData = tableData;
155
+
156
+ }
157
+ });
158
+ },
159
+ confirmInsertUser(rows) {
160
+ if (rows.length) {
161
+ let row = rows[0];
162
+ this.formData.userId = row.id;
163
+ this.formData.nickName = row.nickName;
164
+ }
165
+ },
166
+ dialogClose() {
167
+ this.$emit('update:visiable', false)
168
+ },
169
+ deleteRows() {
170
+ let checkRows = this.$refs['table-m1'].getCheckboxRecords(true);
171
+ if (!checkRows.length) {
172
+ this.$message({
173
+ message: this.$t1('请选择需要删除的表单分类权限'),
174
+ type: 'error',
175
+ showClose: true,
176
+ duration: 3000,
177
+ });
178
+ return;
179
+ }
180
+ let keys = checkRows.map(item => item._X_ROW_KEY)
181
+ this.tableData = this.tableData.filter(item => !keys.includes(item._X_ROW_KEY))
182
+ },
183
+ openUserRowDialog(row, rowIndex) {
184
+ this.operateIndex = rowIndex;
185
+ this.showUserRowDialog = true;
186
+ },
187
+ confirmtUserRow(rows) {
188
+ if (rows.length) {
189
+ let row = rows[0];
190
+ let item = this.tableData[this.operateIndex]
191
+ item.userId = row.id;
192
+ item.nickName = row.nickName;
193
+ }
194
+ },
195
+ openUserAddDialog(row, rowIndex) {
196
+ this.showUserAddDialog = true;
197
+ },
198
+ confirmtUserAddDialog(rows) {
199
+ if (rows.length) {
200
+ const tableData = this.tableData;
201
+ const map = {};
202
+ tableData.filter(item => !!item.userId).forEach(function (item) {
203
+ map[item.userId] = 1;
204
+ });
205
+ let items = [];
206
+
207
+ rows.forEach((row, index) => {
208
+ let item = this.createRow();
209
+ item.userId = row.id;
210
+ item.nickName = row.nickName;
211
+ if (!map[item.userId]) {
212
+ items.push(item);
213
+ }
214
+ });
215
+ this.tableData.push(...items);
216
+ }
217
+ },
218
+ saveData() {
219
+ this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
220
+ var url = USER_PREFIX + `/menu_kind_auth/save`;
221
+ this.$http({
222
+ aes:true,
223
+ url: url,
224
+ method: `post`,
225
+ data: {
226
+ menuKindId: this.menuKindId,
227
+ menuKindAuthDTOs: this.tableData
228
+ },
229
+ isLoading: true,
230
+ success: res => {
231
+ this.$message({
232
+ message: res.content,
233
+ type: 'success',
234
+ duration: 500,
235
+ onClose: t => {
236
+ this.dialogClose()
237
+ }
238
+ });
239
+ }
240
+ });
241
+ });
242
+ },
243
+ createRow() {
244
+ let row = {
245
+ nickName: null,
246
+ userId: null,
247
+ editAuth: 1,
248
+ exportAuth: 1,
249
+ menuKindId: this.menuKindId
250
+ }
251
+ return row;
252
+ }
253
+ }
254
+ }
255
+ export default modules
@@ -0,0 +1,144 @@
1
+ import {selectDialogMixins} from "@base/mixins/selectDialog";
2
+
3
+ let modules = {};
4
+ modules = {
5
+ props: ['visiable', 'multi', 'checkRowIds', 'param'],
6
+ mixins: [selectDialogMixins],
7
+ created() {
8
+ this.initSetting();
9
+
10
+ if (this.param) {
11
+ if (this.param.companyCode !== null) {
12
+ this.formData.companyCode = this.param.companyCode;
13
+ }
14
+ if (this.param.moveButton !== null) {
15
+ this.moveButton = this.param.moveButton;
16
+ }
17
+ }
18
+ },
19
+ mounted() {
20
+ this.initTableM1();
21
+ },
22
+ data() {
23
+ var that = this;
24
+ return {
25
+ showDialog: true,
26
+ falseValue: false,
27
+ selectMulti: true,
28
+ moveButton: false,
29
+ formData: {},
30
+ vxeOption: {}
31
+ };
32
+ },
33
+ methods: {
34
+ initTableM1() {
35
+ let that = this;
36
+ let url = USER_PREFIX + '/menuKind/getAllList';
37
+ let tableOption = {
38
+ vue: that,
39
+ tableRef: 'table-m1',
40
+ tableName: 'bd_menuKind_dialog-m1',
41
+ path: url,
42
+ treeNodeUrl: USER_PREFIX + '/menuKind/getChildren',
43
+ treeNodeParam(row) {
44
+ return {
45
+ parent: row.id,
46
+ enabled: true
47
+ };
48
+ },
49
+ param: () => {
50
+ return {
51
+ enabled: true,
52
+ ...this.formData,
53
+ ...this.param
54
+ }
55
+ },
56
+ columns: [
57
+ {type: 'checkbox', width: 50, resizable: false, fixed: 'left'},
58
+ {
59
+ title: '表单分类名称',
60
+ field: 'name',
61
+ width: 250,
62
+ fixed: 'left',
63
+ treeNode: true,
64
+ slots: {
65
+ default: ({row}) => {
66
+ return [
67
+ <a
68
+ class="levitate-tips"
69
+ onclick={(event) => {
70
+ event.stopPropagation();
71
+ this.$refs['table-m1'].toggleTreeExpand(row);
72
+ }}
73
+ >
74
+ {row.name}
75
+ </a>
76
+ ];
77
+ }
78
+ }
79
+ },
80
+ {title: '上级分类', field: 'treePathName', width: 200},
81
+ {field: 'menuKindCode', title: '表单分类编码', width: 150},
82
+ {
83
+ width: 47,
84
+ fixed: 'right',
85
+ title: '',
86
+ sortable: false
87
+ }
88
+ ],
89
+ config: {
90
+ checkboxConfig: {
91
+ checkStrictly: true,
92
+ showHeader: this.selectMulti,
93
+ trigger: 'row',
94
+ checkMethod: ({row}) => {
95
+ if (!row.addAuth) {
96
+ return false;
97
+ }
98
+ if (this.param && this.param.selectLastLevel) {
99
+ if (row.hasChild) {
100
+ return false;
101
+ } else {
102
+ return true;
103
+ }
104
+ }
105
+ return true;
106
+ }
107
+ }
108
+ }
109
+ };
110
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
111
+ that.vxeOption = opts;
112
+ });
113
+ },
114
+
115
+ movePrimary() {
116
+ let menuKindCodeRow = this.checkRows[0];
117
+ let menuKindCode = menuKindCodeRow.menuKindCode;
118
+ // console.log("menuKindCode===="+menuKindCode);
119
+
120
+ this.$baseConfirm("您确定要移动文件吗?").then(() => {
121
+ this.$http({
122
+ aes:true,
123
+ method: "post",
124
+ url: USER_PREFIX + `/szTaMb/moveToMenuKind`,
125
+ data: {
126
+ menuKindCode: menuKindCode,
127
+ szTaMbIds: this.checkRowIds,
128
+ },
129
+ isLoading: true,
130
+ success: (res) => {
131
+ this.$message({
132
+ message: res.content,
133
+ type: "success",
134
+ duration: 500,
135
+ });
136
+ this.dialogClose();
137
+ },
138
+ });
139
+ });
140
+ },
141
+
142
+ }
143
+ };
144
+ export default modules
@@ -0,0 +1,187 @@
1
+ import userDialog from "@base/views/user/user/dialog.vue";
2
+ import tableForm from "@base/components/table/tableForm.vue";
3
+ import authDialog from "@base/views/bd/setting/menu_kind/authDialog.vue";
4
+ import {tableTreeMixins} from "@base/mixins/tableTree";
5
+ import {getBdFlag} from "@base/api/user";
6
+
7
+ let modules = {};
8
+ modules = {
9
+ name: 'menu_kind:list',
10
+ components: {userDialog, tableForm, authDialog},
11
+ mixins: [tableTreeMixins],
12
+ mounted() {
13
+ this.getBdEnv();
14
+ this.initTableList();
15
+ },
16
+ data() {
17
+ let that = this;
18
+ return {
19
+ value10: '',
20
+ dataId: '',
21
+ formData: {
22
+ enabled: null
23
+ },
24
+ vxeOption: {},
25
+ activeName: 'second',
26
+ isDev: true,
27
+ showAuthDialog: false,
28
+ currentMenuKind: {}
29
+ };
30
+ },
31
+ methods: {
32
+ searchEvent() {
33
+ this.$refs['table-m1'].commitProxy('reload');
34
+ },
35
+ resetEvent() {
36
+ this.formData = {};
37
+ this.$refs['table-m1'].commitProxy('reload');
38
+ },
39
+ getSearchParam() {
40
+ return {
41
+ ...this.formData
42
+ };
43
+ },
44
+ initTableList() {
45
+ let that = this;
46
+ let tableOption = {
47
+ vue: this,
48
+ tableRef: 'table-m1',
49
+ tableName: 'bd_menu_kind_list-m1',
50
+ path: USER_PREFIX + '/menuKind/getAllList',
51
+ treeNodeUrl: USER_PREFIX + '/menuKind/getChildren',
52
+ editSaveUrl: USER_PREFIX + '/menuKind/save',
53
+ editDefaultRow: {enabled: true, orders: 99},
54
+ param: row => {
55
+ return this.getSearchParam();
56
+ },
57
+ treeNodeParam: row => {
58
+ return {
59
+ parent: row.id,
60
+ enabled: this.formData.enabled
61
+ };
62
+ },
63
+ columns: [
64
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
65
+ {
66
+ title: '表单分类名称',
67
+ field: 'name',
68
+ width: 250,
69
+ fixed: 'left',
70
+ treeNode: true,
71
+ editRender: {name: 'input'},
72
+ slots: {
73
+ default: ({row}) => {
74
+ return [
75
+ <a
76
+ class="levitate-tips"
77
+ onclick={(event) => {
78
+ event.stopPropagation();
79
+ this.$refs['table-m1'].toggleTreeExpand(row);
80
+ }}
81
+ >
82
+ {row.name}
83
+ </a>
84
+ ];
85
+ }
86
+ }
87
+ },
88
+ {
89
+ field: 'enabled',
90
+ title: this.$t1('是否启用'),
91
+ width: 150,
92
+ editRender: {
93
+ name: '$select',
94
+ props: {clearable: true},
95
+ events: {
96
+ change: () => {
97
+ this.$forceUpdate();
98
+ }
99
+ },
100
+ options: [
101
+ {
102
+ label: this.$t1('启用'),
103
+ value: true
104
+ },
105
+ {
106
+ label: this.$t1('禁用'),
107
+ value: false
108
+ }
109
+ ]
110
+ },
111
+ slots: {
112
+ default: ({row}) => {
113
+ if (row.enabled) {
114
+ return [<div class="txt-status">{this.$t1('启用')}</div>];
115
+ } else {
116
+ return [<div class="txt-status s-3">{this.$t1('禁用')}</div>];
117
+ }
118
+ }
119
+ }
120
+ },
121
+ {
122
+ title: this.$t1('序号'),
123
+ field: 'orders',
124
+ width: 150,
125
+ editRender: {name: 'input'},
126
+ slots: {
127
+ edit: ({row}) => {
128
+ return [
129
+ <base-input-number v-model={row.orders}></base-input-number>
130
+ ];
131
+ }
132
+ }
133
+ },
134
+ {field: 'treePathName', title: '上级分类', width: 150},
135
+ {field: 'serviceName', title: '服务名称', width: 150},
136
+ {field: 'taPrefix', title: '数据表前缀', width: 150},
137
+ {field: 'menuKindCode', title: '表单分类编码', width: 150},
138
+ {field: 'createDate', title: this.$t1('创建时间'), width: 150},
139
+ {field: 'modifyDate', title: this.$t1('更新时间'), width: 150},
140
+ {width: 300, title: '', fixed: 'right', sortable: false, slots: {default: 'operate'}}
141
+ ],
142
+ searchColumns: [
143
+ {title: "表单分类名称", field: "name", type: "input", common: true},
144
+ {
145
+ title: this.$t1('是否启用'), field: "enabled", type: "select", common: true, itemOption: [
146
+ {label: this.$t1('启用'), value: true},
147
+ {label: this.$t1('禁用'), value: false}
148
+ ]
149
+ }
150
+ ]
151
+ };
152
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
153
+ this.vxeOption = opts;
154
+ });
155
+ },
156
+ jsonImport() {
157
+ this.$jsonImport({
158
+ saveUrl: USER_PREFIX + '/form_develop/importMenuKind',
159
+ callback: () => {
160
+ this.searchEvent();
161
+ }
162
+ });
163
+ },
164
+ jsonExport() {
165
+ this.$jsonExport({
166
+ targetRef: "table-m1",
167
+ url: USER_PREFIX + "/form_develop/exportMenuKind",
168
+ abcEnabled: false
169
+ })
170
+ },
171
+ getBdEnv() {
172
+ getBdFlag({
173
+ success: res => {
174
+ this.isDev = res.objx == 1
175
+ }
176
+ });
177
+ },
178
+ openAuthDialog({row, rowIndex}) {
179
+ this.currentMenuKind = row;
180
+ this.showAuthDialog = true;
181
+ },
182
+ confirmAuthDialog() {
183
+
184
+ }
185
+ }
186
+ };
187
+ export default modules