super-page-runtime 1.0.13 → 1.0.15

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 (338) hide show
  1. package/dist/es/components/index.d.ts +5 -0
  2. package/dist/es/{runtime → components/runtime}/views/assemblys/button/button/button-runtime.vue2.js +1 -1
  3. package/dist/es/{runtime → components/runtime}/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +1 -1
  4. package/dist/es/{runtime → components/runtime}/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  5. package/dist/es/{runtime → components/runtime}/views/assemblys/chart/gauge/gauge-runtime.vue2.js +2 -9
  6. package/dist/es/{runtime → components/runtime}/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  7. package/dist/es/{runtime → components/runtime}/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  8. package/dist/es/{runtime → components/runtime}/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  9. package/dist/es/{runtime → components/runtime}/views/assemblys/common/export-form-report-dialog.vue.js +3 -9
  10. package/dist/es/{runtime → components/runtime}/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -1
  11. package/dist/es/{runtime → components/runtime}/views/assemblys/container/container/container-runtime.vue2.js +0 -1
  12. package/dist/es/{runtime → components/runtime}/views/assemblys/container/flex/flex-runtime.vue2.js +0 -1
  13. package/dist/es/{runtime → components/runtime}/views/assemblys/container/form/form-runtime.vue2.js +0 -1
  14. package/dist/es/{runtime → components/runtime}/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -1
  15. package/dist/es/{runtime → components/runtime}/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -1
  16. package/dist/es/{runtime → components/runtime}/views/assemblys/container/tools/tools-runtime.vue2.js +0 -1
  17. package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/main-table-runtime.vue.js +4 -5
  18. package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/sub-table-runtime.vue.js +5 -5
  19. package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/table-runtime.vue2.js +0 -5
  20. package/dist/es/{runtime → components/runtime}/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
  21. package/dist/es/{runtime → components/runtime}/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +2 -2
  22. package/dist/es/{runtime → components/runtime}/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +1 -5
  23. package/dist/es/{runtime → components/runtime}/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
  24. package/dist/es/{runtime → components/runtime}/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
  25. package/dist/es/{runtime → components/runtime}/views/assemblys/form/input-number/input-number-runtime.vue2.js +2 -2
  26. package/dist/es/{runtime → components/runtime}/views/assemblys/form/input-text/inputtext-runtime.vue2.js +3 -3
  27. package/dist/es/{runtime → components/runtime}/views/assemblys/form/label/label-runtime.vue2.js +10 -4
  28. package/dist/es/{runtime → components/runtime}/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  29. package/dist/es/{runtime → components/runtime}/views/assemblys/form/radio/radio-runtime.vue2.js +2 -2
  30. package/dist/es/{runtime → components/runtime}/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -3
  31. package/dist/es/{runtime → components/runtime}/views/assemblys/form/select/select-runtime.vue2.js +2 -2
  32. package/dist/es/{runtime → components/runtime}/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  33. package/dist/es/{runtime → components/runtime}/views/assemblys/form/tag/tag-runtime.vue2.js +2 -2
  34. package/dist/es/{runtime → components/runtime}/views/assemblys/form/textarea/textarea-runtime.vue2.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  36. package/dist/es/{runtime → components/runtime}/views/assemblys/object-render.vue.js +5 -5
  37. package/dist/es/{runtime → components/runtime}/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
  38. package/dist/es/components/runtime/views/super-page.vue.d.ts +1 -1
  39. package/dist/es/{runtime → components/runtime}/views/super-page.vue.js +7 -8
  40. package/dist/es/{super-page-dialog → components/super-page-dialog}/super-page-dialog.vue.js +0 -1
  41. package/dist/es/components/wf-editor/wf-editor.css +4 -0
  42. package/dist/es/{wf-editor → components/wf-editor}/wf-editor.vue.js +3 -3
  43. package/dist/es/src/utils/charts/chart-util.js +15 -0
  44. package/dist/es/{components/runtime → src}/utils/events/event-util.d.ts +1 -1
  45. package/dist/lib/components/index.d.ts +5 -0
  46. package/dist/lib/{runtime → components/runtime}/views/assemblys/button/button/button-runtime.vue2.js +1 -1
  47. package/dist/lib/{runtime → components/runtime}/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +1 -1
  48. package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  49. package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/gauge/gauge-runtime.vue2.js +2 -9
  50. package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  51. package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  52. package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  53. package/dist/lib/{runtime → components/runtime}/views/assemblys/common/export-form-report-dialog.vue.js +3 -9
  54. package/dist/lib/{runtime → components/runtime}/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -1
  55. package/dist/lib/{runtime → components/runtime}/views/assemblys/container/container/container-runtime.vue2.js +0 -1
  56. package/dist/lib/{runtime → components/runtime}/views/assemblys/container/flex/flex-runtime.vue2.js +0 -1
  57. package/dist/lib/{runtime → components/runtime}/views/assemblys/container/form/form-runtime.vue2.js +0 -1
  58. package/dist/lib/{runtime → components/runtime}/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -1
  59. package/dist/lib/{runtime → components/runtime}/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -1
  60. package/dist/lib/{runtime → components/runtime}/views/assemblys/container/tools/tools-runtime.vue2.js +0 -1
  61. package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/main-table-runtime.vue.js +4 -5
  62. package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/sub-table-runtime.vue.js +5 -5
  63. package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/table-runtime.vue2.js +0 -5
  64. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
  65. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +2 -2
  66. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +1 -5
  67. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
  68. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
  69. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/input-number/input-number-runtime.vue2.js +2 -2
  70. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/input-text/inputtext-runtime.vue2.js +3 -3
  71. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/label/label-runtime.vue2.js +10 -4
  72. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  73. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/radio/radio-runtime.vue2.js +2 -2
  74. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -3
  75. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/select/select-runtime.vue2.js +2 -2
  76. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  77. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/tag/tag-runtime.vue2.js +2 -2
  78. package/dist/lib/{runtime → components/runtime}/views/assemblys/form/textarea/textarea-runtime.vue2.js +2 -2
  79. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  80. package/dist/lib/{runtime → components/runtime}/views/assemblys/object-render.vue.js +5 -5
  81. package/dist/lib/{runtime → components/runtime}/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
  82. package/dist/lib/components/runtime/views/super-page.vue.d.ts +1 -1
  83. package/dist/lib/{runtime → components/runtime}/views/super-page.vue.js +7 -8
  84. package/dist/lib/{super-page-dialog → components/super-page-dialog}/super-page-dialog.vue.js +0 -1
  85. package/dist/lib/components/wf-editor/wf-editor.css +4 -0
  86. package/dist/lib/{wf-editor → components/wf-editor}/wf-editor.vue.js +3 -3
  87. package/dist/lib/src/utils/charts/chart-util.js +15 -0
  88. package/dist/lib/{components/runtime → src}/utils/events/event-util.d.ts +1 -1
  89. package/lib/components/index.js +8 -0
  90. package/package.json +5 -4
  91. package/src/assets/base.css +86 -0
  92. package/src/assets/chart-themes/theme1.ts +6 -0
  93. package/src/assets/chart-themes/theme2.ts +6 -0
  94. package/src/assets/chart-themes/theme3.ts +6 -0
  95. package/src/assets/images/button/button-group.png +0 -0
  96. package/src/assets/images/button/button.png +0 -0
  97. package/src/assets/images/chart/chart-column.png +0 -0
  98. package/src/assets/images/chart/chart-gauge.png +0 -0
  99. package/src/assets/images/chart/chart-pie.png +0 -0
  100. package/src/assets/images/chart/chart-radar.png +0 -0
  101. package/src/assets/images/chart/chart-scatter.png +0 -0
  102. package/src/assets/images/container/container-card.png +0 -0
  103. package/src/assets/images/container/container-collapse.png +0 -0
  104. package/src/assets/images/container/container-container.png +0 -0
  105. package/src/assets/images/container/container-flex.png +0 -0
  106. package/src/assets/images/container/container-form.png +0 -0
  107. package/src/assets/images/container/container-iframe.png +0 -0
  108. package/src/assets/images/container/container-normal.png +0 -0
  109. package/src/assets/images/container/container-tabs.png +0 -0
  110. package/src/assets/images/container/container-tools.png +0 -0
  111. package/src/assets/images/data/data-process.png +0 -0
  112. package/src/assets/images/data/data-step.png +0 -0
  113. package/src/assets/images/data/data-table-column.png +0 -0
  114. package/src/assets/images/data/data-table.png +0 -0
  115. package/src/assets/images/data/data-timeline.png +0 -0
  116. package/src/assets/images/data/data-tree.png +0 -0
  117. package/src/assets/images/form/form-cascader.png +0 -0
  118. package/src/assets/images/form/form-check.png +0 -0
  119. package/src/assets/images/form/form-color.png +0 -0
  120. package/src/assets/images/form/form-count.png +0 -0
  121. package/src/assets/images/form/form-custom.png +0 -0
  122. package/src/assets/images/form/form-date.png +0 -0
  123. package/src/assets/images/form/form-dept.png +0 -0
  124. package/src/assets/images/form/form-divider.png +0 -0
  125. package/src/assets/images/form/form-file.png +0 -0
  126. package/src/assets/images/form/form-image-upload.png +0 -0
  127. package/src/assets/images/form/form-img.png +0 -0
  128. package/src/assets/images/form/form-input.png +0 -0
  129. package/src/assets/images/form/form-label.png +0 -0
  130. package/src/assets/images/form/form-link.png +0 -0
  131. package/src/assets/images/form/form-radio.png +0 -0
  132. package/src/assets/images/form/form-scan.png +0 -0
  133. package/src/assets/images/form/form-score.png +0 -0
  134. package/src/assets/images/form/form-select.png +0 -0
  135. package/src/assets/images/form/form-slider.png +0 -0
  136. package/src/assets/images/form/form-space.png +0 -0
  137. package/src/assets/images/form/form-switch.png +0 -0
  138. package/src/assets/images/form/form-text.png +0 -0
  139. package/src/assets/images/form/form-textarea.png +0 -0
  140. package/src/assets/images/form/form-transfer.png +0 -0
  141. package/src/assets/images/form/form-zoom.png +0 -0
  142. package/src/assets/images/group-button.png +0 -0
  143. package/src/assets/images/group-chart.png +0 -0
  144. package/src/assets/images/group-container.png +0 -0
  145. package/src/assets/images/group-data.png +0 -0
  146. package/src/assets/images/group-form.png +0 -0
  147. package/src/assets/images/group-workflow.png +0 -0
  148. package/src/assets/images/workflow/workflow-button.png +0 -0
  149. package/src/assets/images/workflow/workflow-history-texts.png +0 -0
  150. package/src/assets/images/workflow/workflow-history.png +0 -0
  151. package/src/assets/images/workflow/workflow-imagehistory.png +0 -0
  152. package/src/assets/images/workflow/workflow-texthistory .png +0 -0
  153. package/src/assets/logo.svg +1 -0
  154. package/src/assets/main.css +1 -0
  155. package/src/i18n/langs/cn.js +52 -0
  156. package/src/i18n/langs/en.js +52 -0
  157. package/src/stores/counter.ts +12 -0
  158. package/src/utils/api/api-util.ts +176 -0
  159. package/src/utils/charts/chart-util.ts +41 -0
  160. package/src/utils/common-util.ts +96 -0
  161. package/src/utils/container-style-util.ts +237 -0
  162. package/src/utils/eventBus.ts +14 -0
  163. package/src/utils/events/event-util.ts +790 -0
  164. package/src/utils/events/jump-page-util.ts +0 -0
  165. package/src/utils/events/standard-event.ts +2075 -0
  166. package/src/utils/events/validator-util.ts +474 -0
  167. package/src/utils/global-refs.ts +160 -0
  168. package/src/utils/interfaces/page-design-types.ts +259 -0
  169. package/src/utils/page-helper-util.ts +850 -0
  170. package/src/utils/page-init-util.ts +291 -0
  171. package/src/utils/page-permission-util.ts +521 -0
  172. package/src/utils/store-util.ts +41 -0
  173. package/src/utils/store.ts +3 -0
  174. package/src/utils/table-utils.ts +31 -0
  175. package/dist/es/index.d.ts +0 -5
  176. package/dist/es/runtime/utils/charts/chart-util.js +0 -15
  177. package/dist/es/wf-editor/wf-editor.css +0 -4
  178. package/dist/lib/index.d.ts +0 -5
  179. package/dist/lib/runtime/utils/charts/chart-util.js +0 -15
  180. package/dist/lib/wf-editor/wf-editor.css +0 -4
  181. /package/dist/es/{index.js → components/index.js} +0 -0
  182. /package/dist/es/{runtime → components/runtime}/index.js +0 -0
  183. /package/dist/es/{runtime → components/runtime}/utils/assemblys-config.js +0 -0
  184. /package/dist/es/{runtime → components/runtime}/views/assemblys/button/button/button-runtime.vue.js +0 -0
  185. /package/dist/es/{runtime → components/runtime}/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -0
  186. /package/dist/es/{runtime → components/runtime}/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -0
  187. /package/dist/es/{runtime → components/runtime}/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -0
  188. /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -0
  189. /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -0
  190. /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/pie/pie-runtime.vue.js +0 -0
  191. /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/radar/radar-runtime.vue.js +0 -0
  192. /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -0
  193. /package/dist/es/{runtime → components/runtime}/views/assemblys/common/export-form-report-dialog.vue2.js +0 -0
  194. /package/dist/es/{runtime → components/runtime}/views/assemblys/common/remove-signer-dialog.vue.js +0 -0
  195. /package/dist/es/{runtime → components/runtime}/views/assemblys/common/remove-signer-dialog.vue2.js +0 -0
  196. /package/dist/es/{runtime → components/runtime}/views/assemblys/common/task-informition-dialog.vue.js +0 -0
  197. /package/dist/es/{runtime → components/runtime}/views/assemblys/common/task-informition-dialog.vue2.js +0 -0
  198. /package/dist/es/{runtime → components/runtime}/views/assemblys/container/card/card-runtime.vue.js +0 -0
  199. /package/dist/es/{runtime → components/runtime}/views/assemblys/container/card/card-runtime.vue2.js +0 -0
  200. /package/dist/es/{runtime → components/runtime}/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -0
  201. /package/dist/es/{runtime → components/runtime}/views/assemblys/container/container/container-runtime.vue.js +0 -0
  202. /package/dist/es/{runtime → components/runtime}/views/assemblys/container/flex/flex-runtime.vue.js +0 -0
  203. /package/dist/es/{runtime → components/runtime}/views/assemblys/container/form/form-runtime.vue.js +0 -0
  204. /package/dist/es/{runtime → components/runtime}/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -0
  205. /package/dist/es/{runtime → components/runtime}/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -0
  206. /package/dist/es/{runtime → components/runtime}/views/assemblys/container/tools/tools-runtime.vue.js +0 -0
  207. /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/main-table-runtime.vue2.js +0 -0
  208. /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -0
  209. /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/table-runtime.vue.js +0 -0
  210. /package/dist/es/{runtime → components/runtime}/views/assemblys/error-render.vue.js +0 -0
  211. /package/dist/es/{runtime → components/runtime}/views/assemblys/error-render.vue2.js +0 -0
  212. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -0
  213. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -0
  214. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -0
  215. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/divider/divider-runtime.vue.js +0 -0
  216. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -0
  217. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -0
  218. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -0
  219. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/label/label-runtime.vue.js +0 -0
  220. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/link/link-runtime.vue.js +0 -0
  221. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -0
  222. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -0
  223. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/radio/radio-runtime.vue.js +0 -0
  224. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -0
  225. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/select/select-runtime.vue.js +0 -0
  226. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/switch/switch-runtime.vue.js +0 -0
  227. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/tag/tag-runtime.vue.js +0 -0
  228. /package/dist/es/{runtime → components/runtime}/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -0
  229. /package/dist/es/{runtime → components/runtime}/views/assemblys/object-render.vue2.js +0 -0
  230. /package/dist/es/{runtime → components/runtime}/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -0
  231. /package/dist/es/{runtime → components/runtime}/views/super-page.vue2.js +0 -0
  232. /package/dist/es/{super-page-dialog → components/super-page-dialog}/index.js +0 -0
  233. /package/dist/es/{super-page-dialog → components/super-page-dialog}/super-page-dialog.vue2.js +0 -0
  234. /package/dist/es/{wf-editor → components/wf-editor}/index.js +0 -0
  235. /package/dist/es/{assets → src/assets}/chart-themes/theme1.js +0 -0
  236. /package/dist/es/{assets → src/assets}/chart-themes/theme2.js +0 -0
  237. /package/dist/es/{assets → src/assets}/chart-themes/theme3.js +0 -0
  238. /package/dist/es/{components/runtime → src}/utils/api/api-util.d.ts +0 -0
  239. /package/dist/es/{runtime → src}/utils/api/api-util.js +0 -0
  240. /package/dist/es/{components/runtime → src}/utils/common-util.d.ts +0 -0
  241. /package/dist/es/{runtime → src}/utils/common-util.js +0 -0
  242. /package/dist/es/{runtime → src}/utils/events/event-util.js +0 -0
  243. /package/dist/es/{components/runtime → src}/utils/events/standard-event.d.ts +0 -0
  244. /package/dist/es/{runtime → src}/utils/events/standard-event.js +0 -0
  245. /package/dist/es/{components/runtime → src}/utils/events/validator-util.d.ts +0 -0
  246. /package/dist/es/{runtime → src}/utils/events/validator-util.js +0 -0
  247. /package/dist/es/{components/runtime → src}/utils/global-refs.d.ts +0 -0
  248. /package/dist/es/{runtime → src}/utils/global-refs.js +0 -0
  249. /package/dist/es/{components/runtime → src}/utils/interfaces/page-design-types.d.ts +0 -0
  250. /package/dist/es/{runtime → src}/utils/interfaces/page-design-types.js +0 -0
  251. /package/dist/es/{components/runtime → src}/utils/page-helper-util.d.ts +0 -0
  252. /package/dist/es/{runtime → src}/utils/page-helper-util.js +0 -0
  253. /package/dist/es/{components/runtime → src}/utils/page-init-util.d.ts +0 -0
  254. /package/dist/es/{runtime → src}/utils/page-init-util.js +0 -0
  255. /package/dist/es/{components/runtime → src}/utils/store-util.d.ts +0 -0
  256. /package/dist/es/{runtime → src}/utils/store-util.js +0 -0
  257. /package/dist/es/{components/runtime → src}/utils/store.d.ts +0 -0
  258. /package/dist/es/{runtime → src}/utils/store.js +0 -0
  259. /package/dist/es/{runtime → src}/utils/table-utils.js +0 -0
  260. /package/dist/lib/{index.js → components/index.js} +0 -0
  261. /package/dist/lib/{runtime → components/runtime}/index.js +0 -0
  262. /package/dist/lib/{runtime → components/runtime}/utils/assemblys-config.js +0 -0
  263. /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/button/button-runtime.vue.js +0 -0
  264. /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -0
  265. /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -0
  266. /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -0
  267. /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -0
  268. /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -0
  269. /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/pie/pie-runtime.vue.js +0 -0
  270. /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/radar/radar-runtime.vue.js +0 -0
  271. /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -0
  272. /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/export-form-report-dialog.vue2.js +0 -0
  273. /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/remove-signer-dialog.vue.js +0 -0
  274. /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/remove-signer-dialog.vue2.js +0 -0
  275. /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/task-informition-dialog.vue.js +0 -0
  276. /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/task-informition-dialog.vue2.js +0 -0
  277. /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/card/card-runtime.vue.js +0 -0
  278. /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/card/card-runtime.vue2.js +0 -0
  279. /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -0
  280. /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/container/container-runtime.vue.js +0 -0
  281. /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/flex/flex-runtime.vue.js +0 -0
  282. /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/form/form-runtime.vue.js +0 -0
  283. /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -0
  284. /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -0
  285. /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/tools/tools-runtime.vue.js +0 -0
  286. /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/main-table-runtime.vue2.js +0 -0
  287. /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -0
  288. /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/table-runtime.vue.js +0 -0
  289. /package/dist/lib/{runtime → components/runtime}/views/assemblys/error-render.vue.js +0 -0
  290. /package/dist/lib/{runtime → components/runtime}/views/assemblys/error-render.vue2.js +0 -0
  291. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -0
  292. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -0
  293. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -0
  294. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/divider/divider-runtime.vue.js +0 -0
  295. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -0
  296. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -0
  297. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -0
  298. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/label/label-runtime.vue.js +0 -0
  299. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/link/link-runtime.vue.js +0 -0
  300. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -0
  301. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -0
  302. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/radio/radio-runtime.vue.js +0 -0
  303. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -0
  304. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/select/select-runtime.vue.js +0 -0
  305. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/switch/switch-runtime.vue.js +0 -0
  306. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/tag/tag-runtime.vue.js +0 -0
  307. /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -0
  308. /package/dist/lib/{runtime → components/runtime}/views/assemblys/object-render.vue2.js +0 -0
  309. /package/dist/lib/{runtime → components/runtime}/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -0
  310. /package/dist/lib/{runtime → components/runtime}/views/super-page.vue2.js +0 -0
  311. /package/dist/lib/{super-page-dialog → components/super-page-dialog}/index.js +0 -0
  312. /package/dist/lib/{super-page-dialog → components/super-page-dialog}/super-page-dialog.vue2.js +0 -0
  313. /package/dist/lib/{wf-editor → components/wf-editor}/index.js +0 -0
  314. /package/dist/lib/{assets → src/assets}/chart-themes/theme1.js +0 -0
  315. /package/dist/lib/{assets → src/assets}/chart-themes/theme2.js +0 -0
  316. /package/dist/lib/{assets → src/assets}/chart-themes/theme3.js +0 -0
  317. /package/dist/lib/{components/runtime → src}/utils/api/api-util.d.ts +0 -0
  318. /package/dist/lib/{runtime → src}/utils/api/api-util.js +0 -0
  319. /package/dist/lib/{components/runtime → src}/utils/common-util.d.ts +0 -0
  320. /package/dist/lib/{runtime → src}/utils/common-util.js +0 -0
  321. /package/dist/lib/{runtime → src}/utils/events/event-util.js +0 -0
  322. /package/dist/lib/{components/runtime → src}/utils/events/standard-event.d.ts +0 -0
  323. /package/dist/lib/{runtime → src}/utils/events/standard-event.js +0 -0
  324. /package/dist/lib/{components/runtime → src}/utils/events/validator-util.d.ts +0 -0
  325. /package/dist/lib/{runtime → src}/utils/events/validator-util.js +0 -0
  326. /package/dist/lib/{components/runtime → src}/utils/global-refs.d.ts +0 -0
  327. /package/dist/lib/{runtime → src}/utils/global-refs.js +0 -0
  328. /package/dist/lib/{components/runtime → src}/utils/interfaces/page-design-types.d.ts +0 -0
  329. /package/dist/lib/{runtime → src}/utils/interfaces/page-design-types.js +0 -0
  330. /package/dist/lib/{components/runtime → src}/utils/page-helper-util.d.ts +0 -0
  331. /package/dist/lib/{runtime → src}/utils/page-helper-util.js +0 -0
  332. /package/dist/lib/{components/runtime → src}/utils/page-init-util.d.ts +0 -0
  333. /package/dist/lib/{runtime → src}/utils/page-init-util.js +0 -0
  334. /package/dist/lib/{components/runtime → src}/utils/store-util.d.ts +0 -0
  335. /package/dist/lib/{runtime → src}/utils/store-util.js +0 -0
  336. /package/dist/lib/{components/runtime → src}/utils/store.d.ts +0 -0
  337. /package/dist/lib/{runtime → src}/utils/store.js +0 -0
  338. /package/dist/lib/{runtime → src}/utils/table-utils.js +0 -0
@@ -0,0 +1,521 @@
1
+ export enum FuncType {
2
+ /**
3
+ * 公用
4
+ */
5
+ AUTHENTICATED = 'AUTHENTICATED',
6
+ /**
7
+ * 匿名
8
+ */
9
+ ANONYMOUS = 'ANONYMOUS',
10
+ /**
11
+ * 专用
12
+ */
13
+ AUTHORIZED = 'AUTHORIZED'
14
+ }
15
+ /**
16
+ * 未指定资源类型时,表示为专用,否则以指定的为准
17
+ */
18
+ const standardFuncUrlMap = {
19
+ page: {
20
+ label: '页面',
21
+ functions: [
22
+ {
23
+ label: '页面',
24
+ path: 'temp'
25
+ }
26
+ ]
27
+ },
28
+ gets: {
29
+ group: '表单标准功能',
30
+ label: '获取表单数据',
31
+ functions: [
32
+ {
33
+ funcType: FuncType.AUTHENTICATED,
34
+ path: '/commons/gets$POST'
35
+ }
36
+ ]
37
+ },
38
+ workflowGets: {
39
+ group: '标准流程',
40
+ label: '获取表单及流程数据',
41
+ functions: [
42
+ {
43
+ funcType: FuncType.AUTHENTICATED,
44
+ path: '/workflow-commons/gets$POST'
45
+ }
46
+ ]
47
+ },
48
+ save: {
49
+ group: '表单标准功能',
50
+ label: '暂存',
51
+ functions: [
52
+ {
53
+ code: 'create',
54
+ label: '暂存',
55
+ path: '/commons$POST'
56
+ },
57
+ {
58
+ code: 'update',
59
+ label: '修改',
60
+ path: '/commons$POST'
61
+ }
62
+ ]
63
+ },
64
+ submit: {
65
+ group: '表单标准功能',
66
+ label: '提交',
67
+ functions: [
68
+ {
69
+ path: '/commons/submits$POST'
70
+ }
71
+ ]
72
+ },
73
+ exportForm: {
74
+ group: '表单标准功能',
75
+ label: '导出报告',
76
+ functions: [
77
+ {
78
+ path: '/commons/export-reports$POST'
79
+ }
80
+ ]
81
+ },
82
+ exportPDF: {
83
+ group: '表单标准功能',
84
+ label: '导出PDF',
85
+ functions: [
86
+ {
87
+ path: '/commons/exportPDF$POST'
88
+ }
89
+ ]
90
+ },
91
+ agree: {
92
+ group: '表单标准功能',
93
+ label: '同意',
94
+ functions: [
95
+ {
96
+ path: '/commons/approves$POST'
97
+ }
98
+ ]
99
+ },
100
+ disagree: {
101
+ group: '表单标准功能',
102
+ label: '不同意',
103
+ functions: [
104
+ {
105
+ path: '/commons/refuses$POST'
106
+ }
107
+ ]
108
+ },
109
+ back: {
110
+ group: '表单标准功能',
111
+ label: '返回',
112
+ functions: [] //无资源时表示不需要控制
113
+ },
114
+ workflowSave: {
115
+ group: '流程表单功能',
116
+ label: '暂存',
117
+ functions: [
118
+ {
119
+ funcType: 'AUTHENTICATED', //公用
120
+ path: '/workflow-commons$POST'
121
+ }
122
+ ]
123
+ },
124
+ submitProcess: {
125
+ group: '流程表单功能',
126
+ label: '提交流程',
127
+ functions: [
128
+ {
129
+ funcType: 'AUTHENTICATED', //公用
130
+ path: '/workflow-commons/submit$POST'
131
+ }
132
+ ]
133
+ },
134
+ submitTask: {
135
+ group: '流程表单功能',
136
+ label: '提交任务',
137
+ functions: [
138
+ {
139
+ funcType: 'AUTHENTICATED', //公用
140
+ code: 'completeTask.submitTask',
141
+ path: '/workflow-commons/complete-tasks$POST'
142
+ }
143
+ ]
144
+ },
145
+ approve: {
146
+ group: '流程表单功能',
147
+ label: '同意',
148
+ functions: [
149
+ {
150
+ funcType: 'AUTHENTICATED', //公用
151
+ code: 'completeTask.approve',
152
+ path: '/workflow-commons/complete-tasks$POST'
153
+ }
154
+ ]
155
+ },
156
+ refuse: {
157
+ group: '流程表单功能',
158
+ label: '不同意',
159
+ functions: [
160
+ {
161
+ funcType: 'AUTHENTICATED', //公用
162
+ code: 'completeTask.refuse',
163
+ path: '/workflow-commons/complete-tasks$POST'
164
+ }
165
+ ]
166
+ },
167
+ assign: {
168
+ group: '流程表单功能',
169
+ label: '指派',
170
+ functions: [
171
+ {
172
+ funcType: 'AUTHENTICATED', //公用
173
+ path: '/workflow-commons/assigns$POST'
174
+ }
175
+ ]
176
+ },
177
+ drawTask: {
178
+ group: '流程表单功能',
179
+ label: '领取',
180
+ functions: [
181
+ {
182
+ funcType: 'AUTHENTICATED', //公用
183
+ path: '/workflow-commons/draw-tasks$POST'
184
+ }
185
+ ]
186
+ },
187
+ abandonReceive: {
188
+ group: '流程表单功能',
189
+ label: '放弃领取',
190
+ functions: [
191
+ {
192
+ funcType: 'AUTHENTICATED', //公用
193
+ path: '/workflow-commons/abandon-receives$POST'
194
+ }
195
+ ]
196
+ },
197
+ readed: {
198
+ group: '流程表单功能',
199
+ label: '已阅',
200
+ functions: [
201
+ {
202
+ funcType: 'AUTHENTICATED', //公用
203
+ code: 'completeTask.readed',
204
+ path: '/workflow-commons/complete-tasks$POST'
205
+ }
206
+ ]
207
+ },
208
+ agreement: {
209
+ group: '流程表单功能',
210
+ label: '赞成',
211
+ functions: [
212
+ {
213
+ funcType: 'AUTHENTICATED', //公用
214
+ code: 'completeTask.agreement',
215
+ path: '/workflow-commons/complete-tasks$POST'
216
+ }
217
+ ]
218
+ },
219
+ oppose: {
220
+ group: '流程表单功能',
221
+ label: '反对',
222
+ functions: [
223
+ {
224
+ funcType: 'AUTHENTICATED', //公用
225
+ code: 'completeTask.oppose',
226
+ path: '/workflow-commons/complete-tasks$POST'
227
+ }
228
+ ]
229
+ },
230
+ kiken: {
231
+ group: '流程表单功能',
232
+ label: '弃权',
233
+ functions: [
234
+ {
235
+ funcType: 'AUTHENTICATED', //公用
236
+ code: 'completeTask.kiken',
237
+ path: '/workflow-commons/complete-tasks$POST'
238
+ }
239
+ ]
240
+ },
241
+ addSigner: {
242
+ group: '流程表单功能',
243
+ label: '加签',
244
+ functions: [
245
+ {
246
+ funcType: 'AUTHENTICATED', //公用
247
+ path: '/workflow-commons/add-signers$POST'
248
+ }
249
+ ]
250
+ },
251
+ removeSigner: {
252
+ group: '流程表单功能',
253
+ label: '减签',
254
+ functions: [
255
+ {
256
+ funcType: 'AUTHENTICATED', //公用
257
+ path: '/workflow-commons/abandon-receives$POST'
258
+ },
259
+ {
260
+ code: 'getRemoveSigners', //有编码时,以此为准
261
+ label: '获取可减签人员', //有标题时,以此为准
262
+ funcType: 'AUTHENTICATED', //公用
263
+ path: '/workflow-commons/get-remove-signers$POST'
264
+ }
265
+ ]
266
+ },
267
+ copyTask: {
268
+ group: '流程表单功能',
269
+ label: '抄送',
270
+ functions: [
271
+ {
272
+ funcType: 'AUTHENTICATED', //公用
273
+ path: '/workflow-commons/copies$POST'
274
+ }
275
+ ]
276
+ },
277
+ retrieveTask: {
278
+ group: '流程表单功能',
279
+ label: '取回',
280
+ functions: [
281
+ {
282
+ funcType: 'AUTHENTICATED', //公用
283
+ path: '/workflow-commons/retrieves$POST'
284
+ }
285
+ ]
286
+ },
287
+ returnToPreviousTask: {
288
+ group: '流程表单功能',
289
+ label: '驳回',
290
+ functions: [
291
+ {
292
+ funcType: 'AUTHENTICATED', //公用
293
+ path: '/workflow-commons/returnTaskTo$POST'
294
+ }
295
+ ]
296
+ },
297
+ returnTaskTo: {
298
+ group: '流程表单功能',
299
+ label: '退回',
300
+ functions: [
301
+ {
302
+ funcType: 'AUTHENTICATED', //公用
303
+ path: '/workflow-commons/return-to-previous-tasks$POST'
304
+ }
305
+ ]
306
+ },
307
+ endInstance: {
308
+ group: '流程表单功能',
309
+ label: '强制结束',
310
+ functions: [
311
+ {
312
+ funcType: 'AUTHENTICATED', //公用
313
+ path: '/workflow-commons/end-instance$POST'
314
+ }
315
+ ]
316
+ },
317
+ listData: {
318
+ group: '列表功能',
319
+ label: '列表数据',
320
+ functions: [
321
+ {
322
+ funcType: 'AUTHENTICATED', //公用
323
+ path: '/commons/list$POST'
324
+ }
325
+ ]
326
+ },
327
+ listSubData: {
328
+ group: '列表功能',
329
+ label: '列表子级',
330
+ functions: [
331
+ {
332
+ funcType: 'AUTHENTICATED', //公用
333
+ path: '/commons/list-subs$POST'
334
+ }
335
+ ]
336
+ },
337
+ saveList: {
338
+ group: '列表功能',
339
+ label: '暂存',
340
+ functions: [
341
+ {
342
+ code: 'create',
343
+ label: '暂存',
344
+ path: '/commons$POST'
345
+ },
346
+ {
347
+ funcType: 'AUTHENTICATED', //公用
348
+ code: 'update',
349
+ label: '修改',
350
+ path: '/commons$POST'
351
+ }
352
+ ]
353
+ },
354
+ delete: {
355
+ group: '列表功能',
356
+ label: '删除',
357
+ functions: [
358
+ {
359
+ path: '/commons/{tableName}$DELETE'
360
+ }
361
+ ]
362
+ },
363
+ submitList: {
364
+ group: '列表功能',
365
+ label: '提交',
366
+ functions: [
367
+ {
368
+ path: '/commons/batch-submits$POST'
369
+ }
370
+ ]
371
+ },
372
+ agreeList: {
373
+ group: '列表功能',
374
+ label: '同意',
375
+ functions: [
376
+ {
377
+ path: '/commons/batch-approves$POST'
378
+ }
379
+ ]
380
+ },
381
+ disagreeList: {
382
+ group: '列表功能',
383
+ label: '不同意',
384
+ functions: [
385
+ {
386
+ path: '/commons/batch-refuses$POST'
387
+ }
388
+ ]
389
+ },
390
+ import: {
391
+ group: '列表功能',
392
+ label: '导入',
393
+ functions: [
394
+ {
395
+ path: '/commons/import-data$POST'
396
+ }
397
+ ]
398
+ },
399
+ export: {
400
+ group: '列表功能',
401
+ label: '导出',
402
+ functions: [
403
+ {
404
+ path: '/commons/export-list-data$POST /commons/export-reports$POST'
405
+ }
406
+ ]
407
+ },
408
+ search: {
409
+ group: '列表功能',
410
+ label: '查询',
411
+ functions: []
412
+ },
413
+ downloadTemplate: {
414
+ group: '列表功能',
415
+ label: '下载导入模板',
416
+ functions: [
417
+ {
418
+ path: '/commons/download-files$GET'
419
+ }
420
+ ]
421
+ },
422
+ lineEditCreate: {
423
+ group: '列表行编辑功能',
424
+ label: '新建',
425
+ functions: [
426
+ {
427
+ code: 'create',
428
+ label: '暂存',
429
+ path: '/commons$POST'
430
+ }
431
+ ]
432
+ },
433
+ lineEditSave: {
434
+ group: '列表行编辑功能',
435
+ label: '保存',
436
+ functions: [
437
+ {
438
+ code: 'create',
439
+ label: '保存',
440
+ path: '/commons$POST'
441
+ },
442
+ {
443
+ code: 'update',
444
+ label: '修改',
445
+ path: '/commons$POST'
446
+ }
447
+ ]
448
+ },
449
+ lineEditDelete: {
450
+ group: '列表行编辑功能',
451
+ label: '删除',
452
+ functions: [
453
+ {
454
+ code: 'delete',
455
+ path: '/commons/{tableName}$DELETE'
456
+ }
457
+ ]
458
+ },
459
+ lineEditUpdate: {
460
+ group: '列表行编辑功能',
461
+ label: '修改',
462
+ functions: [
463
+ {
464
+ code: 'update',
465
+ label: '修改',
466
+ path: '/commons$POST'
467
+ }
468
+ ]
469
+ },
470
+ restoreEdit: {
471
+ group: '列表行编辑功能',
472
+ label: '取消编辑',
473
+ functions: []
474
+ }
475
+ }
476
+
477
+ /**
478
+ * 根据资源简码缓存信息
479
+ */
480
+ const functionMap: any = {}
481
+ /**
482
+ * 根据简码获取对应的资源信息
483
+ * @param eventName 方法名
484
+ * @returns
485
+ */
486
+ export function getStandPermissionInfo(eventName: string) {
487
+ return eventName ? standardFuncUrlMap[eventName] : undefined
488
+ }
489
+
490
+ /**
491
+ * 获取资源信息
492
+ * @param simpleCode
493
+ * @returns
494
+ */
495
+ export function getFunctionInfo(simpleCode: string) {
496
+ if (!simpleCode) {
497
+ return undefined
498
+ }
499
+ let funcInfo: any = functionMap[simpleCode]
500
+ if (funcInfo == undefined) {
501
+ for (let eventName in standardFuncUrlMap) {
502
+ const functions = standardFuncUrlMap[eventName].functions
503
+ if (!functions) {
504
+ continue
505
+ }
506
+ for (let f of functions) {
507
+ const tempCode = f.code ? f.code : eventName
508
+ if (simpleCode === tempCode) {
509
+ funcInfo = f
510
+ break
511
+ }
512
+ }
513
+ if (funcInfo) {
514
+ break
515
+ }
516
+ }
517
+ //设置默认值
518
+ functionMap[simpleCode] = funcInfo ? funcInfo : ''
519
+ }
520
+ return funcInfo ? funcInfo : undefined
521
+ }
@@ -0,0 +1,41 @@
1
+ import store from './store'
2
+ // 获得store中缓存的信息。返回的是Object对象,不是json字符串
3
+ export function getStoreInfo(pageCode, pageVersion, key) {
4
+ const pageCodeStoreInfo = store.get(getPageStoreKey(pageCode, pageVersion))
5
+ if (pageCodeStoreInfo) {
6
+ return pageCodeStoreInfo[key]
7
+ }
8
+ }
9
+
10
+ // 往store中缓存信息
11
+ export function setStoreInfo(pageCode, pageVersion, key:string, value:any) {
12
+ const pageKey = getPageStoreKey(pageCode, pageVersion)
13
+ let pageCodeStoreInfo = store.get(pageKey)
14
+ if (!pageCodeStoreInfo) {
15
+ pageCodeStoreInfo = {}
16
+ store.set(pageKey, pageCodeStoreInfo)
17
+ }
18
+ pageCodeStoreInfo[key] = value
19
+ }
20
+ /**
21
+ * 删除某属性
22
+ * @param {*} pageCode
23
+ * @param {*} key
24
+ */
25
+ export function deleteStoreInfo(pageCode, pageVersion, key) {
26
+ let pageCodeStoreInfo = store.get(getPageStoreKey(pageCode, pageVersion))
27
+ if (pageCodeStoreInfo && pageCodeStoreInfo[key]) {
28
+ delete pageCodeStoreInfo[key]
29
+ }
30
+ }
31
+
32
+
33
+ /**
34
+ * 获得页面缓存的key
35
+ * @param pageCode
36
+ * @param pageVersion
37
+ * @returns
38
+ */
39
+ export function getPageStoreKey(pageCode, pageVersion) {
40
+ return pageCode + ':' + pageVersion
41
+ }
@@ -0,0 +1,3 @@
1
+ // 用于存放表单数据、是否是预览状态、系统信息
2
+ const store = new Map()
3
+ export default store
@@ -0,0 +1,31 @@
1
+ import { getBaseUrl } from './common-util'
2
+ import http from 'agilebuilder-ui/src/utils/request'
3
+ // import eventBus from './eventBus'
4
+ export function getDataTypeMap(system, tableName) {
5
+ return new Promise((resolve, reject) => {
6
+ // TODO:是否需要区分预览
7
+ // if (this.isPreview) {
8
+ // // 预览时不需要获得字段类型
9
+ // resolve(true)
10
+ // } else {
11
+ getDataTypeMapRequest(system, tableName)
12
+ .then((dataTypeMap) => {
13
+ resolve(dataTypeMap)
14
+ })
15
+ .catch(() => {
16
+ reject(new Error('获得数据表:' + tableName + '的字段类型集合失败'))
17
+ })
18
+ // }
19
+ })
20
+ }
21
+
22
+ export function getDataTypeMapRequest(system, tableName) {
23
+ const baseUrl = getBaseUrl(system)
24
+ return http.get(baseUrl + '/dsc/commons/tables/' + tableName + '/data-types')
25
+ }
26
+
27
+ // 弹框显示页面,例如:列表页面super-grid字段的超链接弹框、表单页面子表字段的超链接弹框、表单页面超链接或按钮弹框。
28
+ // 此处只需要直接弹出来就行了,弹框前事件、跳转页面配置解析已在对应位置(super-grid或super-form)代码解析了
29
+ export function popupToPage(params) {
30
+ window['$eventBus'].$emit(params.pageCode + '_open-dialog', params)
31
+ }
@@ -1,5 +0,0 @@
1
- import { default as SuperPage } from './components/runtime';
2
- import { default as SuperPageDialog } from './components/super-page-dialog';
3
- import { default as WfEditor } from './components/wf-editor';
4
-
5
- export { SuperPage, SuperPageDialog, WfEditor };
@@ -1,15 +0,0 @@
1
- import theme1 from "../../../assets/chart-themes/theme1.js";
2
- import theme2 from "../../../assets/chart-themes/theme2.js";
3
- import theme3 from "../../../assets/chart-themes/theme3.js";
4
- const themeMap = {
5
- "theme1": theme1,
6
- "theme2": theme2,
7
- "theme3": theme3
8
- };
9
- function getCustomTheme(themeName) {
10
- console.log("getdd", themeName);
11
- return themeMap[themeName];
12
- }
13
- export {
14
- getCustomTheme
15
- };
@@ -1,4 +0,0 @@
1
-
2
- button[data-v-dfafa4ba] {
3
- color: blue;
4
- }
@@ -1,5 +0,0 @@
1
- import { default as SuperPage } from './components/runtime';
2
- import { default as SuperPageDialog } from './components/super-page-dialog';
3
- import { default as WfEditor } from './components/wf-editor';
4
-
5
- export { SuperPage, SuperPageDialog, WfEditor };
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const theme1 = require("../../../assets/chart-themes/theme1.js");
4
- const theme2 = require("../../../assets/chart-themes/theme2.js");
5
- const theme3 = require("../../../assets/chart-themes/theme3.js");
6
- const themeMap = {
7
- "theme1": theme1,
8
- "theme2": theme2,
9
- "theme3": theme3
10
- };
11
- function getCustomTheme(themeName) {
12
- console.log("getdd", themeName);
13
- return themeMap[themeName];
14
- }
15
- exports.getCustomTheme = getCustomTheme;
@@ -1,4 +0,0 @@
1
-
2
- button[data-v-dfafa4ba] {
3
- color: blue;
4
- }
File without changes