imatrix-ui 0.0.1-dsn

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 (393) hide show
  1. package/README.md +7 -0
  2. package/index.html +13 -0
  3. package/lib/super-ui.css +1 -0
  4. package/lib/super-ui.js +117579 -0
  5. package/lib/super-ui.umd.cjs +204 -0
  6. package/lib/vite.svg +1 -0
  7. package/package.json +35 -0
  8. package/packages/IntervalSelection/index.js +6 -0
  9. package/packages/IntervalSelection/src/quarterScope.vue +405 -0
  10. package/packages/IntervalSelection/src/sectionDate.vue +475 -0
  11. package/packages/breadcrumb/index.js +6 -0
  12. package/packages/breadcrumb/src/breadcrumb.vue +81 -0
  13. package/packages/department-tree/index.js +6 -0
  14. package/packages/department-tree/src/department-tree.vue +114 -0
  15. package/packages/department-tree-inline/index.js +6 -0
  16. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +494 -0
  17. package/packages/department-tree-inline/src/department-single-tree-inline.vue +367 -0
  18. package/packages/department-tree-inline/src/department-tree-inline.vue +86 -0
  19. package/packages/department-tree-inline/src/department-tree-service.js +344 -0
  20. package/packages/department-tree-inline/src/search-result.vue +238 -0
  21. package/packages/department-user-tree/index.js +6 -0
  22. package/packages/department-user-tree/src/department-user-multiple-tree.vue +133 -0
  23. package/packages/department-user-tree/src/department-user-single-tree.vue +96 -0
  24. package/packages/department-user-tree/src/department-user-tree.vue +115 -0
  25. package/packages/department-user-tree-inline/index.js +9 -0
  26. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +757 -0
  27. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +357 -0
  28. package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +87 -0
  29. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +309 -0
  30. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +180 -0
  31. package/packages/department-user-tree-inline/src/search-result.vue +277 -0
  32. package/packages/directives/prevent-reclick.js +22 -0
  33. package/packages/dynamic-source-select/index.js +6 -0
  34. package/packages/dynamic-source-select/src/dynamic-source-select-service.js +106 -0
  35. package/packages/dynamic-source-select/src/dynamic-source-select.vue +701 -0
  36. package/packages/dynamic-source-select/src/events.js +78 -0
  37. package/packages/fs-preview/index.js +6 -0
  38. package/packages/fs-preview/src/fs-preview.vue +287 -0
  39. package/packages/fs-upload/index.js +6 -0
  40. package/packages/fs-upload/src/fs-upload-multi.vue +448 -0
  41. package/packages/fs-upload/src/fs-upload-single.vue +353 -0
  42. package/packages/fs-upload/src/fs-upload.vue +191 -0
  43. package/packages/fs-upload/src/see-big-picture.vue +67 -0
  44. package/packages/fs-upload-list/index.js +6 -0
  45. package/packages/fs-upload-list/src/fs-upload-list.vue +375 -0
  46. package/packages/hamburger/index.js +6 -0
  47. package/packages/hamburger/src/hamburger.vue +42 -0
  48. package/packages/index.js +124 -0
  49. package/packages/multipart-upload/index.js +6 -0
  50. package/packages/multipart-upload/src/index.vue +66 -0
  51. package/packages/multipart-upload/src/multipart-upload-form.vue +383 -0
  52. package/packages/multipart-upload/src/multipart-upload-list.vue +527 -0
  53. package/packages/organization-input/index.js +6 -0
  54. package/packages/organization-input/src/organization-input.vue +579 -0
  55. package/packages/plugins/export-data-new.js +630 -0
  56. package/packages/plugins/export-data.js +431 -0
  57. package/packages/plugins/index.js +15 -0
  58. package/packages/plugins/public-method.js +47 -0
  59. package/packages/remove-department/index.js +6 -0
  60. package/packages/remove-department/src/remove-department.vue +201 -0
  61. package/packages/remove-department/src/remove-dept-service.js +31 -0
  62. package/packages/remove-user/index.js +6 -0
  63. package/packages/remove-user/src/remove-user-service.js +31 -0
  64. package/packages/remove-user/src/remove-user.vue +227 -0
  65. package/packages/remove-workgroup/index.js +6 -0
  66. package/packages/remove-workgroup/src/remove-workgroup-service.js +31 -0
  67. package/packages/remove-workgroup/src/remove-workgroup.vue +184 -0
  68. package/packages/rich-editor/index.js +7 -0
  69. package/packages/rich-editor/index.vue +314 -0
  70. package/packages/rich-editor/tinymce/icons/default/icons.min.js +1 -0
  71. package/packages/rich-editor/tinymce/langs/README.md +3 -0
  72. package/packages/rich-editor/tinymce/langs/zh-Hans.js +1 -0
  73. package/packages/rich-editor/tinymce/license.txt +21 -0
  74. package/packages/rich-editor/tinymce/models/dom/model.min.js +4 -0
  75. package/packages/rich-editor/tinymce/plugins/accordion/plugin.min.js +4 -0
  76. package/packages/rich-editor/tinymce/plugins/advlist/plugin.min.js +4 -0
  77. package/packages/rich-editor/tinymce/plugins/anchor/plugin.min.js +4 -0
  78. package/packages/rich-editor/tinymce/plugins/autolink/plugin.min.js +4 -0
  79. package/packages/rich-editor/tinymce/plugins/autoresize/plugin.min.js +4 -0
  80. package/packages/rich-editor/tinymce/plugins/autosave/plugin.min.js +4 -0
  81. package/packages/rich-editor/tinymce/plugins/charmap/plugin.min.js +4 -0
  82. package/packages/rich-editor/tinymce/plugins/code/plugin.min.js +4 -0
  83. package/packages/rich-editor/tinymce/plugins/codesample/plugin.min.js +4 -0
  84. package/packages/rich-editor/tinymce/plugins/directionality/plugin.min.js +4 -0
  85. package/packages/rich-editor/tinymce/plugins/emoticons/js/emojiimages.js +1 -0
  86. package/packages/rich-editor/tinymce/plugins/emoticons/js/emojiimages.min.js +3 -0
  87. package/packages/rich-editor/tinymce/plugins/emoticons/js/emojis.js +1 -0
  88. package/packages/rich-editor/tinymce/plugins/emoticons/js/emojis.min.js +2 -0
  89. package/packages/rich-editor/tinymce/plugins/emoticons/plugin.min.js +4 -0
  90. package/packages/rich-editor/tinymce/plugins/fullscreen/plugin.min.js +4 -0
  91. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ar.js +90 -0
  92. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +90 -0
  93. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ca.js +90 -0
  94. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/cs.js +90 -0
  95. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/da.js +90 -0
  96. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/de.js +90 -0
  97. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/el.js +90 -0
  98. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/en.js +90 -0
  99. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/es.js +90 -0
  100. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/eu.js +90 -0
  101. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/fa.js +90 -0
  102. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/fi.js +90 -0
  103. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +90 -0
  104. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/he_IL.js +90 -0
  105. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/hi.js +90 -0
  106. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/hr.js +90 -0
  107. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +90 -0
  108. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/id.js +90 -0
  109. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/it.js +90 -0
  110. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ja.js +90 -0
  111. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/kk.js +90 -0
  112. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +90 -0
  113. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ms.js +90 -0
  114. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +90 -0
  115. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/nl.js +90 -0
  116. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/pl.js +90 -0
  117. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +90 -0
  118. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +90 -0
  119. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ro.js +90 -0
  120. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ru.js +90 -0
  121. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/sk.js +90 -0
  122. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +90 -0
  123. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +90 -0
  124. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/th_TH.js +90 -0
  125. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/tr.js +90 -0
  126. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/uk.js +90 -0
  127. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/vi.js +90 -0
  128. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +84 -0
  129. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +90 -0
  130. package/packages/rich-editor/tinymce/plugins/help/plugin.min.js +4 -0
  131. package/packages/rich-editor/tinymce/plugins/image/plugin.min.js +4 -0
  132. package/packages/rich-editor/tinymce/plugins/importcss/plugin.min.js +4 -0
  133. package/packages/rich-editor/tinymce/plugins/insertdatetime/plugin.min.js +4 -0
  134. package/packages/rich-editor/tinymce/plugins/link/plugin.min.js +4 -0
  135. package/packages/rich-editor/tinymce/plugins/lists/plugin.min.js +4 -0
  136. package/packages/rich-editor/tinymce/plugins/media/plugin.min.js +4 -0
  137. package/packages/rich-editor/tinymce/plugins/nonbreaking/plugin.min.js +4 -0
  138. package/packages/rich-editor/tinymce/plugins/pagebreak/plugin.min.js +4 -0
  139. package/packages/rich-editor/tinymce/plugins/preview/plugin.min.js +4 -0
  140. package/packages/rich-editor/tinymce/plugins/quickbars/plugin.min.js +4 -0
  141. package/packages/rich-editor/tinymce/plugins/save/plugin.min.js +4 -0
  142. package/packages/rich-editor/tinymce/plugins/searchreplace/plugin.min.js +4 -0
  143. package/packages/rich-editor/tinymce/plugins/table/plugin.min.js +4 -0
  144. package/packages/rich-editor/tinymce/plugins/template/plugin.min.js +4 -0
  145. package/packages/rich-editor/tinymce/plugins/visualblocks/plugin.min.js +4 -0
  146. package/packages/rich-editor/tinymce/plugins/visualchars/plugin.min.js +4 -0
  147. package/packages/rich-editor/tinymce/plugins/wordcount/plugin.min.js +4 -0
  148. package/packages/rich-editor/tinymce/skins/content/dark/content.js +2 -0
  149. package/packages/rich-editor/tinymce/skins/content/dark/content.min.css +1 -0
  150. package/packages/rich-editor/tinymce/skins/content/default/content.js +2 -0
  151. package/packages/rich-editor/tinymce/skins/content/default/content.min.css +1 -0
  152. package/packages/rich-editor/tinymce/skins/content/document/content.js +2 -0
  153. package/packages/rich-editor/tinymce/skins/content/document/content.min.css +1 -0
  154. package/packages/rich-editor/tinymce/skins/content/tinymce-5/content.js +2 -0
  155. package/packages/rich-editor/tinymce/skins/content/tinymce-5/content.min.css +1 -0
  156. package/packages/rich-editor/tinymce/skins/content/tinymce-5-dark/content.js +2 -0
  157. package/packages/rich-editor/tinymce/skins/content/tinymce-5-dark/content.min.css +1 -0
  158. package/packages/rich-editor/tinymce/skins/content/writer/content.js +2 -0
  159. package/packages/rich-editor/tinymce/skins/content/writer/content.min.css +1 -0
  160. package/packages/rich-editor/tinymce/skins/ui/oxide/content.inline.js +2 -0
  161. package/packages/rich-editor/tinymce/skins/ui/oxide/content.inline.min.css +1 -0
  162. package/packages/rich-editor/tinymce/skins/ui/oxide/content.js +2 -0
  163. package/packages/rich-editor/tinymce/skins/ui/oxide/content.min.css +1 -0
  164. package/packages/rich-editor/tinymce/skins/ui/oxide/skin.js +2 -0
  165. package/packages/rich-editor/tinymce/skins/ui/oxide/skin.min.css +1 -0
  166. package/packages/rich-editor/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
  167. package/packages/rich-editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  168. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
  169. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -0
  170. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.js +2 -0
  171. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.min.css +1 -0
  172. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.js +2 -0
  173. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
  174. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  175. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  176. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.inline.js +2 -0
  177. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +1 -0
  178. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.js +2 -0
  179. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.min.css +1 -0
  180. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.js +2 -0
  181. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.min.css +1 -0
  182. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  183. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
  184. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  185. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
  186. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.js +2 -0
  187. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +1 -0
  188. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.js +2 -0
  189. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -0
  190. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  191. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
  192. package/packages/rich-editor/tinymce/themes/silver/theme.min.js +4 -0
  193. package/packages/rich-editor/tinymce/tinymce.d.ts +3238 -0
  194. package/packages/rich-editor/tinymce/tinymce.min.js +4 -0
  195. package/packages/rich-editor/tinymce/zh_CN.js +418 -0
  196. package/packages/rich-editor/viewer.vue +105 -0
  197. package/packages/scan-code-input/index.js +6 -0
  198. package/packages/scan-code-input/src/events.js +34 -0
  199. package/packages/scan-code-input/src/scan-code-input-colse.vue +140 -0
  200. package/packages/scan-code-input/src/scan-code-input.vue +132 -0
  201. package/packages/secret-info/index.js +7 -0
  202. package/packages/secret-info/index.vue +100 -0
  203. package/packages/super-grid/index.js +7 -0
  204. package/packages/super-grid/src/apis.js +1189 -0
  205. package/packages/super-grid/src/columns-config.vue +429 -0
  206. package/packages/super-grid/src/custom-formatter.js +430 -0
  207. package/packages/super-grid/src/dynamic-input.vue +1443 -0
  208. package/packages/super-grid/src/eventBus.js +10 -0
  209. package/packages/super-grid/src/events.js +56 -0
  210. package/packages/super-grid/src/formValidatorUtil.js +300 -0
  211. package/packages/super-grid/src/formatter.js +196 -0
  212. package/packages/super-grid/src/group-column.vue +99 -0
  213. package/packages/super-grid/src/header-context-menu.vue +82 -0
  214. package/packages/super-grid/src/index-column.vue +69 -0
  215. package/packages/super-grid/src/normal-column.vue +1233 -0
  216. package/packages/super-grid/src/public-methods.js +30 -0
  217. package/packages/super-grid/src/row-operation.vue +193 -0
  218. package/packages/super-grid/src/search-button.vue +79 -0
  219. package/packages/super-grid/src/search-condition-input.vue +74 -0
  220. package/packages/super-grid/src/search-condition-list.vue +70 -0
  221. package/packages/super-grid/src/search-form-advancedQuery.vue +833 -0
  222. package/packages/super-grid/src/search-form-dialog.vue +77 -0
  223. package/packages/super-grid/src/search-form-item.vue +496 -0
  224. package/packages/super-grid/src/search-form-number.vue +111 -0
  225. package/packages/super-grid/src/search-form-open.vue +178 -0
  226. package/packages/super-grid/src/search-form-ordinarySearch.vue +248 -0
  227. package/packages/super-grid/src/search-form.vue +767 -0
  228. package/packages/super-grid/src/search-methods.js +591 -0
  229. package/packages/super-grid/src/selection-column.vue +46 -0
  230. package/packages/super-grid/src/store.js +3 -0
  231. package/packages/super-grid/src/super-grid-service.js +728 -0
  232. package/packages/super-grid/src/super-grid.vue +2941 -0
  233. package/packages/super-grid/src/utils.js +880 -0
  234. package/packages/super-grid/src/view-image-dialog.vue +177 -0
  235. package/packages/super-nine-grid/index.js +7 -0
  236. package/packages/super-nine-grid/src/apis.js +108 -0
  237. package/packages/super-nine-grid/src/custom-formatter.js +73 -0
  238. package/packages/super-nine-grid/src/formatter.js +134 -0
  239. package/packages/super-nine-grid/src/search-form-number.vue +35 -0
  240. package/packages/super-nine-grid/src/search-form.vue +704 -0
  241. package/packages/super-nine-grid/src/search-methods.js +151 -0
  242. package/packages/super-nine-grid/src/store.js +3 -0
  243. package/packages/super-nine-grid/src/super-grid-service.js +107 -0
  244. package/packages/super-nine-grid/src/super-nine-grid.vue +1191 -0
  245. package/packages/super-nine-grid/src/utils.js +264 -0
  246. package/packages/svg-icon/index.js +6 -0
  247. package/packages/svg-icon/src/svg-icon.vue +43 -0
  248. package/packages/utils/date-util.js +292 -0
  249. package/packages/utils/dom.js +227 -0
  250. package/packages/utils/gogocodeTransfer.js +59 -0
  251. package/packages/utils/memory-cache-utils.js +117 -0
  252. package/packages/utils/utils.js +180 -0
  253. package/packages/utils/value-set.js +97 -0
  254. package/packages/valid-code/index.js +7 -0
  255. package/packages/valid-code/src/valid-code.vue +104 -0
  256. package/packages/workflow-button/index.js +6 -0
  257. package/packages/workflow-button/src/workflow-button.vue +553 -0
  258. package/packages/workflow-history-list/index.js +6 -0
  259. package/packages/workflow-history-list/src/api.js +7 -0
  260. package/packages/workflow-history-list/src/workflow-history-list.vue +291 -0
  261. package/packages/workgroup-tree/index.js +6 -0
  262. package/packages/workgroup-tree/src/workgroup-tree.vue +87 -0
  263. package/packages/workgroup-tree-inline/index.js +6 -0
  264. package/packages/workgroup-tree-inline/src/search-result.vue +226 -0
  265. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +539 -0
  266. package/packages/workgroup-tree-inline/src/workgroup-tree-service.js +93 -0
  267. package/packages/workgroup-user-tree/index.js +6 -0
  268. package/packages/workgroup-user-tree/src/workgroup-user-tree.vue +104 -0
  269. package/packages/workgroup-user-tree-inline/index.js +9 -0
  270. package/packages/workgroup-user-tree-inline/src/search-result.vue +270 -0
  271. package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +239 -0
  272. package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +681 -0
  273. package/packages/year-range-picker/index.js +6 -0
  274. package/packages/year-range-picker/src/year-range-picker.vue +53 -0
  275. package/public/vite.svg +1 -0
  276. package/src/api/sso-service.js +178 -0
  277. package/src/api/tab.js +36 -0
  278. package/src/api/user-service.js +11 -0
  279. package/src/assets/401/401.gif +0 -0
  280. package/src/assets/404/404-cloud.png +0 -0
  281. package/src/assets/404/404.png +0 -0
  282. package/src/assets/cloud.png +0 -0
  283. package/src/directives/permission/index.js +13 -0
  284. package/src/directives/permission/permission.js +20 -0
  285. package/src/i18n/i18n.js +16 -0
  286. package/src/i18n/langs/cn.js +265 -0
  287. package/src/i18n/langs/en.js +275 -0
  288. package/src/index.js +93 -0
  289. package/src/permission.js +182 -0
  290. package/src/plugins.js +18 -0
  291. package/src/router/index.js +92 -0
  292. package/src/store/getters.js +15 -0
  293. package/src/store/index.js +19 -0
  294. package/src/store/modules/app.js +54 -0
  295. package/src/store/modules/permission.js +145 -0
  296. package/src/store/modules/tab-content.js +36 -0
  297. package/src/store/modules/user.js +298 -0
  298. package/src/styles/display-layout.scss +34 -0
  299. package/src/styles/element-ui.scss +29 -0
  300. package/src/styles/index.scss +157 -0
  301. package/src/styles/mixin.scss +27 -0
  302. package/src/styles/theme/black/font-style.scss +70 -0
  303. package/src/styles/theme/black/index.scss +306 -0
  304. package/src/styles/theme/black/sidebar.scss +189 -0
  305. package/src/styles/theme/blue/font-style.scss +46 -0
  306. package/src/styles/theme/blue/index.scss +172 -0
  307. package/src/styles/theme/blue/sidebar.scss +171 -0
  308. package/src/styles/theme/blue2/font-style.scss +70 -0
  309. package/src/styles/theme/blue2/index.scss +188 -0
  310. package/src/styles/theme/blue2/sidebar.scss +201 -0
  311. package/src/styles/theme/dark-blue/button.scss +78 -0
  312. package/src/styles/theme/dark-blue/card.scss +62 -0
  313. package/src/styles/theme/dark-blue/checkbox.scss +10 -0
  314. package/src/styles/theme/dark-blue/dark-blue-var.scss +9 -0
  315. package/src/styles/theme/dark-blue/dialog.scss +21 -0
  316. package/src/styles/theme/dark-blue/element-variables.scss +7 -0
  317. package/src/styles/theme/dark-blue/font.scss +71 -0
  318. package/src/styles/theme/dark-blue/form.scss +51 -0
  319. package/src/styles/theme/dark-blue/index.scss +273 -0
  320. package/src/styles/theme/dark-blue/input.scss +15 -0
  321. package/src/styles/theme/dark-blue/message.scss +8 -0
  322. package/src/styles/theme/dark-blue/pagination.scss +18 -0
  323. package/src/styles/theme/dark-blue/radio.scss +13 -0
  324. package/src/styles/theme/dark-blue/scrollbar-style.scss +32 -0
  325. package/src/styles/theme/dark-blue/sidebar.scss +268 -0
  326. package/src/styles/theme/dark-blue/tab.scss +83 -0
  327. package/src/styles/theme/dark-blue/table.scss +60 -0
  328. package/src/styles/theme/dark-blue/tree.scss +57 -0
  329. package/src/styles/theme/dark-blue/var.scss +1028 -0
  330. package/src/styles/theme/gray/card-style.scss +54 -0
  331. package/src/styles/theme/gray/font-style.scss +70 -0
  332. package/src/styles/theme/gray/index.scss +172 -0
  333. package/src/styles/theme/gray/input-style.scss +19 -0
  334. package/src/styles/theme/gray/scrollbar-style.scss +32 -0
  335. package/src/styles/theme/gray/sidebar.scss +243 -0
  336. package/src/styles/theme/gray/tab-style.scss +81 -0
  337. package/src/styles/transition.scss +47 -0
  338. package/src/utils/auth-api.js +206 -0
  339. package/src/utils/auth.js +85 -0
  340. package/src/utils/calculator/calculator-factory-wf.js +558 -0
  341. package/src/utils/calculator/calculator-factory.js +145 -0
  342. package/src/utils/calculator/calculator-util.js +166 -0
  343. package/src/utils/common-util.js +467 -0
  344. package/src/utils/eventBus.js +10 -0
  345. package/src/utils/iconUtils.js +37 -0
  346. package/src/utils/index.js +102 -0
  347. package/src/utils/jump-page-utils.js +824 -0
  348. package/src/utils/local-storage.js +33 -0
  349. package/src/utils/menu.js +19 -0
  350. package/src/utils/permission.js +31 -0
  351. package/src/utils/permissionAuth.js +98 -0
  352. package/src/utils/range-selector.js +188 -0
  353. package/src/utils/request.js +269 -0
  354. package/src/utils/restful-interface-utils.js +57 -0
  355. package/src/utils/util.js +742 -0
  356. package/src/utils/validate.js +34 -0
  357. package/src/utils/watermark.js +108 -0
  358. package/src/utils/workflow-util.js +104 -0
  359. package/src/views/404.vue +248 -0
  360. package/src/views/dsc-component/Sidebar/Item.vue +81 -0
  361. package/src/views/dsc-component/Sidebar/Link.vue +38 -0
  362. package/src/views/dsc-component/Sidebar/SidebarItem.vue +197 -0
  363. package/src/views/dsc-component/Sidebar/index.vue +229 -0
  364. package/src/views/dsc-component/tabs/tab-content.vue +203 -0
  365. package/src/views/error-page/401.vue +106 -0
  366. package/src/views/error-page/404.vue +248 -0
  367. package/src/views/layout/EmptyLayout.vue +3 -0
  368. package/src/views/layout/Layout.vue +81 -0
  369. package/src/views/layout/NewLayout.vue +18 -0
  370. package/src/views/layout/components/AppMain.vue +39 -0
  371. package/src/views/layout/components/Breadcrumb/index.vue +158 -0
  372. package/src/views/layout/components/Menubar/Item.vue +79 -0
  373. package/src/views/layout/components/Menubar/Link.vue +38 -0
  374. package/src/views/layout/components/Menubar/SidebarItem.vue +164 -0
  375. package/src/views/layout/components/Menubar/index.vue +210 -0
  376. package/src/views/layout/components/Sidebar/Item.vue +53 -0
  377. package/src/views/layout/components/Sidebar/Link.vue +38 -0
  378. package/src/views/layout/components/Sidebar/SidebarItem.vue +135 -0
  379. package/src/views/layout/components/Sidebar/index.vue +141 -0
  380. package/src/views/layout/components/iframe-page.vue +38 -0
  381. package/src/views/layout/components/index.js +4 -0
  382. package/src/views/layout/components/tabs/tab-content.vue +207 -0
  383. package/src/views/layout/mixin/ResizeHandler.js +41 -0
  384. package/src/views/layout/tab-content-iframe-index.vue +38 -0
  385. package/src/views/layout/tab-content-index.vue +93 -0
  386. package/src/views/login/authredirect.vue +10 -0
  387. package/src/views/login/index.vue +296 -0
  388. package/src/views/login/update-password.vue +243 -0
  389. package/src/views/redirect/index.vue +14 -0
  390. package/src/views/svg-icon/index.js +6 -0
  391. package/src/views/svg-icon/src/svg-icon.vue +46 -0
  392. package/src/views/wf-history/tache-subprocess-history.vue +45 -0
  393. package/vite.config.js +37 -0
@@ -0,0 +1,1233 @@
1
+ <template>
2
+ <el-table-column
3
+ :align="align"
4
+ :class-name="column.prop"
5
+ :filter-method="filterMethod"
6
+ :filters="filters"
7
+ :fixed="fixed"
8
+ :header-align="headerAlign"
9
+ :prop="column.prop"
10
+ :sortable="sortable"
11
+ :width="getColumnWidth()"
12
+ >
13
+ <template v-slot:header>
14
+ <span :class="{ is_req: isFieldRequired() }"
15
+ ><span
16
+ :title="$escapeHtml(label)"
17
+ class="cell--span required__label"
18
+ v-html="$escapeHtml(label)"
19
+ /></span>
20
+ <el-icon v-if="isShowAdd" style="font-size: 20px; color: #409eff" @click="createFormSubTableRow">
21
+ <CirclePlus/>
22
+ </el-icon>
23
+ </template>
24
+ <template v-slot="scope">
25
+ <!--添加:key="column.prop+'_'+scope.$index"是为了解决多行是行编辑状态时新建的记录的文本框内有值的问题-->
26
+ <dynamic-input
27
+ v-if="lineEdit.editable && isEditable && scope.row.$editing"
28
+ v-model:value="scope.row[column.prop]"
29
+ :class="isRequired(scope.row.$editing) ? 'm-requried' : ''"
30
+ :column="column"
31
+ :is-sql="isSql"
32
+ :line-edit="lineEdit"
33
+ :list-code="listCode"
34
+ :list-toolbar-form-data="listToolbarFormData"
35
+ :options="column.valueSet"
36
+ :position="{
37
+ row: scope.$index,
38
+ prop: column.prop,
39
+ }"
40
+ :row="scope.row"
41
+ :row-index="scope.$index"
42
+ :type="column.componentType"
43
+ @findIndex="findIndex(scope.$index)"
44
+ @focus="onFocus(scope.$index)"
45
+ @prohibitToEdit="prohibitToEdit"
46
+ @refresData="refresData"
47
+ @refresMainTableFields="refresMainTableFields"
48
+ @refresPortData="refresPortData"
49
+ @refresPortsData="refresPortsData"
50
+ />
51
+ <span v-else>
52
+ <span v-if="column.operations" class="grid-operation-buttons">
53
+ <span
54
+ v-for="(operation, operationIndex) in column.operations"
55
+ :key="operationIndex"
56
+ class="cell--span"
57
+ >
58
+ <el-dropdown
59
+ v-if="operation.isGroup"
60
+ :size="
61
+ operation.buttons && operation.buttons.length > 0
62
+ ? operation.buttons[0].props.size
63
+ : 'small'
64
+ "
65
+ split-button
66
+ style="padding-left: 10px"
67
+ @command="handleCommand"
68
+ >
69
+ {{ $escapeHtml(operation.label) }}
70
+ <template v-slot:dropdown>
71
+ <el-dropdown-menu>
72
+ <span
73
+ v-for="(buttonChild, buttonChildIndex) in operation.buttons"
74
+ :key="buttonChild.props.code + buttonChildIndex"
75
+ >
76
+ <el-dropdown-item
77
+ v-permission="buttonChild.props.permission"
78
+ :command="
79
+ beforeHandleCommand(
80
+ buttonChild.props.code,
81
+ scope.row,
82
+ scope.$index
83
+ )
84
+ "
85
+ :disabled="preventReclick"
86
+ >
87
+ {{
88
+ $escapeHtml(
89
+ buttonChild.props.label
90
+ ? buttonChild.props.label
91
+ : buttonChild.props.code === 'search'
92
+ ? $t('superPageMessage.searchButtonLabel')
93
+ : ''
94
+ )
95
+ }}
96
+ </el-dropdown-item>
97
+ </span>
98
+ </el-dropdown-menu>
99
+ </template>
100
+ </el-dropdown>
101
+ <row-operation
102
+ v-else
103
+ :column="column"
104
+ :editing="scope.row.$editing"
105
+ :entity="scope.row"
106
+ :is-show="operation.isShow"
107
+ :label="
108
+ operation.props.label
109
+ ? operation.props.label
110
+ : scope.row[column.prop]
111
+ "
112
+ :on-click="operation.onClick"
113
+ :operation-index="operationIndex"
114
+ :operation-setting="operation.props"
115
+ :row-index="scope.$index"
116
+ />
117
+ </span>
118
+ </span>
119
+ <span
120
+ v-else-if="
121
+ customFormatValue(
122
+ scope.row,
123
+ column.prop,
124
+ customFormat,
125
+ scope.$index
126
+ )
127
+ "
128
+ class="cell--span"
129
+ >
130
+ <component
131
+ :is="column.prop + scope.$index"
132
+ :entity="scope.row"
133
+ :parent="parentFormData"
134
+ :prop="column.prop"
135
+ :row="scope.row"
136
+ :row-index="scope.$index"
137
+ :select-options="column.valueSet"
138
+ :show-value="$escapeHtml(getLabel(scope.row, scope.$index))"
139
+ :value="getCellValue(scope.row)"
140
+ />
141
+ </span>
142
+ <!-- 自定义格式的时候 -->
143
+ <span
144
+ v-else-if="
145
+ columnFormatter !== undefined &&
146
+ columnFormatter.type !== undefined &&
147
+ columnFormatter.type === 'customControl' &&
148
+ columnFormatter.options &&
149
+ columnFormatter.options.format &&
150
+ columnFormatter.options.format !== ''
151
+ "
152
+ class="cell--span"
153
+ >
154
+ <!--:key="column.prop+'_'+scope.$index+'_'+currentPage" 为了解决子表分页时,新增自动跳转到下一页,第一条记录的自定义控件被复用,导致业务逻辑没执行 -->
155
+ <component
156
+ :is="columnFormatter.options.format"
157
+ :key="column.prop + '_' + scope.$index + '_' + currentPage"
158
+ :current-page="currentPage"
159
+ :disabled="true"
160
+ :entity="pageGridData[scope.$index]"
161
+ :get-form-data="getFormData"
162
+ :get-grid-data="getTableGridData"
163
+ :grid-data="gridData"
164
+ :page-grid-data="pageGridData"
165
+ :parent="parentFormData"
166
+ :prop="column.prop"
167
+ :row="pageGridData[scope.$index]"
168
+ :row-index="scope.$index"
169
+ :select-options="column.valueSet"
170
+ :show-value="
171
+ $escapeHtml(getLabel(pageGridData[scope.$index], scope.$index))
172
+ "
173
+ :value="getCellValue(pageGridData[scope.$index])"
174
+ /></span>
175
+ <span
176
+ v-else-if="
177
+ columnFormatter !== undefined &&
178
+ columnFormatter.type !== undefined &&
179
+ columnFormatter.type === 'secretInfo'
180
+ "
181
+ :id="column.prop + 'DomData' + scope.$index"
182
+ class="cell--span"
183
+ >
184
+ <secret-info
185
+ :entity="scope.row"
186
+ :field-label="$escapeHtml(label)"
187
+ :list-code="listCode"
188
+ :list-name="listName"
189
+ :page-code="pageCode"
190
+ :prop="column.prop"
191
+ :table-name="tableName"
192
+ :value="getCellValue(scope.row)"
193
+ />
194
+ </span>
195
+ <span v-else-if="isObjectProp(column.prop)">
196
+ <span v-if="column.componentType === 'annex'" type="primary">
197
+ <span
198
+ v-if="isShowOverflowTooltip"
199
+ :id="column.prop + 'DomData' + scope.$index"
200
+ :style="{ width: cellWidth + 'px' }"
201
+ :title="$escapeHtml(getLabel(scope.row))"
202
+ class="ellipsis cell--span"
203
+ >
204
+ <span v-if="$escapeHtml(getLabel(scope.row, scope.$index))">
205
+ <el-icon class="annex-cell" @click="previewImg(scope.row)"><el-icon-zoom-in/></el-icon>
206
+ </span>
207
+ {{ $escapeHtml(getLabel(scope.row, scope.$index)) }}
208
+ </span>
209
+ <span
210
+ v-else
211
+ :id="column.prop + 'DomData' + scope.$index"
212
+ class="cell--span"
213
+ >
214
+ <span v-if="$escapeHtml(getLabel(scope.row, scope.$index))">
215
+ <el-icon class="annex-cell" @click="previewImg(scope.row)"><el-icon-zoom-in/></el-icon>
216
+ </span>
217
+ {{ $escapeHtml(getLabel(scope.row, scope.$index)) }}
218
+ </span>
219
+ </span>
220
+ <span
221
+ v-else-if="column.formatter && column.formatter.type === 'files'"
222
+ type="primary"
223
+ >
224
+ <span
225
+ v-if="isShowOverflowTooltip"
226
+ :id="column.prop + 'DomData' + scope.$index"
227
+ :style="{ width: cellWidth + 'px' }"
228
+ :title="$escapeHtml(getLabel(scope.row))"
229
+ class="ellipsis cell--span"
230
+ >
231
+ <span v-if="$escapeHtml(getLabel(scope.row, scope.$index))">
232
+ <el-icon class="annex-cell" @click="previewImg(scope.row)"><el-icon-zoom-in/></el-icon>
233
+ </span>
234
+ {{ $escapeHtml(getLabel(scope.row, scope.$index)) }}
235
+ </span>
236
+ <span
237
+ v-else
238
+ :id="column.prop + 'DomData' + scope.$index"
239
+ class="cell--span"
240
+ >
241
+ <span v-if="$escapeHtml(getLabel(scope.row, scope.$index))">
242
+ <el-icon class="annex-cell" @click="previewImg(scope.row)"><el-icon-zoom-in/></el-icon>
243
+ </span>
244
+ {{ $escapeHtml(getLabel(scope.row, scope.$index)) }}
245
+ </span>
246
+ </span>
247
+ <el-link
248
+ v-else-if="
249
+ columnFormatter !== undefined &&
250
+ columnFormatter.type !== undefined &&
251
+ columnFormatter.type === 'hyperlinks' &&
252
+ getMyHyperLinkSetting(scope.row).visible === true
253
+ "
254
+ type="primary"
255
+ @click="clickHyperLink(column, scope.row, listCode, scope.$index)"
256
+ >
257
+ <span
258
+ v-if="isShowOverflowTooltip"
259
+ :id="column.prop + 'DomData' + scope.$index"
260
+ :style="{ width: cellWidth + 'px' }"
261
+ :title="getMyHyperLinkSetting(scope.row).title"
262
+ class="ellipsis cell--span"
263
+ >{{ getMyHyperLinkSetting(scope.row).label
264
+ }}<i
265
+ v-if="getMyHyperLinkSetting(scope.row).icon"
266
+ :class="getMyHyperLinkSetting(scope.row).icon"
267
+ /></span>
268
+ <span
269
+ v-else
270
+ :id="column.prop + 'DomData' + scope.$index"
271
+ class="cell--span"
272
+ >{{ getMyHyperLinkSetting(scope.row).label
273
+ }}<i
274
+ v-if="getMyHyperLinkSetting(scope.row).icon"
275
+ :class="getMyHyperLinkSetting(scope.row).icon"
276
+ /></span>
277
+ </el-link>
278
+ <span
279
+ v-else-if="isShowOverflowTooltip"
280
+ :id="column.prop + 'DomData' + scope.$index"
281
+ :style="{ width: cellWidth + 'px' }"
282
+ :title="$escapeHtml(getLabel(scope.row))"
283
+ class="ellipsis cell--span"
284
+ >{{ $escapeHtml(getLabel(scope.row, scope.$index)) }}</span
285
+ >
286
+ <span
287
+ v-else
288
+ :id="column.prop + 'DomData' + scope.$index"
289
+ class="cell--span"
290
+ >{{ $escapeHtml(getLabel(scope.row, scope.$index)) }}</span
291
+ >
292
+ </span>
293
+ <span v-else>
294
+ <span
295
+ v-if="
296
+ column.componentType === 'annex' ||
297
+ column.componentType === 'multipartUpload'
298
+ "
299
+ type="primary"
300
+ >
301
+ <span
302
+ v-if="isShowOverflowTooltip"
303
+ :id="column.prop + 'DomData' + scope.$index"
304
+ :style="{ width: cellWidth + 'px' }"
305
+ :title="$escapeHtml(getLabel(scope.row))"
306
+ class="ellipsis cell--span"
307
+ >
308
+ <FsPreview
309
+ :entity="scope.row"
310
+ :file-set-obj="getFileObj(column.fileSet)"
311
+ :is-sql="isSql"
312
+ :label="$escapeHtml(getLabel(scope.row, scope.$index))"
313
+ />
314
+ </span>
315
+ <span
316
+ v-else
317
+ :id="column.prop + 'DomData' + scope.$index"
318
+ class="cell--span"
319
+ >
320
+ <FsPreview
321
+ :entity="scope.row"
322
+ :file-set-obj="getFileObj(column.fileSet)"
323
+ :is-sql="isSql"
324
+ :label="$escapeHtml(getLabel(scope.row, scope.$index))"
325
+ />
326
+ </span>
327
+ </span>
328
+ <span
329
+ v-else-if="column.formatter && column.formatter.type === 'files'"
330
+ >
331
+ <span
332
+ v-if="isShowOverflowTooltip"
333
+ :id="column.prop + 'DomData' + scope.$index"
334
+ :style="{ width: cellWidth + 'px' }"
335
+ :title="$escapeHtml(getLabel(scope.row))"
336
+ class="ellipsis cell--span"
337
+ >
338
+ <span v-if="$escapeHtml(getLabel(scope.row, scope.$index))">
339
+ <el-icon class="annex-cell" @click="previewImg(scope.row)"><el-icon-zoom-in/></el-icon>
340
+ </span>
341
+ {{ $escapeHtml(getLabel(scope.row, scope.$index)) }}
342
+ </span>
343
+ <span
344
+ v-else
345
+ :id="column.prop + 'DomData' + scope.$index"
346
+ class="cell--span"
347
+ >
348
+ <span v-if="$escapeHtml(getLabel(scope.row, scope.$index))">
349
+ <el-icon class="annex-cell" @click="previewImg(scope.row)"><el-icon-zoom-in/></el-icon>
350
+ </span>
351
+ {{ $escapeHtml(getLabel(scope.row, scope.$index)) }}
352
+ </span>
353
+ </span>
354
+ <!-- 超链接 -->
355
+ <el-link
356
+ v-else-if="
357
+ columnFormatter !== undefined &&
358
+ columnFormatter.type !== undefined &&
359
+ columnFormatter.type === 'hyperlinks' &&
360
+ getMyHyperLinkSetting(scope.row).visible === true
361
+ "
362
+ type="primary"
363
+ @click="clickHyperLink(column, scope.row, listCode, scope.$index)"
364
+ >
365
+ <span
366
+ v-if="isShowOverflowTooltip"
367
+ :id="column.prop + 'DomData' + scope.$index"
368
+ :style="{ width: cellWidth + 'px' }"
369
+ :title="$escapeHtml(getMyHyperLinkSetting(scope.row).title)"
370
+ class="ellipsis cell--span"
371
+ >{{ $escapeHtml(getMyHyperLinkSetting(scope.row).label)
372
+ }}<i
373
+ v-if="getMyHyperLinkSetting(scope.row).icon"
374
+ :class="getMyHyperLinkSetting(scope.row).icon"
375
+ /></span>
376
+ <span
377
+ v-else
378
+ :id="column.prop + 'DomData' + scope.$index"
379
+ class="cell--span"
380
+ >{{ $escapeHtml(getMyHyperLinkSetting(scope.row).label)
381
+ }}<i
382
+ v-if="getMyHyperLinkSetting(scope.row).icon"
383
+ :class="getMyHyperLinkSetting(scope.row).icon"
384
+ /></span>
385
+ </el-link>
386
+ <!-- 富文本 -->
387
+ <span
388
+ v-else-if="
389
+ column.formatter && column.formatter.type === 'richEditor'
390
+ "
391
+ >
392
+ <el-tooltip
393
+ :content="$t('superGrid.show')"
394
+ class="item"
395
+ effect="dark"
396
+ placement="top"
397
+ >
398
+ <em
399
+ class="fa fa-info-circle annex-cell"
400
+ @click="showRichEditorContent(scope.row, column, getHeader())"
401
+ />
402
+ </el-tooltip>
403
+ </span>
404
+ <span
405
+ v-else-if="column.formatter && column.formatter.type === 'icon'"
406
+ >
407
+ <i
408
+ v-if="getFormatIconSetting(formatConfig).position === 'pre'"
409
+ :class="getFormatIconSetting(formatConfig).icon"
410
+ />
411
+ <span
412
+ v-if="formatConfig.displayTextJudge"
413
+ :id="column.prop + 'DomData' + scope.$index"
414
+ class="cell--span"
415
+ >{{ $escapeHtml(getFormatIconSetting(scope.row).label) }}
416
+ </span>
417
+ <i
418
+ v-if="getFormatIconSetting(formatConfig).position === 'suf'"
419
+ :class="getFormatIconSetting(formatConfig).icon"
420
+ />
421
+ </span>
422
+ <span
423
+ v-else-if="isShowOverflowTooltip"
424
+ :id="column.prop + 'DomData' + scope.$index"
425
+ :style="{ width: cellWidth + 'px' }"
426
+ :title="getLabel(scope.row)"
427
+ class="ellipsis cell--span"
428
+ style="white-space: pre"
429
+ v-html="$escapeHtml(getLabel(scope.row, scope.$index))"
430
+ />
431
+ <span
432
+ v-else
433
+ :id="column.prop + 'DomData' + scope.$index"
434
+ class="cell--span"
435
+ >{{ $escapeHtml(getLabel(scope.row, scope.$index)) }}</span
436
+ >
437
+ </span>
438
+ </span>
439
+ <view-image-dialog
440
+ v-if="showSingleImgFlag"
441
+ :file-list="fileList"
442
+ @close="showSingleImgFlag = false"
443
+ />
444
+ <rich-editor-viewer
445
+ v-if="showRichEditorViewer"
446
+ ref="richEditorViewerRef"
447
+ @closeRichEditorContent="closeRichEditorContent"
448
+ />
449
+ </template>
450
+ </el-table-column>
451
+ </template>
452
+
453
+ <script>
454
+ import {CirclePlus, ZoomIn as ElIconZoomIn} from '@element-plus/icons-vue'
455
+ import {$emit, $off, $on} from '../../utils/gogocodeTransfer'
456
+ import {
457
+ ArrowKeyAction,
458
+ getColumnValues,
459
+ getFileList,
460
+ isDynamicDataSourceSource,
461
+ isHasEditOption,
462
+ isRequiredEdit
463
+ } from './utils'
464
+ import DynamicInput from './dynamic-input.vue'
465
+ import store from './store'
466
+ import {doFormatWithValueSet} from './formatter'
467
+ import customFormatter from './custom-formatter'
468
+ import RowOperation from './row-operation.vue'
469
+ import apis from './apis'
470
+ import {mapGetters} from 'vuex'
471
+ import {getEntityFieldValue, getParentObjectUtil,} from '../../../src/utils/util'
472
+ import ViewImageDialog from './view-image-dialog.vue'
473
+ import eventBus from './eventBus'
474
+ import FsPreview from '../../fs-preview'
475
+ import RichEditorViewer from '../../rich-editor/viewer.vue'
476
+
477
+ export default {
478
+ components: {
479
+ DynamicInput,
480
+ RowOperation,
481
+ ViewImageDialog,
482
+ FsPreview,
483
+ RichEditorViewer,
484
+ CirclePlus,
485
+ ElIconZoomIn
486
+ },
487
+ name: 'NormalColumn',
488
+ props: {
489
+ column: {
490
+ type: Object,
491
+ default: null,
492
+ },
493
+ customFormat: {
494
+ type: Function,
495
+ default: null,
496
+ },
497
+ listCode: {
498
+ type: String,
499
+ default: null,
500
+ },
501
+ isSql: {
502
+ type: Boolean,
503
+ default: false,
504
+ },
505
+ newWidth: {
506
+ type: Number,
507
+ default: null,
508
+ },
509
+ dragColumnProp: {
510
+ type: String,
511
+ default: null,
512
+ },
513
+ tableName: {
514
+ type: String,
515
+ default: null,
516
+ },
517
+ pageCode: {
518
+ type: String,
519
+ default: null,
520
+ },
521
+ listName: {
522
+ type: String,
523
+ default: null,
524
+ },
525
+ currentPage: {
526
+ type: Number,
527
+ default: 1,
528
+ },
529
+ gridData: {
530
+ type: Array,
531
+ default: null,
532
+ },
533
+ pageGridData: {
534
+ type: Array,
535
+ default: null,
536
+ },
537
+ listToolbarFormData: {
538
+ type: Object,
539
+ default: null,
540
+ },
541
+ },
542
+ data() {
543
+ let parentFormData
544
+ const gridParams = store.get(this.listCode)
545
+ if (
546
+ gridParams.options.extraParam &&
547
+ gridParams.options.extraParam.entityMap
548
+ ) {
549
+ parentFormData = gridParams.options.extraParam.entityMap
550
+ }
551
+ return {
552
+ selectRow: null,
553
+ that: this,
554
+ align: 'left', // 文本内容对齐
555
+ headerAlign: 'left', // 表头对齐方式
556
+ columnFormatter: this.column.formatter,
557
+ hyperLinks: {},
558
+ fileDownType: '',
559
+ isFormSubTable: false, // 是否是表单子表
560
+ subTableCanAdd: true, // 表单子表时是否有新增权限
561
+ isShowAdd: false, // 是否显示表头的新增按钮
562
+ cellWidth: null,
563
+ parentFormData,
564
+ fileMultiple: false, // 附件上传是否多选
565
+ showSingleImgFlag: false,
566
+ singleImgSrc: '',
567
+ fileList: [],
568
+ index: null,
569
+ isEditable: this.column.editable,
570
+ showRichEditorViewer: false,
571
+ formatConfig: {},
572
+ getFormData: gridParams.options.getFormData,
573
+ getTableGridData: gridParams.options.getGridData,
574
+ }
575
+ },
576
+ computed: {
577
+ filters() {
578
+ if (this.column.filterable) {
579
+ const gridParams = store.get(this.listCode)
580
+ const values = getColumnValues(gridParams.gridData, this.column.prop)
581
+ const filters = []
582
+ for (const value of values) {
583
+ filters.push({
584
+ text: value,
585
+ value,
586
+ })
587
+ }
588
+ return filters
589
+ } else {
590
+ return null
591
+ }
592
+ },
593
+ filterMethod() {
594
+ if (this.column.filterable) {
595
+ return this.filterHandler
596
+ } else {
597
+ return null
598
+ }
599
+ },
600
+ fixed() {
601
+ if (
602
+ (this.column.fixed && this.column.fixed === 'false') ||
603
+ this.column.fixed === undefined ||
604
+ this.column.fixed === ''
605
+ ) {
606
+ return false
607
+ }
608
+ if (
609
+ this.column.prop === 'operation' &&
610
+ this.column.fixed &&
611
+ this.column.fixed === 'left'
612
+ ) {
613
+ // 操作列居右固定
614
+ return 'right'
615
+ }
616
+ return this.column.fixed
617
+ },
618
+ sortable() {
619
+ const gridParams = store.get(this.listCode)
620
+ if (
621
+ gridParams &&
622
+ gridParams.options &&
623
+ gridParams.options.isFormSubTable &&
624
+ gridParams.options.showOperationButton
625
+ ) {
626
+ return false
627
+ }
628
+ if (
629
+ this.column.sortable === 'false' ||
630
+ this.column.sortable === false ||
631
+ this.column.sortable === ''
632
+ ) {
633
+ return false
634
+ } else if (
635
+ this.column.sortable === 'true' ||
636
+ this.column.sortable === true
637
+ ) {
638
+ return 'custom'
639
+ }
640
+ if (this.column.sortable) {
641
+ return 'custom'
642
+ } else {
643
+ return false
644
+ }
645
+ },
646
+ lineEdit() {
647
+ let isLineEdit = false
648
+ if (this.listCode) {
649
+ const gridParams = store.get(this.listCode)
650
+ if (gridParams.lineEdit !== null && gridParams.lineEdit !== undefined) {
651
+ isLineEdit = gridParams.lineEdit
652
+ } else {
653
+ isLineEdit = false
654
+ }
655
+ }
656
+ return isLineEdit
657
+ },
658
+
659
+ ...mapGetters(['preventReclick']),
660
+ },
661
+ watch: {
662
+ isSql: {
663
+ deep: true,
664
+
665
+ handler(newValue, oldValue) {
666
+ this.isSql = newValue
667
+ },
668
+ },
669
+ newWidth: {
670
+ deep: true,
671
+
672
+ handler(newValue, oldValue) {
673
+ if (
674
+ newValue !== undefined &&
675
+ newValue !== null &&
676
+ this.dragColumnProp &&
677
+ this.dragColumnProp === this.column.prop
678
+ ) {
679
+ this.cellWidth = newValue
680
+ }
681
+ },
682
+ },
683
+ },
684
+ created() {
685
+ if (this.column.width) {
686
+ this.cellWidth = this.column.width - 10
687
+ }
688
+ const gridParams = store.get(this.listCode)
689
+ if (gridParams && gridParams.options && gridParams.options.isFormSubTable) {
690
+ this.isFormSubTable = gridParams.options.isFormSubTable
691
+ }
692
+ if (
693
+ gridParams &&
694
+ gridParams.options &&
695
+ gridParams.options.subTableCanAdd !== undefined &&
696
+ gridParams.options.subTableCanAdd !== null
697
+ ) {
698
+ this.subTableCanAdd = gridParams.options.subTableCanAdd
699
+ }
700
+ if (this.column.prop && this.column.prop === 'operation') {
701
+ // 如果是操作列按钮则不显示省略号
702
+ this.isShowOverflowTooltip = false
703
+ } else {
704
+ if (
705
+ typeof gridParams.options.showOverflowTooltip !== 'undefined' &&
706
+ gridParams.options.showOverflowTooltip === false
707
+ ) {
708
+ this.isShowOverflowTooltip = false
709
+ } else {
710
+ this.isShowOverflowTooltip = true
711
+ }
712
+ }
713
+ if (typeof gridParams.options.align !== 'undefined') {
714
+ this.align = gridParams.options.align
715
+ } else if (this.column.contAlign && this.column.contAlign !== '') {
716
+ this.align = this.column.contAlign
717
+ }
718
+ if (typeof gridParams.options.headerAlign !== 'undefined') {
719
+ this.headerAlign = gridParams.options.headerAlign
720
+ } else if (this.column.titleAlign && this.column.titleAlign !== '') {
721
+ this.headerAlign = this.column.titleAlign
722
+ } else {
723
+ // 如果没有配置表头对齐方式,默认使用内容对齐方式
724
+ this.headerAlign = 'left'
725
+ }
726
+ if (
727
+ gridParams.isHasDynamic === undefined &&
728
+ this.column.dynamic !== undefined &&
729
+ this.column.dynamic === true
730
+ ) {
731
+ // 当前列表中有动态列
732
+ gridParams.isHasDynamic = true
733
+ }
734
+ this.label = this.getHeader()
735
+ if (this.column.operations) {
736
+ // console.log('this.column.operations', this.column.operations)
737
+ }
738
+ // console.log('gridParams.options.subTableCanAdd=', gridParams.options.subTableCanAdd, 'this.subTableCanAdd=', this.subTableCanAdd)
739
+ this.isShowAdd =
740
+ this.isFormSubTable &&
741
+ this.column.prop === 'operation' &&
742
+ this.subTableCanAdd &&
743
+ gridParams.options &&
744
+ gridParams.options.showOperationButton
745
+ if (
746
+ this.column.fileSet &&
747
+ this.column.fileSet !== '' &&
748
+ this.column.componentType === 'annex'
749
+ ) {
750
+ const fileSetObj = JSON.parse(this.column.fileSet)
751
+ if (fileSetObj && fileSetObj.multiple) {
752
+ this.fileMultiple = true
753
+ }
754
+ }
755
+ if (
756
+ this.column.formatter &&
757
+ this.column.formatter.options &&
758
+ this.column.formatter.options.format &&
759
+ this.column.formatter.type === 'icon'
760
+
761
+ ) {
762
+
763
+ this.formatConfig = JSON.parse(this.column.formatter.options.format)
764
+ }
765
+ },
766
+ mounted() {
767
+ // 监听保存时点击按钮事件线触发
768
+ $on(eventBus, 'un-edit', (param) => {
769
+ // 处理多选选项组问题保存问题
770
+ if (
771
+ this.column.componentType &&
772
+ (this.column.componentType === 'multiselect' ||
773
+ this.column.componentType === 'select')
774
+ ) {
775
+ const isDynamic = isDynamicDataSourceSource(this.column)
776
+ if (!isDynamic) {
777
+ // 选项组保存时将数组处理为字符串
778
+ const beforeColumnValue = param.row[this.column.prop]
779
+ if (
780
+ beforeColumnValue &&
781
+ Object.prototype.toString.apply(beforeColumnValue) ===
782
+ '[object Array]'
783
+ ) {
784
+ // 如果是数组才需要转换
785
+ param.row[this.column.prop] = beforeColumnValue.join(',')
786
+ }
787
+ } else {
788
+ // 动态数据源多选保存时,获取已选择的字段,由于多选选项组的值是数组,保存时要拼接成“ ,” 分隔的字符串
789
+ if ('_dynamic-source-data-' + this.column.prop in this.column) {
790
+ const temp = this.column['_dynamic-source-data-' + this.column.prop]
791
+ const valueSetOptions = temp.valueSetOptions
792
+ // 获取当前字段对应在映射关系中对应的是动态数据源中的哪一个字段key
793
+ let selectDataKey
794
+ for (let i = 0; i < valueSetOptions.length; i++) {
795
+ const valueSetOption = valueSetOptions[i]
796
+ if (
797
+ this.column.prop === valueSetOption.valueColumn.dbColumnName
798
+ ) {
799
+ selectDataKey = valueSetOption.columnName
800
+ break
801
+ }
802
+ }
803
+ if (selectDataKey) {
804
+ // beforeColumnValue是数组值,如果是单选则是字符串
805
+ let beforeColumnValue = param.row[this.column.prop]
806
+ if (this.column.componentType === 'select') {
807
+ if (selectDataKey !== temp.valueAttribute) {
808
+ // 解决当前字段不是动态数据源选项值所映射的字段的问题 例如当前字段是工厂名称, 动态数据源选项值是工厂编码
809
+ beforeColumnValue = temp.optionItems.find(
810
+ (item) =>
811
+ // 当前字段映射的是工厂名称,
812
+ // 筛选动态数据源选项值字段对应的当前字段所映射的字段, 例如 根据工厂编码找工厂编码对应的工厂名称
813
+ // 找出名称后赋值给当前字段
814
+ item[temp.valueAttribute] === beforeColumnValue
815
+ )[selectDataKey]
816
+ }
817
+ // 如果是单选
818
+ // 现在选择时已经赋值,不再需要这里进行赋值
819
+ // temp.optionItems.forEach(optionItem => {
820
+ // if (optionItem[temp.valueAttribute] === beforeColumnValue) {
821
+ // this.$set(param.row, this.column.prop, optionItem[selectDataKey])
822
+ // }
823
+ // })
824
+ param.row[this.column.prop] = beforeColumnValue
825
+ } else {
826
+ // 如果是多选,join “ ,” , 并给row赋值
827
+ // 现在选择时已经赋值,不再需要这里进行赋值
828
+ // const afterColumnValue = []
829
+ // temp.optionItems.forEach(optionItem => {
830
+ // beforeColumnValue.forEach(value => {
831
+ // if (optionItem[temp.valueAttribute] === value) {
832
+ // afterColumnValue.push(optionItem[selectDataKey])
833
+ // }
834
+ // })
835
+ // })
836
+ if (
837
+ beforeColumnValue &&
838
+ selectDataKey !== temp.valueAttribute
839
+ ) {
840
+ // 解决当前字段不是动态数据源选项值所映射的字段的问题 例如当前字段是工厂名称, 动态数据源选项值是工厂编码
841
+ const t = []
842
+ beforeColumnValue.forEach((selectItem) => {
843
+ if (selectDataKey !== temp.valueAttribute) {
844
+ t.push(
845
+ temp.optionItems.find(
846
+ (option) => option[temp.valueAttribute] === selectItem
847
+ )[selectDataKey]
848
+ )
849
+ }
850
+ })
851
+ beforeColumnValue = t
852
+ }
853
+ param.row[this.column.prop] = beforeColumnValue.join(',')
854
+ }
855
+ }
856
+ } else {
857
+ const beforeColumnValue = param.row[this.column.prop]
858
+ if (
859
+ beforeColumnValue &&
860
+ Object.prototype.toString.apply(beforeColumnValue) ===
861
+ '[object Array]'
862
+ ) {
863
+ // 如果是数组才需要转换
864
+ param.row[this.column.prop] = beforeColumnValue.join(',')
865
+ }
866
+ }
867
+ }
868
+ }
869
+ })
870
+ },
871
+ unmounted() {
872
+ $off(eventBus, 'un-edit')
873
+ },
874
+ methods: {
875
+ ...customFormatter,
876
+ ...apis,
877
+ getFileObj(fileSet) {
878
+ if (fileSet) {
879
+ return JSON.parse(fileSet)
880
+ }
881
+ },
882
+ getHeader() {
883
+ if (!this.column.titleValueSet) {
884
+ return this.column.label.replace(/\\n/g, '</br>')
885
+ } else {
886
+ return this.formatHeader()
887
+ }
888
+ },
889
+ formatHeader() {
890
+ return doFormatWithValueSet(
891
+ this.column.titleValueSetValue,
892
+ this.column.label
893
+ )
894
+ },
895
+ filterHandler(value, row, column) {
896
+ const property = column['property']
897
+ return row[property] === value
898
+ },
899
+ onFocus(index) {
900
+ const gridParams = store.get(this.listCode)
901
+ if (gridParams.lineEdit.editingCell) {
902
+ gridParams.lineEdit.editingCell.row = index
903
+ gridParams.lineEdit.editingCell.prop = this.column.prop
904
+ }
905
+ },
906
+ findIndex(index) {
907
+ this.index = index
908
+ const gridParams = store.get(this.listCode)
909
+ if (gridParams.lineEdit.editingCell) {
910
+ gridParams.lineEdit.editingCell.row = index
911
+ gridParams.lineEdit.editingCell.prop = this.column.prop
912
+ }
913
+ },
914
+ refresData(data) {
915
+ $emit(this, 'refresData', data)
916
+ },
917
+ refresPortData(port, value) {
918
+ const gridParams = store.get(this.listCode)
919
+ console.log('gridParams', gridParams)
920
+ console.log('this.index', this.index)
921
+ if (
922
+ gridParams &&
923
+ gridParams.lineEdit &&
924
+ gridParams.lineEdit.editingCell
925
+ ) {
926
+ $emit(
927
+ this,
928
+ 'refresPortData',
929
+ port,
930
+ value,
931
+ gridParams.lineEdit.editingCell.row
932
+ )
933
+ } else {
934
+ $emit(this, 'refresPortData', port, value, this.index)
935
+ }
936
+ },
937
+ refresPortsData(map) {
938
+ const gridParams = store.get(this.listCode)
939
+ console.log('gridParams', gridParams)
940
+ console.log('this.index', this.index)
941
+ if (
942
+ gridParams &&
943
+ gridParams.lineEdit &&
944
+ gridParams.lineEdit.editingCell
945
+ ) {
946
+ $emit(this, 'refresPortsData', map, gridParams.lineEdit.editingCell.row)
947
+ } else {
948
+ $emit(this, 'refresPortsData', map, this.index)
949
+ }
950
+ },
951
+ refresMainTableFields(map) {
952
+ $emit(this, 'refresMainTableFields', map)
953
+ },
954
+ // @keyup.native.left="move('left')"
955
+ // @keyup.native.right="move('right')"
956
+ // @keyup.native.up="move('up')"
957
+ // @keyup.native.down="move('down')"
958
+ move(direction) {
959
+ if (direction === 'left') {
960
+ const prop = ArrowKeyAction.getLeftColumn(this.column.prop)
961
+ const gridParams = store.get(this.listCode)
962
+ gridParams.lineEdit.editingCell.prop = prop
963
+ }
964
+ },
965
+ // filterHandler(value, row, column) {
966
+ // const property = column['property']
967
+ // return row[property] === value
968
+ // },
969
+ isSaveByEnter() {
970
+ const gridParams = store.get(this.listCode)
971
+ return (
972
+ typeof gridParams.options.lineEditOptions.isSaveByEnter ===
973
+ 'undefined' ||
974
+ (isHasEditOption('isSaveByEnter', this.listCode) &&
975
+ gridParams.options.lineEditOptions.isSaveByEnter === true)
976
+ )
977
+ },
978
+ isRestoreByEsc() {
979
+ const gridParams = store.get(this.listCode)
980
+ return (
981
+ typeof gridParams.options.lineEditOptions.isRestoreByEsc ===
982
+ 'undefined' ||
983
+ (isHasEditOption('isRestoreByEsc', this.listCode) &&
984
+ gridParams.options.lineEditOptions.isRestoreByEsc === true)
985
+ )
986
+ },
987
+ canFocus(index) {
988
+ const gridParams = store.get(this.listCode)
989
+ if (
990
+ index === gridParams.lineEdit.editingCell.row &&
991
+ this.column.prop === gridParams.lineEdit.editingCell.prop
992
+ ) {
993
+ return true
994
+ } else {
995
+ return false
996
+ }
997
+ },
998
+ getLabel(row, index) {
999
+ this.transferColumnDataToUpperCase(row)
1000
+ const obj = this.objectPropValueTwo(row, this.column)
1001
+ // // 存储执行时间
1002
+ // const get2 = new Date().getTime()
1003
+ // const get3 = Number(get2) - Number(get1)
1004
+ // if (!window.sessionStorage.getItem('getLabel')) {
1005
+ // window.sessionStorage.setItem('getLabel', get3)
1006
+ // } else {
1007
+ // const get4 = window.sessionStorage.getItem('getLabel')
1008
+ // const get5 = Number(get4) + Number(get3)
1009
+ // window.sessionStorage.setItem('getLabel', get5)
1010
+ // }
1011
+ return obj
1012
+ // const returnValue = this.objectPropValueTwo(row, this.column)
1013
+ // if (returnValue) {
1014
+ // // 解决当文本中有多个空格时候, vue自动将多个空格合并为一个空格,
1015
+ // // 或者修改vue的配置 https://cn.vuejs.org/api/application.html#app-config-compileroptions app.config.compilerOptions.whitespace
1016
+ // return returnValue.replaceAll(' ', '\u00A0')
1017
+ // }
1018
+ // return returnValue
1019
+ },
1020
+ getCellValue(row) {
1021
+ let cellValue = getEntityFieldValue(row, this.column.prop, false)
1022
+ if (cellValue === undefined || cellValue === null) {
1023
+ this.transferColumnDataToUpperCase(row)
1024
+ cellValue = getEntityFieldValue(row, this.column.prop, false)
1025
+ }
1026
+ return cellValue
1027
+ },
1028
+ // 兼容oracle和mysql数据库,oracle是字段名是大写的,mysql是小写的,将小写转为大写
1029
+ transferColumnDataToUpperCase(row) {
1030
+ const reg1 = /[A-Z]+/ // 大写字母
1031
+ if (this.isSql && reg1.test(this.column.prop)) {
1032
+ this.transferColumnDataToUpperCaseWithProp(
1033
+ row,
1034
+ this.column.prop.toLowerCase(),
1035
+ this.column.prop
1036
+ )
1037
+ }
1038
+ },
1039
+ transferColumnDataToUpperCaseWithProp(row, propLowerCase, columnProp) {
1040
+ let dataModel
1041
+ if (propLowerCase && propLowerCase.indexOf('.') > 0) {
1042
+ const parentObj = getParentObjectUtil(propLowerCase, row)
1043
+ const prop = propLowerCase.substring(propLowerCase.lastIndexOf('.') + 1)
1044
+ dataModel = parentObj[prop]
1045
+ if (dataModel !== undefined) {
1046
+ // sql字段名小写转大写,兼容mysql、oracle数据库
1047
+ parentObj[columnProp] = dataModel
1048
+ delete parentObj[prop]
1049
+ }
1050
+ } else {
1051
+ dataModel = row[propLowerCase]
1052
+ if (dataModel !== undefined) {
1053
+ // sql字段名小写转大写,兼容mysql、oracle数据库
1054
+ row[columnProp] = dataModel
1055
+ delete row[propLowerCase]
1056
+ }
1057
+ }
1058
+ return dataModel
1059
+ },
1060
+ getMyHyperLinkSetting(row) {
1061
+ this.transferColumnDataToUpperCase(row)
1062
+ const gridParams = store.get(this.listCode)
1063
+ let tableName
1064
+ if (
1065
+ gridParams &&
1066
+ gridParams.basicInfo &&
1067
+ gridParams.basicInfo.tableName
1068
+ ) {
1069
+ tableName = gridParams.basicInfo.tableName
1070
+ }
1071
+ const hyperLinkResult = this.getHyperLinkSetting(
1072
+ this.column,
1073
+ row,
1074
+ this.isSql,
1075
+ gridParams.additionalParamMap,
1076
+ gridParams.contextParameter,
1077
+ tableName,
1078
+ this.listCode
1079
+ )
1080
+ hyperLinkResult.icon = this.getHyperIconClass(hyperLinkResult)
1081
+ return hyperLinkResult
1082
+ },
1083
+ getHyperIconClass(hyperLinkResult) {
1084
+ let iconName
1085
+ if (
1086
+ hyperLinkResult &&
1087
+ hyperLinkResult !== null &&
1088
+ hyperLinkResult.icon &&
1089
+ hyperLinkResult.icon !== ''
1090
+ ) {
1091
+ iconName = hyperLinkResult.icon
1092
+ }
1093
+ if (iconName && iconName.indexOf('fa-') === 0) {
1094
+ // 表示以“fa-”开头,使用font-awesome中的图标
1095
+ iconName = 'fa ' + iconName
1096
+ }
1097
+ return iconName
1098
+ },
1099
+ createFormSubTableRow() {
1100
+ console.log('触发了行新建')
1101
+ this.createRow(this.listCode)
1102
+ },
1103
+ handleCommand(comman) {
1104
+ let prop = null
1105
+ this.column.operations.forEach((item) => {
1106
+ if (item.isGroup) {
1107
+ item.buttons.forEach((button) => {
1108
+ if (button.props.code === comman.comman) {
1109
+ prop = button
1110
+ }
1111
+ })
1112
+ }
1113
+ })
1114
+ if (prop) {
1115
+ customFormatter.onClickFun(
1116
+ comman.row,
1117
+ this.column,
1118
+ prop.onClick,
1119
+ comman.rowIndex
1120
+ )
1121
+ }
1122
+ },
1123
+ beforeHandleCommand(comman, row, rowIndex) {
1124
+ return {
1125
+ comman: comman,
1126
+ row: row,
1127
+ rowIndex: rowIndex,
1128
+ }
1129
+ },
1130
+ previewImg(row) {
1131
+ this.fileList = getFileList(row, this.column, this.isSql)
1132
+ this.showSingleImgFlag = true
1133
+ },
1134
+ getFileList(row) {
1135
+ return getFileList(row, this.column, this.isSql)
1136
+ },
1137
+ getColumnWidth() {
1138
+ if (
1139
+ this.column &&
1140
+ this.column.prop === 'operation' &&
1141
+ !this.column.width
1142
+ ) {
1143
+ // 表示操作列,宽度固定
1144
+ return '210'
1145
+ }
1146
+ return this.column.width ? this.column.width + '' : '130'
1147
+ },
1148
+ // 设置字段禁止编辑
1149
+ fnProhibitToEdit(isEditable) {
1150
+ this.isEditable = isEditable
1151
+ },
1152
+ // 设置字段禁止编辑
1153
+ prohibitToEdit(entity) {
1154
+ $emit(this, 'prohibitToEdit', entity)
1155
+ },
1156
+ isFieldRequired() {
1157
+ return isRequiredEdit(this.column, this.listCode)
1158
+ // return true
1159
+ },
1160
+ // 展示富文本内容
1161
+ showRichEditorContent(row, column, header) {
1162
+ this.showRichEditorViewer = true
1163
+ this.$nextTick(() => {
1164
+ this.$refs.richEditorViewerRef.showContent(row[column.prop], header)
1165
+ })
1166
+ },
1167
+ closeRichEditorContent() {
1168
+ this.showRichEditorViewer = false
1169
+ },
1170
+ isRequired(editing) {
1171
+ if (
1172
+ !this.isFormSubTable &&
1173
+ this.lineEdit.editable &&
1174
+ this.isEditable &&
1175
+ editing &&
1176
+ this.column.validations
1177
+ ) {
1178
+ if (this.column.validations.indexOf('"required":true') > 0) {
1179
+ return true
1180
+ }
1181
+ }
1182
+ return false
1183
+ },
1184
+ getFormatIconSetting(row) {
1185
+ this.transferColumnDataToUpperCase(row)
1186
+ const gridParams = store.get(this.listCode)
1187
+ const result = this.getIconSetting(
1188
+ this.column,
1189
+ row,
1190
+ this.isSql,
1191
+ gridParams,
1192
+ this.listCode
1193
+ )
1194
+ result.icon = this.getHyperIconClass(result)
1195
+ if (
1196
+ this.column.formatter.options &&
1197
+ this.column.formatter.options.format
1198
+ ) {
1199
+ result.position = JSON.parse(
1200
+ this.column.formatter.options.format
1201
+ ).position
1202
+ }
1203
+ return result
1204
+ },
1205
+ },
1206
+ emits: [
1207
+ 'refresData',
1208
+ 'refresPortData',
1209
+ 'refresPortsData',
1210
+ 'refresMainTableFields',
1211
+ 'prohibitToEdit',
1212
+ ,
1213
+ ],
1214
+ }
1215
+ </script>
1216
+
1217
+ <style lang="scss" scoped>
1218
+ .annex-cell {
1219
+ padding-right: 5px;
1220
+ cursor: pointer;
1221
+ color: #409eff;
1222
+ }
1223
+
1224
+ .m-requried {
1225
+ float: left;
1226
+ white-space: nowrap;
1227
+ }
1228
+
1229
+ .m-requried::after {
1230
+ content: '*';
1231
+ color: #f56c6c;
1232
+ }
1233
+ </style>