cloud-web-corejs 1.0.54-dev.5 → 1.0.54-dev.500

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 (420) hide show
  1. package/package.json +13 -3
  2. package/src/App.vue +29 -33
  3. package/src/api/user.js +16 -0
  4. package/src/components/Qrcode/fileParse.vue +0 -1
  5. package/src/components/Tinymce/index.vue +112 -71
  6. package/src/components/VabUpload/index.js +49 -1
  7. package/src/components/VabUpload/index.vue +2 -1
  8. package/src/components/VabUpload/mixins.js +2 -2
  9. package/src/components/VabUpload/propertiesDialog.vue +1 -1
  10. package/src/components/VabUpload/view.vue +209 -119
  11. package/src/components/advancedSearchDialog/mixins.js +1 -1
  12. package/src/components/baseAttachment/index.vue +49 -40
  13. package/src/components/baseAttachment/mixins.js +295 -1
  14. package/src/components/baseInputExport/index.vue +19 -12
  15. package/src/components/baseInputExport/mixins.js +389 -1
  16. package/src/components/baseTabs/mixins.js +166 -1
  17. package/src/components/errorMsg/mixins.js +6 -5
  18. package/src/components/excelExport/button.vue +57 -4
  19. package/src/components/excelExport/exportFieldDialog.vue +211 -0
  20. package/src/components/excelExport/index.js +44 -1
  21. package/src/components/excelExport/index.vue +64 -7
  22. package/src/components/excelExport/mixins.js +967 -1
  23. package/src/components/excelImport/index.vue +2 -1
  24. package/src/components/excelImport/mixins.js +2 -1
  25. package/src/components/fileLibrary/fileObjAuthDialog.vue +262 -150
  26. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +12 -1
  27. package/src/components/fileLibrary/fileObjNotifyEdit.vue +192 -0
  28. package/src/components/fileLibrary/filterDialog.vue +454 -0
  29. package/src/components/fileLibrary/index.vue +596 -256
  30. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  31. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  32. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  33. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +350 -202
  34. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +33 -26
  35. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
  36. package/src/components/fileLibrary/mixins/indexMixins.js +250 -106
  37. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +64 -4
  38. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +3 -3
  39. package/src/components/fileLibrary/propertiesDialog.vue +113 -74
  40. package/src/components/fileLibrary/shareDialog.vue +1 -1
  41. package/src/components/formOplog/mixins.js +1 -1
  42. package/src/components/jsonImport/index.js +1 -1
  43. package/src/components/jsonImport/mixins.js +2 -1
  44. package/src/components/langImport/mixins.js +17 -16
  45. package/src/components/obsUpload/index.js +1 -0
  46. package/src/components/obsUpload/index.vue +231 -0
  47. package/src/components/obsUpload/mixins.js +8 -0
  48. package/src/components/onlineTalk/index.vue +327 -5
  49. package/src/components/onlineTalk/mixins.js +1 -1
  50. package/src/components/scriptDescription/button.vue +12 -4
  51. package/src/components/scriptTest/mixins.js +1 -1
  52. package/src/components/statusTag/mixins.js +1 -1
  53. package/src/components/table/CellSlot.vue +1 -0
  54. package/src/components/table/index.js +12 -10
  55. package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +11028 -0
  56. package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -0
  57. package/src/components/table/tableForm.vue +99 -63
  58. package/src/components/table/tableFormMixin.js +1 -1
  59. package/src/components/table/util/index.js +328 -0
  60. package/src/components/table/vxeFilter/mixin.js +6 -6
  61. package/src/components/tempStorage/index.vue +76 -55
  62. package/src/components/tempStorage/tempStorageDialog.vue +179 -54
  63. package/src/components/vb-tabs/x-tabs.vue +57 -30
  64. package/src/components/wf/addOpinionButton.vue +57 -0
  65. package/src/components/wf/content.vue +834 -362
  66. package/src/components/wf/mixins/addOpinionButton.js +3 -0
  67. package/src/components/wf/mixins/setCandidateButton.js +6 -0
  68. package/src/components/wf/mixins/setCandidateDialog.js +2 -1
  69. package/src/components/wf/mixins/setCandidateDialog2.js +6 -0
  70. package/src/components/wf/mixins/wfFlowEleScriptDialog.js +3 -0
  71. package/src/components/wf/mixins/wfTaskUserRangeDialog.js +3 -0
  72. package/src/components/wf/setCandidateButton.vue +40 -0
  73. package/src/components/wf/setCandidateDialog.vue +10 -0
  74. package/src/components/wf/setCandidateDialog2.vue +105 -0
  75. package/src/components/wf/wf.js +1 -1
  76. package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
  77. package/src/components/wf/wfStartDialog.vue +66 -42
  78. package/src/components/wf/wfTaskUserRangeDialog.vue +65 -0
  79. package/src/components/wf/wfUtil.js +279 -1
  80. package/src/components/xform/form-designer/designer.js +5 -3
  81. package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +419 -0
  82. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
  83. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +9 -8
  84. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
  85. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
  86. package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
  87. package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +971 -0
  88. package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
  89. package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
  90. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +83 -49
  91. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +6 -1
  92. package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +2 -2
  93. package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
  94. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +38 -7
  95. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
  96. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1759 -8
  97. package/src/components/xform/form-designer/form-widget/dialog/preformDialog.vue +2 -2
  98. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +121 -72
  99. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -2
  100. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +2 -2
  101. package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
  102. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
  103. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  104. package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +19 -1
  105. package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +40 -28
  106. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +18 -7
  107. package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +4 -1
  108. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
  109. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +14 -2
  110. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +30 -4
  111. package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +133 -0
  112. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
  113. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
  114. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  115. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  116. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  117. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1650 -16
  118. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +646 -379
  119. package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +962 -0
  120. package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
  121. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +22 -11
  122. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +90 -0
  123. package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +7 -2
  124. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  125. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  126. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  127. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +179 -0
  128. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
  129. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +114 -81
  130. package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +186 -0
  131. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +44 -27
  132. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +116 -0
  133. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +154 -47
  134. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +26 -6
  135. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +2 -2
  136. package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
  137. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +24 -9
  138. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
  139. package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
  140. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +11 -1
  141. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +31 -17
  142. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +7 -2
  143. package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
  144. package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +147 -0
  145. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
  146. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
  147. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +3 -171
  148. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +260 -58
  149. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +753 -0
  150. package/src/components/xform/form-designer/indexMixin.js +3 -2
  151. package/src/components/xform/form-designer/setting-panel/form-setting.vue +956 -156
  152. package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
  153. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  154. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +537 -302
  155. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
  156. package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
  157. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
  158. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
  159. package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
  160. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  161. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +125 -0
  162. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +946 -1042
  163. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  164. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1127 -512
  165. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
  166. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
  167. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  168. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  169. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  170. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
  171. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +31 -2
  172. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
  173. package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +32 -0
  174. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  175. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  176. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -7
  177. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
  178. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
  179. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  180. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
  181. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
  182. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  183. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  184. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  185. package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +36 -0
  186. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +77 -20
  187. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -0
  188. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +44 -15
  189. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +115 -0
  190. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  191. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +67 -41
  192. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
  193. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  194. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
  195. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +33 -1
  196. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +66 -0
  197. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +89 -19
  198. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
  199. package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
  200. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
  201. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
  202. package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
  203. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
  204. package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
  205. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  206. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +124 -50
  207. package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +31 -0
  208. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  209. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  210. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +349 -0
  211. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +10 -6
  212. package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
  213. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  214. package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +42 -0
  215. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +305 -19
  216. package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
  217. package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
  218. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +372 -50
  219. package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +263 -0
  220. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +32 -11
  221. package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
  222. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  223. package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
  224. package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -18
  225. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1653 -869
  226. package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
  227. package/src/components/xform/form-render/container-item/data-table-item.vue +194 -199
  228. package/src/components/xform/form-render/container-item/data-table-mixin.js +22 -18
  229. package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
  230. package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
  231. package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
  232. package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
  233. package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
  234. package/src/components/xform/form-render/container-item/tab-item.vue +62 -25
  235. package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
  236. package/src/components/xform/form-render/container-item/table-item.vue +4 -2
  237. package/src/components/xform/form-render/container-item/table2-cell-item.vue +53 -34
  238. package/src/components/xform/form-render/container-item/table2-item.vue +141 -88
  239. package/src/components/xform/form-render/container-item/tree-item.vue +32 -11
  240. package/src/components/xform/form-render/index.vue +69 -20
  241. package/src/components/xform/form-render/indexMixin.js +22 -34
  242. package/src/components/xform/lang/zh-CN.js +27 -4
  243. package/src/components/xform/mixins/defaultHandle.js +1 -1
  244. package/src/components/xform/mixins/scriptHttp.js +174 -1
  245. package/src/components/xform/utils/emitter.js +4 -4
  246. package/src/components/xform/utils/format.js +21 -30
  247. package/src/components/xform/utils/formula-util copy 2.js +945 -0
  248. package/src/components/xform/utils/formula-util copy.js +860 -0
  249. package/src/components/xform/utils/formula-util.js +970 -0
  250. package/src/components/xform/utils/util.js +1 -1
  251. package/src/components/xform/utils/validators.js +1 -5
  252. package/src/components/xform/utils/vue2js-generator.js +2 -2
  253. package/src/index.js +210 -190
  254. package/src/lang/index.js +56 -51
  255. package/src/lang/locale/en/login.js +20 -0
  256. package/src/lang/locale/zh/login.js +20 -0
  257. package/src/layout/components/AppMain.vue +5 -1
  258. package/src/layout/components/Sidebar/default.vue +1389 -1222
  259. package/src/layout/components/TagsView/index.vue +37 -12
  260. package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
  261. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  262. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  263. package/src/layout/components/extractedCode/viewDialog.vue +193 -0
  264. package/src/layout/components/notify_message/unreadDialog.vue +2 -0
  265. package/src/layout/components/watermark/index.vue +83 -0
  266. package/src/layout/defaultLayout.vue +1 -1
  267. package/src/layout/index.vue +3 -5
  268. package/src/mixins/selectDialog/index.js +1 -1
  269. package/src/mixins/table/index.js +151 -0
  270. package/src/mixins/tableTree/index.js +1 -1
  271. package/src/permission.js +1 -18
  272. package/src/router/modules/customer.js +79 -8
  273. package/src/store/config/index.js +1 -1
  274. package/src/store/getters.js +3 -1
  275. package/src/store/modules/permission.js +1 -1
  276. package/src/store/modules/settings.js +1 -1
  277. package/src/store/modules/tagsView.js +1 -14
  278. package/src/store/modules/user.js +1 -29
  279. package/src/utils/index.js +2 -3
  280. package/src/utils/pddLog.js +103 -0
  281. package/src/utils/pdfUtil.js +71 -0
  282. package/src/utils/request.js +28 -28
  283. package/src/utils/vab.js +19 -27
  284. package/src/views/bd/setting/bd_attach_setting/edit.vue +4 -4
  285. package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
  286. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
  287. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
  288. package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
  289. package/src/views/bd/setting/bd_company_env/edit.vue +193 -0
  290. package/src/views/bd/setting/bd_company_env/list.vue +175 -0
  291. package/src/views/bd/setting/config_manage/list.vue +83 -0
  292. package/src/views/bd/setting/form_import_log/edit.vue +127 -0
  293. package/src/views/bd/setting/form_import_log/list.vue +206 -0
  294. package/src/views/bd/setting/form_script/edit.vue +9 -0
  295. package/src/views/bd/setting/form_script/edit1.vue +36 -3
  296. package/src/views/bd/setting/form_script/form_list.vue +99 -37
  297. package/src/views/bd/setting/form_script/list1.vue +181 -118
  298. package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
  299. package/src/views/bd/setting/form_script/mixins/edit.js +201 -1
  300. package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
  301. package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
  302. package/src/views/bd/setting/form_script/mixins/list.js +236 -1
  303. package/src/views/bd/setting/form_script/mixins/list1.js +423 -14
  304. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
  305. package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
  306. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  307. package/src/views/bd/setting/form_template/edit.vue +22 -1
  308. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  309. package/src/views/bd/setting/form_template/list.vue +326 -212
  310. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +282 -0
  311. package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
  312. package/src/views/bd/setting/form_template/mixins/list.js +689 -22
  313. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
  314. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  315. package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
  316. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  317. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  318. package/src/views/bd/setting/logic_param/edit.vue +146 -0
  319. package/src/views/bd/setting/logic_param/edit1.vue +106 -0
  320. package/src/views/bd/setting/logic_param/edit2.vue +139 -0
  321. package/src/views/bd/setting/logic_param/list.vue +74 -0
  322. package/src/views/bd/setting/logic_param/list1.vue +12 -0
  323. package/src/views/bd/setting/logic_param/list2.vue +12 -0
  324. package/src/views/bd/setting/logic_param/mixins/edit.js +3 -0
  325. package/src/views/bd/setting/logic_param/mixins/list.js +9 -0
  326. package/src/views/bd/setting/menu_kind/authDialog.vue +1 -1
  327. package/src/views/bd/setting/menu_kind/list.vue +172 -83
  328. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
  329. package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
  330. package/src/views/bd/setting/push_data/edit.vue +139 -0
  331. package/src/views/bd/setting/push_data/list.vue +283 -0
  332. package/src/views/bd/setting/push_data_h/edit.vue +153 -0
  333. package/src/views/bd/setting/push_data_h/list.vue +293 -0
  334. package/src/views/bd/setting/request_async_setting/edit.vue +320 -0
  335. package/src/views/bd/setting/request_async_setting/list.vue +372 -0
  336. package/src/views/bd/setting/request_setting/edit.vue +300 -0
  337. package/src/views/bd/setting/request_setting/list.vue +311 -0
  338. package/src/views/bd/setting/table_model/edit.vue +875 -426
  339. package/src/views/bd/setting/table_model/list.vue +190 -126
  340. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  341. package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
  342. package/src/views/bd/setting/table_model/mixins/list.js +440 -14
  343. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
  344. package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
  345. package/src/views/user/access_log/list.vue +418 -349
  346. package/src/views/user/area/dialog.vue +235 -116
  347. package/src/views/user/area/list.vue +318 -0
  348. package/src/views/user/bill_setting/edit.vue +1 -1
  349. package/src/views/user/bill_setting/list.vue +1 -1
  350. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  351. package/src/views/user/common_attribute/list.vue +5 -2
  352. package/src/views/user/common_script/edit.vue +1 -1
  353. package/src/views/user/common_script/list.vue +1 -1
  354. package/src/views/user/company_info/dialog.vue +164 -154
  355. package/src/views/user/company_info/edit.vue +9 -1
  356. package/src/views/user/extend_datasource/dialog.vue +4 -0
  357. package/src/views/user/extend_datasource/edit.vue +5 -1
  358. package/src/views/user/extend_datasource/list.vue +5 -1
  359. package/src/views/user/fieldTranslation/editDialog.vue +7 -7
  360. package/src/views/user/fieldTranslation/list.vue +32 -32
  361. package/src/views/user/file_type/edit.vue +30 -1
  362. package/src/views/user/file_type/list.vue +28 -0
  363. package/src/views/user/form/vform/designer.vue +776 -749
  364. package/src/views/user/form/vform/out_render.vue +1 -1
  365. package/src/views/user/form/vform/render.vue +59 -37
  366. package/src/views/user/form/view/edit.vue +38 -37
  367. package/src/views/user/form/view/list.vue +261 -49
  368. package/src/views/user/groups/edit.vue +2 -0
  369. package/src/views/user/groups/list.vue +1 -0
  370. package/src/views/user/home/bears/index.vue +1032 -0
  371. package/src/views/user/home/default.vue +1025 -979
  372. package/src/views/user/home/dev.vue +29 -0
  373. package/src/views/user/home/index.vue +20 -8
  374. package/src/views/user/home/taili/index.vue +1034 -0
  375. package/src/views/user/ledger_library/list.vue +10 -12
  376. package/src/views/user/login/default.vue +167 -36
  377. package/src/views/user/login/index.vue +4 -6
  378. package/src/views/user/login/indexMixin.js +184 -8
  379. package/src/views/user/menu/list.vue +24 -1
  380. package/src/views/user/notify_message/dialog.vue +38 -22
  381. package/src/views/user/notify_template/edit.vue +188 -187
  382. package/src/views/user/notify_template/edit2.vue +176 -0
  383. package/src/views/user/notify_template/list.vue +4 -1
  384. package/src/views/user/notify_template/list2.vue +190 -0
  385. package/src/views/user/outLink/form_view.vue +211 -184
  386. package/src/views/user/outLink/index.vue +67 -11
  387. package/src/views/user/outLink/view.vue +39 -13
  388. package/src/views/user/position/edit.vue +116 -83
  389. package/src/views/user/position/list.vue +118 -86
  390. package/src/views/user/project_tag/dialog.vue +9 -4
  391. package/src/views/user/project_tag/edit.vue +2 -2
  392. package/src/views/user/project_tag/list.vue +9 -4
  393. package/src/views/user/push_setting/list.vue +2 -2
  394. package/src/views/user/request_setting/edit.vue +258 -0
  395. package/src/views/user/request_setting/list.vue +248 -0
  396. package/src/views/user/role/authConfig.vue +89 -0
  397. package/src/views/user/role/dialog.vue +70 -48
  398. package/src/views/user/role/edit.vue +609 -429
  399. package/src/views/user/role/list.vue +4 -4
  400. package/src/views/user/sale_org/dialog.vue +1 -1
  401. package/src/views/user/sale_org/list.vue +4 -1
  402. package/src/views/user/system_notice/edit.vue +232 -186
  403. package/src/views/user/user/dialog.vue +46 -23
  404. package/src/views/user/user/edit.vue +1059 -1021
  405. package/src/views/user/user/form_dialog.vue +158 -0
  406. package/src/views/user/user/form_edit.vue +117 -49
  407. package/src/views/user/user/form_info.vue +210 -0
  408. package/src/views/user/user/form_list.vue +1 -0
  409. package/src/views/user/user/list.vue +647 -563
  410. package/src/views/user/user/modifyPasswordDialog.vue +64 -53
  411. package/src/views/user/wf/wfReport/index.vue +618 -0
  412. package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
  413. package/src/views/user/wf/wf_manage/list.vue +371 -249
  414. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  415. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
  416. package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
  417. package/src/views/user/wf/wf_obj_config/list.vue +138 -5
  418. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
  419. package/src/views/user/wf/wf_transfer_setting/edit.vue +282 -0
  420. package/src/views/user/wf/wf_transfer_setting/list.vue +319 -0
@@ -1,16 +1,36 @@
1
1
  <template>
2
2
  <span class="button-sty">
3
- <el-button type="success" class="btn-connect" icon="iconfont icon-zancun" @click="openSubmitDialog" plain>暂存</el-button>
4
- <el-tooltip class="item" effect="dark" content="查看暂存数据" placement="top">
5
- <el-button class="btn-connect" @click="openTempStorageDialog" icon="iconfont icon-chakanshuju" type="success" ></el-button>
6
- </el-tooltip>
3
+ <el-button
4
+ type="success"
5
+ class="btn-connect"
6
+ icon="iconfont icon-zancun"
7
+ @click="openSubmitDialog"
8
+ plain
9
+ :disabled="disabled"
10
+ >
11
+ {{ $t1("暂存") }}
12
+ </el-button>
13
+ <el-tooltip class="item" effect="dark" :content="$t1('查看暂存数据')" placement="top">
14
+ <el-button
15
+ class="btn-connect"
16
+ @click="openTempStorageDialog"
17
+ icon="iconfont icon-chakanshuju"
18
+ type="success"
19
+ :disabled="disabled"
20
+ ></el-button>
21
+ </el-tooltip>
7
22
 
8
- <tempStorageDialog v-if="showTempStorageDialog" :visiable.sync="showTempStorageDialog"
9
- @confirm="confirmTempStorageDialog" :storageType="storageType" multi="false"/>
23
+ <tempStorageDialog
24
+ v-if="showTempStorageDialog"
25
+ :visiable.sync="showTempStorageDialog"
26
+ @confirm="confirmTempStorageDialog"
27
+ :storageType="storageType"
28
+ multi="false"
29
+ />
10
30
  <el-dialog
11
31
  v-if="showSubmitDialog"
12
32
  :visible.sync="showSubmitDialog"
13
- title="暂存"
33
+ :title="$t1('暂存')"
14
34
  :modal-append-to-body="false"
15
35
  :close-on-click-modal="false"
16
36
  :modal="false"
@@ -18,35 +38,40 @@
18
38
  v-el-drag-dialog
19
39
  v-el-dialog-center
20
40
  >
21
- <el-form>
22
- <div id="containt">
23
- <table class="table-detail">
24
- <tbody>
41
+ <el-form>
42
+ <div id="containt">
43
+ <table class="table-detail">
44
+ <tbody>
25
45
  <tr>
26
46
  <th>
27
- <span class="t">
28
- 描述
29
- </span>
47
+ <span class="t">
48
+ {{ $t1("描述") }}
49
+ </span>
30
50
  </th>
31
51
  <td>
32
- <el-input type="textarea" :rows="8" v-model="remark"></el-input>
52
+ <el-input type="textarea" :rows="8" v-model="remark"></el-input>
33
53
  </td>
34
54
  </tr>
35
- </tbody>
36
- </table>
37
- </div>
38
- </el-form>
39
- <span slot="footer" class="dialog-footer">
40
- <el-button type="primary" plain class="button-sty" @click="showSubmitDialog = false">
41
- <i class="el-icon-close el-icon"></i>
42
- {{ $t2('取 消', 'system.button.cancel2') }}
43
- </el-button>
44
- <el-button type="primary" @click="saveData" class="button-sty">
45
- <i class="el-icon-check el-icon"></i>
46
- {{ $t2('确 定', 'system.button.confirm2') }}
47
- </el-button>
48
- </span>
49
- </el-dialog>
55
+ </tbody>
56
+ </table>
57
+ </div>
58
+ </el-form>
59
+ <span slot="footer" class="dialog-footer">
60
+ <el-button
61
+ type="primary"
62
+ plain
63
+ class="button-sty"
64
+ @click="showSubmitDialog = false"
65
+ >
66
+ <i class="el-icon-close el-icon"></i>
67
+ {{ $t1("取 消") }}
68
+ </el-button>
69
+ <el-button type="primary" @click="saveData" class="button-sty">
70
+ <i class="el-icon-check el-icon"></i>
71
+ {{ $t1("确 定") }}
72
+ </el-button>
73
+ </span>
74
+ </el-dialog>
50
75
  </span>
51
76
  </template>
52
77
  <script>
@@ -54,55 +79,54 @@ import tempStorageDialog from "./tempStorageDialog.vue";
54
79
 
55
80
  export default {
56
81
  props: {
57
- option: Object
82
+ option: Object,
83
+ disabled: Boolean,
58
84
  },
59
85
  components: {
60
- tempStorageDialog
86
+ tempStorageDialog,
61
87
  },
62
88
  data() {
63
89
  return {
64
90
  storageType: null,
65
91
  showTempStorageDialog: false,
66
92
  showSubmitDialog: false,
67
- remark: null
93
+ remark: null,
68
94
  };
69
95
  },
70
- created() {
71
-
72
- },
73
- mounted() {
74
-
75
- },
96
+ created() {},
97
+ mounted() {},
76
98
  methods: {
77
99
  openSubmitDialog() {
78
100
  this.remark = null;
79
101
  this.showSubmitDialog = true;
80
102
  },
81
103
  saveData() {
82
- let url = USER_PREFIX + '/temp_storage/save';
104
+ let url = USER_PREFIX + "/temp_storage/save";
83
105
  let billData = this.option.data() || {};
84
- let data = JSON.stringify(billData)
85
- this.$http({
106
+ let data = JSON.stringify(billData);
107
+
108
+ let that = this.option.vue || this.$attrs["parent-target"] || this.$parent;
109
+ this.showSubmitDialog = false;
110
+ that.$http({
86
111
  url: url,
87
112
  method: `post`,
88
113
  data: {
89
114
  storageType: this.option.storageType,
90
115
  data: data,
91
116
  remark: this.remark,
92
- retains: (this.option.retains || null)
117
+ retains: this.option.retains || null,
93
118
  },
94
119
  isLoading: true,
95
- success: res => {
120
+ success: (res) => {
96
121
  this.$message({
97
122
  message: res.content,
98
- type: 'success',
123
+ type: "success",
99
124
  duration: 500,
100
- onClose: t => {
125
+ onClose: (t) => {
101
126
  this.option.saveConfirm && this.option.saveConfirm(res);
102
- this.showSubmitDialog = false;
103
- }
127
+ },
104
128
  });
105
- }
129
+ },
106
130
  });
107
131
  },
108
132
  openTempStorageDialog() {
@@ -115,10 +139,7 @@ export default {
115
139
  this.option.chooseConfirm && this.option.chooseConfirm(billData, rows);
116
140
  }
117
141
  },
118
- }
119
- }
120
-
142
+ },
143
+ };
121
144
  </script>
122
- <style scoped>
123
-
124
- </style>
145
+ <style scoped></style>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <el-dialog
3
- title="暂存数据列表"
3
+ :title="$t1('暂存数据列表')"
4
4
  :append-to-body="true"
5
5
  :modal-append-to-body="true"
6
6
  :close-on-click-modal="falseValue"
@@ -12,7 +12,7 @@
12
12
  v-el-drag-dialog
13
13
  v-el-dialog-center
14
14
  >
15
- <div class="cont" style="height:450px">
15
+ <div class="cont" style="height: 450px">
16
16
  <vxe-grid
17
17
  class="is-pointer"
18
18
  ref="table-m1"
@@ -25,24 +25,46 @@
25
25
  >
26
26
  <template #form>
27
27
  <div class="clearfix screen-btns">
28
+ <div class="fl">
29
+ <el-button class="button-sty" icon="el-icon-delete" @click="mulitidDelete"
30
+ >{{ $t1("删除") }}
31
+ </el-button>
32
+ </div>
28
33
  <div class="fr">
29
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
30
- plain>重置
34
+ <vxe-button
35
+ icon="el-icon-brush"
36
+ class="button-sty"
37
+ @click="resetEvent"
38
+ type="text"
39
+ status="primary"
40
+ plain
41
+ >{{ $t1("重置") }}
31
42
  </vxe-button>
32
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
43
+ <vxe-button
44
+ status="warning"
45
+ icon="el-icon-search"
46
+ class="button-sty"
47
+ @click="searchEvent"
48
+ >{{ $t1("搜索") }}
33
49
  </vxe-button>
34
50
  </div>
35
51
  </div>
36
- <vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent"
37
- @reset="resetEvent">
38
- <vxe-form-item title="暂存编码:" field="storageCode">
52
+ <vxe-form
53
+ class="screen-box"
54
+ title-width="92px"
55
+ title-align="right"
56
+ :data="formData"
57
+ @submit="searchEvent"
58
+ @reset="resetEvent"
59
+ >
60
+ <vxe-form-item :title="$t1('暂存编码') + ':'" field="storageCode">
39
61
  <template v-slot>
40
- <el-input v-model="formData.storageCode" size="small" clearable/>
62
+ <el-input v-model="formData.storageCode" size="small" clearable />
41
63
  </template>
42
64
  </vxe-form-item>
43
- <vxe-form-item title="描述:" field="remark">
65
+ <vxe-form-item :title="$t1('描述') + ':'" field="remark">
44
66
  <template v-slot>
45
- <el-input v-model="formData.remark" size="small" clearable/>
67
+ <el-input v-model="formData.remark" size="small" clearable />
46
68
  </template>
47
69
  </vxe-form-item>
48
70
  <vxe-button type="submit" @click="searchEvent" v-show="false"></vxe-button>
@@ -57,105 +79,208 @@
57
79
  </div>
58
80
  </label>
59
81
  <div class="multipleChoice">
60
- <el-tooltip :enterable="false" effect="dark" content="全部删除" placement="top"><a
61
- class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
82
+ <el-tooltip
83
+ :enterable="false"
84
+ effect="dark"
85
+ :content="$t1('全部删除')"
86
+ placement="top"
87
+ ><a class="allDel icon-quanbushanchu" @click="clearChecked()"></a
88
+ ></el-tooltip>
62
89
  <div class="list">
63
- <div class="item" v-for="(checkRow, index) in checkRows">
90
+ <div class="item" v-for="(checkRow, index) in checkRows" :key="index">
64
91
  <p>{{ checkRow.storageCode }}</p>
65
92
  <a class="el-icon-close" @click="clearTable1Select(index)"></a>
66
93
  </div>
67
94
  </div>
68
95
  </div>
69
96
  <span slot="footer" class="dialog-footer">
70
- <span class="fl tips" v-if="!selectMulti">注:双击确认选择(单选)</span>
71
- <el-button type="primary" plain class="button-sty" @click="dialogClose">
72
- <i class="el-icon-close el-icon"></i>
73
-
74
- </el-button>
75
- <el-button type="primary" @click="dialogPrimary" class="button-sty">
76
- <i class="el-icon-check el-icon"></i>
77
-
78
- </el-button>
79
- </span>
97
+ <span class="fl tips">{{ $t1("注:双击确认选择(单选)") }}</span>
98
+ <el-button type="primary" plain class="button-sty" @click="dialogClose">
99
+ <i class="el-icon-close el-icon"></i>
100
+ {{ $t1("取消") }}
101
+ </el-button>
102
+ <el-button type="primary" @click="dialogPrimary()" class="button-sty">
103
+ <i class="el-icon-check el-icon"></i>
104
+ {{ $t1("确定") }}
105
+ </el-button>
106
+ </span>
80
107
  </el-dialog>
81
108
  </template>
82
109
 
83
110
  <script>
84
- import {selectDialogMixins} from '../../mixins/selectDialog/index.js';
111
+ import { selectDialogMixins } from "../../mixins/selectDialog/index.js";
85
112
 
86
113
  export default {
87
- name: 'positionDialog',
88
- props: ['visiable', 'multi', 'rows', 'param', 'storageType'],
114
+ name: "positionDialog",
115
+ props: ["visiable", "multi", "rows", "param", "storageType"],
89
116
  mixins: [selectDialogMixins],
90
117
  created() {
91
118
  this.initSetting();
119
+ this.selectMulti = true;
92
120
  },
93
121
  mounted() {
94
122
  this.initTableM1();
95
123
  },
96
124
  data() {
97
- var that = this;
98
125
  return {
99
126
  showDialog: true,
100
127
  falseValue: false,
101
128
  selectMulti: true,
102
129
  formData: {},
103
- vxeOption: {}
130
+ vxeOption: {},
104
131
  };
105
132
  },
106
133
  methods: {
107
134
  initTableM1() {
108
135
  let that = this;
109
- let url = USER_PREFIX + '/temp_storage/listPage';
136
+ let url = USER_PREFIX + "/temp_storage/listPage";
110
137
  let tableOption = {
111
138
  vue: that,
112
- tableRef: 'table-m1',
113
- tableName: 'user_temp_storage_dialog-m1',
139
+ tableRef: "table-m1",
140
+ tableName: "user_temp_storage_dialog-m1",
114
141
  path: url,
115
142
  param: () => {
116
143
  return {
117
144
  ...this.formData,
118
- storageType: this.storageType
119
- }
145
+ storageType: this.storageType,
146
+ };
120
147
  },
121
148
  columns: [
122
- {type: 'checkbox', fixed: 'left', width: 48, resizable: false},
149
+ { type: "checkbox", fixed: "left", width: 48, resizable: false },
123
150
  {
124
- field: 'remark',
125
- title: '描述',
151
+ field: "remark",
152
+ title: this.$t1("描述"),
126
153
  width: 250,
127
- fixed: 'left'
154
+ fixed: "left",
128
155
  },
129
156
  {
130
- field: 'createDate',
131
- title: '创建时间',
132
- width: 150
157
+ field: "createDate",
158
+ title: this.$t1("创建时间"),
159
+ width: 150,
133
160
  },
134
161
  {
135
- title: '暂存编码',
136
- field: 'storageCode',
137
- width: 300
162
+ title: this.$t1("暂存编码"),
163
+ field: "storageCode",
164
+ width: 300,
138
165
  },
139
- {title: '暂存数据', field: 'data', width: 350, visible: false},
166
+ { title: this.$t1("暂存数据"), field: "data", width: 350, visible: false },
140
167
  {
168
+ title: this.$t1("操作"),
141
169
  width: 47,
142
- fixed: 'right',
143
- title: '',
144
- sortable: false
145
- }
170
+ fixed: "right",
171
+ title: "",
172
+ sortable: false,
173
+ slots: {
174
+ default: ({ row, rowIndex, $table }) => {
175
+ return [
176
+ <a
177
+ href="javascript:void(0);"
178
+ class="a-link"
179
+ onclick={(event) => {
180
+ event.stopPropagation();
181
+ this.deleteRow(row);
182
+ }}
183
+ >
184
+ <el-tooltip
185
+ enterable={false}
186
+ effect="dark"
187
+ content={this.$t1("删除")}
188
+ placement="top"
189
+ popper-class="tooltip-skin"
190
+ >
191
+ <i class="el-icon-delete" />
192
+ </el-tooltip>
193
+ </a>,
194
+ ];
195
+ },
196
+ },
197
+ },
146
198
  ],
147
199
  config: {
148
200
  checkboxConfig: {
149
201
  checkStrictly: true,
150
202
  showHeader: this.selectMulti,
151
- trigger: 'row'
203
+ trigger: "row",
204
+ },
205
+ },
206
+ callback: (rows) => {
207
+ if (!rows.length) return;
208
+ let checkRows = this.checkRows;
209
+ if (checkRows.length) {
210
+ let checkIds = checkRows.map((item) => item.id);
211
+ let items = rows.filter((item) => checkIds.includes(item.id));
212
+ if (items.length) {
213
+ this.$refs["table-m1"].setCheckboxRow(items, true);
214
+ }
152
215
  }
153
- }
216
+ },
154
217
  };
155
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
218
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
156
219
  that.vxeOption = opts;
157
220
  });
158
- }
159
- }
221
+ },
222
+ deleteRow(row) {
223
+ this.$baseConfirm(this.$t1("您确定要删除当前暂存数据吗?")).then(() => {
224
+ this.deleteHandle([row]);
225
+ });
226
+ },
227
+ mulitidDelete() {
228
+ let checkRows = this.checkRows;
229
+ if (checkRows.length == 0) {
230
+ this.$message({
231
+ message: this.$t1("请选择要删除的暂存数据"),
232
+ type: "error",
233
+ });
234
+ return;
235
+ }
236
+ this.$baseConfirm(this.$t1("您确定要删除选中的暂存数据吗?")).then(() => {
237
+ this.deleteHandle(checkRows);
238
+ });
239
+ },
240
+ deleteHandle(rows) {
241
+ if (!rows || !rows.length) {
242
+ return;
243
+ }
244
+ let data = rows.map((row) => row.id);
245
+ this.$http({
246
+ url: USER_PREFIX + "/temp_storage/delete",
247
+ method: `post`,
248
+ data: data,
249
+ isLoading: true,
250
+ success: (res) => {
251
+ this.$message({
252
+ message: res.content,
253
+ type: "success",
254
+ });
255
+ this.checkRows = this.checkRows.filter((row) => !data.includes(row.id));
256
+ this.searchEvent();
257
+ },
258
+ });
259
+ },
260
+ checkWithSubmit(obj) {
261
+ let $grid1 = this.$refs["table-m1"];
262
+ this.checkRows = [obj.row];
263
+ $grid1.clearCheckboxRow();
264
+ $grid1.setCheckboxRow(obj.row, true);
265
+ setTimeout(() => {
266
+ this.dialogPrimary();
267
+ }, 100);
268
+ },
269
+ dialogPrimary() {
270
+ let rows = this.checkRows;
271
+ if (rows.length > 1) {
272
+ this.$message({
273
+ message: this.$t1("请选择一条暂存数据进行操作"),
274
+ type: "error",
275
+ });
276
+ return;
277
+ }
278
+ if (this.beforeConfirm && this.beforeConfirm(rows, this.dialogClose) === false) {
279
+ return false;
280
+ }
281
+ this.$emit("confirm", rows);
282
+ this.dialogClose();
283
+ },
284
+ },
160
285
  };
161
286
  </script>
@@ -1,8 +1,14 @@
1
1
  <template>
2
- <el-tabs v-model="activeName" class="tab-box tab-morenav" @tab-remove="removeTab" @tab-click="tabClick" ref="tabs">
2
+ <el-tabs
3
+ v-model="activeName"
4
+ class="tab-box tab-morenav"
5
+ @tab-remove="removeTab"
6
+ @tab-click="tabClick"
7
+ ref="tabs"
8
+ >
3
9
  <slot name="default"></slot>
4
- <template v-for="(tab,index) in tabs">
5
- <slot name="editTab" v-bind="{tab,index,tabs,reloadTabContent}"></slot>
10
+ <template v-for="(tab, index) in tabs">
11
+ <slot name="editTab" v-bind="{ tab, index, tabs, reloadTabContent }"></slot>
6
12
  </template>
7
13
  </el-tabs>
8
14
  </template>
@@ -13,14 +19,18 @@ export default {
13
19
  value: String,
14
20
  paneKeyName: {
15
21
  type: String,
16
- default: () => "id"
17
- }
22
+ default: () => "id",
23
+ },
24
+ tabNameEnable: {
25
+ type: Boolean,
26
+ default: () => false,
27
+ },
18
28
  },
19
29
  data() {
20
30
  return {
21
31
  activeName: "0",
22
- tabs: []
23
- }
32
+ tabs: [],
33
+ };
24
34
  },
25
35
  watch: {
26
36
  value(val) {
@@ -28,7 +38,7 @@ export default {
28
38
  },
29
39
  activeName(val) {
30
40
  this.$emit("input", val);
31
- }
41
+ },
32
42
  },
33
43
  created() {
34
44
  if (this.value) {
@@ -36,15 +46,21 @@ export default {
36
46
  }
37
47
  },
38
48
  methods: {
39
- openEditTab(row) {
49
+ openEditTab(row, param, option) {
40
50
  let paneKeyName = this.paneKeyName;
41
- let tab = this.tabs.find(tab => tab.data[paneKeyName] === row[paneKeyName])
51
+ let tab = this.tabs.find((tab) => tab.data[paneKeyName] === row[paneKeyName]);
52
+ let tabParam = option?.tabParam || {};
53
+ let dataId = row ? row[paneKeyName] : null;
54
+ let newTab = {
55
+ data: row,
56
+ showContent: false,
57
+ dataId: dataId,
58
+ param,
59
+ ...tabParam,
60
+ };
61
+ debugger;
42
62
  if (!tab) {
43
- tab = {
44
- data: row,
45
- showContent: false,
46
- dataId: row[paneKeyName]
47
- }
63
+ tab = newTab;
48
64
  if (this.tabs.length >= 30) {
49
65
  this.tabs.splice(0, 1, tab);
50
66
  } else {
@@ -52,23 +68,35 @@ export default {
52
68
  }
53
69
  this.$nextTick(() => {
54
70
  let paneName = this.getCurrentPaneName();
55
- tab.paneName = paneName
56
- })
71
+ tab.paneName = paneName;
72
+ });
73
+ } else {
74
+ Object.assign(tab, newTab);
57
75
  }
58
- this.activeName = row[paneKeyName] + '';
76
+ let tabNameEnable = this.tabNameEnable;
77
+ this.activeName = row ? (tabNameEnable ? tab.tabName : row[paneKeyName] + "") : "";
59
78
  tab.showContent = false;
60
79
  setTimeout(() => {
61
80
  tab.showContent = true;
62
81
  }, 200);
63
82
  },
64
83
  removeTab(targetName) {
84
+ let tabNameEnable = this.tabNameEnable;
65
85
  let paneKeyName = this.paneKeyName;
66
- let tabIndex = this.tabs.findIndex(tab => tab.data[paneKeyName] + '' === targetName);
86
+ let tabIndex = this.tabs.findIndex((tab) => {
87
+ if (tabNameEnable) {
88
+ return tab.tabName === targetName;
89
+ } else {
90
+ return tab.data[paneKeyName] + "" === targetName;
91
+ }
92
+ });
67
93
  if (this.activeName === targetName) {
68
94
  if (tabIndex > 0) {
69
- this.activeName = this.tabs[tabIndex - 1].data[paneKeyName] + '';
95
+ this.activeName = tabNameEnable
96
+ ? tab.tabName
97
+ : this.tabs[tabIndex - 1].data[paneKeyName] + "";
70
98
  } else {
71
- this.activeName = 'second';
99
+ this.activeName = "second";
72
100
  }
73
101
  }
74
102
  if (tabIndex !== -1) {
@@ -81,18 +109,19 @@ export default {
81
109
  },
82
110
  getCurrntPaneTarget() {
83
111
  let panes = this.$refs.tabs.panes;
84
- let target = panes.find(pane => pane.active)
112
+ let target = panes.find((pane) => pane.active);
85
113
  return target;
86
114
  },
87
115
  reloadTabContent(target, param, tab) {
88
- let updateParam = param != null && param.updateParam != null ? param.updateParam : {};
116
+ let updateParam =
117
+ param != null && param.updateParam != null ? param.updateParam : {};
89
118
  for (let key in updateParam) {
90
119
  target.$emit("update:" + key, updateParam[key]);
91
120
  }
92
121
 
93
122
  if (!tab) {
94
123
  let activeName = this.activeName;
95
- tab = this.tabs.find(item => item.paneName == activeName)
124
+ tab = this.tabs.find((item) => item.paneName == activeName);
96
125
  }
97
126
  if (tab) {
98
127
  tab.showContent = false;
@@ -103,10 +132,8 @@ export default {
103
132
  },
104
133
  tabClick(targetName) {
105
134
  this.$emit("tabClick", targetName);
106
- }
107
- }
108
- }
135
+ },
136
+ },
137
+ };
109
138
  </script>
110
- <style scoped>
111
-
112
- </style>
139
+ <style scoped></style>