cloud-web-corejs 1.0.54-dev.23 → 1.0.54-dev.230

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 (273) hide show
  1. package/package.json +6 -3
  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 +16 -6
  10. package/src/components/excelExport/index.js +2 -1
  11. package/src/components/excelExport/index.vue +8 -6
  12. package/src/components/excelExport/mixins.js +3 -2
  13. package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
  14. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +7 -1
  15. package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
  16. package/src/components/fileLibrary/filterDialog.vue +383 -0
  17. package/src/components/fileLibrary/index.vue +23 -24
  18. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  19. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  20. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  21. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +337 -207
  22. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +33 -26
  23. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
  24. package/src/components/fileLibrary/mixins/indexMixins.js +77 -27
  25. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
  26. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
  27. package/src/components/fileLibrary/propertiesDialog.vue +18 -0
  28. package/src/components/fileLibrary/shareDialog.vue +1 -1
  29. package/src/components/formOplog/mixins.js +77 -1
  30. package/src/components/jsonImport/index.js +1 -1
  31. package/src/components/jsonImport/mixins.js +1 -1
  32. package/src/components/onlineTalk/index.vue +327 -5
  33. package/src/components/onlineTalk/mixins.js +1 -1
  34. package/src/components/table/CellSlot.vue +1 -0
  35. package/src/components/table/index.js +12 -10
  36. package/src/components/table/tableForm.vue +99 -63
  37. package/src/components/table/tableFormMixin.js +1 -1
  38. package/src/components/table/util/index.js +328 -0
  39. package/src/components/table/vxeFilter/mixin.js +1 -1
  40. package/src/components/vb-tabs/x-tabs.vue +3 -2
  41. package/src/components/wf/content.vue +2 -0
  42. package/src/components/wf/setCandidateDialog.vue +1 -0
  43. package/src/components/wf/wf.js +1774 -1
  44. package/src/components/wf/wfStartDialog.vue +1 -1
  45. package/src/components/wf/wfUtil.js +1 -1
  46. package/src/components/xform/form-designer/designer.js +1 -1
  47. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +2 -1
  48. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
  49. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
  50. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
  51. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  52. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +26 -7
  53. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
  54. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  55. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
  56. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  57. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
  58. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
  59. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  60. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  61. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  62. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +21 -16
  63. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +200 -6
  64. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +6 -8
  65. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
  66. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  67. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  68. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  69. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
  70. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
  71. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
  72. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
  73. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +13 -5
  74. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
  75. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +13 -3
  76. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
  77. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +3 -2
  78. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  79. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
  80. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
  81. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
  82. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +88 -8
  83. package/src/components/xform/form-designer/indexMixin.js +811 -1
  84. package/src/components/xform/form-designer/setting-panel/form-setting.vue +312 -56
  85. package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
  86. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  87. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +8 -3
  88. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
  89. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
  90. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
  91. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  92. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +126 -0
  93. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1077 -1042
  94. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  95. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1043 -496
  96. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
  97. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
  98. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  99. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  100. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  101. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
  102. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  103. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  104. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  105. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +48 -5
  106. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  107. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
  108. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
  109. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  110. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  111. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  112. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +26 -10
  113. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
  114. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  115. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
  116. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  117. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
  118. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
  119. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +46 -4
  120. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
  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 +19 -14
  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 +318 -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 +256 -29
  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 +3 -2
  137. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +748 -355
  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 +45 -15
  140. package/src/components/xform/form-render/container-item/data-table-mixin.js +2374 -18
  141. package/src/components/xform/form-render/container-item/data-table-mixin2.js +2169 -0
  142. package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
  143. package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
  144. package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
  145. package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
  146. package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
  147. package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
  148. package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
  149. package/src/components/xform/form-render/container-item/table-item.vue +4 -2
  150. package/src/components/xform/form-render/indexMixin.js +2378 -3
  151. package/src/components/xform/lang/zh-CN.js +14 -3
  152. package/src/components/xform/mixins/defaultHandle.js +1 -1
  153. package/src/components/xform/mixins/scriptHttp.js +184 -1
  154. package/src/components/xform/utils/emitter.js +4 -4
  155. package/src/components/xform/utils/format.js +21 -30
  156. package/src/components/xform/utils/formula-util.js +669 -0
  157. package/src/components/xform/utils/util.js +1 -1
  158. package/src/layout/components/AppMain.vue +5 -1
  159. package/src/layout/components/Sidebar/default.vue +50 -6
  160. package/src/layout/components/TagsView/index.vue +0 -1
  161. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  162. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  163. package/src/layout/components/extractedCode/viewDialog.vue +192 -0
  164. package/src/layout/components/watermark/index.vue +83 -0
  165. package/src/layout/defaultLayout.vue +1 -1
  166. package/src/mixins/selectDialog/index.js +1 -1
  167. package/src/mixins/tableTree/index.js +1 -1
  168. package/src/router/modules/customer.js +15 -0
  169. package/src/store/config/index.js +667 -1
  170. package/src/store/modules/permission.js +1 -1
  171. package/src/store/modules/settings.js +1 -1
  172. package/src/store/modules/user.js +1 -1
  173. package/src/utils/index.js +4 -2
  174. package/src/utils/pddLog.js +103 -0
  175. package/src/utils/request.js +28 -28
  176. package/src/utils/vab.js +19 -27
  177. package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
  178. package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
  179. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
  180. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
  181. package/src/views/bd/setting/config_manage/list.vue +47 -0
  182. package/src/views/bd/setting/form_import_log/edit.vue +127 -0
  183. package/src/views/bd/setting/form_import_log/list.vue +205 -0
  184. package/src/views/bd/setting/form_script/edit.vue +9 -0
  185. package/src/views/bd/setting/form_script/edit1.vue +36 -3
  186. package/src/views/bd/setting/form_script/form_list.vue +1 -1
  187. package/src/views/bd/setting/form_script/list1.vue +4 -4
  188. package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
  189. package/src/views/bd/setting/form_script/mixins/edit.js +195 -1
  190. package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
  191. package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
  192. package/src/views/bd/setting/form_script/mixins/list.js +236 -1
  193. package/src/views/bd/setting/form_script/mixins/list1.js +422 -14
  194. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +186 -0
  195. package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
  196. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  197. package/src/views/bd/setting/form_template/edit.vue +22 -1
  198. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  199. package/src/views/bd/setting/form_template/list.vue +4 -4
  200. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  201. package/src/views/bd/setting/form_template/mixins/edit.js +199 -1
  202. package/src/views/bd/setting/form_template/mixins/list.js +661 -22
  203. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +185 -0
  204. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  205. package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
  206. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  207. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  208. package/src/views/bd/setting/menu_kind/list.vue +4 -0
  209. package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
  210. package/src/views/bd/setting/table_model/edit.vue +862 -426
  211. package/src/views/bd/setting/table_model/list.vue +4 -4
  212. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  213. package/src/views/bd/setting/table_model/mixins/edit.js +1130 -13
  214. package/src/views/bd/setting/table_model/mixins/list.js +439 -14
  215. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +193 -0
  216. package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
  217. package/src/views/user/area/dialog.vue +21 -9
  218. package/src/views/user/bill_setting/edit.vue +1 -1
  219. package/src/views/user/bill_setting/list.vue +1 -1
  220. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  221. package/src/views/user/common_attribute/list.vue +1 -1
  222. package/src/views/user/common_script/edit.vue +1 -1
  223. package/src/views/user/common_script/list.vue +1 -1
  224. package/src/views/user/company_info/dialog.vue +164 -154
  225. package/src/views/user/company_info/edit.vue +1 -1
  226. package/src/views/user/extend_datasource/dialog.vue +1 -0
  227. package/src/views/user/extend_datasource/edit.vue +3 -0
  228. package/src/views/user/extend_datasource/list.vue +2 -1
  229. package/src/views/user/fieldTranslation/editDialog.vue +7 -7
  230. package/src/views/user/fieldTranslation/list.vue +32 -32
  231. package/src/views/user/file_type/edit.vue +30 -1
  232. package/src/views/user/file_type/list.vue +28 -0
  233. package/src/views/user/form/vform/designer.vue +775 -749
  234. package/src/views/user/form/vform/out_render.vue +1 -1
  235. package/src/views/user/form/vform/render.vue +3 -3
  236. package/src/views/user/form/view/list.vue +30 -12
  237. package/src/views/user/groups/edit.vue +2 -0
  238. package/src/views/user/groups/list.vue +1 -0
  239. package/src/views/user/home/default.vue +1022 -979
  240. package/src/views/user/home/dev.vue +29 -0
  241. package/src/views/user/home/index.vue +16 -6
  242. package/src/views/user/login/default.vue +36 -5
  243. package/src/views/user/login/indexMixin.js +117 -3
  244. package/src/views/user/notify_message/dialog.vue +1 -1
  245. package/src/views/user/notify_template/edit.vue +188 -187
  246. package/src/views/user/notify_template/edit2.vue +176 -0
  247. package/src/views/user/notify_template/list.vue +4 -1
  248. package/src/views/user/notify_template/list2.vue +190 -0
  249. package/src/views/user/outLink/form_view.vue +39 -12
  250. package/src/views/user/outLink/index.vue +17 -0
  251. package/src/views/user/outLink/view.vue +39 -13
  252. package/src/views/user/position/dialog.vue +1 -1
  253. package/src/views/user/position/list.vue +4 -4
  254. package/src/views/user/project_tag/edit.vue +2 -2
  255. package/src/views/user/project_tag/list.vue +9 -4
  256. package/src/views/user/push_setting/list.vue +2 -2
  257. package/src/views/user/request_setting/edit.vue +252 -0
  258. package/src/views/user/request_setting/list.vue +249 -0
  259. package/src/views/user/role/dialog.vue +1 -1
  260. package/src/views/user/role/list.vue +4 -4
  261. package/src/views/user/sale_org/dialog.vue +1 -1
  262. package/src/views/user/sale_org/list.vue +4 -1
  263. package/src/views/user/user/dialog.vue +2 -2
  264. package/src/views/user/user/edit.vue +39 -19
  265. package/src/views/user/user/form_edit.vue +63 -2
  266. package/src/views/user/user/form_info.vue +210 -0
  267. package/src/views/user/user/form_list.vue +1 -0
  268. package/src/views/user/user/list.vue +4 -11
  269. package/src/views/user/wf/wf_manage/list.vue +1 -1
  270. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  271. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
  272. package/src/views/user/wf/wf_obj_config/list.vue +97 -10
  273. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
@@ -105,14 +105,16 @@
105
105
  <iframe :src="wfUrl" :style="'width:100%;height:' + ($root.$el.clientHeight - 30 - 12) + 'px'"></iframe>
106
106
  </el-dialog>
107
107
 
108
- <userDialog v-if="showUserDialog" :visiable.sync="showUserDialog" @confirm="confirmUser"
108
+ <userDialog v-if="showUserDialog" :visiable.sync="showUserDialog" @confirm="confirmUser" :rows="wfAssignData" labelKey="loginAccount"
109
109
  :multi.sync="wfAssignMulti"/>
110
- <positionDialog v-if="showPositionDialog" :visiable.sync="showPositionDialog" @confirm="confirmPosition"/>
110
+ <positionDialog v-if="showPositionDialog" :visiable.sync="showPositionDialog" :rows="wfAssignPositionData" @confirm="confirmPosition"/>
111
111
  <scriptDescriptionDialog path="static/readme/Wf.txt" v-if="showScriptDescriptionDialog"
112
112
  :visiable.sync="showScriptDescriptionDialog"></scriptDescriptionDialog>
113
113
  <wfBizDataSettingDialog v-if="showWfBizDataSettingDialog" :visiable.sync="showWfBizDataSettingDialog"
114
114
  @confirm="confirmWfBizDataSettingDialog"
115
115
  :objConfigItem="objConfigItem" :serviceId="currentRow.serviceId"></wfBizDataSettingDialog>
116
+
117
+ <importItemDialog v-if="showImportItemDialog" :visiable.sync="showImportItemDialog" @confirm="confirmImportItemDialog"/>
116
118
  </div>
117
119
  </template>
118
120
  <script>
@@ -128,6 +130,9 @@ import scriptDescriptionDialog from '@base/components/scriptDescription/dialog'
128
130
  import wfDiyAttributeEdit from '../../../../views/user/wf/wf_diy_attribute/edit'
129
131
  import wfBizDataSettingDialog from "./wfBizDataSettingDialog";
130
132
 
133
+ import importItemDialog from "./importItemDialog.vue";
134
+
135
+
131
136
 
132
137
  export default {
133
138
  name: 'wf_obj_config:list',
@@ -139,7 +144,8 @@ export default {
139
144
  positionDialog,
140
145
  scriptDescriptionDialog,
141
146
  wfDiyAttributeEdit,
142
- wfBizDataSettingDialog
147
+ wfBizDataSettingDialog,
148
+ importItemDialog
143
149
  },
144
150
  created() {
145
151
  },
@@ -189,7 +195,8 @@ export default {
189
195
  showWfDiyAttributeEdit: false,
190
196
 
191
197
  objConfigItem: null,
192
- showWfBizDataSettingDialog: false
198
+ showWfBizDataSettingDialog: false,
199
+ showImportItemDialog:false
193
200
  };
194
201
  },
195
202
  watch: {
@@ -467,7 +474,7 @@ export default {
467
474
  width: 200
468
475
  },
469
476
  {
470
- width: 150,
477
+ width: 200,
471
478
  fixed: 'right',
472
479
  sortable: false,
473
480
  title: '',
@@ -500,16 +507,28 @@ export default {
500
507
  </a>,
501
508
  <a
502
509
  href="javascript:void(0);"
503
- onClick={() => {
504
- this.openWfBizDataSettingDialog(row, this.currentRow.serviceId);
510
+ class="a-link"
511
+ onclick={() => {
512
+ this.exportWfXml(row);
505
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);"
506
522
  class="a-link"
523
+ onclick={() => {
524
+ this.importWfXml(row);
525
+ }}
507
526
  >
508
- <el-tooltip enterable={false} effect="dark" content={this.$t1('配置流程过程更改业务数据')} placement="top"
527
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('导入')} placement="top"
509
528
  popper-class="tooltip-skin">
510
- <i class="el-icon-setting"/>
529
+ <i class="el-icon-download"/>
511
530
  </el-tooltip>
512
- </a>
531
+ </a>,
513
532
  ];
514
533
  }
515
534
  }
@@ -571,6 +590,7 @@ export default {
571
590
  },
572
591
  initWinUserDialog() {
573
592
  window.openAssignUserDialog = opts => {
593
+ debugger
574
594
  this.wfAssignMulti = opts.multi;
575
595
  this.wfAssignData = opts.data || [];
576
596
  this.wfAssignCallback = opts.callback;
@@ -635,6 +655,73 @@ export default {
635
655
  },
636
656
  confirmWfBizDataSettingDialog(rows) {
637
657
 
658
+ },
659
+ saveAs(blob, filename) {
660
+ if (window.navigator.msSaveOrOpenBlob) {
661
+ navigator.msSaveBlob(blob, filename);
662
+ } else {
663
+ var link = document.createElement("a");
664
+ var body = document.querySelector("body");
665
+
666
+ link.href = window.URL.createObjectURL(blob);
667
+ link.download = filename;
668
+
669
+ // fix Firefox
670
+ link.style.display = "none";
671
+ body.appendChild(link);
672
+
673
+ link.click();
674
+ body.removeChild(link);
675
+
676
+ window.URL.revokeObjectURL(link.href);
677
+ }
678
+ },
679
+ exportWfXml(row){
680
+ this.$baseConfirm(this.$t1('您确定要导出吗?')).then(() => {
681
+ this.$http({
682
+ url: '/' + this.currentRow.serviceId + '/wf_obj_config_item/exportModelXml',
683
+ method: `post`,
684
+ data: {
685
+ stringOne:row.modelId
686
+ },
687
+ isLoading: true,
688
+ responseType: "blob",
689
+ resultType: "other",
690
+ callback: res => {
691
+ let fileName = row.modelName + ".bpmn20.xml"
692
+ this.saveAs(res,fileName)
693
+ }
694
+ });
695
+ });
696
+ },
697
+ importWfXml(row){
698
+ this.importXmlRow = row;
699
+ this.showImportItemDialog = true;
700
+ },
701
+ confirmImportItemDialog(file){
702
+ var form = new FormData();
703
+ // 文件对象
704
+ form.append("file", file);
705
+ form.append("modelId", this.importXmlRow.modelId);
706
+ this.$http({
707
+ url: '/' + this.currentRow.serviceId + '/wf_obj_config_item/importProcess',
708
+ method: `post`,
709
+ headers: {
710
+ 'Content-Type': 'multipart/form-data'
711
+ },
712
+ data: form,
713
+ isLoading: true,
714
+ success: res => {
715
+ this.$message({
716
+ message: res.content,
717
+ type: 'success',
718
+ duration: 2000,
719
+ onClose: t => {
720
+
721
+ }
722
+ });
723
+ }
724
+ });
638
725
  }
639
726
  }
640
727
  };
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div>
3
3
  <el-dialog
4
- :title="$t1('配置流程过程更改业务数据')"
4
+ :title="$t1('过程更改业务数据')"
5
5
  :append-to-body="true"
6
6
  :modal-append-to-body="true"
7
7
  :close-on-click-modal="false"
@@ -31,7 +31,7 @@
31
31
  </vxe-button>
32
32
  </div>
33
33
  <div class="fl screen-breadcrumb" style="margin-left: 30px;">
34
- <span style="font-size: 12px;">{{ $t1('表单模板名称') }}:</span>
34
+ <span style="font-size: 12px;">{{ $t1('流程模板名称') }}:</span>
35
35
  {{ objConfigItem.modelName }}
36
36
  </div>
37
37
  </div>