agilebuilder-ui 1.0.0

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 (392) hide show
  1. package/README.md +7 -0
  2. package/index.html +13 -0
  3. package/package.json +36 -0
  4. package/packages/IntervalSelection/index.js +6 -0
  5. package/packages/IntervalSelection/src/quarterScope.vue +405 -0
  6. package/packages/IntervalSelection/src/sectionDate.vue +475 -0
  7. package/packages/breadcrumb/index.js +6 -0
  8. package/packages/breadcrumb/src/breadcrumb.vue +81 -0
  9. package/packages/department-tree/index.js +6 -0
  10. package/packages/department-tree/src/department-tree.vue +114 -0
  11. package/packages/department-tree-inline/index.js +6 -0
  12. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +494 -0
  13. package/packages/department-tree-inline/src/department-single-tree-inline.vue +367 -0
  14. package/packages/department-tree-inline/src/department-tree-inline.vue +86 -0
  15. package/packages/department-tree-inline/src/department-tree-service.js +344 -0
  16. package/packages/department-tree-inline/src/search-result.vue +238 -0
  17. package/packages/department-user-tree/index.js +6 -0
  18. package/packages/department-user-tree/src/department-user-multiple-tree.vue +133 -0
  19. package/packages/department-user-tree/src/department-user-single-tree.vue +96 -0
  20. package/packages/department-user-tree/src/department-user-tree.vue +115 -0
  21. package/packages/department-user-tree-inline/index.js +9 -0
  22. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +758 -0
  23. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +358 -0
  24. package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +87 -0
  25. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +309 -0
  26. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +180 -0
  27. package/packages/department-user-tree-inline/src/search-result.vue +286 -0
  28. package/packages/directives/prevent-reclick.js +22 -0
  29. package/packages/dynamic-source-select/index.js +6 -0
  30. package/packages/dynamic-source-select/src/dynamic-source-select-service.js +124 -0
  31. package/packages/dynamic-source-select/src/dynamic-source-select.vue +857 -0
  32. package/packages/dynamic-source-select/src/events.js +77 -0
  33. package/packages/fs-preview/index.js +6 -0
  34. package/packages/fs-preview/src/fs-preview.vue +303 -0
  35. package/packages/fs-upload/index.js +6 -0
  36. package/packages/fs-upload/src/fs-upload-multi.vue +458 -0
  37. package/packages/fs-upload/src/fs-upload-single.vue +365 -0
  38. package/packages/fs-upload/src/fs-upload.vue +191 -0
  39. package/packages/fs-upload/src/see-big-picture.vue +67 -0
  40. package/packages/fs-upload-list/index.js +6 -0
  41. package/packages/fs-upload-list/src/fs-upload-list.vue +387 -0
  42. package/packages/hamburger/index.js +6 -0
  43. package/packages/hamburger/src/hamburger.vue +50 -0
  44. package/packages/index.js +124 -0
  45. package/packages/multipart-upload/index.js +6 -0
  46. package/packages/multipart-upload/src/index.vue +66 -0
  47. package/packages/multipart-upload/src/multipart-upload-form.vue +395 -0
  48. package/packages/multipart-upload/src/multipart-upload-list.vue +539 -0
  49. package/packages/organization-input/index.js +6 -0
  50. package/packages/organization-input/src/organization-input.vue +579 -0
  51. package/packages/plugins/export-data-new.js +630 -0
  52. package/packages/plugins/export-data.js +431 -0
  53. package/packages/plugins/index.js +15 -0
  54. package/packages/plugins/public-method.js +47 -0
  55. package/packages/remove-department/index.js +6 -0
  56. package/packages/remove-department/src/remove-department.vue +201 -0
  57. package/packages/remove-department/src/remove-dept-service.js +31 -0
  58. package/packages/remove-user/index.js +6 -0
  59. package/packages/remove-user/src/remove-user-service.js +31 -0
  60. package/packages/remove-user/src/remove-user.vue +227 -0
  61. package/packages/remove-workgroup/index.js +6 -0
  62. package/packages/remove-workgroup/src/remove-workgroup-service.js +31 -0
  63. package/packages/remove-workgroup/src/remove-workgroup.vue +184 -0
  64. package/packages/rich-editor/index.js +7 -0
  65. package/packages/rich-editor/index.vue +314 -0
  66. package/packages/rich-editor/tinymce/icons/default/icons.min.js +1 -0
  67. package/packages/rich-editor/tinymce/langs/README.md +3 -0
  68. package/packages/rich-editor/tinymce/langs/zh-Hans.js +1 -0
  69. package/packages/rich-editor/tinymce/license.txt +21 -0
  70. package/packages/rich-editor/tinymce/models/dom/model.min.js +4 -0
  71. package/packages/rich-editor/tinymce/plugins/accordion/plugin.min.js +4 -0
  72. package/packages/rich-editor/tinymce/plugins/advlist/plugin.min.js +4 -0
  73. package/packages/rich-editor/tinymce/plugins/anchor/plugin.min.js +4 -0
  74. package/packages/rich-editor/tinymce/plugins/autolink/plugin.min.js +4 -0
  75. package/packages/rich-editor/tinymce/plugins/autoresize/plugin.min.js +4 -0
  76. package/packages/rich-editor/tinymce/plugins/autosave/plugin.min.js +4 -0
  77. package/packages/rich-editor/tinymce/plugins/charmap/plugin.min.js +4 -0
  78. package/packages/rich-editor/tinymce/plugins/code/plugin.min.js +4 -0
  79. package/packages/rich-editor/tinymce/plugins/codesample/plugin.min.js +4 -0
  80. package/packages/rich-editor/tinymce/plugins/directionality/plugin.min.js +4 -0
  81. package/packages/rich-editor/tinymce/plugins/emoticons/js/emojiimages.js +1 -0
  82. package/packages/rich-editor/tinymce/plugins/emoticons/js/emojiimages.min.js +3 -0
  83. package/packages/rich-editor/tinymce/plugins/emoticons/js/emojis.js +1 -0
  84. package/packages/rich-editor/tinymce/plugins/emoticons/js/emojis.min.js +2 -0
  85. package/packages/rich-editor/tinymce/plugins/emoticons/plugin.min.js +4 -0
  86. package/packages/rich-editor/tinymce/plugins/fullscreen/plugin.min.js +4 -0
  87. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ar.js +90 -0
  88. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +90 -0
  89. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ca.js +90 -0
  90. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/cs.js +90 -0
  91. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/da.js +90 -0
  92. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/de.js +90 -0
  93. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/el.js +90 -0
  94. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/en.js +90 -0
  95. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/es.js +90 -0
  96. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/eu.js +90 -0
  97. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/fa.js +90 -0
  98. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/fi.js +90 -0
  99. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +90 -0
  100. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/he_IL.js +90 -0
  101. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/hi.js +90 -0
  102. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/hr.js +90 -0
  103. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +90 -0
  104. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/id.js +90 -0
  105. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/it.js +90 -0
  106. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ja.js +90 -0
  107. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/kk.js +90 -0
  108. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +90 -0
  109. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ms.js +90 -0
  110. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +90 -0
  111. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/nl.js +90 -0
  112. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/pl.js +90 -0
  113. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +90 -0
  114. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +90 -0
  115. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ro.js +90 -0
  116. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ru.js +90 -0
  117. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/sk.js +90 -0
  118. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +90 -0
  119. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +90 -0
  120. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/th_TH.js +90 -0
  121. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/tr.js +90 -0
  122. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/uk.js +90 -0
  123. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/vi.js +90 -0
  124. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +84 -0
  125. package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +90 -0
  126. package/packages/rich-editor/tinymce/plugins/help/plugin.min.js +4 -0
  127. package/packages/rich-editor/tinymce/plugins/image/plugin.min.js +4 -0
  128. package/packages/rich-editor/tinymce/plugins/importcss/plugin.min.js +4 -0
  129. package/packages/rich-editor/tinymce/plugins/insertdatetime/plugin.min.js +4 -0
  130. package/packages/rich-editor/tinymce/plugins/link/plugin.min.js +4 -0
  131. package/packages/rich-editor/tinymce/plugins/lists/plugin.min.js +4 -0
  132. package/packages/rich-editor/tinymce/plugins/media/plugin.min.js +4 -0
  133. package/packages/rich-editor/tinymce/plugins/nonbreaking/plugin.min.js +4 -0
  134. package/packages/rich-editor/tinymce/plugins/pagebreak/plugin.min.js +4 -0
  135. package/packages/rich-editor/tinymce/plugins/preview/plugin.min.js +4 -0
  136. package/packages/rich-editor/tinymce/plugins/quickbars/plugin.min.js +4 -0
  137. package/packages/rich-editor/tinymce/plugins/save/plugin.min.js +4 -0
  138. package/packages/rich-editor/tinymce/plugins/searchreplace/plugin.min.js +4 -0
  139. package/packages/rich-editor/tinymce/plugins/table/plugin.min.js +4 -0
  140. package/packages/rich-editor/tinymce/plugins/template/plugin.min.js +4 -0
  141. package/packages/rich-editor/tinymce/plugins/visualblocks/plugin.min.js +4 -0
  142. package/packages/rich-editor/tinymce/plugins/visualchars/plugin.min.js +4 -0
  143. package/packages/rich-editor/tinymce/plugins/wordcount/plugin.min.js +4 -0
  144. package/packages/rich-editor/tinymce/skins/content/dark/content.js +2 -0
  145. package/packages/rich-editor/tinymce/skins/content/dark/content.min.css +1 -0
  146. package/packages/rich-editor/tinymce/skins/content/default/content.js +2 -0
  147. package/packages/rich-editor/tinymce/skins/content/default/content.min.css +1 -0
  148. package/packages/rich-editor/tinymce/skins/content/document/content.js +2 -0
  149. package/packages/rich-editor/tinymce/skins/content/document/content.min.css +1 -0
  150. package/packages/rich-editor/tinymce/skins/content/tinymce-5/content.js +2 -0
  151. package/packages/rich-editor/tinymce/skins/content/tinymce-5/content.min.css +1 -0
  152. package/packages/rich-editor/tinymce/skins/content/tinymce-5-dark/content.js +2 -0
  153. package/packages/rich-editor/tinymce/skins/content/tinymce-5-dark/content.min.css +1 -0
  154. package/packages/rich-editor/tinymce/skins/content/writer/content.js +2 -0
  155. package/packages/rich-editor/tinymce/skins/content/writer/content.min.css +1 -0
  156. package/packages/rich-editor/tinymce/skins/ui/oxide/content.inline.js +2 -0
  157. package/packages/rich-editor/tinymce/skins/ui/oxide/content.inline.min.css +1 -0
  158. package/packages/rich-editor/tinymce/skins/ui/oxide/content.js +2 -0
  159. package/packages/rich-editor/tinymce/skins/ui/oxide/content.min.css +1 -0
  160. package/packages/rich-editor/tinymce/skins/ui/oxide/skin.js +2 -0
  161. package/packages/rich-editor/tinymce/skins/ui/oxide/skin.min.css +1 -0
  162. package/packages/rich-editor/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
  163. package/packages/rich-editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  164. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
  165. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -0
  166. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.js +2 -0
  167. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.min.css +1 -0
  168. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.js +2 -0
  169. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
  170. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  171. package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  172. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.inline.js +2 -0
  173. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +1 -0
  174. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.js +2 -0
  175. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.min.css +1 -0
  176. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.js +2 -0
  177. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.min.css +1 -0
  178. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  179. package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
  180. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  181. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
  182. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.js +2 -0
  183. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +1 -0
  184. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.js +2 -0
  185. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -0
  186. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  187. package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
  188. package/packages/rich-editor/tinymce/themes/silver/theme.min.js +4 -0
  189. package/packages/rich-editor/tinymce/tinymce.d.ts +3238 -0
  190. package/packages/rich-editor/tinymce/tinymce.min.js +4 -0
  191. package/packages/rich-editor/tinymce/zh_CN.js +418 -0
  192. package/packages/rich-editor/viewer.vue +105 -0
  193. package/packages/scan-code-input/index.js +6 -0
  194. package/packages/scan-code-input/src/events.js +34 -0
  195. package/packages/scan-code-input/src/scan-code-input-colse.vue +140 -0
  196. package/packages/scan-code-input/src/scan-code-input.vue +132 -0
  197. package/packages/secret-info/index.js +7 -0
  198. package/packages/secret-info/index.vue +100 -0
  199. package/packages/super-grid/index.js +7 -0
  200. package/packages/super-grid/src/apis.js +1193 -0
  201. package/packages/super-grid/src/columns-config.vue +429 -0
  202. package/packages/super-grid/src/components/grid-icon.vue +162 -0
  203. package/packages/super-grid/src/components/hyperlinks.vue +114 -0
  204. package/packages/super-grid/src/custom-formatter.js +430 -0
  205. package/packages/super-grid/src/dynamic-input.vue +1473 -0
  206. package/packages/super-grid/src/eventBus.js +10 -0
  207. package/packages/super-grid/src/events.js +56 -0
  208. package/packages/super-grid/src/formValidatorUtil.js +300 -0
  209. package/packages/super-grid/src/formatter.js +196 -0
  210. package/packages/super-grid/src/group-column.vue +99 -0
  211. package/packages/super-grid/src/header-context-menu.vue +82 -0
  212. package/packages/super-grid/src/index-column.vue +69 -0
  213. package/packages/super-grid/src/normal-column.vue +1239 -0
  214. package/packages/super-grid/src/public-methods.js +30 -0
  215. package/packages/super-grid/src/row-operation.vue +193 -0
  216. package/packages/super-grid/src/search-button.vue +79 -0
  217. package/packages/super-grid/src/search-condition-input.vue +74 -0
  218. package/packages/super-grid/src/search-condition-list.vue +70 -0
  219. package/packages/super-grid/src/search-form-advancedQuery.vue +833 -0
  220. package/packages/super-grid/src/search-form-dialog.vue +77 -0
  221. package/packages/super-grid/src/search-form-item.vue +496 -0
  222. package/packages/super-grid/src/search-form-number.vue +111 -0
  223. package/packages/super-grid/src/search-form-open.vue +178 -0
  224. package/packages/super-grid/src/search-form-ordinarySearch.vue +248 -0
  225. package/packages/super-grid/src/search-form.vue +767 -0
  226. package/packages/super-grid/src/search-methods.js +591 -0
  227. package/packages/super-grid/src/selection-column.vue +46 -0
  228. package/packages/super-grid/src/store.js +3 -0
  229. package/packages/super-grid/src/super-grid-service.js +729 -0
  230. package/packages/super-grid/src/super-grid.vue +3025 -0
  231. package/packages/super-grid/src/utils.js +880 -0
  232. package/packages/super-grid/src/view-image-dialog.vue +190 -0
  233. package/packages/super-nine-grid/index.js +7 -0
  234. package/packages/super-nine-grid/src/apis.js +108 -0
  235. package/packages/super-nine-grid/src/custom-formatter.js +73 -0
  236. package/packages/super-nine-grid/src/formatter.js +134 -0
  237. package/packages/super-nine-grid/src/search-form-number.vue +35 -0
  238. package/packages/super-nine-grid/src/search-form.vue +704 -0
  239. package/packages/super-nine-grid/src/search-methods.js +151 -0
  240. package/packages/super-nine-grid/src/store.js +3 -0
  241. package/packages/super-nine-grid/src/super-grid-service.js +108 -0
  242. package/packages/super-nine-grid/src/super-nine-grid.vue +1211 -0
  243. package/packages/super-nine-grid/src/utils.js +264 -0
  244. package/packages/svg-icon/index.js +6 -0
  245. package/packages/svg-icon/src/svg-icon.vue +43 -0
  246. package/packages/utils/date-util.js +292 -0
  247. package/packages/utils/dom.js +227 -0
  248. package/packages/utils/gogocodeTransfer.js +59 -0
  249. package/packages/utils/memory-cache-utils.js +117 -0
  250. package/packages/utils/utils.js +180 -0
  251. package/packages/utils/value-set.js +97 -0
  252. package/packages/valid-code/index.js +7 -0
  253. package/packages/valid-code/src/valid-code.vue +104 -0
  254. package/packages/workflow-button/index.js +6 -0
  255. package/packages/workflow-button/src/workflow-button.vue +569 -0
  256. package/packages/workflow-history-list/index.js +6 -0
  257. package/packages/workflow-history-list/src/api.js +7 -0
  258. package/packages/workflow-history-list/src/workflow-history-list.vue +302 -0
  259. package/packages/workgroup-tree/index.js +6 -0
  260. package/packages/workgroup-tree/src/workgroup-tree.vue +87 -0
  261. package/packages/workgroup-tree-inline/index.js +6 -0
  262. package/packages/workgroup-tree-inline/src/search-result.vue +226 -0
  263. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +539 -0
  264. package/packages/workgroup-tree-inline/src/workgroup-tree-service.js +93 -0
  265. package/packages/workgroup-user-tree/index.js +6 -0
  266. package/packages/workgroup-user-tree/src/workgroup-user-tree.vue +104 -0
  267. package/packages/workgroup-user-tree-inline/index.js +9 -0
  268. package/packages/workgroup-user-tree-inline/src/search-result.vue +270 -0
  269. package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +239 -0
  270. package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +681 -0
  271. package/packages/year-range-picker/index.js +6 -0
  272. package/packages/year-range-picker/src/year-range-picker.vue +53 -0
  273. package/public/vite.svg +1 -0
  274. package/src/api/sso-service.js +193 -0
  275. package/src/api/tab.js +36 -0
  276. package/src/api/user-service.js +11 -0
  277. package/src/assets/401/401.gif +0 -0
  278. package/src/assets/404/404-cloud.png +0 -0
  279. package/src/assets/404/404.png +0 -0
  280. package/src/assets/cloud.png +0 -0
  281. package/src/assets/nonemessage.png +0 -0
  282. package/src/directives/permission/index.js +13 -0
  283. package/src/directives/permission/permission.js +20 -0
  284. package/src/i18n/i18n.js +16 -0
  285. package/src/i18n/langs/cn.js +266 -0
  286. package/src/i18n/langs/en.js +276 -0
  287. package/src/index.js +93 -0
  288. package/src/permission.js +242 -0
  289. package/src/plugins.js +18 -0
  290. package/src/router/index.js +92 -0
  291. package/src/store/getters.js +15 -0
  292. package/src/store/index.js +19 -0
  293. package/src/store/modules/app.js +54 -0
  294. package/src/store/modules/permission.js +143 -0
  295. package/src/store/modules/tab-content.js +36 -0
  296. package/src/store/modules/user.js +365 -0
  297. package/src/styles/display-layout.scss +34 -0
  298. package/src/styles/element-ui.scss +29 -0
  299. package/src/styles/index.scss +157 -0
  300. package/src/styles/mixin.scss +27 -0
  301. package/src/styles/theme/black/font-style.scss +70 -0
  302. package/src/styles/theme/black/index.scss +306 -0
  303. package/src/styles/theme/black/sidebar.scss +189 -0
  304. package/src/styles/theme/blue/font-style.scss +46 -0
  305. package/src/styles/theme/blue/index.scss +172 -0
  306. package/src/styles/theme/blue/sidebar.scss +171 -0
  307. package/src/styles/theme/blue2/font-style.scss +70 -0
  308. package/src/styles/theme/blue2/index.scss +188 -0
  309. package/src/styles/theme/blue2/sidebar.scss +201 -0
  310. package/src/styles/theme/dark-blue/button.scss +78 -0
  311. package/src/styles/theme/dark-blue/card.scss +63 -0
  312. package/src/styles/theme/dark-blue/checkbox.scss +10 -0
  313. package/src/styles/theme/dark-blue/dark-blue-var.scss +9 -0
  314. package/src/styles/theme/dark-blue/dialog.scss +17 -0
  315. package/src/styles/theme/dark-blue/element-variables.scss +7 -0
  316. package/src/styles/theme/dark-blue/font.scss +71 -0
  317. package/src/styles/theme/dark-blue/form.scss +51 -0
  318. package/src/styles/theme/dark-blue/index.scss +277 -0
  319. package/src/styles/theme/dark-blue/input.scss +15 -0
  320. package/src/styles/theme/dark-blue/message.scss +8 -0
  321. package/src/styles/theme/dark-blue/pagination.scss +18 -0
  322. package/src/styles/theme/dark-blue/radio.scss +13 -0
  323. package/src/styles/theme/dark-blue/scrollbar-style.scss +32 -0
  324. package/src/styles/theme/dark-blue/sidebar.scss +268 -0
  325. package/src/styles/theme/dark-blue/tab.scss +83 -0
  326. package/src/styles/theme/dark-blue/table.scss +60 -0
  327. package/src/styles/theme/dark-blue/tree.scss +57 -0
  328. package/src/styles/theme/dark-blue/var.scss +1028 -0
  329. package/src/styles/theme/gray/card-style.scss +54 -0
  330. package/src/styles/theme/gray/font-style.scss +70 -0
  331. package/src/styles/theme/gray/index.scss +172 -0
  332. package/src/styles/theme/gray/input-style.scss +19 -0
  333. package/src/styles/theme/gray/scrollbar-style.scss +32 -0
  334. package/src/styles/theme/gray/sidebar.scss +243 -0
  335. package/src/styles/theme/gray/tab-style.scss +81 -0
  336. package/src/styles/transition.scss +47 -0
  337. package/src/utils/auth-api.js +259 -0
  338. package/src/utils/auth.js +98 -0
  339. package/src/utils/calculator/calculator-factory-wf.js +558 -0
  340. package/src/utils/calculator/calculator-factory.js +145 -0
  341. package/src/utils/calculator/calculator-util.js +166 -0
  342. package/src/utils/common-util.js +474 -0
  343. package/src/utils/eventBus.js +10 -0
  344. package/src/utils/iconUtils.js +37 -0
  345. package/src/utils/index.js +102 -0
  346. package/src/utils/jump-page-utils.js +824 -0
  347. package/src/utils/local-storage.js +33 -0
  348. package/src/utils/menu.js +19 -0
  349. package/src/utils/permission.js +31 -0
  350. package/src/utils/permissionAuth.js +121 -0
  351. package/src/utils/range-selector.js +204 -0
  352. package/src/utils/request.js +280 -0
  353. package/src/utils/restful-interface-utils.js +57 -0
  354. package/src/utils/util.js +910 -0
  355. package/src/utils/validate.js +34 -0
  356. package/src/utils/watermark.js +108 -0
  357. package/src/utils/workflow-util.js +104 -0
  358. package/src/views/404.vue +248 -0
  359. package/src/views/dsc-component/Sidebar/Item.vue +81 -0
  360. package/src/views/dsc-component/Sidebar/Link.vue +38 -0
  361. package/src/views/dsc-component/Sidebar/SidebarItem.vue +197 -0
  362. package/src/views/dsc-component/Sidebar/index.vue +229 -0
  363. package/src/views/dsc-component/tabs/tab-content.vue +215 -0
  364. package/src/views/error-page/401.vue +106 -0
  365. package/src/views/error-page/404.vue +248 -0
  366. package/src/views/layout/EmptyLayout.vue +3 -0
  367. package/src/views/layout/Layout.vue +81 -0
  368. package/src/views/layout/NewLayout.vue +18 -0
  369. package/src/views/layout/components/AppMain.vue +39 -0
  370. package/src/views/layout/components/Breadcrumb/index.vue +158 -0
  371. package/src/views/layout/components/Menubar/Item.vue +79 -0
  372. package/src/views/layout/components/Menubar/Link.vue +38 -0
  373. package/src/views/layout/components/Menubar/SidebarItem.vue +261 -0
  374. package/src/views/layout/components/Menubar/index.vue +210 -0
  375. package/src/views/layout/components/Sidebar/Item.vue +53 -0
  376. package/src/views/layout/components/Sidebar/Link.vue +38 -0
  377. package/src/views/layout/components/Sidebar/SidebarItem.vue +135 -0
  378. package/src/views/layout/components/Sidebar/index.vue +141 -0
  379. package/src/views/layout/components/iframe-page.vue +38 -0
  380. package/src/views/layout/components/index.js +4 -0
  381. package/src/views/layout/components/tabs/tab-content.vue +214 -0
  382. package/src/views/layout/mixin/ResizeHandler.js +41 -0
  383. package/src/views/layout/tab-content-iframe-index.vue +38 -0
  384. package/src/views/layout/tab-content-index.vue +92 -0
  385. package/src/views/login/authredirect.vue +10 -0
  386. package/src/views/login/index.vue +296 -0
  387. package/src/views/login/update-password.vue +243 -0
  388. package/src/views/redirect/index.vue +14 -0
  389. package/src/views/svg-icon/index.js +6 -0
  390. package/src/views/svg-icon/src/svg-icon.vue +46 -0
  391. package/src/views/wf-history/tache-subprocess-history.vue +45 -0
  392. package/vite.config.js +37 -0
@@ -0,0 +1,1211 @@
1
+ <template>
2
+ <div>
3
+ <search-form
4
+ v-if="hasLoadedColumns"
5
+ v-show="showSearch"
6
+ ref="sf"
7
+ :code="code"
8
+ :columns="columns"
9
+ :grid-id="gridId"
10
+ :init-search-props="initSearchProps"
11
+ :pagination="pagination"
12
+ :query="query"
13
+ :search-param="searchFormContent"
14
+ :url="url"
15
+ @reset="resetSearch"
16
+ @search="search"
17
+ />
18
+ <div class="nine-grid-area">
19
+ <div
20
+ :id="gridId"
21
+ :style="'height:' + height + 'px;overflow-y: auto;overflow-x: hidden;'"
22
+ >
23
+ <el-row :gutter="24">
24
+ <el-col
25
+ v-if="isHasCreate"
26
+ id="_addCardId_"
27
+ v-permission="createPermission"
28
+ :span="colSpan"
29
+ >
30
+ <el-card
31
+ :body-style="{ padding: '0px' }"
32
+ style="
33
+ border-radius: 4px;
34
+ background: #ffffff;
35
+ border: 1px solid #e5e8ef;
36
+ "
37
+ >
38
+ <div class="add-screen" @click="add">
39
+ <el-icon>
40
+ <Plus/>
41
+ </el-icon>
42
+ <span style="margin-top: 7px">
43
+ {{ $t('superNineGrid.add') }}</span
44
+ >
45
+ </div>
46
+ </el-card>
47
+ </el-col>
48
+ <el-col
49
+ v-for="(params, index) in gridData"
50
+ :key="params.id"
51
+ :offset="1.5"
52
+ :span="colSpan"
53
+ >
54
+ <el-card
55
+ :body-style="{ padding: '0px' }"
56
+ :style="{
57
+ border:
58
+ selectionIds.indexOf(params.id) > -1
59
+ ? '1px solid #005EBA'
60
+ : '',
61
+ position: 'relative'
62
+ }"
63
+ shadow="hover"
64
+ >
65
+ <div
66
+ style="height: 160px"
67
+ @click="clickContent(params)"
68
+ @mouseenter="enter(index)"
69
+ @mouseleave="leave()"
70
+ >
71
+ <!--<div @click="clickContent(params)">-->
72
+ <!--<transition name="fade">-->
73
+ <!-- &lt;!&ndash;<div v-if="seen && index === current" class="popContainer">&ndash;&gt;-->
74
+ <!-- <div class="popContainer">-->
75
+ <!-- <div class="else-button" style="background: rgba(0,0,0,0.5); min-height: 20%;">-->
76
+ <!-- &lt;!&ndash;<div class="else-button">&ndash;&gt;-->
77
+ <!-- <slot :name="slotBefore" :params="params"/>-->
78
+
79
+ <!-- <template v-for="button in operations">-->
80
+ <!-- <template v-if="isShowButton(params, button)">-->
81
+ <!-- <el-tooltip v-if="button.icon" :key="button.name" v-permission="button.permission?button.permission:'true'" :content="button.name" class="item" effect="dark" placement="top">-->
82
+ <!-- &lt;!&ndash;<em :class="button.icon +' icons'" @click.stop="buttonClick(button.event, params)"/>&ndash;&gt;-->
83
+ <!-- <em :class="button.icon +' icons'" @click.stop="buttonClick(button.event, params)"/>-->
84
+ <!-- </el-tooltip>-->
85
+ <!-- &lt;!&ndash;<em v-else :key="button.name" v-permission="button.permission?button.permission:'true'" :class="button.name +' icons'" @click.stop="buttonClick(button.event, params)">{{ button.name }} </em>&ndash;&gt;-->
86
+ <!-- <em v-else :key="button.name" v-permission="button.permission?button.permission:'true'" :class="button.name +' icons'" @click.stop="buttonClick(button.event, params)">{{ button.name }} </em>-->
87
+ <!-- </template>-->
88
+ <!-- </template>-->
89
+ <!-- </div>-->
90
+ <!-- </div>-->
91
+ <!--</transition>-->
92
+ <!-- <img v-if="props && props.imageUrl && objectPropValue(params, propCloumns.imageUrl, props.imageUrl)" :src="defaultShowImageAction+objectPropValue(params, propCloumns.imageUrl, props.imageUrl)" alt="加载失败" class="image"> -->
93
+ <!-- <img v-if="true || (props && props.imageUrl)" :src="defaultShowImageAction+'fa7ae05e-0f0e-4cc0-b24a-69aea4408233'" alt="加载失败" class="image"> -->
94
+ <!-- <div v-else class="image" style="padding: 20px; text-align: center;"> -->
95
+ <div
96
+ class="image"
97
+ style="padding: 15px; box-sizing: border-box"
98
+ >
99
+ <div>
100
+ <el-tooltip
101
+ :content="$t('imatrixUIPublicModel.systemCode') +':' + params.code"
102
+ effect="dark"
103
+ placement="top-start"
104
+ >
105
+ <div
106
+ v-if="props && props.content"
107
+ style="display: inline-block"
108
+ >
109
+ {{
110
+ getPropValue('content', params) +
111
+ getLength(params.code)
112
+ }}
113
+ </div>
114
+ <div
115
+ v-else-if="props && props.title"
116
+ style="display: inline-block"
117
+ >
118
+ {{
119
+ getPropValue('title', params) + getLength(params.code)
120
+ }}
121
+ </div>
122
+ </el-tooltip>
123
+ <div
124
+ v-if="showEnableButton(params)"
125
+ style="
126
+ margin-left: 2px;
127
+ color: #00b42a;
128
+ background-color: #e8ffea;
129
+ width: 68px;
130
+ text-align: center;
131
+ display: inline-block;
132
+ "
133
+ >
134
+ <el-icon>
135
+ <SuccessFilled/>
136
+ </el-icon>
137
+ <span
138
+ :title="getPropValue('subTitle', params)"
139
+ style="margin-left: 4px"
140
+ >{{ getPropValue('subTitle', params) }}</span
141
+ >
142
+ </div>
143
+ </div>
144
+ <div class="button-style">
145
+ <div style="padding: 10px;box-sizing: border-box;">
146
+ {{ $t('imatrixUIPublicModel.edit') }}
147
+ </div>
148
+ <div>
149
+ <template v-for="button in operations">
150
+ <template v-if="isShowButton(params, button)">
151
+ <el-tooltip
152
+ v-if="button.icon"
153
+ v-permission="
154
+ button.permission ? button.permission : 'true'
155
+ "
156
+ :content="button.name"
157
+ class="item"
158
+ effect="dark"
159
+ placement="top"
160
+ style="background-color: red"
161
+ >
162
+ <el-icon :class="button.icon + ' icons'" @click.stop="buttonClick(button.event, params)">
163
+ <component :is="button.icon"/>
164
+ </el-icon>
165
+ </el-tooltip>
166
+ <em
167
+ v-else
168
+ v-permission="
169
+ button.permission ? button.permission : 'true'
170
+ "
171
+ :class="button.name + ' icons'"
172
+ @click.stop="buttonClick(button.event, params)"
173
+ >{{ button.name }}
174
+ </em>
175
+ </template>
176
+ </template>
177
+ <slot :name="slotBefore" :params="params"/>
178
+ </div>
179
+ </div>
180
+ <div
181
+ v-if="isShowEnableState"
182
+ style="position: absolute;right: 5%;bottom: 9%;"
183
+ >
184
+ <el-button
185
+ v-if="showEnableButton(params)"
186
+ class="button--default"
187
+ size="default"
188
+ @click.stop="changeState(params)"
189
+ >
190
+ {{ $t('imatrixUIPublicModel.forbidden') }}
191
+ </el-button>
192
+ <el-button
193
+ v-else
194
+ size="default"
195
+ type="primary"
196
+ @click.stop="changeState(params)"
197
+ >
198
+ {{ $t('imatrixUIPublicModel.startUsing') }}
199
+ </el-button>
200
+ </div>
201
+ </div>
202
+ </div>
203
+ <!-- <el-divider />
204
+ <div style="padding: 10px 10px 10px 10px;">
205
+ <div class="bottom clearfix">
206
+ <time class="name">
207
+ <span v-if="props && props.title">
208
+ <el-checkbox v-if="multiple" :value="selectionModels['select'+params.id]" :true-label="params.id" :false-label="'false-'+params.id" :title="getPropValue('title', params)" style="width: 100%" @change="changeChecked($event, index)">
209
+ {{ getPropValue('title', params) }}
210
+ <span :style="getTitleStyle(params)"> {{ getPropValue('title', params) }}</span>
211
+ </el-checkbox>
212
+ <el-radio v-else-if="isShowRadio" v-model="currentId" :label="params.id" :title="getPropValue('title', params)" style="width: 100%" @change="changeSelectWhenRadio($event, index)">
213
+ {{ getPropValue('title', params) }}
214
+ <span :style="getTitleStyle(params)"> {{ getPropValue('title', params) }}</span>
215
+ </el-radio>
216
+ <span v-else :style="getTitleStyle(params)" :title="getPropValue('title', params)"> {{ getPropValue('title', params) }}</span>
217
+ </span>
218
+ <span v-else-if="props && props.content">
219
+ <el-checkbox v-if="multiple" :value="selectionModels['select'+params.id]" :true-label="params.id" :false-label="'false-'+params.id" :title="getPropValue('content', params)" style="width: 100%" @change="changeChecked($event, index)">{{ getPropValue('content', params) }}</el-checkbox>
220
+ <el-radio v-else-if="isShowRadio" v-model="currentId" :label="params.id" :title="getPropValue('content', params)" style="width: 100%" @change="changeSelectWhenRadio($event, index)">{{ getPropValue('content', params) }}</el-radio>
221
+ <span v-else :title="getPropValue('content', params)" style="width: 100%"> {{ getPropValue('content', params) }}</span>
222
+ </span>
223
+ <span v-else>
224
+ <el-checkbox v-if="multiple" :value="selectionModels['select'+params.id]" :true-label="params.id" :false-label="'false-'+params.id" @change="changeChecked($event, index)">{{ index + 1 }}</el-checkbox>
225
+ <el-radio v-else-if="isShowRadio" v-model="currentId" :label="params.id" @change="changeSelectWhenRadio($event, index)">{{ index + 1 }}</el-radio>
226
+ <span v-else> {{ index + 1 }}</span>
227
+ </span>
228
+ </time>
229
+ <time v-if="props && props.subTitle" class="state">
230
+ <span :title="getPropValue('subTitle', params)" style="width: 100%">{{ getPropValue('subTitle', params) }}</span>
231
+ </time>
232
+ </div> -->
233
+ <!--</div>-->
234
+ </el-card>
235
+ </el-col>
236
+ </el-row>
237
+ </div>
238
+ <el-pagination
239
+ v-if="pagination"
240
+ v-model:current-page="currentPage"
241
+ v-model:page-size="pagination.pageSize"
242
+ :layout="pagination.layout"
243
+ :page-sizes="pagination.pageSizes"
244
+ :total="pagination.total!==undefined&&pagination.total!==''&&pagination.total!==null?pagination.total:0"
245
+ @size-change="handleSizeChange"
246
+ @current-change="handleCurrentChange"
247
+ />
248
+ </div>
249
+ </div>
250
+ </template>
251
+
252
+ <script>
253
+ import {$emit} from '../../utils/gogocodeTransfer'
254
+ import customFormatter from './custom-formatter'
255
+ import SearchForm from './search-form.vue'
256
+ import {addDynamicProp, getGridParams, getTableHeight, isHasOptionFunction} from './utils'
257
+ import store from './store'
258
+ import superGridService from './super-grid-service'
259
+ import apis from './apis'
260
+ import Sortable from 'sortablejs'
261
+
262
+ export default {
263
+ name: 'SuperNineGrid',
264
+ components: {
265
+ SearchForm,
266
+ },
267
+ props: {
268
+ code: {
269
+ type: String,
270
+ default: '',
271
+ },
272
+ url: {
273
+ type: String,
274
+ default: '',
275
+ },
276
+ options: {
277
+ type: Object,
278
+ default: function () {
279
+ return {}
280
+ },
281
+ },
282
+ publishVersion: {
283
+ type: Number,
284
+ default: 0
285
+ }
286
+ },
287
+ data() {
288
+ let mergeFields = []
289
+ if (
290
+ this.options &&
291
+ this.options.mergeFields &&
292
+ this.options.mergeFields !== ''
293
+ ) {
294
+ mergeFields = this.options.mergeFields.split(',')
295
+ }
296
+ const defaultShowImageAction =
297
+ window.$vueApp.config.globalProperties.baseAPI +
298
+ '/component/super-form/show-image?serverPath='
299
+ const gridId =
300
+ this.options && this.options.id ? this.options.id : '_nineGrid'
301
+ const storeId = this.code + '~' + gridId
302
+ const isShowRadio =
303
+ this.options && this.options.showRadio !== undefined
304
+ ? this.options.showRadio
305
+ : false
306
+ return {
307
+ isLoading: false,
308
+ currentPage: 1,
309
+ showColumnConfig: false,
310
+ basicInfo: {
311
+ summary: 'no',
312
+ },
313
+ columns: [],
314
+ pagination: null,
315
+ query: null,
316
+ lineEdit: null,
317
+ gridData: [],
318
+ sortInfo: null,
319
+ pageSize: null,
320
+ showSearch: false,
321
+ height: null,
322
+ isSql: false, // 是否是sql查询
323
+ hasLoadData: false,
324
+ mergeFields,
325
+ hasLoadedColumns: false, // 是否已经加载了列配置
326
+ seen: false,
327
+ current: null,
328
+ isHasCreate: true, // 是否需要新建按钮
329
+ screenBaseUrl: null,
330
+ props: null, // 属性配置
331
+ operations: [], // 指向格子时出现的操作按钮集合
332
+ propCloumns: null, // 属性字段配置详细信息
333
+ multiple: false, // 是否需要多选
334
+ createPermission: 'true', // 新建权限编码,默认是有权限的
335
+ urlToSaveOrder: null, // 拖动格子后台保存接口路径
336
+ selections: [], // 选中的记录集合
337
+ selectionIds: [], // 选中的记录id集合
338
+ selectionModels: {}, // 选中的记录对象
339
+ searchFormContent: null,
340
+ initSearchProps: [], // 初始查询的字段属性名集合
341
+ defaultShowImageAction, // 显示图片的路径
342
+ gridId,
343
+ storeId,
344
+ currentId: null, // 当前点击的记录id
345
+ isShowRadio, // 单选时是否显示单选按钮
346
+ titleStyle: null, // 标题的样式对象,格式为:{ color: 'green', fontWeight: 'bold'}
347
+ isShowEnableState: false,
348
+ colSpan: 6,
349
+ slotBefore: 'before'
350
+ }
351
+ },
352
+ computed: {},
353
+ provide() {
354
+ return {}
355
+ },
356
+ created() {
357
+ store.set(this.code + '~' + this.gridId, getGridParams())
358
+ store.set('_nine_list_code', this.code + '~' + this.gridId)
359
+ this.initSetting()
360
+ this.initialize()
361
+ // this.showDemo()
362
+ console.log('%c描述-232041', 'color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px', this.operations);
363
+ },
364
+ mounted() {
365
+ this.$watch(
366
+ 'showSearch',
367
+ function (newVal, oldVal) {
368
+ this.$nextTick(() => {
369
+ let tableHeight = getTableHeight(newVal, this.$refs.sf)
370
+ const newHeight = this.resizeHeight()
371
+ if (newHeight) {
372
+ tableHeight = newHeight
373
+ }
374
+ this.height = tableHeight
375
+ })
376
+ },
377
+ {
378
+ immediate: true,
379
+ deep: true,
380
+ }
381
+ )
382
+
383
+ this.$watch(
384
+ 'hasLoadData',
385
+ function (newVal, oldVal) {
386
+ if (newVal === true) {
387
+ this.$nextTick(() => {
388
+ // this.rowDrop()
389
+ const gridParams = store.get(this.storeId)
390
+ if (isHasOptionFunction('gridComplete', this.storeId)) {
391
+ gridParams.options.gridComplete.call(this, {
392
+ gridData: this.gridData,
393
+ columns: gridParams.columns,
394
+ superGrid: this.$refs.superGrid,
395
+ })
396
+ }
397
+ const newHeight = this.resizeHeight()
398
+ if (newHeight) {
399
+ this.height = newHeight
400
+ }
401
+ })
402
+ }
403
+ },
404
+ {
405
+ immediate: true,
406
+ deep: true,
407
+ }
408
+ )
409
+ },
410
+ methods: {
411
+ ...superGridService,
412
+ ...apis,
413
+ ...customFormatter,
414
+ getTitleStyle(entity) {
415
+ // 九宫格的标题自定义样式
416
+ if (this.options && this.options.titleStyle) {
417
+ return this.options.titleStyle.call(this, entity)
418
+ }
419
+ return {width: '100%'}
420
+ },
421
+ // 获得属性值
422
+ getPropValue(type, entity) {
423
+ let value = ''
424
+ const gridParams = store.get(this.storeId)
425
+ if (type === 'content') {
426
+ let content = ''
427
+ if (isHasOptionFunction('setContent', this.storeId)) {
428
+ content = gridParams.options.getContent.call(this, entity)
429
+ }
430
+ if (content === undefined || content === '') {
431
+ if (this.props && this.props.content) {
432
+ content = this.objectPropValue(
433
+ entity,
434
+ this.propCloumns.content,
435
+ this.props.content
436
+ )
437
+ } else if (this.props && this.props.title) {
438
+ content = this.objectPropValue(
439
+ entity,
440
+ this.propCloumns.title,
441
+ this.props.title
442
+ )
443
+ }
444
+ }
445
+ value = content
446
+ } else if (type === 'title') {
447
+ let content = ''
448
+ if (isHasOptionFunction('setTitle', this.storeId)) {
449
+ content = gridParams.options.setTitle.call(this, entity)
450
+ }
451
+ if (content === undefined || content === '') {
452
+ if (this.props && this.props.title) {
453
+ content = this.objectPropValue(
454
+ entity,
455
+ this.propCloumns.title,
456
+ this.props.title
457
+ )
458
+ } else if (this.props && this.props.content) {
459
+ content = this.objectPropValue(
460
+ entity,
461
+ this.propCloumns.content,
462
+ this.props.content
463
+ )
464
+ }
465
+ }
466
+ value = content
467
+ } else if (type === 'subTitle') {
468
+ let content = ''
469
+ if (isHasOptionFunction('setSubTitle', this.storeId)) {
470
+ content = gridParams.options.setSubTitle.call(this, entity)
471
+ }
472
+ if (content === undefined || content === '') {
473
+ if (this.props && this.props.subTitle) {
474
+ content = this.objectPropValue(
475
+ entity,
476
+ this.propCloumns.subTitle,
477
+ this.props.subTitle
478
+ )
479
+ }
480
+ }
481
+ value = content
482
+ }
483
+ if (value === undefined) {
484
+ value = ''
485
+ }
486
+ return value
487
+ },
488
+ resizeHeight() {
489
+ const gridParams = store.get(this.storeId)
490
+ if (isHasOptionFunction('resizeHeight', this.storeId)) {
491
+ let searchHeight = 0
492
+ if (this.showSearch === true) {
493
+ if (this.$refs.sf) {
494
+ // 获得查询区高度
495
+ searchHeight = this.$refs.sf.$el.offsetHeight
496
+ }
497
+ }
498
+ return gridParams.options.resizeHeight.call(this, {
499
+ code: this.code,
500
+ height: this.height,
501
+ searchHeight: searchHeight,
502
+ })
503
+ }
504
+ },
505
+ enter(index) {
506
+ this.seen = true
507
+ this.current = index
508
+ },
509
+ leave() {
510
+ this.seen = false
511
+ this.current = null
512
+ },
513
+ initSetting() {
514
+ const gridParams = store.get(this.storeId)
515
+ if (typeof this.options !== 'undefined') {
516
+ Object.assign(gridParams.options, this.options)
517
+ } else {
518
+ gridParams.options = {}
519
+ }
520
+ if (this.options && typeof this.options.isHasCreate !== 'undefined') {
521
+ this.isHasCreate = this.options.isHasCreate
522
+ }
523
+ if (this.options && typeof this.options.props !== 'undefined') {
524
+ this.props = this.options.props
525
+ }
526
+ if (this.options && typeof this.options.operations !== 'undefined') {
527
+ this.operations = this.options.operations
528
+ }
529
+ if (
530
+ this.options &&
531
+ typeof this.options.createPermission !== 'undefined'
532
+ ) {
533
+ this.createPermission = this.options.createPermission
534
+ }
535
+ if (this.options && typeof this.options.multiple !== 'undefined') {
536
+ this.multiple = this.options.multiple
537
+ }
538
+ if (
539
+ this.options &&
540
+ typeof this.options.isShowEnableState !== 'undefined'
541
+ ) {
542
+ this.isShowEnableState = this.options.isShowEnableState
543
+ }
544
+ if (this.options && typeof this.options.colSpan !== 'undefined') {
545
+ this.colSpan = this.options.colSpan
546
+ }
547
+ },
548
+ // 获得各属性对应的字段配置
549
+ getPropColumns() {
550
+ if (this.columns && this.columns.length > 0) {
551
+ // imageUrl:{column}, content: {column}, title: {}, subTitle:{}
552
+ this.propCloumns = {}
553
+ this.columns.forEach((column) => {
554
+ if (this.props.imageUrl && this.props.imageUrl === column.prop) {
555
+ this.propCloumns.imageUrl = column
556
+ }
557
+ if (this.props.content && this.props.content === column.prop) {
558
+ this.propCloumns.content = column
559
+ }
560
+ if (this.props.title && this.props.title === column.prop) {
561
+ this.propCloumns.title = column
562
+ }
563
+ if (this.props.subTitle && this.props.subTitle === column.prop) {
564
+ this.propCloumns.subTitle = column
565
+ }
566
+ })
567
+ }
568
+ },
569
+ fetchData(searchParam, isSearch) {
570
+ return new Promise((resolve, reject) => {
571
+ // 获得各属性对应的字段配置
572
+ this.getPropColumns()
573
+ this.isLoading = true
574
+ this.hasLoadData = false
575
+ if (isSearch === undefined || isSearch === false) {
576
+ // 如果不是查询时才需要从缓存中获得结果
577
+ // 如果是刷新当前列表,则需要获得缓存中的window.sessionStorage
578
+ const isRefreshList = window.sessionStorage.getItem(
579
+ 'refreshList-' + this.storeId
580
+ )
581
+ // console.log('fetchData--isRefreshList--', isRefreshList)
582
+ if (isRefreshList !== undefined && isRefreshList === 'true') {
583
+ const searchParamJson = window.sessionStorage.getItem(
584
+ 'searchParam-' + this.storeId
585
+ )
586
+ // console.log('fetchData--searchParamJson--', searchParamJson)
587
+ // console.log('fetchData--pagination--', this.pagination)
588
+ if (
589
+ searchParamJson !== undefined &&
590
+ searchParamJson !== null &&
591
+ searchParamJson !== ''
592
+ ) {
593
+ searchParam = JSON.parse(searchParamJson)
594
+ const pagination = searchParam.pagination
595
+ if (pagination) {
596
+ this.currentPage = pagination.currentPage
597
+ this.pagination.pageSize = pagination.pageSize
598
+ this.pagination.showTotal = pagination.showTotal
599
+ }
600
+ this.getInitSearchForm(searchParam.searchForm)
601
+ // this.searchFormContent = searchParam.searchForm
602
+ }
603
+ }
604
+ }
605
+ window.sessionStorage.removeItem('refreshList-' + this.storeId)
606
+ if (searchParam === undefined) {
607
+ searchParam = this.getSearchParam()
608
+ }
609
+ const gridParams = store.get(this.storeId)
610
+ let param = searchParam
611
+ if (gridParams.options.extraParam) {
612
+ param = {
613
+ searchParam: searchParam,
614
+ }
615
+ if (gridParams.options.extraParam) {
616
+ for (const paramName in gridParams.options.extraParam) {
617
+ param[paramName] = gridParams.options.extraParam[paramName]
618
+ }
619
+ }
620
+ }
621
+ // 导出需要这两个参数
622
+ gridParams.searchParam = searchParam
623
+ gridParams.url = this.url
624
+ const requestUrl = this.url
625
+ // 缓存查询条件及当前页数
626
+ window.sessionStorage.setItem(
627
+ 'searchParam-' + this.storeId,
628
+ JSON.stringify(param)
629
+ )
630
+ this.$http
631
+ .post(requestUrl, param)
632
+ .then((data) => {
633
+ // 对数据做序列化,比如:处理xss攻击
634
+ if (isHasOptionFunction('gridDataLoaded', this.storeId)) {
635
+ const gridData = gridParams.options.gridDataLoaded.call(this, {
636
+ gridData: data.data,
637
+ columns: gridParams.columns,
638
+ })
639
+ if (gridData) {
640
+ this.gridData = gridData
641
+ } else {
642
+ this.gridData = data.data
643
+ }
644
+ } else {
645
+ this.gridData = data.data
646
+ }
647
+ if (!this.gridData) {
648
+ this.gridData = []
649
+ }
650
+
651
+ if (this.pagination !== null) {
652
+ this.pagination.total = data.total
653
+ }
654
+
655
+ gridParams.gridData = this.gridData
656
+ // 完成深拷贝,复制一份对象,行编辑时使用
657
+ gridParams.orgGridData = [].concat(
658
+ JSON.parse(JSON.stringify(this.gridData))
659
+ )
660
+
661
+ gridParams.pagination = this.pagination
662
+ gridParams.loaded = true
663
+ this.hasLoadData = true
664
+ resolve()
665
+ })
666
+ .catch((error) => {
667
+ if (isHasOptionFunction('loadError', this.storeId)) {
668
+ gridParams.options.loadError.call(this, this.code, error)
669
+ }
670
+ reject(error)
671
+ })
672
+ })
673
+ },
674
+ getLength(paramsData) {
675
+ if (paramsData && paramsData.length > 5) {
676
+ return '(' + paramsData.substring(0, 5) + '...' + ')'
677
+ } else if (paramsData) {
678
+ return '(' + paramsData + ')'
679
+ } else {
680
+ return ''
681
+ }
682
+ },
683
+ // 获得初始查询条件对象
684
+ getInitSearchForm(searchFormArr) {
685
+ const gridParams = store.get(this.storeId)
686
+ if (searchFormArr && searchFormArr.length > 0) {
687
+ this.searchFormContent = {}
688
+ searchFormArr.forEach((item) => {
689
+ // 获得的是"isDeleted"
690
+ let prop = item.propName
691
+ // 获得的是“deleted”
692
+ const columnProp = item.columnProp
693
+ const dataType = item.dataType
694
+ if (dataType && dataType === 'BOOLEAN') {
695
+ prop = columnProp
696
+ }
697
+ this.initSearchProps.push(prop)
698
+ const propValue = item.propValue
699
+ if (prop.indexOf('.') > 0) {
700
+ // 动态给searchForm添加属性,包括多级嵌套属性,属性的初始值都为 null
701
+ addDynamicProp(this.searchFormContent, prop, propValue)
702
+ } else {
703
+ this.searchFormContent[prop] = propValue
704
+ }
705
+ })
706
+ gridParams.searchForm = searchFormArr
707
+ // 调用查询api方法,该方法中调用了@showSearch方法,用于控制“查询”按钮改名为“取消查询”
708
+ this.showSearchForm()
709
+ } else {
710
+ gridParams.searchForm = null
711
+ }
712
+ },
713
+ showDemo() {
714
+ this.isLoading = true
715
+ this.$http
716
+ .get(this.url)
717
+ .then((data) => {
718
+ Object.assign(this, data)
719
+ const gridParams = store.get(this.storeId)
720
+
721
+ gridParams.listCode = this.code
722
+
723
+ gridParams.columns = this.columns
724
+ if (gridParams.columns && this.options.dynamicColumns) {
725
+ for (var i = 0; i < this.options.dynamicColumns.length; i++) {
726
+ this.options.dynamicColumns[i].dynamic = true
727
+ gridParams.columns.push(this.options.dynamicColumns[i])
728
+ }
729
+ }
730
+ gridParams.lineEdit = this.lineEdit
731
+ gridParams.basicInfo = this.basicInfo
732
+ gridParams.pagination = this.pagination
733
+ gridParams.query = this.query
734
+
735
+ this.gridData = data.gridData
736
+ // 对数据做序列化,比如:处理xss攻击
737
+ if (isHasOptionFunction('gridDataLoaded', this.storeId)) {
738
+ const gridData = gridParams.options.gridDataLoaded.call(
739
+ this,
740
+ data.gridData
741
+ )
742
+ if (gridData) {
743
+ this.gridData = gridData
744
+ } else {
745
+ this.gridData = data.gridData
746
+ }
747
+ } else {
748
+ this.gridData = data.gridData
749
+ }
750
+
751
+ if (this.pagination != null) {
752
+ this.pagination.total = data.total
753
+ }
754
+ if (!this.gridData) {
755
+ this.gridData = []
756
+ }
757
+ gridParams.gridData = this.gridData
758
+ // 完成深拷贝,复制一份对象,行编辑时使用
759
+ gridParams.orgGridData = [].concat(
760
+ JSON.parse(JSON.stringify(this.gridData))
761
+ )
762
+ gridParams.pagination = this.pagination
763
+
764
+ if (isHasOptionFunction('gridComplete', this.storeId)) {
765
+ gridParams.options.gridComplete.call(
766
+ this,
767
+ this.gridData,
768
+ gridParams.columns
769
+ )
770
+ }
771
+ })
772
+ .catch((error) => {
773
+ if (isHasOptionFunction('loadError', this.storeId)) {
774
+ const gridParams = store.get(this.storeId)
775
+ gridParams.options.loadError.call(this, this.code, error)
776
+ }
777
+ })
778
+ },
779
+ search(searchForm) {
780
+ const vm = this
781
+ return new Promise((resolve, reject) => {
782
+ const gridParams = store.get(vm.storeId)
783
+ if (typeof searchForm !== 'undefined' && searchForm !== null) {
784
+ gridParams.searchForm = searchForm
785
+ } else {
786
+ gridParams.searchForm = null
787
+ }
788
+
789
+ vm.fetchData(vm.getSearchParam(), true)
790
+ .then((data) => {
791
+ if (
792
+ gridParams.options !== undefined &&
793
+ gridParams.options.isHiddenSearchForm !== undefined &&
794
+ gridParams.options.isHiddenSearchForm === true
795
+ ) {
796
+ // 查询时,是否隐藏查询区域,默认是不隐藏查询区域
797
+ vm.showSearch = false
798
+ $emit(vm, 'cancel-search')
799
+ }
800
+ if (vm.$refs.sf) {
801
+ vm.$refs.sf.loading = false
802
+ }
803
+ resolve(data)
804
+ })
805
+ .catch((error) => {
806
+ if (vm.$refs.sf) {
807
+ vm.$refs.sf.loading = false
808
+ }
809
+ reject(error)
810
+ })
811
+ })
812
+ },
813
+ getSearchParam() {
814
+ const searchParam = {
815
+ code: this.code,
816
+ }
817
+ const gridParams = store.get(this.storeId)
818
+ if (this.pagination !== null) {
819
+ const pagination = {
820
+ currentPage: this.currentPage,
821
+ pageSize: this.pagination.pageSize,
822
+ showTotal: this.pagination.showTotal,
823
+ }
824
+ if (this.pageSize !== null) {
825
+ // 表示更改了每页显示的数据条数
826
+ pagination.pageSize = this.pageSize
827
+ }
828
+ searchParam.pagination = pagination
829
+ }
830
+ // 排序信息
831
+ if (this.sortInfo !== null) {
832
+ // 表示更改了排序信息
833
+ searchParam.sorts = this.sortInfo
834
+ }
835
+ if (this.mergeFields && this.mergeFields.length > 0) {
836
+ if (!searchParam.sorts) {
837
+ searchParam.sorts = []
838
+ }
839
+ const mergeFieldsArr = []
840
+ for (const mergeField of this.mergeFields) {
841
+ let flag = true
842
+ for (const so of searchParam.sorts) {
843
+ if (so.prop === mergeField) {
844
+ flag = false
845
+ break
846
+ }
847
+ }
848
+ if (flag) {
849
+ mergeFieldsArr.push({
850
+ prop: mergeField,
851
+ order: 'ascending',
852
+ })
853
+ }
854
+ }
855
+ mergeFieldsArr.push(...searchParam.sorts)
856
+ searchParam.sorts = mergeFieldsArr
857
+ }
858
+ // 是否有初始过滤条件
859
+ if (
860
+ gridParams.options &&
861
+ typeof gridParams.options.initSearchForm !== 'undefined'
862
+ ) {
863
+ searchParam.initSearchForm = gridParams.options.initSearchForm
864
+ }
865
+ if (typeof gridParams.searchForm !== 'undefined') {
866
+ searchParam.searchForm = gridParams.searchForm
867
+ } else {
868
+ searchParam.searchForm = []
869
+ }
870
+ return searchParam
871
+ },
872
+ handleSizeChange(val) {
873
+ this.pageSize = val
874
+ this.fetchData(this.getSearchParam())
875
+ },
876
+ handleCurrentChange(val) {
877
+ this.fetchData(this.getSearchParam())
878
+ },
879
+ handleSortChange({column, prop, order}) {
880
+ if (prop !== null) {
881
+ // 当点击第3次时,prop会是空,表示清空排序字段,还原原顺序
882
+ this.sortInfo = [
883
+ {
884
+ prop: prop,
885
+ order: order,
886
+ },
887
+ ]
888
+ } else {
889
+ this.sortInfo = null
890
+ }
891
+ this.fetchData(this.getSearchParam())
892
+ $emit(this, 'sort-change', {column, prop, order})
893
+ },
894
+ resetSearch() {
895
+ this.search(null, false)
896
+ },
897
+ // 新建事件
898
+ add() {
899
+ $emit(this, 'add')
900
+ },
901
+ // 操作按钮的点击事件
902
+ buttonClick(event, data) {
903
+ if (event) {
904
+ if (typeof event === 'function') {
905
+ event.call(this, data)
906
+ } else {
907
+ $emit(this, event, data)
908
+ }
909
+ }
910
+ },
911
+ // 点击内容区域的事件
912
+ clickContent(data) {
913
+ this.changeSelect(data)
914
+ $emit(this, 'click', data)
915
+ },
916
+ // 格子拖拽
917
+ rowDrop() {
918
+ if (this.urlToSaveOrder) {
919
+ let urlToSaveOrder = this.urlToSaveOrder
920
+ if (
921
+ urlToSaveOrder.indexOf('http:') < 0 ||
922
+ urlToSaveOrder.indexOf('https:') < 0
923
+ ) {
924
+ // 表示是相对路径,需要拼接全路径
925
+ let baseURL = window.$vueApp.config.globalProperties.baseURL
926
+ if (baseURL.lastIndexOf('/') === baseURL.length - 1) {
927
+ // 表示以斜线结尾
928
+ // 去掉斜线
929
+ baseURL = baseURL.substring(0, baseURL.length - 1)
930
+ }
931
+ if (urlToSaveOrder.indexOf('/') > 0) {
932
+ // 表示不是以斜线开头,需要开头加“/”
933
+ urlToSaveOrder = '/' + urlToSaveOrder
934
+ }
935
+ urlToSaveOrder = baseURL + urlToSaveOrder
936
+ }
937
+ const tbody = document.querySelector('#' + this.gridId + ' .el-row')
938
+ if (tbody != null) {
939
+ const vm = this
940
+ Sortable.create(tbody, {
941
+ draggable: '.col-content',
942
+ onEnd({newIndex, oldIndex}) {
943
+ const addCardId = document.querySelector(
944
+ '#' + vm.gridId + ' #_addCardId_'
945
+ )
946
+ if (addCardId != null) {
947
+ // 表示存在新建区域,则序号需要减1
948
+ if (oldIndex > 0) {
949
+ oldIndex = oldIndex - 1
950
+ }
951
+ if (newIndex > 0) {
952
+ newIndex = newIndex - 1
953
+ }
954
+ }
955
+ const params = {
956
+ oldIndex: oldIndex,
957
+ newIndex: newIndex,
958
+ gridData: vm.gridData,
959
+ }
960
+ vm.$http.post(urlToSaveOrder, params).then((data) => {
961
+ const currRow = vm.gridData.splice(oldIndex, 1)[0]
962
+ vm.gridData.splice(newIndex, 0, currRow)
963
+ vm.refresh().then(() => {
964
+ $emit(vm, 'afterDrag', params)
965
+ })
966
+ })
967
+ },
968
+ })
969
+ }
970
+ }
971
+ },
972
+ // 多选按钮的change事件
973
+ changeChecked(label, index) {
974
+ const entity = this.gridData[index]
975
+ if ((label + '').indexOf('false-') >= 0) {
976
+ // 表示取消勾选记录
977
+ this.unselect(entity)
978
+ } else {
979
+ // 表示勾选记录
980
+ this.select(entity)
981
+ }
982
+ },
983
+ unselect(entity) {
984
+ const id = entity.id
985
+ const index = this.selectionIds.indexOf(id)
986
+ if (index > -1) {
987
+ this.selections.splice(index, 1)
988
+ this.selectionIds.splice(index, 1)
989
+ }
990
+ $emit(this, 'unselect', entity, this.selections)
991
+ this.selectionModels['select' + id] = 'false-' + id
992
+ // console.log('unselect---this.selections=', this.selections)
993
+ },
994
+ select(entity) {
995
+ const id = entity.id
996
+ if (this.selectionIds.indexOf(id) < 0) {
997
+ this.selectionIds[this.selectionIds.length] = id
998
+ this.selections[this.selections.length] = entity
999
+ }
1000
+ $emit(this, 'select', entity, this.selections)
1001
+ this.selectionModels['select' + id] = id
1002
+ // console.log('select---this.selections=', this.selections)
1003
+ },
1004
+ // 单选按钮的change事件
1005
+ changeSelectWhenRadio(label, index) {
1006
+ const entity = this.gridData[index]
1007
+ this.selectionIds = []
1008
+ this.selections = []
1009
+ this.selectionModels = {}
1010
+ this.select(entity)
1011
+ },
1012
+ changeSelect(data) {
1013
+ const id = data.id
1014
+ if (this.multiple === true) {
1015
+ // 多选时
1016
+ if (this.selectionIds && this.selectionIds.indexOf(id) >= 0) {
1017
+ // 表示需要取消选中
1018
+ this.unselect(data)
1019
+ } else {
1020
+ // 表示需要选中
1021
+ this.select(data)
1022
+ }
1023
+ } else {
1024
+ // 单选时
1025
+ this.currentId = id
1026
+ this.selectionIds = []
1027
+ this.selections = []
1028
+ this.selectionModels = {}
1029
+ this.select(data)
1030
+ }
1031
+ },
1032
+ isShowButton(entity, button) {
1033
+ const val = this.isShowButtonFun(entity, button)
1034
+ if (val === undefined) {
1035
+ return true
1036
+ }
1037
+ return val
1038
+ },
1039
+ // 是否显示启用禁用按钮
1040
+ showEnableButton(entity) {
1041
+ const gridParams = store.get(this.storeId)
1042
+ if (isHasOptionFunction('showEnableButton', this.storeId)) {
1043
+ return gridParams.options.showEnableButton.call(this, entity)
1044
+ }
1045
+ return false
1046
+ },
1047
+ // 启用禁用按钮显示状态
1048
+ changeState(entity) {
1049
+ const gridParams = store.get(this.storeId)
1050
+ if (isHasOptionFunction('changeState', this.storeId)) {
1051
+ return gridParams.options.changeState.call(this, entity)
1052
+ }
1053
+ return false
1054
+ },
1055
+ },
1056
+ emits: [
1057
+ 'sort-change',
1058
+ ,
1059
+ 'click',
1060
+ 'afterDrag',
1061
+ 'unselect',
1062
+ 'select',
1063
+ 'cancel-search',
1064
+ 'add',
1065
+ ,
1066
+ ],
1067
+ }
1068
+ </script>
1069
+
1070
+ <style lang="scss" rel="stylesheet/scss" scoped>
1071
+ .nine-grid-area {
1072
+ padding: 10px;
1073
+
1074
+ .el-row {
1075
+ margin-bottom: 20px;
1076
+
1077
+ &:last-child {
1078
+ margin-bottom: 0;
1079
+ }
1080
+ }
1081
+
1082
+ .el-col-5 {
1083
+ width: 20%;
1084
+ max-width: 20%;
1085
+ padding-left: 12px;
1086
+ padding-right: 12px;
1087
+ }
1088
+
1089
+ .el-col {
1090
+ border-radius: 4px;
1091
+ margin-bottom: 10px;
1092
+ }
1093
+
1094
+ .name {
1095
+ font-size: 12px;
1096
+ color: #555;
1097
+ float: left;
1098
+ width: 80%;
1099
+ text-align: left;
1100
+ }
1101
+
1102
+ .bottom {
1103
+ // margin-top: 13px;
1104
+ line-height: 13px;
1105
+ // background: aquamarine;
1106
+ }
1107
+
1108
+ .state {
1109
+ font-size: 12px;
1110
+ margin-top: 1.5px;
1111
+ float: right;
1112
+ line-height: 1;
1113
+ display: flex;
1114
+ align-items: right;
1115
+ color: #999;
1116
+ width: 20%;
1117
+ text-align: right;
1118
+ }
1119
+
1120
+ .image {
1121
+ width: 100%;
1122
+ display: block;
1123
+ height: 200px;
1124
+ }
1125
+
1126
+ .clearfix:before,
1127
+ .clearfix:after {
1128
+ display: table;
1129
+ content: '';
1130
+ }
1131
+
1132
+ .clearfix:after {
1133
+ clear: both;
1134
+ }
1135
+
1136
+ .input-with-select {
1137
+ // background-color: #fff;
1138
+ width: 200px;
1139
+ float: right;
1140
+ }
1141
+
1142
+ .popContainer {
1143
+ position: absolute;
1144
+ width: 23.15%;
1145
+ display: block;
1146
+ height: 200px;
1147
+ //background: rgba(0, 0, 0, 0.5);
1148
+ text-align: right;
1149
+ }
1150
+
1151
+ .fade-enter-active,
1152
+ .fade-leave-active {
1153
+ transition: opacity 0.5s;
1154
+ }
1155
+
1156
+ .fade-enter,
1157
+ .fade-leave-to {
1158
+ opacity: 0;
1159
+ }
1160
+
1161
+ .icons {
1162
+ color: #adb5bd;
1163
+ margin: 10px 10px 0px 0px;
1164
+ cursor: pointer;
1165
+ }
1166
+
1167
+ .release-status {
1168
+ display: block;
1169
+ width: 8px;
1170
+ height: 8px;
1171
+ margin-right: 8px;
1172
+ border-radius: 100%;
1173
+ }
1174
+
1175
+ .add-screen {
1176
+ display: flex;
1177
+ flex-direction: column;
1178
+ justify-content: center;
1179
+ align-items: center;
1180
+ cursor: pointer;
1181
+ height: 160px;
1182
+ // background-color: #fff;
1183
+ // border: 1px solid #7693f5;
1184
+ // box-shadow: 0 2px 8px 0 rgba(104,130,218,.4);
1185
+ color: #666666;
1186
+ font-family: Source Han Sans CN;
1187
+ font-weight: 400;
1188
+ font-size: 14px;
1189
+ line-height: 14px;
1190
+ letter-spacing: 0px;
1191
+ text-align: left;
1192
+ }
1193
+
1194
+ .el-divider--horizontal {
1195
+ margin: 5px 0;
1196
+ }
1197
+
1198
+ .button-style {
1199
+ margin-top: 28px;
1200
+ color: #606266;
1201
+ font-family: Source Han Sans CN;
1202
+ font-weight: 400;
1203
+ font-size: 14px;
1204
+ //line-height: 14px;
1205
+ //letter-spacing: 0px;
1206
+ //text-align: left;
1207
+ display: grid;
1208
+ grid-template-columns: 20% 80%;
1209
+ }
1210
+ }
1211
+ </style>