cloud-web-corejs 1.0.54-dev.2 → 1.0.54-dev.200

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 (255) hide show
  1. package/package.json +11 -4
  2. package/src/components/Qrcode/fileParse.vue +0 -1
  3. package/src/components/VabUpload/index.vue +2 -1
  4. package/src/components/VabUpload/mixins.js +1 -1
  5. package/src/components/VabUpload/view.vue +22 -6
  6. package/src/components/advancedSearchDialog/mixins.js +1 -1
  7. package/src/components/baseAttachment/index.vue +22 -13
  8. package/src/components/baseAttachment/mixins.js +1 -1
  9. package/src/components/excelExport/exportFieldDialog.vue +211 -0
  10. package/src/components/excelExport/index.js +6 -5
  11. package/src/components/excelExport/index.vue +8 -5
  12. package/src/components/excelExport/mixins.js +5 -1
  13. package/src/components/excelImport/index.js +13 -13
  14. package/src/components/excelImport/index.vue +9 -6
  15. package/src/components/excelImport/mixins.js +1 -1
  16. package/src/components/fileLibrary/fileObjAuthDialog.vue +125 -103
  17. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +12 -1
  18. package/src/components/fileLibrary/fileObjNotifyEdit.vue +192 -0
  19. package/src/components/fileLibrary/filterDialog.vue +383 -0
  20. package/src/components/fileLibrary/index.vue +25 -26
  21. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  22. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  23. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  24. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +346 -201
  25. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +33 -26
  26. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
  27. package/src/components/fileLibrary/mixins/indexMixins.js +85 -24
  28. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
  29. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
  30. package/src/components/fileLibrary/propertiesDialog.vue +18 -0
  31. package/src/components/fileLibrary/shareDialog.vue +1 -1
  32. package/src/components/jsonImport/mixins.js +1 -1
  33. package/src/components/onlineTalk/index.vue +327 -5
  34. package/src/components/onlineTalk/mixins.js +1 -1
  35. package/src/components/table/CellSlot.vue +1 -0
  36. package/src/components/table/index.js +12 -10
  37. package/src/components/table/tableForm.vue +99 -63
  38. package/src/components/table/tableFormMixin.js +1 -1
  39. package/src/components/table/util/index.js +328 -0
  40. package/src/components/table/vxeFilter/mixin.js +1 -1
  41. package/src/components/tempStorage/tempStorageDialog.vue +2 -2
  42. package/src/components/vb-tabs/x-tabs.vue +3 -2
  43. package/src/components/wf/content.vue +2 -0
  44. package/src/components/wf/setCandidateDialog.vue +1 -0
  45. package/src/components/wf/wf.js +1 -1
  46. package/src/components/wf/wfStartDialog.vue +1 -1
  47. package/src/components/wf/wfUtil.js +1 -1
  48. package/src/components/xform/form-designer/designer.js +1528 -1
  49. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +17 -4
  50. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +6 -1
  51. package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +2 -2
  52. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
  53. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  54. package/src/components/xform/form-designer/form-widget/dialog/preformDialog.vue +2 -2
  55. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +31 -11
  56. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -2
  57. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
  58. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  59. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
  60. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  61. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
  62. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
  63. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  64. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  65. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  66. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1390 -16
  67. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +200 -6
  68. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +6 -8
  69. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
  70. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  71. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  72. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  73. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
  74. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
  75. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
  76. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +13 -5
  77. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
  78. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +13 -3
  79. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
  80. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +3 -2
  81. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  82. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
  83. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
  84. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
  85. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +88 -8
  86. package/src/components/xform/form-designer/indexMixin.js +870 -1
  87. package/src/components/xform/form-designer/setting-panel/form-setting.vue +67 -36
  88. package/src/components/xform/form-designer/setting-panel/indexMixin.js +322 -1
  89. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +8 -3
  90. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
  91. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
  92. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
  93. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  94. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +125 -0
  95. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1046 -1042
  96. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  97. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +850 -463
  98. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
  99. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  100. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  101. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  102. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
  103. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  104. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  105. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  106. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +48 -5
  107. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  108. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
  109. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
  110. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  111. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  112. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  113. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +26 -10
  114. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
  115. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  116. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
  117. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  118. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
  119. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
  120. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +42 -4
  121. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
  122. package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +11 -11
  123. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  124. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  125. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  126. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +178 -0
  127. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +22 -18
  128. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  129. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +216 -17
  130. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +242 -27
  131. package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +220 -0
  132. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +11 -0
  133. package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
  134. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  135. package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
  136. package/src/components/xform/form-designer/widget-panel/indexMixin.js +292 -2
  137. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +707 -334
  138. package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
  139. package/src/components/xform/form-render/container-item/data-table-item.vue +37 -15
  140. package/src/components/xform/form-render/container-item/data-table-mixin.js +2169 -18
  141. package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
  142. package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
  143. package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
  144. package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
  145. package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
  146. package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
  147. package/src/components/xform/form-render/container-item/table-item.vue +4 -2
  148. package/src/components/xform/form-render/indexMixin.js +2206 -36
  149. package/src/components/xform/lang/zh-CN.js +14 -3
  150. package/src/components/xform/mixins/defaultHandle.js +120 -1
  151. package/src/components/xform/mixins/scriptHttp.js +164 -1
  152. package/src/components/xform/utils/emitter.js +4 -4
  153. package/src/components/xform/utils/util.js +1631 -1
  154. package/src/layout/components/AppMain.vue +5 -1
  155. package/src/layout/components/Sidebar/default.vue +1266 -1222
  156. package/src/layout/components/TagsView/index.vue +0 -1
  157. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  158. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  159. package/src/layout/components/extractedCode/viewDialog.vue +192 -0
  160. package/src/layout/components/notify_message/unreadDialog.vue +11 -5
  161. package/src/layout/components/watermark/index.vue +77 -0
  162. package/src/mixins/selectDialog/index.js +241 -1
  163. package/src/mixins/tableTree/index.js +1 -1
  164. package/src/router/modules/customer.js +15 -0
  165. package/src/store/config/index.js +1 -1
  166. package/src/store/modules/permission.js +1 -1
  167. package/src/store/modules/settings.js +1 -1
  168. package/src/store/modules/user.js +1 -1
  169. package/src/utils/index.js +4 -2
  170. package/src/utils/pddLog.js +103 -0
  171. package/src/utils/request.js +28 -28
  172. package/src/utils/vab.js +19 -27
  173. package/src/views/bd/setting/bd_attach_setting/edit.vue +6 -6
  174. package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
  175. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
  176. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +219 -1
  177. package/src/views/bd/setting/form_import_log/edit.vue +127 -0
  178. package/src/views/bd/setting/form_import_log/list.vue +205 -0
  179. package/src/views/bd/setting/form_script/edit.vue +2 -2
  180. package/src/views/bd/setting/form_script/edit1.vue +3 -3
  181. package/src/views/bd/setting/form_script/form_list.vue +1 -1
  182. package/src/views/bd/setting/form_script/mixins/edit.js +3 -1
  183. package/src/views/bd/setting/form_script/mixins/edit1.js +1 -1
  184. package/src/views/bd/setting/form_script/mixins/form_list.js +283 -1
  185. package/src/views/bd/setting/form_script/mixins/list.js +191 -1
  186. package/src/views/bd/setting/form_script/mixins/list1.js +360 -14
  187. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  188. package/src/views/bd/setting/form_template/edit.vue +15 -3
  189. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  190. package/src/views/bd/setting/form_template/list.vue +4 -2
  191. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  192. package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
  193. package/src/views/bd/setting/form_template/mixins/list.js +624 -22
  194. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  195. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  196. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  197. package/src/views/bd/setting/menu_kind/authDialog.vue +1 -1
  198. package/src/views/bd/setting/menu_kind/list.vue +4 -0
  199. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
  200. package/src/views/bd/setting/menu_kind/mixins/list.js +1 -1
  201. package/src/views/bd/setting/table_model/edit.vue +834 -426
  202. package/src/views/bd/setting/table_model/list.vue +4 -2
  203. package/src/views/bd/setting/table_model/mixins/dialog.js +72 -1
  204. package/src/views/bd/setting/table_model/mixins/edit.js +1117 -13
  205. package/src/views/bd/setting/table_model/mixins/list.js +378 -14
  206. package/src/views/user/area/dialog.vue +21 -9
  207. package/src/views/user/bill_setting/edit.vue +1 -1
  208. package/src/views/user/bill_setting/list.vue +1 -1
  209. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  210. package/src/views/user/common_attribute/list.vue +1 -1
  211. package/src/views/user/common_script/edit.vue +1 -1
  212. package/src/views/user/common_script/list.vue +1 -1
  213. package/src/views/user/company_info/dialog.vue +164 -154
  214. package/src/views/user/company_info/edit.vue +9 -1
  215. package/src/views/user/extend_datasource/dialog.vue +1 -0
  216. package/src/views/user/extend_datasource/edit.vue +3 -0
  217. package/src/views/user/extend_datasource/list.vue +2 -1
  218. package/src/views/user/file_type/edit.vue +30 -1
  219. package/src/views/user/file_type/list.vue +28 -0
  220. package/src/views/user/form/vform/designer.vue +772 -749
  221. package/src/views/user/form/view/list.vue +27 -9
  222. package/src/views/user/groups/edit.vue +2 -0
  223. package/src/views/user/groups/list.vue +1 -0
  224. package/src/views/user/home/default.vue +1022 -979
  225. package/src/views/user/home/dev.vue +29 -0
  226. package/src/views/user/home/index.vue +20 -8
  227. package/src/views/user/login/default.vue +35 -4
  228. package/src/views/user/login/indexMixin.js +117 -3
  229. package/src/views/user/notify_message/dialog.vue +1 -1
  230. package/src/views/user/notify_template/edit.vue +188 -187
  231. package/src/views/user/notify_template/edit2.vue +176 -0
  232. package/src/views/user/notify_template/list.vue +4 -1
  233. package/src/views/user/notify_template/list2.vue +190 -0
  234. package/src/views/user/outLink/form_view.vue +39 -12
  235. package/src/views/user/outLink/index.vue +17 -0
  236. package/src/views/user/outLink/view.vue +39 -13
  237. package/src/views/user/position/list.vue +4 -4
  238. package/src/views/user/project_tag/list.vue +9 -4
  239. package/src/views/user/push_setting/list.vue +2 -2
  240. package/src/views/user/role/dialog.vue +1 -1
  241. package/src/views/user/role/list.vue +4 -4
  242. package/src/views/user/sale_org/dialog.vue +1 -1
  243. package/src/views/user/sale_org/list.vue +4 -1
  244. package/src/views/user/system_notice/infoDialog.vue +25 -1
  245. package/src/views/user/user/dialog.vue +1 -1
  246. package/src/views/user/user/edit.vue +39 -19
  247. package/src/views/user/user/form_edit.vue +117 -49
  248. package/src/views/user/user/form_info.vue +210 -0
  249. package/src/views/user/user/form_list.vue +1 -0
  250. package/src/views/user/user/list.vue +563 -563
  251. package/src/views/user/wf/wf_manage/list.vue +1 -1
  252. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  253. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
  254. package/src/views/user/wf/wf_obj_config/list.vue +118 -4
  255. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
@@ -370,7 +370,7 @@ export default {
370
370
  dataId: wfDataId
371
371
  };
372
372
  let url = '/user/form/vform/render.vue';
373
- this.wfContent = require('@/views' + url).default;
373
+ this.wfContent = require('@base/views' + url).default;
374
374
  } else {
375
375
  this.param = {
376
376
  _dataId: wfDataId
@@ -87,7 +87,7 @@ export default {
87
87
  dataId: wfDataId
88
88
  });
89
89
  let url = '/user/form/vform/render.vue';
90
- this.wfContent = require('@/views' + url).default;
90
+ this.wfContent = require('@base/views' + url).default;
91
91
  } else {
92
92
  this.param = Object.assign(param, {
93
93
  _dataId: wfDataId
@@ -0,0 +1,109 @@
1
+ <template>
2
+ <el-dialog
3
+ :title="$t1('导入流程模板XML')"
4
+ :append-to-body="falseValue"
5
+ :modal-append-to-body="falseValue"
6
+ :close-on-click-modal="falseValue"
7
+ :visible.sync="showImportDialog"
8
+ :modal="falseValue"
9
+ custom-class="dialog-style"
10
+ width="501px"
11
+ v-el-drag-dialog
12
+ >
13
+ <div class="import-box">
14
+ <!-- <div class="tips">{{ $t2('请下载文件模板,填写信息后再上传文件', 'components.excelImport.tip') }}</div>-->
15
+ <el-upload v-if="!fileRaw" ref="uploadBtn" action="" class="upload-file" :auto-upload="false"
16
+ :on-change="fileChange" accept=".xml">
17
+ <div class="el-upload-dragger">
18
+ <i class="el-icon-upload"></i>
19
+ <div class="el-upload__text"><em>{{ $t2('点击上传', 'components.excelImport.uploadBUtton') }}</em></div>
20
+ </div>
21
+ </el-upload>
22
+ <div class="upload-finish" v-if="fileRaw">
23
+ <img :src="require('@/resources' + '/images/ico-txt.svg')" class="ico"/>
24
+ <p class="name">{{ fileRaw.name }}</p>
25
+ <!-- <p>2022-1-17</p> -->
26
+ <el-tooltip :enterable="false" class="item" effect="dark"
27
+ :content="$t2('关闭', 'components.excelImport.closeBUtton')" placement="bottom">
28
+ <i
29
+ class="el-icon-error js-close"
30
+ @click="
31
+ fileRaw = false;
32
+ $refs.uploadBtn.clearFiles();
33
+ "
34
+ ></i>
35
+ </el-tooltip>
36
+ </div>
37
+ </div>
38
+ <span slot="footer" class="dialog-footer">
39
+ <el-button type="primary" plain class="button-sty" @click="dialogClose1">
40
+ <i class="el-icon-close el-icon"></i>
41
+ {{ $t2('取 消', 'system.button.cancel2') }}
42
+ </el-button>
43
+ <el-button type="primary" @click="dialogPrimary1" class="button-sty">
44
+ <i class="el-icon-check el-icon"></i>
45
+ {{ $t2('确 定', 'system.button.confirm2') }}
46
+ </el-button>
47
+ </span>
48
+ </el-dialog>
49
+ </template>
50
+
51
+ <script>
52
+
53
+ export default {
54
+ name: 'excelImport',
55
+ data() {
56
+ return {
57
+ excTime: 0,
58
+ showImportDialog: true,
59
+ showImportDialog2: false,
60
+ falseValue: false,
61
+ fileRaw: false,
62
+ isEnd: false,
63
+ currentIndex: 0,
64
+ excelTemplate: "",
65
+ prefix: '/user',
66
+ dataSize: 0,
67
+ totalSuccessNum: 0,
68
+ totalErrorNum: 0,
69
+ percentageNum: 0,
70
+ successRows: [],
71
+ failRows: [],
72
+ oriCols: [],
73
+ showImportResult: false,
74
+ resultType: '',
75
+ option: {},
76
+ showContent: false,
77
+ resOption: {},
78
+ abc: "A"
79
+ }
80
+ },
81
+
82
+ methods: {
83
+ fileChange(file) {
84
+ if (file) {
85
+ this.fileRaw = file.raw;
86
+ } else {
87
+ this.fileRaw = false;
88
+ }
89
+ },
90
+ dialogClose1() {
91
+ this.$emit("update:visiable", false);
92
+ this.showContent = false;
93
+ },
94
+ async dialogPrimary1() {
95
+ let that = this;
96
+ if (!(this.fileRaw)) {
97
+ this.$baseAlert(this.$t2('请上传附件', 'components.excelImport.warmMsg1'));
98
+ return false;
99
+ }
100
+ this.showImportDialog = false;
101
+
102
+ this.dialogClose1();
103
+ this.$emit("confirm",that.fileRaw)
104
+
105
+ },
106
+
107
+ }
108
+ };
109
+ </script>
@@ -110,6 +110,11 @@
110
110
  <positionDialog v-if="showPositionDialog" :visiable.sync="showPositionDialog" @confirm="confirmPosition"/>
111
111
  <scriptDescriptionDialog path="static/readme/Wf.txt" v-if="showScriptDescriptionDialog"
112
112
  :visiable.sync="showScriptDescriptionDialog"></scriptDescriptionDialog>
113
+ <wfBizDataSettingDialog v-if="showWfBizDataSettingDialog" :visiable.sync="showWfBizDataSettingDialog"
114
+ @confirm="confirmWfBizDataSettingDialog"
115
+ :objConfigItem="objConfigItem" :serviceId="currentRow.serviceId"></wfBizDataSettingDialog>
116
+
117
+ <importItemDialog v-if="showImportItemDialog" :visiable.sync="showImportItemDialog" @confirm="confirmImportItemDialog"/>
113
118
  </div>
114
119
  </template>
115
120
  <script>
@@ -123,6 +128,11 @@ import positionDialog from '../../../../views/user/position/dialog.vue';
123
128
  import wfParamEdit from '../../../../views/user/wf/wf_param/edit'
124
129
  import scriptDescriptionDialog from '@base/components/scriptDescription/dialog'
125
130
  import wfDiyAttributeEdit from '../../../../views/user/wf/wf_diy_attribute/edit'
131
+ import wfBizDataSettingDialog from "./wfBizDataSettingDialog";
132
+
133
+ import importItemDialog from "./importItemDialog.vue";
134
+
135
+
126
136
 
127
137
  export default {
128
138
  name: 'wf_obj_config:list',
@@ -133,7 +143,9 @@ export default {
133
143
  userDialog,
134
144
  positionDialog,
135
145
  scriptDescriptionDialog,
136
- wfDiyAttributeEdit
146
+ wfDiyAttributeEdit,
147
+ wfBizDataSettingDialog,
148
+ importItemDialog
137
149
  },
138
150
  created() {
139
151
  },
@@ -180,7 +192,11 @@ export default {
180
192
  wfAssignFormTemplateCallback: null,
181
193
 
182
194
  showScriptDescriptionDialog: false,
183
- showWfDiyAttributeEdit: false
195
+ showWfDiyAttributeEdit: false,
196
+
197
+ objConfigItem: null,
198
+ showWfBizDataSettingDialog: false,
199
+ showImportItemDialog:false
184
200
  };
185
201
  },
186
202
  watch: {
@@ -458,7 +474,7 @@ export default {
458
474
  width: 200
459
475
  },
460
476
  {
461
- width: 150,
477
+ width: 200,
462
478
  fixed: 'right',
463
479
  sortable: false,
464
480
  title: '',
@@ -488,7 +504,31 @@ export default {
488
504
  popper-class="tooltip-skin">
489
505
  <i class="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
490
506
  </el-tooltip>
491
- </a>
507
+ </a>,
508
+ <a
509
+ href="javascript:void(0);"
510
+ class="a-link"
511
+ onclick={() => {
512
+ this.exportWfXml(row);
513
+ }}
514
+ >
515
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('导出')} placement="top"
516
+ popper-class="tooltip-skin">
517
+ <i class="el-icon-upload2"/>
518
+ </el-tooltip>
519
+ </a>,
520
+ <a
521
+ href="javascript:void(0);"
522
+ class="a-link"
523
+ onclick={() => {
524
+ this.importWfXml(row);
525
+ }}
526
+ >
527
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('导入')} placement="top"
528
+ popper-class="tooltip-skin">
529
+ <i class="el-icon-download"/>
530
+ </el-tooltip>
531
+ </a>,
492
532
  ];
493
533
  }
494
534
  }
@@ -608,6 +648,80 @@ export default {
608
648
  this.showScriptDescriptionDialog = true;
609
649
  };
610
650
  },
651
+ openWfBizDataSettingDialog(row) {
652
+ this.objConfigItem = row;
653
+ this.showWfBizDataSettingDialog = true
654
+ },
655
+ confirmWfBizDataSettingDialog(rows) {
656
+
657
+ },
658
+ saveAs(blob, filename) {
659
+ if (window.navigator.msSaveOrOpenBlob) {
660
+ navigator.msSaveBlob(blob, filename);
661
+ } else {
662
+ var link = document.createElement("a");
663
+ var body = document.querySelector("body");
664
+
665
+ link.href = window.URL.createObjectURL(blob);
666
+ link.download = filename;
667
+
668
+ // fix Firefox
669
+ link.style.display = "none";
670
+ body.appendChild(link);
671
+
672
+ link.click();
673
+ body.removeChild(link);
674
+
675
+ window.URL.revokeObjectURL(link.href);
676
+ }
677
+ },
678
+ exportWfXml(row){
679
+ this.$baseConfirm(this.$t1('您确定要导出吗?')).then(() => {
680
+ this.$http({
681
+ url: '/' + this.currentRow.serviceId + '/wf_obj_config_item/exportModelXml',
682
+ method: `post`,
683
+ data: {
684
+ stringOne:row.modelId
685
+ },
686
+ isLoading: true,
687
+ responseType: "blob",
688
+ resultType: "other",
689
+ callback: res => {
690
+ let fileName = row.modelName + ".bpmn20.xml"
691
+ this.saveAs(res,fileName)
692
+ }
693
+ });
694
+ });
695
+ },
696
+ importWfXml(row){
697
+ this.importXmlRow = row;
698
+ this.showImportItemDialog = true;
699
+ },
700
+ confirmImportItemDialog(file){
701
+ var form = new FormData();
702
+ // 文件对象
703
+ form.append("file", file);
704
+ form.append("modelId", this.importXmlRow.modelId);
705
+ this.$http({
706
+ url: '/' + this.currentRow.serviceId + '/wf_obj_config_item/importProcess',
707
+ method: `post`,
708
+ headers: {
709
+ 'Content-Type': 'multipart/form-data'
710
+ },
711
+ data: form,
712
+ isLoading: true,
713
+ success: res => {
714
+ this.$message({
715
+ message: res.content,
716
+ type: 'success',
717
+ duration: 2000,
718
+ onClose: t => {
719
+
720
+ }
721
+ });
722
+ }
723
+ });
724
+ }
611
725
  }
612
726
  };
613
727
  </script>
@@ -0,0 +1,292 @@
1
+ <template>
2
+ <div>
3
+ <el-dialog
4
+ :title="$t1('过程更改业务数据')"
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="addItem">
30
+ {{ $t1('新增') }}
31
+ </vxe-button>
32
+ </div>
33
+ <div class="fl screen-breadcrumb" style="margin-left: 30px;">
34
+ <span style="font-size: 12px;">{{ $t1('流程模板名称') }}:</span>
35
+ {{ objConfigItem.modelName }}
36
+ </div>
37
+ </div>
38
+ </template>
39
+ <template #user="{row,rowIndex}">
40
+ <el-input
41
+ class="search-input"
42
+ v-model="row.nickName"
43
+ clearable
44
+ @clear="
45
+ row.userId = null;
46
+ "
47
+ v-if="!row._isParent"
48
+ v-el-readonly
49
+ >
50
+ <i slot="suffix" class="el-input__icon el-icon-search" @click="openUserRowDialog(row,rowIndex)"></i>
51
+ </el-input>
52
+ <template v-else>{{ row.nickName }}</template>
53
+ </template>
54
+ <template #switch="{row,column,rowIndex}">
55
+ <el-switch v-model="row[column.field]" :key="column.field+rowIndex" :active-value="1"
56
+ :inactive-value="0" :disabled="column.params.disabled"></el-switch>
57
+ </template>
58
+ </vxe-grid>
59
+ </div>
60
+ </div>
61
+ <span slot="footer" class="dialog-footer">
62
+ <el-button type="primary" plain class="button-sty" @click="dialogClose">
63
+ <i class="el-icon-close el-icon"></i>
64
+ {{ $t1('取 消') }}
65
+ </el-button>
66
+ <el-button type="primary" @click="saveData" class="button-sty">
67
+ <i class="el-icon-check el-icon"></i>
68
+ {{ $t1('确 定') }}
69
+ </el-button>
70
+ </span>
71
+ </el-dialog>
72
+ </div>
73
+ </template>
74
+
75
+ <script>
76
+
77
+ export default {
78
+ props: {
79
+ objConfigItem: Object,
80
+ serviceId: String
81
+ },
82
+ components: {},
83
+ computed: {
84
+ current_prefix() {
85
+ return '/' + this.serviceId;
86
+ }
87
+ },
88
+ async mounted() {
89
+ this.initTableList();
90
+ },
91
+ data() {
92
+ let that = this;
93
+ return {
94
+ showDialog: true,
95
+ activeName: 'second',
96
+ value10: '',
97
+ dataId: '',
98
+ showEdit: false,
99
+ formData: {
100
+ nickName: null,
101
+ },
102
+ vxeOption: {},
103
+ showUserDialog: false,
104
+ showPositionDialog: false,
105
+ showSaleOrgDialog: false,
106
+ operateIndex: 0,
107
+ showViewDialog: false,
108
+
109
+ tableData: [],
110
+ showUserRowDialog: false,
111
+ showUserAddDialog: false,
112
+ currentRow: null,
113
+ isDev: true
114
+
115
+ };
116
+ },
117
+ methods: {
118
+ searchEvent() {
119
+ this.$refs['table-m1'].commitProxy('reload');
120
+ },
121
+ resetEvent() {
122
+ this.formData = {};
123
+ this.$refs['table-m1'].commitProxy('reload');
124
+ },
125
+ initTableList() {
126
+ let that = this;
127
+ let tableOption = {
128
+ vue: this,
129
+ tableRef: 'table-m1',
130
+ tableName: 'user_wf-objConfig-wfBizDataSetting-m1',
131
+ config: {
132
+ height: "auto"
133
+ },
134
+ columns: [
135
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
136
+ {
137
+ title: this.$t1('流程动作'),
138
+ field: 'action',
139
+ width: 150,
140
+ slots: {
141
+ default: ({row}) => {
142
+ return [
143
+ <el-select v-model={row.action} clearable>
144
+ <el-option label="流程启动" value="start"></el-option>
145
+ <el-option label="流程中断" value="interrupt"></el-option>
146
+ <el-option label="流程完成" value="end"></el-option>
147
+ </el-select>
148
+ ];
149
+ }
150
+ }
151
+ },
152
+ {
153
+ title: this.$t1('数据库表名'),
154
+ field: 'tableName',
155
+ width: 250,
156
+ slots: {
157
+ default: ({row}) => {
158
+ return [
159
+ <el-input v-model={row.tableName} clearable></el-input>
160
+ ];
161
+ }
162
+ }
163
+ },
164
+ {
165
+ title: this.$t1('数据库字段名'),
166
+ field: 'tableField',
167
+ width: 250,
168
+ slots: {
169
+ default: ({row}) => {
170
+ return [
171
+ <el-input v-model={row.tableField} clearable></el-input>
172
+ ];
173
+ }
174
+ }
175
+ },
176
+ {
177
+ title: this.$t1('设置的值'),
178
+ field: 'toValue',
179
+ width: 250,
180
+ slots: {
181
+ default: ({row}) => {
182
+ return [
183
+ <el-input v-model={row.toValue} clearable></el-input>
184
+ ];
185
+ }
186
+ }
187
+ },
188
+ {
189
+ width: 100,
190
+ fixed: 'right',
191
+ title: '',
192
+ sortable: false,
193
+ slots: {
194
+ default: ({row, rowIndex, $table}) => {
195
+ return [
196
+ <a
197
+ href="javascript:void(0);"
198
+ class="a-link"
199
+ onClick={() => {
200
+ this.tableData.splice(rowIndex, 1)
201
+ }}
202
+ >
203
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('删除')} placement="top"
204
+ popper-class="tooltip-skin">
205
+ <i class="el-icon-delete"/>
206
+ </el-tooltip>
207
+ </a>
208
+ ]
209
+ }
210
+ }
211
+ }
212
+ ]
213
+ };
214
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
215
+ this.vxeOption = opts;
216
+ });
217
+ this.initData();
218
+ },
219
+ initData() {
220
+ this.$http({
221
+ // aes: true,
222
+ url: this.current_prefix + '/wf_biz_data_setting/list',
223
+ method: `post`,
224
+ data: {
225
+ objConfigItemId: this.objConfigItem.id,
226
+ modelId: this.objConfigItem.modelId,
227
+ },
228
+ isLoading: true,
229
+ modalStrictly: true,
230
+ success: res1 => {
231
+ let tableData = res1.objx || [];
232
+ this.tableData = tableData;
233
+
234
+ }
235
+ });
236
+ },
237
+ dialogClose() {
238
+ this.showDialog = false
239
+ this.$emit('update:visiable', false)
240
+ },
241
+ dialogConfirm() {
242
+ this.$emit('confirm');
243
+ this.$emit('update:visiable', false);
244
+ },
245
+ addItem() {
246
+ let row = this.createRow();
247
+ this.tableData.push(row)
248
+ },
249
+ saveData() {
250
+ this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
251
+ var url = this.current_prefix + `/wf_biz_data_setting/saveUpdates`;
252
+ this.$http({
253
+ aes: true,
254
+ url: url,
255
+ method: `post`,
256
+ data: {
257
+ objConfigItemId: this.objConfigItem.id,
258
+ modelId: this.objConfigItem.modelId,
259
+ wfBizDataSettingDTOs: this.tableData
260
+ },
261
+ isLoading: true,
262
+ success: res => {
263
+ this.$message({
264
+ message: res.content,
265
+ type: 'success',
266
+ duration: 500,
267
+ onClose: t => {
268
+ this.dialogConfirm()
269
+ }
270
+ });
271
+ }
272
+ });
273
+ });
274
+ },
275
+ createRow() {
276
+ let row = {
277
+ objConfigItemId: this.objConfigItem.id,
278
+ modelId: this.objConfigItem.modelId,
279
+ action: 'start',
280
+ tableName: null,
281
+ tableField: null,
282
+ toValue: null
283
+ }
284
+ return row;
285
+ }
286
+ }
287
+ }
288
+ </script>
289
+
290
+ <style scoped>
291
+
292
+ </style>