cloud-web-corejs 1.0.28 → 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 (199) hide show
  1. package/package.json +1 -1
  2. package/src/components/formOplog/mixins.js +1 -1
  3. package/src/components/projectTag/addButton.vue +3 -50
  4. package/src/components/projectTag/deleteButton.vue +3 -50
  5. package/src/components/projectTag/mixins/addButton.js +5 -0
  6. package/src/components/projectTag/mixins/deleteButton.js +5 -0
  7. package/src/components/projectTag/mixins/view.js +5 -0
  8. package/src/components/projectTag/view.vue +33 -72
  9. package/src/components/xform/mixins/scriptHttp.js +1 -1
  10. package/src/index.js +0 -2
  11. package/src/layout/components/Sidebar/default.vue +3 -4
  12. package/src/router/modules/system.js +1 -1
  13. package/src/store/config/index.js +1 -1
  14. package/src/store/getters.js +2 -0
  15. package/src/store/modules/permission.js +1 -1
  16. package/src/store/modules/user.js +2 -1
  17. package/src/utils/request.js +28 -29
  18. package/src/utils/vab.js +27 -27
  19. package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -87
  20. package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -92
  21. package/src/views/bd/setting/bd_attach_setting/list.vue +4 -214
  22. package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +89 -0
  23. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +96 -0
  24. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +219 -0
  25. package/src/views/bd/setting/form_script/dialog.vue +3 -137
  26. package/src/views/bd/setting/form_script/edit.vue +3 -127
  27. package/src/views/bd/setting/form_script/edit1.vue +3 -142
  28. package/src/views/bd/setting/form_script/form_list.vue +4 -259
  29. package/src/views/bd/setting/form_script/list.vue +6 -174
  30. package/src/views/bd/setting/form_script/list1.vue +6 -333
  31. package/src/views/bd/setting/form_script/list2.vue +3 -4
  32. package/src/views/bd/setting/form_script/mixins/dialog.js +142 -0
  33. package/src/views/bd/setting/form_script/mixins/edit.js +134 -0
  34. package/src/views/bd/setting/form_script/mixins/edit1.js +149 -0
  35. package/src/views/bd/setting/form_script/mixins/form_list.js +264 -0
  36. package/src/views/bd/setting/form_script/mixins/list.js +176 -0
  37. package/src/views/bd/setting/form_script/mixins/list1.js +336 -0
  38. package/src/views/bd/setting/form_script/mixins/list2.js +14 -0
  39. package/src/views/bd/setting/form_template/dialog.vue +104 -212
  40. package/src/views/bd/setting/form_template/edit.vue +183 -329
  41. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +46 -131
  42. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +88 -175
  43. package/src/views/bd/setting/form_template/itemEdit.vue +174 -270
  44. package/src/views/bd/setting/form_template/itemList.vue +56 -300
  45. package/src/views/bd/setting/form_template/list.vue +7 -562
  46. package/src/views/bd/setting/form_template/mixins/dialog.js +114 -0
  47. package/src/views/bd/setting/form_template/mixins/edit.js +155 -0
  48. package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +94 -0
  49. package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +95 -0
  50. package/src/views/bd/setting/form_template/mixins/itemEdit.js +106 -0
  51. package/src/views/bd/setting/form_template/mixins/itemList.js +254 -0
  52. package/src/views/bd/setting/form_template/mixins/list.js +562 -0
  53. package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -0
  54. package/src/views/bd/setting/form_template/preformDialog.vue +57 -77
  55. package/src/views/bd/setting/menu_kind/authDialog.vue +84 -308
  56. package/src/views/bd/setting/menu_kind/dialog.vue +89 -226
  57. package/src/views/bd/setting/menu_kind/list.vue +6 -186
  58. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +232 -0
  59. package/src/views/bd/setting/menu_kind/mixins/dialog.js +144 -0
  60. package/src/views/bd/setting/menu_kind/mixins/list.js +187 -0
  61. package/src/views/bd/setting/table_model/dialog.vue +95 -161
  62. package/src/views/bd/setting/table_model/edit.vue +5 -767
  63. package/src/views/bd/setting/table_model/list.vue +8 -369
  64. package/src/views/bd/setting/table_model/mixins/dialog.js +74 -0
  65. package/src/views/bd/setting/table_model/mixins/edit.js +778 -0
  66. package/src/views/bd/setting/table_model/mixins/list.js +367 -0
  67. package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -0
  68. package/src/views/bd/setting/table_model/zdDialog.vue +95 -201
  69. package/src/views/support/export_template/edit.vue +40 -36
  70. package/src/views/support/export_template/list.vue +40 -52
  71. package/src/views/user/access_log/edit.vue +18 -17
  72. package/src/views/user/access_log/list.vue +27 -26
  73. package/src/views/user/access_log/statistics_list.vue +19 -17
  74. package/src/views/user/api_request/edit.vue +14 -11
  75. package/src/views/user/api_request/list.vue +13 -11
  76. package/src/views/user/area/dialog.vue +14 -27
  77. package/src/views/user/area_attribute/configDialog.vue +11 -13
  78. package/src/views/user/area_attribute/edit.vue +8 -6
  79. package/src/views/user/area_attribute/list.vue +1 -1
  80. package/src/views/user/attachment/uploadDialog.vue +1 -1
  81. package/src/views/user/bill_setting/button/previewButton.vue +2 -2
  82. package/src/views/user/bill_setting/compareView.vue +1 -1
  83. package/src/views/user/bill_setting/edit.vue +24 -17
  84. package/src/views/user/bill_setting/h5_ModifyDialog.vue +1 -1
  85. package/src/views/user/bill_setting/itemViewDialog.vue +3 -66
  86. package/src/views/user/bill_setting/list.vue +28 -26
  87. package/src/views/user/bill_setting/mixins/wf.js +8 -8
  88. package/src/views/user/bill_setting/previewDialog.vue +1 -1
  89. package/src/views/user/bill_setting/render.vue +29 -29
  90. package/src/views/user/bill_setting/userDialog.vue +7 -5
  91. package/src/views/user/code_rules/edit.vue +21 -18
  92. package/src/views/user/code_rules/list.vue +27 -19
  93. package/src/views/user/commMenu/index.vue +3 -3
  94. package/src/views/user/common_attribute/edit.vue +7 -5
  95. package/src/views/user/common_attribute/itemEdit.vue +22 -22
  96. package/src/views/user/common_attribute/list.vue +25 -24
  97. package/src/views/user/common_script/edit.vue +12 -12
  98. package/src/views/user/common_script/list.vue +30 -32
  99. package/src/views/user/company_info/dialog.vue +9 -9
  100. package/src/views/user/company_info/edit.vue +11 -8
  101. package/src/views/user/country/dialog.vue +11 -9
  102. package/src/views/user/country/edit.vue +12 -9
  103. package/src/views/user/country/list.vue +12 -12
  104. package/src/views/user/data_type_setting/dialog.vue +10 -10
  105. package/src/views/user/data_type_setting/editDialog.vue +6 -6
  106. package/src/views/user/ea/eagroup/eaobj_list.vue +25 -25
  107. package/src/views/user/ea/eagroup/edit.vue +48 -42
  108. package/src/views/user/ea/eaobj/edit.vue +6 -5
  109. package/src/views/user/ea/eaobj/list.vue +9 -8
  110. package/src/views/user/extend_datasource/dialog.vue +19 -24
  111. package/src/views/user/extend_datasource/edit.vue +20 -16
  112. package/src/views/user/extend_datasource/list.vue +23 -24
  113. package/src/views/user/fieldTranslation/editDialog.vue +28 -28
  114. package/src/views/user/fieldTranslation/list.vue +59 -57
  115. package/src/views/user/field_values_invisible/edit.vue +15 -14
  116. package/src/views/user/field_values_invisible/list.vue +23 -22
  117. package/src/views/user/file_type/edit.vue +12 -21
  118. package/src/views/user/file_type/list.vue +21 -36
  119. package/src/views/user/file_type/userEdit.vue +14 -9
  120. package/src/views/user/file_view_area/edit.vue +3 -3
  121. package/src/views/user/file_view_area/itemEdit.vue +11 -9
  122. package/src/views/user/file_view_area/list.vue +17 -16
  123. package/src/views/user/file_view_ins/list.vue +29 -28
  124. package/src/views/user/file_view_ins/propertiesDialog.vue +15 -15
  125. package/src/views/user/form/form_template/edit.vue +1 -1
  126. package/src/views/user/form/form_template/itemEdit.vue +1 -1
  127. package/src/views/user/form/form_template/itemList.vue +2 -2
  128. package/src/views/user/form/form_template/list.vue +3 -3
  129. package/src/views/user/form/form_type/edit.vue +1 -1
  130. package/src/views/user/form/form_type/list.vue +1 -1
  131. package/src/views/user/form/report_requestaccess/edit.vue +1 -1
  132. package/src/views/user/form/report_requestaccess/list.vue +1 -1
  133. package/src/views/user/form/vform/designer.vue +2 -0
  134. package/src/views/user/form/vform/out_render.vue +1 -0
  135. package/src/views/user/form/vform/render.vue +1 -0
  136. package/src/views/user/form/view/list.vue +2 -1
  137. package/src/views/user/groups/dialog.vue +159 -0
  138. package/src/views/user/groups/edit.vue +131 -0
  139. package/src/views/user/groups/list.vue +167 -0
  140. package/src/views/user/home/index.vue +1 -2
  141. package/src/views/user/lang_tag/dialog.vue +185 -0
  142. package/src/views/user/lang_tag/edit.vue +138 -0
  143. package/src/views/user/lang_tag/list.vue +170 -0
  144. package/src/views/user/language_setting/edit.vue +11 -9
  145. package/src/views/user/language_setting/list.vue +20 -18
  146. package/src/views/user/login/default.vue +129 -0
  147. package/src/views/user/login/index.vue +3 -117
  148. package/src/views/user/menu/list.vue +39 -55
  149. package/src/views/user/mobile_menu/list.vue +18 -54
  150. package/src/views/user/notify_message/dialog.vue +1 -1
  151. package/src/views/user/notify_message/infoDialog.vue +1 -1
  152. package/src/views/user/notify_message/list.vue +24 -23
  153. package/src/views/user/notify_template/edit.vue +13 -11
  154. package/src/views/user/notify_template/list.vue +19 -16
  155. package/src/views/user/oplog/edit.vue +12 -12
  156. package/src/views/user/oplog/list.vue +20 -18
  157. package/src/views/user/position/dialog.vue +6 -6
  158. package/src/views/user/position/edit.vue +11 -8
  159. package/src/views/user/position/list.vue +11 -11
  160. package/src/views/user/project_tag/dialog.vue +11 -9
  161. package/src/views/user/project_tag/edit.vue +8 -6
  162. package/src/views/user/project_tag/list.vue +15 -12
  163. package/src/views/user/push_setting/edit.vue +20 -17
  164. package/src/views/user/push_setting/list.vue +1 -1
  165. package/src/views/user/role/dialog.vue +11 -11
  166. package/src/views/user/role/edit.vue +14 -12
  167. package/src/views/user/role/list.vue +14 -12
  168. package/src/views/user/sale_org/dialog.vue +12 -12
  169. package/src/views/user/sale_org/list.vue +43 -48
  170. package/src/views/user/system_notice/edit.vue +13 -11
  171. package/src/views/user/system_notice/infoDialog.vue +2 -2
  172. package/src/views/user/system_notice/list.vue +19 -17
  173. package/src/views/user/system_parameter/edit.vue +7 -6
  174. package/src/views/user/system_parameter/list.vue +12 -10
  175. package/src/views/user/user/edit.vue +1 -1
  176. package/src/views/user/user/form_edit.vue +50 -7
  177. package/src/views/user/user/form_list.vue +34 -132
  178. package/src/views/user/user/info.vue +20 -19
  179. package/src/views/user/user/infoEdit.vue +18 -18
  180. package/src/views/user/user/infoIframeDialog.vue +1 -1
  181. package/src/views/user/user/modifyPasswordDialog.vue +9 -9
  182. package/src/views/user/wf/iframe/dialog.vue +1 -1
  183. package/src/views/user/wf/wf_auto_submit_data/edit.vue +11 -10
  184. package/src/views/user/wf/wf_auto_submit_data/edith.vue +14 -13
  185. package/src/views/user/wf/wf_auto_submit_data/list.vue +43 -41
  186. package/src/views/user/wf/wf_diy_attribute/edit.vue +11 -8
  187. package/src/views/user/wf/wf_manage/list.vue +66 -61
  188. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  189. package/src/views/user/wf/wf_obj_config/dialog.vue +11 -11
  190. package/src/views/user/wf/wf_obj_config/edit.vue +12 -9
  191. package/src/views/user/wf/wf_obj_config/edit_form.vue +11 -9
  192. package/src/views/user/wf/wf_obj_config/itemEdit.vue +31 -27
  193. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +8 -6
  194. package/src/views/user/wf/wf_obj_config/list.vue +42 -41
  195. package/src/views/user/wf/wf_obj_config/list_form.vue +14 -12
  196. package/src/views/user/wf/wf_param/edit.vue +7 -5
  197. package/src/views/user/wf/wf_work_calendar/configDialog.vue +9 -24
  198. package/src/views/user/wf/wf_work_calendar/list.vue +6 -3
  199. package/src/views/user/home/distributor.vue +0 -849
@@ -43,12 +43,12 @@
43
43
  <tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
44
44
  <template #buttonLeft>
45
45
  <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog()"
46
- v-if="isDev && currentFormType.addAuth===1">新增
46
+ v-if="isDev && currentFormType.addAuth===1">{{ $t1('新增') }}
47
47
  </vxe-button>
48
- <vxe-button status="success" class="button-sty" icon="el-icon-download" @click="jsonImport">导入发布
48
+ <vxe-button status="success" class="button-sty" icon="el-icon-download" @click="jsonImport">{{ $t1('导入发布') }}
49
49
  </vxe-button>
50
50
  <vxe-button status="success" class="button-sty" icon="el-icon-upload2" @click="jsonExport"
51
- v-if="isDev">导出发布
51
+ v-if="isDev">{{ $t1('导出发布') }}
52
52
  </vxe-button>
53
53
  <projectTagAddButton :option="addProjectTagOption" v-if="isDev"></projectTagAddButton>
54
54
  <projectTagDeleteButton :option="deleteProjectTagOption" v-if="isDev"></projectTagDeleteButton>
@@ -57,7 +57,7 @@
57
57
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
58
58
  plain>{{$t1('重置')}}
59
59
  </vxe-button>
60
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
60
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
61
61
  </vxe-button>
62
62
  </template>
63
63
  <template #menuKindName>
@@ -175,567 +175,12 @@
175
175
  </template>
176
176
 
177
177
  <script>
178
- import {treeScollx} from '@base/utils/global.js';
179
- import editView from './edit.vue';
180
-
181
- import userDialog from '../../../../views/user/user/dialog.vue';
182
- import positionDialog from '../../../../views/user/position/dialog.vue';
183
- import scriptDescriptionDialog from '@base/components/scriptDescription/dialog'
184
-
185
- import itemList from "./itemList";
186
- import formTypeEditDialog from "../../../../views/user/form/form_type/editDialog";
187
- import ftHistoryDialog from "./ftHistoryDialog";
188
- import indexUtil from "@base/utils/index.js"
189
- import formScriptList from '../../../../views/bd/setting/form_script/form_list.vue';
190
- import projectTagDialog from "../../../../views/user/project_tag/dialog.vue";
191
- import tableForm from "@base/components/table/tableForm.vue";
192
- import {getBdFlag} from "@base/api/user";
193
- import projectTagDeleteButton from "@base/components/projectTag/deleteButton.vue";
194
- import projectTagAddButton from "@base/components/projectTag/addButton.vue";
195
- import projectTagView from "@base/components/projectTag/view.vue";
178
+ import mixin from "./mixins/list";
196
179
 
197
180
  export default {
198
181
  name: 'bd_form_template:list',
199
- components: {
200
- projectTagView,
201
- projectTagAddButton, projectTagDeleteButton,
202
- tableForm,
203
- editView,
204
- userDialog,
205
- positionDialog,
206
- scriptDescriptionDialog,
207
- ftHistoryDialog,
208
- itemList,
209
- formTypeEditDialog,
210
- formScriptList,
211
- projectTagDialog,
212
- designer: () => import('../../../../views/user/form/vform/designer.vue')
213
- },
214
- data() {
215
- return {
216
- isFullscreen: false,
217
- formDesTabs: 'first',
218
- activeName: 'second',
219
- dataId: 0,
220
- showEdit: false,
221
- vxeOption: {},
222
- formData: {},
223
- showDesingerDialog: false,
224
- formCode: null,
225
- formName: null,
226
- templateId: null,
227
- currentFormTemplate: null,
228
-
229
- showItemEdit: false,
230
- showParamEdit: false,
231
- vxeOption1: {},
232
- editId: '',
233
- itemEditId: '',
234
- pRow: null,
235
- currentRow: {},
236
- serviceId: null,
237
- itemServiceId: null,
238
-
239
- showWfDialog: false,
240
- wfUrl: '',
241
- ph: '',
242
- dialogActiveName: 'first',
243
- showFunctionScriptList: false,
244
- showUserDialog: false,
245
- wfAssignData: [],
246
- wfAssignCallback: null,
247
- wfAssignMulti: true,
248
-
249
- showPositionDialog: false,
250
- wfAssignPositionData: [],
251
- wfAssignPositionCallback: null,
252
-
253
- showFormTemplateDialog: false,
254
- wfAssignFormTemplateCallback: null,
255
-
256
- showScriptDescriptionDialog: false,
257
- showWfDiyAttributeEdit: false,
258
-
259
- showFtHistoryDialog: false,
260
- operateFtHistory: null,
261
-
262
- defaultProps: {
263
- label: 'name', //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
264
- children: [],
265
- isLeaf: 'leaf'
266
- },
267
- showItemView: false,
268
-
269
- currentFormType: {},
270
- editFormTypeId: null,
271
- showFormTypeDialog: false,
272
- showFormScriptList: false,
273
- addProjectTagOption: {
274
- url: USER_PREFIX + `/formTemplate/saveTag`,
275
- tableDatas: () => {
276
- return this.$refs["table-m1"].getCheckboxRecords(true);
277
- },
278
- reqData: (tagDatas, tableDatas) => {
279
- let formCodes = tableDatas.map(item => item.formCode);
280
- let tagCodes = tagDatas.map(item => item.tagCode);
281
- let reqData = {
282
- tagCodes,
283
- formCodes
284
- };
285
- return reqData;
286
- },
287
- callback: () => {
288
- this.searchEvent()
289
- }
290
- },
291
- deleteProjectTagOption: {
292
- url: USER_PREFIX + `/formTemplate/deleteTag`,
293
- tableDatas: () => {
294
- return this.$refs["table-m1"].getCheckboxRecords(true);
295
- },
296
- reqData: (tagDatas, tableDatas) => {
297
- let formCodes = tableDatas.map(item => item.formCode);
298
- let tagCodes = tagDatas.map(item => item.tagCode);
299
- let reqData = {
300
- tagCodes,
301
- formCodes
302
- };
303
- return reqData;
304
- },
305
- callback: () => {
306
- this.searchEvent()
307
- }
308
- },
309
- showProjectTagDialog3: false,
310
- checkTags: [],
311
- isDev: true,
312
- menuKindAuth: {},
313
- showTree: false
314
- };
315
- },
316
- computed: {
317
- currentMenuKindId() {
318
- return this.currentFormType?.id || null
319
- },
320
- currentMenuKindName() {
321
- return this.currentFormType?.name || null
322
- }
323
- },
324
- watch: {
325
- formDesTabs(val) {
326
- if (this.showFormScriptList == false && val == 'second') {
327
- this.showFormScriptList = true;
328
- }
329
- }
330
- },
331
- mounted() {
332
- treeScollx({target: this, type: 'default'});
333
- this.getBdEnv();
334
- this.initTableList();
335
- this.initWfWinParam();
336
- },
337
- methods: {
338
- searchEvent() {
339
- this.$refs['table-m1'].commitProxy('reload');
340
- },
341
- resetEvent() {
342
- this.formData = {};
343
- this.checkTags = [];
344
- this.$refs['table-m1'].commitProxy('reload');
345
- },
346
- openEditDialog(row) {
347
- let formCode = row?.formCode || null;
348
- /*this.dataId = !id || typeof id == 'object' ? 0 : id;
349
- this.activeName = 'first';
350
- this.showItemEdit = false;
351
- this.$openEditView('showEdit');*/
352
- if (!formCode) {
353
- this.dataId = formCode;
354
- this.activeName = 'first';
355
- this.$openEditView('showEdit');
356
- } else {
357
- this.$refs.xTabs.openEditTab(row);
358
- }
359
-
360
- },
361
- openDesingerDialog(row, callback) {
362
- this.formCode = row.formCode;
363
- this.formName = row.formName;
364
- this.currentFormTemplate = row;
365
- this.isFullscreen = false;
366
- this.showDesingerDialog = true;
367
- this.designerSaveCallback = callback ?? null;
368
- },
369
- openDesingerDialogByChild({row, callback}) {
370
- this.openDesingerDialog(row, callback)
371
- },
372
- reflushTemplateList() {
373
- this.searchEvent();
374
- this.designerSaveCallback && this.designerSaveCallback();
375
- },
376
- handleFullscreen() {
377
- let isFullscreen = this.isFullscreen;
378
- if (!isFullscreen) {
379
- indexUtil.addClass(document.body, "hideMenu");
380
- } else {
381
- indexUtil.removeClass(document.body, "hideMenu");
382
- }
383
- this.isFullscreen = !isFullscreen;
384
- },
385
- openFtHistoryDialog(row) {
386
- this.operateFtHistory = row;
387
- this.showFtHistoryDialog = true;
388
- },
389
- confirmFtHistoryDialog(row) {
390
- this.searchEvent();
391
- },
392
- closeFormDesignwinEvent(done) {
393
- this.$baseConfirm('请确认"已保存"报表模板,是否继续关闭?').then(() => {
394
- indexUtil.removeClass(document.body, "hideMenu");
395
- done && done();
396
- });
397
- },
398
- getSearchParam() {
399
- let tagCodes = null;
400
- if (this.checkTags.length) {
401
- tagCodes = this.checkTags.map(item => item.tagCode);
402
- }
403
- let currentFormType = this.currentFormType || {}
404
- return {
405
- ...this.formData,
406
- tagCodes,
407
- menuKindCode: currentFormType.menuKindCode || null,
408
- history: false
409
- };
410
- },
411
- initTableList() {
412
- let that = this;
413
- let tableOption = {
414
- vue: this,
415
- tableRef: 'table-m1',
416
- tableName: 'bd_form_template_list-m1',
417
- path: USER_PREFIX + '/formTemplate/listPage',
418
- param: () => {
419
- return this.getSearchParam();
420
- },
421
- columns: [
422
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
423
- {
424
- title: '模板名称',
425
- field: 'formName',
426
- width: 150,
427
- fixed: 'left'
428
- },
429
- {
430
- title: '模板编码',
431
- field: 'formCode',
432
- width: 150
433
- },
434
- {
435
- title: '模板版本',
436
- field: 'formVersion',
437
- width: 150
438
- },
439
- {
440
- title: '表单分类',
441
- field: 'menuKindName',
442
- width: 150,
443
- },
444
- {
445
- title: this.$t1('是否启用'),
446
- field: 'enabled',
447
- width: 150,
448
- slots: {
449
- default: ({row}) => {
450
- if (row.enabled) {
451
- return [
452
- <div class="txt-status">
453
- <span>启用</span>
454
- </div>
455
- ];
456
- } else {
457
- return [
458
- <div class="txt-status disable">
459
- <span>禁用</span>
460
- </div>
461
- ];
462
- }
463
- }
464
- }
465
- },
466
- {
467
- title: this.$t1('备注'),
468
- field: 'remark',
469
- width: 150
470
- },
471
- {
472
- title: '项目标签', field: 'tag', width: 250, slots: {default: "tag"}, params: {
473
- exportVal: ({row}) => {
474
- if (row.formTemplateTagDTOs) {
475
- return row.formTemplateTagDTOs.map(item => item.tagName).join(",")
476
- }
477
- }
478
- }
479
- },
480
- {
481
- title: this.$t1('更新时间'),
482
- field: 'modifyDate',
483
- width: 150
484
- },
485
- {
486
- title: this.$t1('创建时间'),
487
- field: 'createDate',
488
- width: 150
489
- },
490
- {
491
- width: 200,
492
- fixed: 'right',
493
- title: '',
494
- sortable: false,
495
- slots: {
496
- default: ({row}) => {
497
- return [
498
- <div>
499
- <a
500
- href="javascript:void(0);"
501
- class="a-link"
502
- onclick={() => {
503
- this.openEditDialog(row);
504
- }}
505
- >
506
- <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
507
- popper-class="tooltip-skin">
508
- <i class="el-icon-edit"/>
509
- </el-tooltip>
510
- </a>
511
- <a
512
- href="javascript:void(0);"
513
- onClick={() => {
514
- this.openDesingerDialog(row);
515
- }}
516
- class="a-link"
517
- >
518
- <el-tooltip enterable={false} effect="dark" content="表单设计" placement="top"
519
- popper-class="tooltip-skin">
520
- <i class="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
521
- </el-tooltip>
522
- </a>
523
- <a
524
- href="javascript:void(0);"
525
- onClick={() => {
526
- this.chooseCellM1(row);
527
- }}
528
- class="a-link"
529
- v-show={row.hasWf}
530
- >
531
- <el-tooltip enterable={false} effect="dark" content="流程模板维护" placement="top"
532
- popper-class="tooltip-skin">
533
- <i class="el-icon-edit"/>
534
- <span>流程模板维护</span>
535
- </el-tooltip>
536
- </a>
537
- <a
538
- href="javascript:void(0);"
539
- class="a-link"
540
- onClick={() => {
541
- this.openFtHistoryDialog(row);
542
- }}
543
-
544
- >
545
- <el-tooltip enterable={false} effect="dark" content="历史" placement="top"
546
- popper-class="tooltip-skin">
547
- <i class="el-icon-s-order"/>
548
- </el-tooltip>
549
- </a>
550
- </div>
551
- ];
552
- }
553
- }
554
- }
555
- ],
556
- searchColumns: [
557
- {
558
- title: "表单分类",
559
- field: "menuKindName",
560
- type: "input",
561
- common: true,
562
- disabled: true,
563
- defaultValueEnabled: false,
564
- slot: "menuKindName"
565
- },
566
- {title: "模板名称", field: "formName", type: "input", common: true},
567
- {title: "模板编码", field: "formCode", type: "input", common: true},
568
- {
569
- title: this.$t1('是否启用'), field: "enabled", type: "select", common: true, itemOption: [
570
- {label: this.$t1('启用'), value: true},
571
- {label: this.$t1('禁用'), value: false}
572
- ]
573
- },
574
- {title: "项目标签", field: "tag", type: "input", common: true, slot: "tag"},
575
- ],
576
- config: {
577
- proxyConfig: {
578
- autoLoad: false
579
- }
580
- },
581
- };
582
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
583
- this.vxeOption = opts;
584
- this.showTree = true;
585
- });
586
- },
587
- chooseCellM1(row) {
588
- this.currentRow = row;
589
- this.showItemView = true;
590
- },
591
- openWfDesignDialog(actModelId) {
592
- //wfType 0:单据流程,1:场景流程
593
- let serviceId = this.currentRow.serviceName;
594
- this.wfUrl = WEB_PREFIX + '/activiti-explorer/modeler.html?wfType=0&serviceId=' + serviceId + '&modelId=' + actModelId;
595
- this.dialogActiveName = 'first';
596
- this.showWfDialog = true;
597
- },
598
- closeDesignwinEvent(done) {
599
- this.$baseConfirm('请确认"已保存"流程模板,是否继续关闭?').then(() => {
600
- this.showWfDialog = false;
601
- // this.showDesingerDialog = false;
602
- });
603
- },
604
- initWfWinParam() {
605
- this.initCloseWfDesignWin();
606
- this.initWinUserDialog();
607
- this.initWinPositionDialog();
608
- this.initSysParamForWf();
609
- this.initWinFormTemplateDialog();
610
- this.initWinScriptDescriptionDialog();
611
- },
612
- initCloseWfDesignWin() {
613
- window.closeWfDesignWin = () => {
614
- this.showWfDialog = false;
615
- };
616
- },
617
- initWinUserDialog() {
618
- window.openAssignUserDialog = opts => {
619
- this.wfAssignMulti = opts.multi;
620
- this.wfAssignData = opts.data || [];
621
- this.wfAssignCallback = opts.callback;
622
- this.showUserDialog = true;
623
- };
624
- },
625
- confirmUser(rows) {
626
- this.wfAssignCallback(rows);
627
- },
628
- initWinPositionDialog() {
629
- window.openAssignPositionDialog = opts => {
630
- this.wfAssignPositionData = opts.data || [];
631
- this.wfAssignPositionCallback = opts.callback;
632
- this.showPositionDialog = true;
633
- };
634
- },
635
- initSysParamForWf() {
636
- let webPrefix = WEB_PREFIX;
637
- let baseApi = process.env.VUE_APP_BASE_API;
638
- window.sysParamForWf = {
639
- webPrefix,
640
- baseApi
641
- }
642
- },
643
- confirmPosition(rows) {
644
- this.wfAssignPositionCallback(rows);
645
- },
646
- initWinFormTemplateDialog() {
647
- window.openAssignFormTemplateDialog = opts => {
648
- this.wfAssignFormTemplateCallback = opts.callback;
649
- this.showFormTemplateDialog = true;
650
- };
651
- },
652
- confirmFormTemplate(rows) {
653
- this.wfAssignFormTemplateCallback(rows);
654
- },
655
- initWinScriptDescriptionDialog() {
656
- window.openScriptDescriptionDialog = opts => {
657
- this.showScriptDescriptionDialog = true;
658
- };
659
- },
660
- handleNodeClick(data, node, v) {
661
- this.handleNodeData(node)
662
- this.$forceUpdate();
663
- this.searchEvent();
664
- },
665
- // 异步树叶子节点懒加载逻辑
666
- loadNode(node, resolve) {
667
- let id = node && node.data && node.data.id ? node.data.id || '' : 0;
668
- let param = {enabled: true};
669
- let url = !id ? USER_PREFIX + '/menuKind/getAllList' : USER_PREFIX + '/menuKind/getChildren';
670
- this.$http({
671
- url: url,
672
- method: 'post',
673
- data: {
674
- parent: id,
675
- enabled: true
676
- },
677
- success: res => {
678
- let rows = res.objx || [];
679
- rows.forEach(value => {
680
- value.leaf = !value.hasChild;
681
- });
682
- if (node.level === 0) {
683
- if (rows.length > 0) {
684
- this.$nextTick(() => {
685
- let firstNode = node.childNodes[0];
686
- if (rows[0].hasChild) {
687
- firstNode.expand();
688
- }
689
- this.$refs.tree.setCurrentKey(firstNode.data);
690
- this.handleNodeClick(firstNode.data, firstNode, this)
691
- });
692
- }
693
- }
694
- resolve(rows);
695
- }
696
- });
697
- },
698
- handleNodeData(node) {
699
- this.currentFormType = node ? node.data : null;
700
- this.currentNode = node;
701
- },
702
- handleFormDesignClose() {
703
- this.formDesTabs = 'first';
704
- this.showFormScriptList = false;
705
- },
706
- openProjectTagDialog3() {
707
- this.showProjectTagDialog3 = true;
708
- },
709
- confirmProjectTagDialog3(rows) {
710
- this.checkTags = rows;
711
- },
712
- getTabNames() {
713
- return this.checkTags.map(item => item.tagName).join(",");
714
- },
715
- jsonImport() {
716
- this.$jsonImport({
717
- saveUrl: USER_PREFIX + '/form_develop/importFormTemplate',
718
- callback: () => {
719
- this.searchEvent();
720
- }
721
- });
722
- },
723
- jsonExport() {
724
- this.$jsonExport({
725
- targetRef: "table-m1",
726
- url: USER_PREFIX + "/form_develop/exportFormTemplate",
727
- abcEnabled: true
728
- })
729
- },
730
- getBdEnv() {
731
- getBdFlag({
732
- success: res => {
733
- this.isDev = res.objx == 1
734
- }
735
- });
736
- }
737
- }
738
- };
182
+ mixins: [mixin]
183
+ }
739
184
  </script>
740
185
  <style scoped lang="scss">
741
186
  ::v-deep .tab-boxOnly > .el-tabs__header {
@@ -0,0 +1,114 @@
1
+ import {selectDialogMixins} from "@base/mixins/selectDialog";
2
+
3
+ let modules = {};
4
+ modules = {
5
+ props: ['visiable', 'multi', 'rows', 'param'],
6
+ mixins: [selectDialogMixins],
7
+ created() {
8
+ this.initSetting();
9
+ },
10
+ mounted() {
11
+ this.initTableM1();
12
+ },
13
+ data() {
14
+ var that = this;
15
+ return {
16
+ showDialog: true,
17
+ falseValue: false,
18
+ selectMulti: true,
19
+ formData: {},
20
+ vxeOption: {}
21
+ };
22
+ },
23
+ methods: {
24
+ initTableM1() {
25
+ let that = this;
26
+ let tableOption = {
27
+ vue: this,
28
+ tableRef: 'table-m1',
29
+ tableName: 'user_form_template_dialog-m1',
30
+ path: USER_PREFIX + '/formTemplate/listPage',
31
+ param: () => {
32
+ return {
33
+ ...this.formData,
34
+ enabled: true,
35
+ history: false
36
+ };
37
+ },
38
+ config: {
39
+ checkboxConfig: {
40
+ checkStrictly: true,
41
+ showHeader: this.selectMulti,
42
+ trigger: 'row'
43
+ }
44
+ },
45
+ columns: [
46
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
47
+ {
48
+ title: '模板名称',
49
+ field: 'formName',
50
+ width: 150,
51
+ fixed: 'left'
52
+ },
53
+ {
54
+ title: '模板编码',
55
+ field: 'formCode',
56
+ width: 150
57
+ },
58
+ {
59
+ title: '模板版本',
60
+ field: 'formVersion',
61
+ width: 150
62
+ },
63
+ {
64
+ title: this.$t1('是否启用'),
65
+ field: 'enabled',
66
+ width: 150,
67
+ slots: {
68
+ default: ({row}) => {
69
+ if (row.enabled) {
70
+ return [
71
+ <div class="txt-status">
72
+ <span>启用</span>
73
+ </div>
74
+ ];
75
+ } else {
76
+ return [
77
+ <div class="txt-status disable">
78
+ <span>禁用</span>
79
+ </div>
80
+ ];
81
+ }
82
+ }
83
+ }
84
+ },
85
+ {
86
+ title: this.$t1('备注'),
87
+ field: 'remark',
88
+ width: 150
89
+ },
90
+ {
91
+ title: '数据表名',
92
+ field: 'ftableName',
93
+ width: 200
94
+ },
95
+ {
96
+ title: this.$t1('创建时间'),
97
+ field: 'createDate',
98
+ width: 150
99
+ },
100
+ {
101
+ width: 47,
102
+ fixed: 'right',
103
+ title: '',
104
+ sortable: false,
105
+ }
106
+ ]
107
+ };
108
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
109
+ this.vxeOption = opts;
110
+ });
111
+ }
112
+ }
113
+ };
114
+ export default modules