cloud-web-corejs 1.0.276 → 1.0.278

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 (311) hide show
  1. package/package.json +30 -24
  2. package/src/App.vue +73 -71
  3. package/src/api/user.js +21 -0
  4. package/src/components/baseArea/index.vue +82 -27
  5. package/src/components/baseTabs/mixins.js +5 -1
  6. package/src/components/formDialog/README.md +371 -0
  7. package/src/components/formDialog/actionButtons.js +90 -0
  8. package/src/components/formDialog/index.js +48 -0
  9. package/src/components/formDialog/index.vue +802 -0
  10. package/src/components/formDrawer/drawer.vue +722 -0
  11. package/src/components/formDrawer/index.js +50 -0
  12. package/src/components/luckysheet/dialog.vue +1 -1
  13. package/src/components/micro-view-host/contract.js +66 -0
  14. package/src/components/micro-view-host/index.vue +148 -0
  15. package/src/components/table/tableForm.vue +16 -5
  16. package/src/components/table/tableFormMixin.js +35 -7
  17. package/src/components/vb-tabs/x-tabs.vue +167 -143
  18. package/src/components/wf/content.vue +14 -0
  19. package/src/components/wf/content2.vue +4 -2
  20. package/src/components/wf/wf.js +74 -23
  21. package/src/components/wf/wfActionDropdown.vue +85 -0
  22. package/src/components/wf/wfActionItems.js +136 -0
  23. package/src/components/wf/wfAutoConfirm.js +55 -0
  24. package/src/components/wf/wfButtonName.js +60 -0
  25. package/src/components/wf/wfUserRange.js +53 -0
  26. package/src/components/wf/wfUtil.js +373 -295
  27. package/src/components/xform/XFormTabContainer//346/226/260/345/242/236/351/241/265/347/255/276/346/250/241/345/274/217-/346/234/200/347/273/210/345/256/236/347/216/260.md +195 -0
  28. package/src/components/xform/docs/2026-07 table/344/270/216excelExport/344/277/256/345/244/215/345/217/212/345/257/274/345/207/272/344/274/230/345/214/226.md" +57 -0
  29. package/src/components/xform/docs/2026-07 /346/216/222/346/237/245/344/277/256/345/244/215/350/256/260/345/275/225.md" +73 -0
  30. package/src/components/xform/docs/autocomplete /350/207/252/345/212/250/345/256/214/346/210/220/347/273/204/344/273/266/350/257/264/346/230/216.md" +126 -0
  31. package/src/components/xform/docs//345/257/271/346/257/224/345/212/237/350/203/275/350/220/275/345/234/260/346/226/271/346/241/210.md +986 -0
  32. package/src/components/xform/docs//346/225/260/346/215/256/350/241/250/346/240/274/345/212/250/346/200/201/345/210/227 JSON /350/257/264/346/230/216.md" +657 -0
  33. package/src/components/xform/docs//346/240/221/350/241/250rowField/346/224/266/346/225/233-/350/220/275/345/234/260/346/226/207/346/241/243.md +1427 -0
  34. package/src/components/xform/form-designer/designer.js +2085 -2025
  35. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +9 -11
  36. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +76 -75
  37. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +10 -4
  38. package/src/components/xform/form-designer/form-widget/container-widget/detail-plain-widget.vue +76 -0
  39. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +59 -5
  40. package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +38 -17
  41. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +138 -13
  42. package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +1 -1
  43. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1774 -1772
  44. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +2 -3
  45. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +1 -1
  46. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +66 -53
  47. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +287 -214
  48. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +76 -66
  49. package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +208 -124
  50. package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +3 -9
  51. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +11 -2
  52. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +7 -6
  53. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +43 -19
  54. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +680 -372
  55. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +879 -763
  56. package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +17 -2
  57. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +3 -9
  58. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +3 -9
  59. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +3 -9
  60. package/src/components/xform/form-designer/form-widget/field-widget/mixins/relative-default-mixin.js +107 -0
  61. package/src/components/xform/form-designer/form-widget/field-widget/mixins/relativeDateUtil.js +321 -0
  62. package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +77 -0
  63. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +13 -0
  64. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +13 -8
  65. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +4 -9
  66. package/src/components/xform/form-designer/form-widget/field-widget/save_submit_wf_button-widget.vue +3 -0
  67. package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +120 -120
  68. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +4 -0
  69. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +11 -0
  70. package/src/components/xform/form-designer/form-widget/field-widget/switch-widget.vue +9 -1
  71. package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +1 -1
  72. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +7 -3
  73. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +4 -2
  74. package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +36 -5
  75. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +338 -374
  76. package/src/components/xform/form-designer/form-widget/index.vue +6 -1
  77. package/src/components/xform/form-designer/form-widget/indexMixin.js +29 -25
  78. package/src/components/xform/form-designer/index.vue +194 -191
  79. package/src/components/xform/form-designer/indexMixin.js +860 -847
  80. package/src/components/xform/form-designer/setting-panel/dataSource-setting.vue +397 -397
  81. package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +602 -601
  82. package/src/components/xform/form-designer/setting-panel/form-setting.vue +1790 -1483
  83. package/src/components/xform/form-designer/setting-panel/index.vue +2 -7
  84. package/src/components/xform/form-designer/setting-panel/indexMixin.js +370 -335
  85. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +585 -544
  86. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
  87. package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +1 -1
  88. package/src/components/xform/form-designer/setting-panel/property-editor/alignType-editor.vue +1 -1
  89. package/src/components/xform/form-designer/setting-panel/property-editor/buttonIcon-editor.vue +14 -15
  90. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +1 -1
  91. package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +1 -1
  92. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +3 -3
  93. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +124 -125
  94. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1151 -957
  95. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +96 -74
  96. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-plain/detail-plain-editor.vue +75 -0
  97. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/colHeight-editor.vue +1 -1
  98. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +14 -13
  99. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-height-editor.vue +1 -1
  100. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  101. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  102. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  103. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-span-editor.vue +4 -4
  104. package/src/components/xform/form-designer/setting-panel/property-editor/container-h5-card/h5-card-editor.vue +124 -124
  105. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +26 -31
  106. package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/height-editor.vue +1 -1
  107. package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/width-editor.vue +1 -1
  108. package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tab-customClass-editor.vue +119 -119
  109. package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tabClass-editor.vue +45 -45
  110. package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +340 -342
  111. package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellHeight-editor.vue +1 -1
  112. package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellWidth-editor.vue +1 -1
  113. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +2 -2
  114. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree-pane/tree-pane-editor.vue +1 -1
  115. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/cancelButtonLabel-editor.vue +1 -1
  116. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/okButtonLabel-editor.vue +1 -1
  117. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/title-editor.vue +1 -1
  118. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/width-editor.vue +1 -1
  119. package/src/components/xform/form-designer/setting-panel/property-editor/containerClass-editor.vue +1 -1
  120. package/src/components/xform/form-designer/setting-panel/property-editor/customClass-editor.vue +1 -1
  121. package/src/components/xform/form-designer/setting-panel/property-editor/defaultValue-editor.vue +1 -1
  122. package/src/components/xform/form-designer/setting-panel/property-editor/descriptionsItems-editor.vue +4 -4
  123. package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +3 -3
  124. package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +6 -2
  125. package/src/components/xform/form-designer/setting-panel/property-editor/dsName-editor.vue +1 -1
  126. package/src/components/xform/form-designer/setting-panel/property-editor/echartHeight-editor.vue +1 -1
  127. package/src/components/xform/form-designer/setting-panel/property-editor/endPlaceholder-editor.vue +1 -1
  128. package/src/components/xform/form-designer/setting-panel/property-editor/field-accessUrl/accessUrl-editor.vue +2 -2
  129. package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaDataType-editor.vue +1 -1
  130. package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaMinLevel-editor.vue +50 -50
  131. package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaName-editor.vue +1 -1
  132. package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +7 -7
  133. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/addTableData-event-editor.vue +84 -85
  134. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/button-type-editor.vue +1 -1
  135. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindActions.js +262 -0
  136. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +97 -88
  137. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/form-host-event-editor.vue +188 -0
  138. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/icon-editor.vue +14 -15
  139. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +27 -10
  140. package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/checkStrictly-editor.vue +11 -13
  141. package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyName-editor.vue +74 -67
  142. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +27 -5
  143. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +35 -18
  144. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +1 -1
  145. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-type-editor.vue +1 -1
  146. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-valueFormat-editor.vue +1 -1
  147. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +1 -1
  148. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +35 -18
  149. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +1 -1
  150. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-type-editor.vue +1 -1
  151. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-valueFormat-editor.vue +1 -1
  152. package/src/components/xform/form-designer/setting-panel/property-editor/field-divider/contentPosition-editor.vue +1 -1
  153. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -59
  154. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +11 -11
  155. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +10 -10
  156. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +12 -12
  157. package/src/components/xform/form-designer/setting-panel/property-editor/field-file-upload/file-upload-fileTypes-editor.vue +44 -44
  158. package/src/components/xform/form-designer/setting-panel/property-editor/field-html-text/htmlContent-editor.vue +29 -29
  159. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +6 -6
  160. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +4 -4
  161. package/src/components/xform/form-designer/setting-panel/property-editor/field-number/controlsPosition-editor.vue +1 -1
  162. package/src/components/xform/form-designer/setting-panel/property-editor/field-picture-upload/picture-upload-fileTypes-editor.vue +44 -44
  163. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +115 -115
  164. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +115 -115
  165. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/highThreshold-editor.vue +1 -1
  166. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/lowThreshold-editor.vue +1 -1
  167. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  168. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-max-editor.vue +1 -1
  169. package/src/components/xform/form-designer/setting-panel/property-editor/field-script/script-editor.vue +4 -4
  170. package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +4 -4
  171. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/fontSize-editor.vue +1 -1
  172. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
  173. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +3 -3
  174. package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/activeText-editor.vue +1 -1
  175. package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/inactiveText-editor.vue +1 -1
  176. package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/switchWidth-editor.vue +1 -1
  177. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +2 -2
  178. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +74 -74
  179. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +3 -3
  180. package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +34 -18
  181. package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +1 -1
  182. package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-timeLimit-editor.vue +53 -0
  183. package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +35 -18
  184. package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +1 -1
  185. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchField-editor.vue +2 -2
  186. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +2 -2
  187. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +1 -1
  188. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +1 -1
  189. package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +2 -2
  190. package/src/components/xform/form-designer/setting-panel/property-editor/fileMaxSize-editor.vue +1 -1
  191. package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesSelect.vue +176 -176
  192. package/src/components/xform/form-designer/setting-panel/property-editor/fixedQuery-editor.vue +39 -0
  193. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +41 -6
  194. package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +2 -2
  195. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +972 -972
  196. package/src/components/xform/form-designer/setting-panel/property-editor/iconClass-editor.vue +1 -1
  197. package/src/components/xform/form-designer/setting-panel/property-editor/label-editor.vue +1 -1
  198. package/src/components/xform/form-designer/setting-panel/property-editor/labelAlign-editor.vue +1 -1
  199. package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +1 -1
  200. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
  201. package/src/components/xform/form-designer/setting-panel/property-editor/labelWidth-editor.vue +1 -1
  202. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
  203. package/src/components/xform/form-designer/setting-panel/property-editor/max-editor.vue +1 -1
  204. package/src/components/xform/form-designer/setting-panel/property-editor/maxLength-editor.vue +1 -1
  205. package/src/components/xform/form-designer/setting-panel/property-editor/min-editor.vue +1 -1
  206. package/src/components/xform/form-designer/setting-panel/property-editor/minLength-editor.vue +1 -1
  207. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  208. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +15 -4
  209. package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +3 -3
  210. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  211. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  212. package/src/components/xform/form-designer/setting-panel/property-editor/prefixIcon-editor.vue +14 -15
  213. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +6 -6
  214. package/src/components/xform/form-designer/setting-panel/property-editor/relative-default-block.vue +369 -0
  215. package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +1 -1
  216. package/src/components/xform/form-designer/setting-panel/property-editor/rows-editor.vue +1 -1
  217. package/src/components/xform/form-designer/setting-panel/property-editor/space-editor-editor.vue +1 -1
  218. package/src/components/xform/form-designer/setting-panel/property-editor/startPlaceholder-editor.vue +1 -1
  219. package/src/components/xform/form-designer/setting-panel/property-editor/step-editor.vue +1 -1
  220. package/src/components/xform/form-designer/setting-panel/property-editor/styleTableClass-editor.vue +1 -1
  221. package/src/components/xform/form-designer/setting-panel/property-editor/styleTitClass-editor.vue +1 -1
  222. package/src/components/xform/form-designer/setting-panel/property-editor/suffixIcon-editor.vue +14 -15
  223. package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +1 -1
  224. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +2 -3
  225. package/src/components/xform/form-designer/setting-panel/property-editor/type-editor.vue +1 -1
  226. package/src/components/xform/form-designer/setting-panel/property-editor/uploadTip-editor.vue +1 -1
  227. package/src/components/xform/form-designer/setting-panel/property-editor/uploadURL-editor.vue +1 -1
  228. package/src/components/xform/form-designer/setting-panel/property-editor/urlValueEnabled-editor.vue +91 -0
  229. package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +1 -1
  230. package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +1 -1
  231. package/src/components/xform/form-designer/setting-panel/property-editor/widgetWidth-editor.vue +1 -1
  232. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +374 -351
  233. package/src/components/xform/form-designer/toolbar-panel/index.vue +266 -103
  234. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +655 -589
  235. package/src/components/xform/form-designer/widget-panel/index.vue +391 -341
  236. package/src/components/xform/form-designer/widget-panel/indexMixin.js +351 -308
  237. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +4642 -4028
  238. package/src/components/xform/form-render/container-item/containerItemMixin.js +76 -61
  239. package/src/components/xform/form-render/container-item/data-table-item.vue +24 -13
  240. package/src/components/xform/form-render/container-item/data-table-mixin.js +5927 -3400
  241. package/src/components/xform/form-render/container-item/detail-h5-item.vue +173 -173
  242. package/src/components/xform/form-render/container-item/detail-item.vue +446 -224
  243. package/src/components/xform/form-render/container-item/detail-plain-item.vue +92 -0
  244. package/src/components/xform/form-render/container-item/list-h5-item.vue +1186 -411
  245. package/src/components/xform/form-render/container-item/tab-item.vue +129 -125
  246. package/src/components/xform/form-render/container-item/table-item.vue +0 -3
  247. package/src/components/xform/form-render/container-item/table2-item.vue +18 -10
  248. package/src/components/xform/form-render/dynamicDialogRender.js +140 -99
  249. package/src/components/xform/form-render/index.vue +8 -8
  250. package/src/components/xform/form-render/indexMixin.js +5299 -3766
  251. package/src/components/xform/form-render/refMixin.js +14 -11
  252. package/src/components/xform/lang/en-US.js +473 -438
  253. package/src/components/xform/lang/en-US_extension.js +4 -0
  254. package/src/components/xform/lang/zh-CN.js +646 -620
  255. package/src/components/xform/mixins/defaultHandle.js +363 -26
  256. package/src/components/xform/mixins/scriptHttp.js +54 -51
  257. package/src/components/xform/utils/attachmentValueUtil.js +239 -0
  258. package/src/components/xform/utils/fixedQueryUtil.js +93 -0
  259. package/src/components/xform/utils/format.js +195 -169
  260. package/src/components/xform/utils/queryParamUtil.js +84 -0
  261. package/src/components/xform/utils/tableColumnHelper.js +7 -8
  262. package/src/components/xform/utils/util.js +1663 -1551
  263. package/src/components/xform/utils/validators.js +100 -48
  264. package/src/index.js +403 -89
  265. package/src/layout/components/AppMain.vue +147 -119
  266. package/src/layout/components/Sidebar/default.vue +109 -59
  267. package/src/layout/components/TagsView/index.vue +1 -1
  268. package/src/layout/components/extractedCode/queryDialog.vue +33 -26
  269. package/src/layout/components/extractedCode/viewDialog.vue +207 -193
  270. package/src/layout/components/langTool.vue +128 -123
  271. package/src/layout/defaultLayout.vue +170 -158
  272. package/src/mixins/wf/index.js +40 -38
  273. package/src/public-path.js +38 -0
  274. package/src/router/modules/system.js +4 -0
  275. package/src/store/config/index.js +945 -669
  276. package/src/utils/pdfUtil.js +428 -70
  277. package/src/views/bd/setting/bd_company_env/dialog.vue +1 -1
  278. package/src/views/bd/setting/formVersion/button.vue +5 -0
  279. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +21 -10
  280. package/src/views/bd/setting/formVersion/link.vue +5 -0
  281. package/src/views/bd/setting/form_script/edit.vue +1 -0
  282. package/src/views/bd/setting/form_script/edit1.vue +1 -0
  283. package/src/views/bd/setting/form_script/form_list.vue +1 -0
  284. package/src/views/bd/setting/form_script/list.vue +1 -0
  285. package/src/views/bd/setting/form_script/list1.vue +2 -0
  286. package/src/views/bd/setting/form_template/edit.vue +1 -0
  287. package/src/views/bd/setting/form_template/list.vue +2 -0
  288. package/src/views/bd/setting/form_template/mixins/edit.js +77 -74
  289. package/src/views/bd/setting/table_model/edit.vue +16 -29
  290. package/src/views/bd/setting/table_model/list.vue +1 -0
  291. package/src/views/bd/setting/table_model/mixins/edit.js +295 -149
  292. package/src/views/bd/setting/table_model/mixins/zdDialog.js +32 -0
  293. package/src/views/support/export_template/list.vue +1 -1
  294. package/src/views/user/company_info/edit.vue +149 -88
  295. package/src/views/user/form/form_template/dialog.vue +1 -1
  296. package/src/views/user/form/form_template/itemList.vue +1 -1
  297. package/src/views/user/form/form_template/list.vue +1 -1
  298. package/src/views/user/form/form_template_field/dialog.vue +1 -1
  299. package/src/views/user/form/form_type/dialog.vue +1 -1
  300. package/src/views/user/form/form_type/list.vue +1 -1
  301. package/src/views/user/form/report_requestaccess/dialog.vue +1 -1
  302. package/src/views/user/form/report_requestaccess/list.vue +1 -1
  303. package/src/views/user/form/vform/designer.vue +51 -22
  304. package/src/views/user/form/vform/render.vue +21 -23
  305. package/src/views/user/form/view/list.vue +134 -37
  306. package/src/views/user/wf/wfReport/index.vue +24 -1
  307. package/src/views/user/wf/wf_manage/list.vue +8 -4
  308. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +0 -209
  309. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +0 -1639
  310. package/src/views/bd/setting/table_model/mixins/edit copy.js +0 -903
  311. package/src/views/user/menu/voc_list.vue +0 -686
@@ -1,686 +0,0 @@
1
- <template>
2
- <div id="containt">
3
- <el-tabs v-model="activeName" class="tab-box">
4
- <el-tab-pane :label="$t1('列表')" name="second">
5
- <div class="grid-height">
6
- <vxe-grid
7
- ref="table-m1"
8
- v-bind="vxeOption"
9
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
10
- @custom="$vxeTableUtil.customHandle"
11
- >
12
- <template #form>
13
- <div class="clearfix screen-btns">
14
- <div class="fl">
15
- <vxe-button
16
- status="primary"
17
- class="button-sty"
18
- icon="el-icon-plus"
19
- :disabled="!hasSysType"
20
- @click="addMenu(0)"
21
- >
22
- {{ $t1("新增一级菜单") }}
23
- </vxe-button>
24
- </div>
25
- <div class="fr">
26
- <vxe-button
27
- icon="el-icon-brush"
28
- class="button-sty"
29
- @click="resetEvent"
30
- type="text"
31
- status="primary"
32
- plain
33
- >{{ $t1("刷新") }}
34
- </vxe-button>
35
- <vxe-button
36
- status="warning"
37
- icon="el-icon-search"
38
- class="button-sty"
39
- @click="searchEvent"
40
- >
41
- {{ $t1("搜索") }}
42
- </vxe-button>
43
- </div>
44
- </div>
45
- <vxe-form
46
- ref="form"
47
- class="screen-box"
48
- title-width="92px"
49
- title-align="right"
50
- :data="formData"
51
- @submit="searchEvent"
52
- >
53
- <vxe-form-item :title="$t1('系统类型') + ':'" field="sysType">
54
- <template v-slot>
55
- <el-select
56
- v-model="formData.sysType"
57
- size="small"
58
- @change="onSysTypeChange"
59
- >
60
- <el-option
61
- v-for="(dict, index) in sysTypeDicts"
62
- :key="index"
63
- :value="dict.sn"
64
- :label="dict.value"
65
- ></el-option>
66
- </el-select>
67
- </template>
68
- </vxe-form-item>
69
- <vxe-form-item :title="$t1('菜单名称') + ':'" field="menuName">
70
- <template v-slot>
71
- <el-input
72
- v-model="formData.menuName"
73
- size="small"
74
- clearable
75
- />
76
- </template>
77
- </vxe-form-item>
78
- <vxe-form-item :title="$t1('菜单编码') + ':'" field="menuCode">
79
- <template v-slot>
80
- <el-input
81
- v-model="formData.menuCode"
82
- size="small"
83
- clearable
84
- />
85
- </template>
86
- </vxe-form-item>
87
- <vxe-form-item :title="$t1('是否启用') + ':'" field="enabled">
88
- <template v-slot>
89
- <el-select v-model="formData.enabled" clearable>
90
- <el-option value="true" :label="$t1('启用')"></el-option>
91
- <el-option value="false" :label="$t1('禁用')"></el-option>
92
- </el-select>
93
- </template>
94
- </vxe-form-item>
95
- </vxe-form>
96
- </template>
97
- <template #menuImgEdit="{ row, rowIndex }">
98
- <el-popover
99
- placement="bottom"
100
- width="680"
101
- trigger="click"
102
- :ref="'menuImg' + rowIndex"
103
- >
104
- <div class="icons-box">
105
- <div
106
- class="item iconfont"
107
- v-for="(item, index) in iconList"
108
- :key="index"
109
- :class="[item, row.menuImg == item ? 'on' : '']"
110
- @click="checkMenuImg(row, item, rowIndex)"
111
- ></div>
112
- </div>
113
- <label
114
- class="icons-box_select"
115
- :class="{ noNone: !!row.menuImg }"
116
- slot="reference"
117
- >
118
- <i :class="row.menuImg" class="iconfont"></i>
119
- <i class="el-icon-arrow-down"></i>
120
- <i
121
- class="el-icon-circle-close icon-box_del"
122
- @click.stop="clearMenuImg(row)"
123
- ></i>
124
- </label>
125
- </el-popover>
126
- </template>
127
- <template #operate="obj">
128
- <div class="cell-operate">
129
- <template v-if="$refs['table-m1'].isActiveByRow(obj.row)">
130
- <a @click="saveRowEvent(obj)" class="a-link">
131
- <el-tooltip
132
- :enterable="false"
133
- effect="dark"
134
- :content="$t1('保存')"
135
- placement="top"
136
- popper-class="tooltip-skin"
137
- ><i class="el-icon-circle-check"></i
138
- ></el-tooltip>
139
- </a>
140
- <a
141
- @click="cancleRowEvent(obj)"
142
- class="a-link"
143
- v-if="hasSaveRow(obj.row)"
144
- >
145
- <el-tooltip
146
- :enterable="false"
147
- effect="dark"
148
- :content="$t1('取消行编辑')"
149
- placement="top"
150
- popper-class="tooltip-skin"
151
- ><i class="el-icon-circle-close"></i
152
- ></el-tooltip>
153
- </a>
154
- <a
155
- @click="removeRowEvent(obj)"
156
- class="a-link"
157
- v-if="!hasSaveRow(obj.row)"
158
- >
159
- <el-tooltip
160
- :enterable="false"
161
- effect="dark"
162
- :content="$t1('删除')"
163
- placement="top"
164
- popper-class="tooltip-skin"
165
- ><i class="el-icon-delete"></i
166
- ></el-tooltip>
167
- </a>
168
- </template>
169
- <template v-else>
170
- <a
171
- class="a-link"
172
- @click="addMenu(0, obj)"
173
- v-if="obj.row && obj.row.type != 2"
174
- >
175
- <el-tooltip
176
- :enterable="false"
177
- effect="dark"
178
- :content="$t1('新增')"
179
- placement="top"
180
- popper-class="tooltip-skin"
181
- ><i class="el-icon-circle-plus-outline"></i
182
- ></el-tooltip>
183
- </a>
184
- <a
185
- @click="editRowEvent(obj)"
186
- class="a-link"
187
- v-if="obj.row && !obj.row.is_top"
188
- >
189
- <el-tooltip
190
- :enterable="false"
191
- effect="dark"
192
- :content="$t1('行编辑')"
193
- placement="top"
194
- popper-class="tooltip-skin"
195
- ><i class="el-icon-edit-outline"></i
196
- ></el-tooltip>
197
- </a>
198
- </template>
199
- </div>
200
- </template>
201
- </vxe-grid>
202
- </div>
203
- </el-tab-pane>
204
- </el-tabs>
205
- </div>
206
- </template>
207
-
208
- <script>
209
- import { tableTreeMixins } from "@base/mixins/tableTree/index.js";
210
-
211
- export default {
212
- name: "menu:in_list",
213
- components: {},
214
- mixins: [tableTreeMixins],
215
- mounted() {
216
- this.$getBaseDicts({
217
- code: "sysType",
218
- success: ({ dicts }) => {
219
- this.sysTypeDicts = dicts || [];
220
- if (this.sysTypeDicts.length) {
221
- this.formData.sysType = this.sysTypeDicts[0].sn;
222
- }
223
- },
224
- }).finally(() => {
225
- this.initTableList();
226
- });
227
- },
228
- computed: {
229
- hasSysType() {
230
- return (
231
- this.formData.sysType !== null &&
232
- this.formData.sysType !== undefined &&
233
- this.formData.sysType !== ""
234
- );
235
- },
236
- },
237
- data() {
238
- let that = this;
239
- return {
240
- activeName: "second",
241
- dataId: "",
242
- formData: {
243
- sysType: "",
244
- },
245
- sysTypeDicts: [],
246
- vxeOption: {},
247
- menuType: 0,
248
- iconList: [
249
- "icon-shangji-shangjiguanli",
250
- "icon-daifahuodingdan",
251
- "icon-jichuziliao",
252
- "icon-zuzhi",
253
- "icon-shujujianmo",
254
- "icon-wenjianguanli",
255
- "icon-guanli1",
256
- "icon-dianshang",
257
- "icon-ziyuan",
258
- "icon-feiyongguanli",
259
- "icon-yunpingtai",
260
- "icon-yingxiao",
261
- "icon-biaodanguanli",
262
- "icon-baobiao",
263
- "icon-yusuanguanli",
264
- "icon-baoxiao",
265
- "icon-yanfa",
266
- "icon-hetong",
267
- "icon-danjuliuchengshezhi",
268
- "icon-shenqingguanli",
269
- "icon-xitongshezhi",
270
- "icon-icon-servicenetwork",
271
- "icon-a-zu96",
272
- "icon-chanpin2",
273
- "icon-shangpin2",
274
- "icon-tuihuanhuo1",
275
- "icon-wenquantiaocha",
276
- "icon-cangchu",
277
- "icon-caigou",
278
- "icon-churuku",
279
- "icon-fl-gouwuche",
280
- "icon-shangpinfenlei",
281
- "icon-shangpinshangxiajia",
282
- "icon-taocanxinxi_changgui",
283
- "icon-kehuchaxun",
284
- "icon-shangpin-canshumoban",
285
- "icon-shangpinguanli-shangpinweihu",
286
- "icon-kehubiangeng",
287
- "icon-shanghuguanxiweihu",
288
- "icon-kehuxinzeng",
289
- "icon-dunpaibaowei",
290
- "icon-a-061_bijiben",
291
- "icon-a-061_gengduo",
292
- "icon-a-061_gouwu-12",
293
- "icon-a-061_jianzhu-17",
294
- "icon-a-061_shuben",
295
- "icon-a-061_jinbi",
296
- "icon-a-061_guangbo",
297
- "icon-a-061_shuqian",
298
- "icon-a-061_shangpin",
299
- "icon-a-061_kuaidi",
300
- "icon-a-061_wenjian",
301
- "icon-a-061_xiaoxi",
302
- "icon-a-rongqi262",
303
- "icon-a-rongqi256",
304
- "icon-a-rongqi265",
305
- "icon-a-rongqi285",
306
- "icon-huomiao-mianxing",
307
- "icon-dingwei-mianxing",
308
- "icon-xiuxian-mianxing",
309
- "icon-shuju-wenjianliebiao",
310
- "icon-chexing-pinpailiebiao",
311
- "icon-yonghu-gongzuodanwei",
312
- "icon-shujujieguo",
313
- "icon-gongyingshangguanli",
314
- "icon-xitong-quanxianguanli",
315
- "icon-shujuguanli",
316
- "icon-yonghushenhe",
317
- "icon-gongyingshangliebiao",
318
- "icon-xiaoliangliebiao",
319
- "icon-chexing-ruanjianbanben",
320
- "icon-xitong-meijuguanli",
321
- "icon-huiyuan-qiyeguanli",
322
- "icon-chexing-ruanjianbanben1",
323
- "icon-shuju-ceshiguihua",
324
- "icon-yonghuliebiao",
325
- "icon-yonghuguanli",
326
- "icon-xitong-jiaoseguanli",
327
- "icon-chexingliebiao",
328
- "icon-chexingguanli",
329
- "icon-shujujiegou",
330
- "icon-huiyuanyonghu",
331
- "icon-huiyuan-quanxianguanli",
332
- "icon-shexiangtouqiehuan",
333
- "icon-luyin",
334
- "icon-yingpianjiesuo",
335
- "icon-yingpianjiasuo",
336
- "icon-qianlu",
337
- "icon-luxiangjiasuo",
338
- "icon-a-yonghuliebiao3x",
339
- "icon-a-yijianfankui3x",
340
- "icon-a-chanpinshangjiaguanli3x",
341
- "icon-a-kefufankui3x",
342
- "icon-a-zhanghaoguanli3x",
343
- "icon-a-kefu3x",
344
- "icon-a-kesu3x",
345
- "icon-a-ribaobiaoshuju3x",
346
- "icon-a-tuikuan3x",
347
- "icon-gudingmianzhi",
348
- "icon-manjianquan",
349
- "icon-xiangouhuodong",
350
- "icon-youhuiquan",
351
- "icon-Xyuanhuodong",
352
- "icon-shangpindongcha",
353
- "icon-zhijianghuodong",
354
- "icon-shizhongshezhi",
355
- "icon-kasuceshi",
356
- "icon-SDkarongliang",
357
- "icon-sudubuchang",
358
- "icon-sududanwei",
359
- "icon-GPSxinxi",
360
- "icon-GPSxianshi",
361
- "icon-GPSshuiyin",
362
- "icon-a-shouhui3x",
363
- "icon-a-yunyingpeizhi3x",
364
- "icon-biaotitubiao",
365
- "icon-tubiao1",
366
- "icon-tubiao18",
367
- "icon-tubiao28",
368
- "icon-tiyugonggongsheshi",
369
- "icon-tubiaoliebiao",
370
- "icon-VRtubiao",
371
- "icon-tubiaoAzitubiao",
372
- "icon-tubiao2",
373
- "icon-tubiao-",
374
- "icon-tubiao-1",
375
- "icon-tubiao-2",
376
- "icon-tubiao-3",
377
- "icon-tubiao3",
378
- "icon-a-tubiao-daqijiayou",
379
- "icon-charge-fill",
380
- "icon-book-fill",
381
- "icon-device-set-fill",
382
- "icon-dynamic-password-fill",
383
- "icon-map-fill",
384
- "icon-security-fill",
385
- "icon-tool-fill",
386
- "icon-readcard-fill",
387
- "icon-chaye",
388
- "icon-baoxian",
389
- "icon-dadou",
390
- "icon-nongye",
391
- "icon-nongyeqixiang",
392
- "icon-pingguo",
393
- "icon-nongyebaoxian",
394
- "icon-yaogan",
395
- "icon-zhiwu",
396
- "icon-weixing",
397
- "icon-qixiang",
398
- "icon-zuowu",
399
- "icon-qiyeguanli-2",
400
- "icon-qiyeshenhe-2",
401
- "icon-xiaoxi",
402
- "icon-xunhuan",
403
- "icon-zoushi",
404
- "icon-bushu",
405
- "icon-duanlian",
406
- "icon-gaojing",
407
- "icon-renyuan",
408
- "icon-tubiao4",
409
- "icon-wangguan",
410
- "icon-wangluo",
411
- "icon-fenzhi",
412
- "icon-gongchang",
413
- "icon-zhihuizhongxin",
414
- "icon-mti-an-gongmaoqiye",
415
- "icon-mti-an-zhongdaweixianyuan",
416
- "icon-mti-cheng-huanjing",
417
- "icon-mti-cheng-lvhua",
418
- "icon-mti-di-dimianchenjiang",
419
- "icon-mti-cheng-fengli",
420
- "icon-mti-di-qiangzhentai",
421
- "icon-mti-dong-yinhuan",
422
- "icon-mti-dong-jiaotongshigu",
423
- "icon-mti-dong-jianzhugongdi",
424
- "icon-mti-fang-jiangyuliang",
425
- "icon-mti-dong-weihuapin",
426
- "icon-mti-gu-shengtaihuanjing",
427
- "icon-mti-ying-daochang",
428
- "icon-mti-sen-shumuziyuanfenbu",
429
- "icon-mti-gongdi",
430
- "icon-mti-ying-moshiqiehuan",
431
- "icon-mti-ying-tongxunbaozhang",
432
- "icon-mti-ying-qidongyuan",
433
- "icon-mti-ying-jishuidian",
434
- "icon-mti-ying-zaihoufupan",
435
- "icon-wodeshequ2",
436
- "icon-service-line-1",
437
- "icon-notice-manage-fill",
438
- "icon-announcement-fill",
439
- "icon-box-noise-fill",
440
- ],
441
- typeMap: {
442
- 0: this.$t1("菜单"),
443
- 1: this.$t1("按钮"),
444
- 2: this.$t1("首页"),
445
- 3: this.$t1("外部菜单"),
446
- 4: this.$t1("第三方地址"),
447
- 5: this.$t1("动态表单"),
448
- },
449
- };
450
- },
451
- methods: {
452
- ensureSysType() {
453
- if (!this.hasSysType) {
454
- this.$message.warning(this.$t1("请先选择系统类型"));
455
- return false;
456
- }
457
- return true;
458
- },
459
- onSysTypeChange() {
460
- if (this.hasSysType) {
461
- this.searchEvent();
462
- }
463
- },
464
- searchEvent() {
465
- if (!this.ensureSysType()) {
466
- return;
467
- }
468
- this.$refs["table-m1"].commitProxy("reload");
469
- },
470
- resetEvent() {
471
- let sysType = this.formData.sysType;
472
- this.formData = { sysType };
473
- if (this.hasSysType) {
474
- this.$refs["table-m1"].commitProxy("reload");
475
- }
476
- },
477
- initTableList() {
478
- let that = this;
479
- let tableOption = {
480
- vue: this,
481
- tableRef: "table-m1",
482
- tableName: "user_menu_list-m1",
483
- path: USER_PREFIX + "/third_party_menu/list",
484
- treeNodeUrl: USER_PREFIX + "/third_party_menu/listChildren",
485
- editSaveUrl: USER_PREFIX + "/third_party_menu/save",
486
- editDefaultRow: () => {
487
- return { enabled: true, type: 0, sysType: this.formData.sysType };
488
- },
489
- param: () => {
490
- return this.formData;
491
- },
492
- treeNodeParam: (row) => {
493
- return {
494
- parent: row.id,
495
- enabled: this.formData.enabled,
496
- sysType: this.formData.sysType,
497
- };
498
- },
499
- treeConditions: ["enabled", "sysType"],
500
- config: {
501
- proxyConfig: {
502
- autoLoad: false,
503
- },
504
- treeConfig: {
505
- parentField: "parent",
506
- },
507
- scrollX: {
508
- enabled: false,
509
- },
510
- },
511
- columns: [
512
- { type: "checkbox", width: 48, resizable: false, fixed: "left" },
513
- {
514
- title: this.$t1("菜单名称"),
515
- field: "menuName",
516
- width: 250,
517
- fixed: "left",
518
- treeNode: true,
519
- editRender: { name: "input" },
520
- slots: {
521
- default: ({ row }) => {
522
- return [
523
- <a
524
- class="levitate-tips"
525
- onclick={(event) => {
526
- event.stopPropagation();
527
- this.$refs["table-m1"].toggleTreeExpand(row);
528
- }}
529
- >
530
- {row.menuName}
531
- </a>,
532
- ];
533
- },
534
- },
535
- },
536
- {
537
- field: "menuCode",
538
- title: this.$t1("菜单编码"),
539
- width: 250,
540
- editRender: {},
541
- slots: {
542
- edit: ({ row }) => {
543
- return [<el-input v-model={row.menuCode} />];
544
- },
545
- },
546
- },
547
- {
548
- field: "url",
549
- title: this.$t1("菜单地址"),
550
- width: 200,
551
- editRender: {},
552
- slots: {
553
- edit: ({ row }) => {
554
- return [<el-input v-model={row.url} />];
555
- },
556
- },
557
- },
558
- {
559
- field: "enabled",
560
- title: this.$t1("是否启用"),
561
- width: 150,
562
- editRender: {
563
- name: "$select",
564
- events: {
565
- change: () => {
566
- this.$forceUpdate();
567
- },
568
- },
569
- options: [
570
- {
571
- label: this.$t1("启用"),
572
- value: true,
573
- },
574
- {
575
- label: this.$t1("禁用"),
576
- value: false,
577
- },
578
- ],
579
- },
580
- slots: {
581
- default: ({ row }) => {
582
- if (row.enabled) {
583
- return [<div class="txt-status">{this.$t1("启用")}</div>];
584
- } else {
585
- return [<div class="txt-status s-3">{this.$t1("禁用")}</div>];
586
- }
587
- },
588
- },
589
- },
590
- {
591
- field: "orders",
592
- title: this.$t1("序号"),
593
- width: 100,
594
- editRender: { name: "input" },
595
- },
596
- {
597
- field: "type",
598
- title: this.$t1("类型"),
599
- width: 100,
600
- slots: {
601
- default: ({ row }) => {
602
- return this.typeMap[row.type] || "";
603
- },
604
- },
605
- },
606
- {
607
- field: "menuImg",
608
- title: this.$t1("图标"),
609
- width: 150,
610
- editRender: {},
611
- slots: {
612
- default: ({ row }) => {
613
- return [<i class={"iconfont " + row.menuImg}></i>];
614
- },
615
- edit: "menuImgEdit",
616
- },
617
- },
618
- {
619
- field: "route",
620
- title: this.$t1("路由"),
621
- width: 100,
622
- editRender: { name: "input" },
623
- },
624
- { title: this.$t1("创建时间"), field: "createDate", width: 150 },
625
- { title: this.$t1("更新时间"), field: "modifyDate", width: 150 },
626
- {
627
- width: 100,
628
- title: "",
629
- fixed: "right",
630
- sortable: false,
631
- slots: { default: "operate" },
632
- },
633
- ],
634
- };
635
- this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
636
- this.vxeOption = opts;
637
- this.$nextTick(() => {
638
- if (this.hasSysType) {
639
- this.searchEvent();
640
- }
641
- });
642
- });
643
- },
644
- addMenu(type, parentParam) {
645
- if (!this.ensureSysType()) {
646
- return;
647
- }
648
- this.menuType = type;
649
- if (parentParam) {
650
- this.insertChildEvent(parentParam);
651
- } else {
652
- this.insertTopRow(this.$refs["table-m1"]);
653
- }
654
- },
655
- checkMenuImg(row, menuImg, rowIndex) {
656
- row.menuImg = menuImg;
657
- this.$refs["menuImg" + rowIndex].showPopper = false;
658
- },
659
- clearMenuImg(row) {
660
- row.menuImg = null;
661
- },
662
- },
663
- };
664
- </script>
665
- <style scoped lang="scss">
666
- .el-select-dropdown__item .iconfont {
667
- vertical-align: middle;
668
- margin-right: 3px;
669
- }
670
-
671
- .icons-box_select {
672
- .el-icon-circle-close {
673
- display: none;
674
- }
675
- }
676
-
677
- .icons-box_select.noNone:hover {
678
- .el-icon-arrow-down {
679
- display: none;
680
- }
681
-
682
- .el-icon-circle-close {
683
- display: inline-block;
684
- }
685
- }
686
- </style>