super-page-runtime 2.2.26 → 2.2.29-tmp2

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 (165) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +7 -5
  2. package/dist/es/assets/chart-themes/theme1.js +6 -2
  3. package/dist/es/assets/chart-themes/theme2.js +6 -2
  4. package/dist/es/assets/chart-themes/theme3.js +6 -2
  5. package/dist/es/components/runtime/utils/api/api-util.js +7 -4
  6. package/dist/es/components/runtime/utils/api/page-expose-util.js +443 -135
  7. package/dist/es/components/runtime/utils/assemblys-config.js +369 -13
  8. package/dist/es/components/runtime/utils/barcode-util.js +33 -9
  9. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +306 -122
  10. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +68 -29
  11. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +152 -68
  12. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +124 -46
  13. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +99 -36
  14. package/dist/es/components/runtime/utils/charts/chart-util.js +522 -224
  15. package/dist/es/components/runtime/utils/common-util.js +156 -76
  16. package/dist/es/components/runtime/utils/eventBus.js +8 -3
  17. package/dist/es/components/runtime/utils/events/event-util.js +775 -362
  18. package/dist/es/components/runtime/utils/events/print-label.js +140 -72
  19. package/dist/es/components/runtime/utils/events/standard-event.js +2320 -808
  20. package/dist/es/components/runtime/utils/events/validator-util.js +560 -224
  21. package/dist/es/components/runtime/utils/form/date-shortcuts.js +88 -28
  22. package/dist/es/components/runtime/utils/form/scan-util.js +162 -61
  23. package/dist/es/components/runtime/utils/global-refs.js +84 -53
  24. package/dist/es/components/runtime/utils/i18n-util.js +20 -11
  25. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +7 -2
  26. package/dist/es/components/runtime/utils/page-helper-util.js +660 -279
  27. package/dist/es/components/runtime/utils/page-init-util.js +406 -141
  28. package/dist/es/components/runtime/utils/page-permission-util.js +531 -22
  29. package/dist/es/components/runtime/utils/page-store.js +68 -23
  30. package/dist/es/components/runtime/utils/store-util.js +13 -9
  31. package/dist/es/components/runtime/utils/store.js +2 -2
  32. package/dist/es/components/runtime/utils/table-utils.js +81 -40
  33. package/dist/es/components/runtime/utils/tree-utils.js +37 -17
  34. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +83 -21
  36. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +46 -14
  38. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +132 -36
  40. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
  41. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +18 -4
  42. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
  43. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +107 -17
  44. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
  45. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +198 -50
  46. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +42 -12
  47. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +60 -7
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +203 -52
  51. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +4 -4
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +162 -46
  54. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +109 -32
  56. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +166 -43
  58. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +117 -32
  60. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +118 -32
  62. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +597 -246
  63. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +42 -4
  64. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +62 -8
  66. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +160 -29
  68. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
  69. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +62 -13
  70. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
  71. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
  72. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +594 -212
  73. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +139 -29
  74. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
  75. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +125 -21
  76. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
  77. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +102 -16
  78. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
  79. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
  80. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +81 -18
  81. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +82 -17
  83. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +86 -14
  85. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
  86. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +79 -21
  87. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +61 -16
  89. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
  90. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +37 -10
  91. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +127 -38
  93. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
  94. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +76 -28
  95. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
  96. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +178 -61
  97. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +810 -302
  98. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
  99. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +635 -262
  100. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
  101. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
  102. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +115 -40
  103. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
  104. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +215 -56
  105. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +21 -3
  106. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
  107. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
  108. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +154 -42
  109. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +98 -34
  110. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
  111. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
  112. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +200 -52
  113. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
  114. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +239 -68
  115. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
  116. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +109 -31
  117. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
  118. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +59 -21
  119. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
  120. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +188 -56
  121. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
  122. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +103 -22
  123. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
  124. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +245 -57
  125. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
  126. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +174 -32
  127. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
  128. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +107 -28
  129. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
  130. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +50 -13
  131. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
  132. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +194 -64
  133. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  134. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +249 -88
  135. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  136. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +263 -80
  137. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
  138. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +57 -13
  139. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
  140. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +155 -30
  141. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
  142. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +129 -40
  143. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  144. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +107 -22
  145. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +188 -89
  146. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +2 -2
  147. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +272 -133
  148. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
  149. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
  150. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +46 -18
  151. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
  152. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +49 -21
  153. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
  154. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +58 -20
  155. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
  156. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +53 -16
  157. package/dist/es/components/runtime/views/home-chart.vue.js +160 -40
  158. package/dist/es/components/runtime/views/home-chart.vue2.js +2 -2
  159. package/dist/es/components/runtime/views/super-page-dialog.vue.js +139 -20
  160. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
  161. package/dist/es/components/runtime/views/super-page.vue.js +754 -226
  162. package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
  163. package/dist/es/i18n/langs/cn.js +55 -2
  164. package/dist/es/i18n/langs/en.js +55 -2
  165. package/package.json +2 -2
@@ -1,30 +1,539 @@
1
- var o = ((o2) => (o2.AUTHENTICATED = "AUTHENTICATED", o2.ANONYMOUS = "ANONYMOUS", o2.AUTHORIZED = "AUTHORIZED", o2))(o || {});
2
- const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/return-to-previous-tasks$POST" }] }, endInstance: { group: "流程表单功能", label: "强制结束", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/end-instance$POST" }] }, listData: { group: "列表功能", label: "列表数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list$POST" }] }, listSubData: { group: "列表功能", label: "列表子级", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list-subs$POST" }] }, saveList: { group: "列表功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { funcType: "AUTHENTICATED", code: "update", label: "修改", path: "/commons$POST" }] }, delete: { group: "列表功能", label: "删除", functions: [{ path: "/commons/{tableName}$DELETE" }] }, submitList: { group: "列表功能", label: "提交", functions: [{ path: "/commons/batch-submits$POST" }] }, agreeList: { group: "列表功能", label: "同意", functions: [{ path: "/commons/batch-approves$POST" }] }, disagreeList: { group: "列表功能", label: "不同意", functions: [{ path: "/commons/batch-refuses$POST" }] }, import: { group: "列表功能", label: "导入", functions: [{ path: "/commons/import-data$POST" }] }, export: { group: "列表功能", label: "导出", functions: [{ path: "/commons/export-list-data$POST" }] }, search: { group: "列表功能", label: "查询", functions: [] }, showMobileSearch: { group: "列表功能", label: "显示移动端查询区域", functions: [] }, downloadTemplate: { group: "列表功能", label: "下载导入模板", functions: [{ path: "/commons/download-files$GET" }] }, lineEditCreate: { group: "列表行编辑功能", label: "新建", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }] }, lineEditSave: { group: "列表行编辑功能", label: "保存", functions: [{ code: "create", label: "保存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, lineEditDelete: { group: "列表行编辑功能", label: "删除", functions: [{ code: "delete", path: "/commons/{tableName}$DELETE" }] }, lineEditUpdate: { group: "列表行编辑功能", label: "修改", functions: [{ code: "update", label: "修改", path: "/commons$POST" }] }, restoreEdit: { group: "列表行编辑功能", label: "取消编辑", functions: [] } }, n = {};
3
- function t(o2) {
4
- return o2 ? e[o2] : void 0;
1
+ var FuncType = /* @__PURE__ */ ((FuncType2) => {
2
+ FuncType2["AUTHENTICATED"] = "AUTHENTICATED";
3
+ FuncType2["ANONYMOUS"] = "ANONYMOUS";
4
+ FuncType2["AUTHORIZED"] = "AUTHORIZED";
5
+ return FuncType2;
6
+ })(FuncType || {});
7
+ const standardFuncUrlMap = {
8
+ page: {
9
+ label: "页面",
10
+ functions: [
11
+ {
12
+ label: "页面",
13
+ path: "temp"
14
+ }
15
+ ]
16
+ },
17
+ gets: {
18
+ group: "表单标准功能",
19
+ label: "获取表单数据",
20
+ functions: [
21
+ {
22
+ funcType: "AUTHENTICATED",
23
+ path: "/commons/gets$POST"
24
+ }
25
+ ]
26
+ },
27
+ workflowGets: {
28
+ group: "标准流程",
29
+ label: "获取表单及流程数据",
30
+ functions: [
31
+ {
32
+ funcType: "AUTHENTICATED",
33
+ path: "/workflow-commons/gets$POST"
34
+ }
35
+ ]
36
+ },
37
+ save: {
38
+ group: "表单标准功能",
39
+ label: "暂存",
40
+ functions: [
41
+ {
42
+ code: "create",
43
+ label: "暂存",
44
+ path: "/commons$POST"
45
+ },
46
+ {
47
+ code: "update",
48
+ label: "修改",
49
+ path: "/commons$POST"
50
+ }
51
+ ]
52
+ },
53
+ submit: {
54
+ group: "表单标准功能",
55
+ label: "提交",
56
+ functions: [
57
+ {
58
+ path: "/commons/submits$POST"
59
+ }
60
+ ]
61
+ },
62
+ exportForm: {
63
+ group: "表单标准功能",
64
+ label: "导出报告",
65
+ functions: [
66
+ {
67
+ path: "/commons/export-reports$POST"
68
+ }
69
+ ]
70
+ },
71
+ exportPDF: {
72
+ group: "表单标准功能",
73
+ label: "导出PDF",
74
+ functions: [
75
+ {
76
+ path: "/commons/exportPDF$POST"
77
+ }
78
+ ]
79
+ },
80
+ agree: {
81
+ group: "表单标准功能",
82
+ label: "同意",
83
+ functions: [
84
+ {
85
+ path: "/commons/approves$POST"
86
+ }
87
+ ]
88
+ },
89
+ disagree: {
90
+ group: "表单标准功能",
91
+ label: "不同意",
92
+ functions: [
93
+ {
94
+ path: "/commons/refuses$POST"
95
+ }
96
+ ]
97
+ },
98
+ back: {
99
+ group: "表单标准功能",
100
+ label: "返回",
101
+ functions: []
102
+ //无资源时表示不需要控制
103
+ },
104
+ workflowSave: {
105
+ group: "流程表单功能",
106
+ label: "暂存",
107
+ functions: [
108
+ {
109
+ label: "暂存",
110
+ code: "save",
111
+ funcType: "AUTHENTICATED",
112
+ //公用
113
+ path: "/workflow-commons$POST"
114
+ },
115
+ {
116
+ label: "修改",
117
+ code: "update",
118
+ funcType: "AUTHENTICATED",
119
+ //公用
120
+ path: "/workflow-commons$PUT"
121
+ }
122
+ ]
123
+ },
124
+ submitProcess: {
125
+ group: "流程表单功能",
126
+ label: "提交流程",
127
+ functions: [
128
+ {
129
+ funcType: "AUTHENTICATED",
130
+ //公用
131
+ path: "/workflow-commons/submit$POST"
132
+ }
133
+ ]
134
+ },
135
+ submitTask: {
136
+ group: "流程表单功能",
137
+ label: "提交任务",
138
+ functions: [
139
+ {
140
+ funcType: "AUTHENTICATED",
141
+ //公用
142
+ code: "completeTask.submit",
143
+ path: "/workflow-commons/complete-tasks$POST"
144
+ }
145
+ ]
146
+ },
147
+ approve: {
148
+ group: "流程表单功能",
149
+ label: "同意",
150
+ functions: [
151
+ {
152
+ funcType: "AUTHENTICATED",
153
+ //公用
154
+ code: "completeTask.approve",
155
+ path: "/workflow-commons/complete-tasks$POST"
156
+ }
157
+ ]
158
+ },
159
+ refuse: {
160
+ group: "流程表单功能",
161
+ label: "不同意",
162
+ functions: [
163
+ {
164
+ funcType: "AUTHENTICATED",
165
+ //公用
166
+ code: "completeTask.refuse",
167
+ path: "/workflow-commons/complete-tasks$POST"
168
+ }
169
+ ]
170
+ },
171
+ assign: {
172
+ group: "流程表单功能",
173
+ label: "指派",
174
+ functions: [
175
+ {
176
+ funcType: "AUTHENTICATED",
177
+ //公用
178
+ path: "/workflow-commons/assigns$POST"
179
+ }
180
+ ]
181
+ },
182
+ drawTask: {
183
+ group: "流程表单功能",
184
+ label: "领取",
185
+ functions: [
186
+ {
187
+ funcType: "AUTHENTICATED",
188
+ //公用
189
+ path: "/workflow-commons/draw-tasks$POST"
190
+ }
191
+ ]
192
+ },
193
+ abandonReceive: {
194
+ group: "流程表单功能",
195
+ label: "放弃领取",
196
+ functions: [
197
+ {
198
+ funcType: "AUTHENTICATED",
199
+ //公用
200
+ path: "/workflow-commons/abandon-receives$POST"
201
+ }
202
+ ]
203
+ },
204
+ readed: {
205
+ group: "流程表单功能",
206
+ label: "已阅",
207
+ functions: [
208
+ {
209
+ funcType: "AUTHENTICATED",
210
+ //公用
211
+ code: "completeTask.readed",
212
+ path: "/workflow-commons/complete-tasks$POST"
213
+ }
214
+ ]
215
+ },
216
+ agreement: {
217
+ group: "流程表单功能",
218
+ label: "赞成",
219
+ functions: [
220
+ {
221
+ funcType: "AUTHENTICATED",
222
+ //公用
223
+ code: "completeTask.agreement",
224
+ path: "/workflow-commons/complete-tasks$POST"
225
+ }
226
+ ]
227
+ },
228
+ oppose: {
229
+ group: "流程表单功能",
230
+ label: "反对",
231
+ functions: [
232
+ {
233
+ funcType: "AUTHENTICATED",
234
+ //公用
235
+ code: "completeTask.oppose",
236
+ path: "/workflow-commons/complete-tasks$POST"
237
+ }
238
+ ]
239
+ },
240
+ kiken: {
241
+ group: "流程表单功能",
242
+ label: "弃权",
243
+ functions: [
244
+ {
245
+ funcType: "AUTHENTICATED",
246
+ //公用
247
+ code: "completeTask.kiken",
248
+ path: "/workflow-commons/complete-tasks$POST"
249
+ }
250
+ ]
251
+ },
252
+ addSigner: {
253
+ group: "流程表单功能",
254
+ label: "加签",
255
+ functions: [
256
+ {
257
+ funcType: "AUTHENTICATED",
258
+ //公用
259
+ path: "/workflow-commons/add-signers$POST"
260
+ }
261
+ ]
262
+ },
263
+ removeSigner: {
264
+ group: "流程表单功能",
265
+ label: "减签",
266
+ functions: [
267
+ {
268
+ funcType: "AUTHENTICATED",
269
+ //公用
270
+ path: "/workflow-commons/abandon-receives$POST"
271
+ },
272
+ {
273
+ code: "getRemoveSigners",
274
+ //有编码时,以此为准
275
+ label: "获取可减签人员",
276
+ //有标题时,以此为准
277
+ funcType: "AUTHENTICATED",
278
+ //公用
279
+ path: "/workflow-commons/get-remove-signers$POST"
280
+ }
281
+ ]
282
+ },
283
+ copyTask: {
284
+ group: "流程表单功能",
285
+ label: "抄送",
286
+ functions: [
287
+ {
288
+ funcType: "AUTHENTICATED",
289
+ //公用
290
+ path: "/workflow-commons/copies$POST"
291
+ }
292
+ ]
293
+ },
294
+ retrieveTask: {
295
+ group: "流程表单功能",
296
+ label: "取回",
297
+ functions: [
298
+ {
299
+ funcType: "AUTHENTICATED",
300
+ //公用
301
+ path: "/workflow-commons/retrieves$POST"
302
+ }
303
+ ]
304
+ },
305
+ returnToPreviousTask: {
306
+ group: "流程表单功能",
307
+ label: "驳回",
308
+ functions: [
309
+ {
310
+ funcType: "AUTHENTICATED",
311
+ //公用
312
+ path: "/workflow-commons/returnTaskTo$POST"
313
+ }
314
+ ]
315
+ },
316
+ returnTaskTo: {
317
+ group: "流程表单功能",
318
+ label: "退回",
319
+ functions: [
320
+ {
321
+ funcType: "AUTHENTICATED",
322
+ //公用
323
+ path: "/workflow-commons/return-to-previous-tasks$POST"
324
+ }
325
+ ]
326
+ },
327
+ endInstance: {
328
+ group: "流程表单功能",
329
+ label: "强制结束",
330
+ functions: [
331
+ {
332
+ funcType: "AUTHENTICATED",
333
+ //公用
334
+ path: "/workflow-commons/end-instance$POST"
335
+ }
336
+ ]
337
+ },
338
+ listData: {
339
+ group: "列表功能",
340
+ label: "列表数据",
341
+ functions: [
342
+ {
343
+ funcType: "AUTHENTICATED",
344
+ //公用
345
+ path: "/commons/list$POST"
346
+ }
347
+ ]
348
+ },
349
+ listSubData: {
350
+ group: "列表功能",
351
+ label: "列表子级",
352
+ functions: [
353
+ {
354
+ funcType: "AUTHENTICATED",
355
+ //公用
356
+ path: "/commons/list-subs$POST"
357
+ }
358
+ ]
359
+ },
360
+ saveList: {
361
+ group: "列表功能",
362
+ label: "暂存",
363
+ functions: [
364
+ {
365
+ code: "create",
366
+ label: "暂存",
367
+ path: "/commons$POST"
368
+ },
369
+ {
370
+ funcType: "AUTHENTICATED",
371
+ //公用
372
+ code: "update",
373
+ label: "修改",
374
+ path: "/commons$POST"
375
+ }
376
+ ]
377
+ },
378
+ delete: {
379
+ group: "列表功能",
380
+ label: "删除",
381
+ functions: [
382
+ {
383
+ path: "/commons/{tableName}$DELETE"
384
+ }
385
+ ]
386
+ },
387
+ submitList: {
388
+ group: "列表功能",
389
+ label: "提交",
390
+ functions: [
391
+ {
392
+ path: "/commons/batch-submits$POST"
393
+ }
394
+ ]
395
+ },
396
+ agreeList: {
397
+ group: "列表功能",
398
+ label: "同意",
399
+ functions: [
400
+ {
401
+ path: "/commons/batch-approves$POST"
402
+ }
403
+ ]
404
+ },
405
+ disagreeList: {
406
+ group: "列表功能",
407
+ label: "不同意",
408
+ functions: [
409
+ {
410
+ path: "/commons/batch-refuses$POST"
411
+ }
412
+ ]
413
+ },
414
+ import: {
415
+ group: "列表功能",
416
+ label: "导入",
417
+ functions: [
418
+ {
419
+ path: "/commons/import-data$POST"
420
+ }
421
+ ]
422
+ },
423
+ export: {
424
+ group: "列表功能",
425
+ label: "导出",
426
+ functions: [
427
+ {
428
+ path: "/commons/export-list-data$POST"
429
+ }
430
+ ]
431
+ },
432
+ search: {
433
+ group: "列表功能",
434
+ label: "查询",
435
+ functions: []
436
+ },
437
+ showMobileSearch: {
438
+ group: "列表功能",
439
+ label: "显示移动端查询区域",
440
+ functions: []
441
+ },
442
+ downloadTemplate: {
443
+ group: "列表功能",
444
+ label: "下载导入模板",
445
+ functions: [
446
+ {
447
+ path: "/commons/download-files$GET"
448
+ }
449
+ ]
450
+ },
451
+ lineEditCreate: {
452
+ group: "列表行编辑功能",
453
+ label: "新建",
454
+ functions: [
455
+ {
456
+ code: "create",
457
+ label: "暂存",
458
+ path: "/commons$POST"
459
+ }
460
+ ]
461
+ },
462
+ lineEditSave: {
463
+ group: "列表行编辑功能",
464
+ label: "保存",
465
+ functions: [
466
+ {
467
+ code: "create",
468
+ label: "保存",
469
+ path: "/commons$POST"
470
+ },
471
+ {
472
+ code: "update",
473
+ label: "修改",
474
+ path: "/commons$POST"
475
+ }
476
+ ]
477
+ },
478
+ lineEditDelete: {
479
+ group: "列表行编辑功能",
480
+ label: "删除",
481
+ functions: [
482
+ {
483
+ code: "delete",
484
+ path: "/commons/{tableName}$DELETE"
485
+ }
486
+ ]
487
+ },
488
+ lineEditUpdate: {
489
+ group: "列表行编辑功能",
490
+ label: "修改",
491
+ functions: [
492
+ {
493
+ code: "update",
494
+ label: "修改",
495
+ path: "/commons$POST"
496
+ }
497
+ ]
498
+ },
499
+ restoreEdit: {
500
+ group: "列表行编辑功能",
501
+ label: "取消编辑",
502
+ functions: []
503
+ }
504
+ };
505
+ const functionMap = {};
506
+ function getStandPermissionInfo(eventName) {
507
+ return eventName ? standardFuncUrlMap[eventName] : void 0;
5
508
  }
6
- function a(o2) {
7
- if (!o2) return;
8
- let t2 = n[o2];
9
- if (null == t2) {
10
- for (const n2 in e) {
11
- const a2 = e[n2].functions;
12
- if (a2) {
13
- for (const e2 of a2) {
14
- if (o2 === (e2.code ? e2.code : n2)) {
15
- t2 = e2;
16
- break;
17
- }
509
+ function getFunctionInfo(simpleCode) {
510
+ if (!simpleCode) {
511
+ return void 0;
512
+ }
513
+ let funcInfo = functionMap[simpleCode];
514
+ if (funcInfo == void 0) {
515
+ for (const eventName in standardFuncUrlMap) {
516
+ const functions = standardFuncUrlMap[eventName].functions;
517
+ if (!functions) {
518
+ continue;
519
+ }
520
+ for (const f of functions) {
521
+ const tempCode = f.code ? f.code : eventName;
522
+ if (simpleCode === tempCode) {
523
+ funcInfo = f;
524
+ break;
18
525
  }
19
- if (t2) break;
526
+ }
527
+ if (funcInfo) {
528
+ break;
20
529
  }
21
530
  }
22
- n[o2] = t2 || "";
531
+ functionMap[simpleCode] = funcInfo ? funcInfo : "";
23
532
  }
24
- return t2 || void 0;
533
+ return funcInfo ? funcInfo : void 0;
25
534
  }
26
535
  export {
27
- o as FuncType,
28
- a as getFunctionInfo,
29
- t as getStandPermissionInfo
536
+ FuncType,
537
+ getFunctionInfo,
538
+ getStandPermissionInfo
30
539
  };
@@ -1,26 +1,71 @@
1
- import { ref as e } from "vue";
2
- import { defineStore as o } from "pinia";
3
- import a from "./eventBus.js";
4
- const t = o("pageContextUtil", () => {
5
- const o2 = e({ systemCode: "", systemVersion: -1 }), t2 = e(false), n = e(false), u = e(false), l = e(0), d = e(0);
6
- return { pageContext: o2, setPageContext: function(e2) {
7
- o2.value = e2;
8
- }, countComponentsTotalNmber: function() {
9
- l.value++, t2.value = false, u.value = false;
10
- }, countComponentsLoadedNumber: function() {
11
- d.value++, u.value = false;
12
- }, componentsTotalNmber: l, componentsLoadedNumber: d, setPageComponentsLoaded: function(e2) {
13
- t2.value = e2, t2.value && n.value && (a.$emit("pageLoaded"), u.value = true);
14
- }, setFormPageDataLoadState: function(e2) {
15
- n.value = e2, t2.value && n.value && (u.value = true);
16
- }, formPageDataLoaded: n, pageComponentsLoaded: t2, restorePageLoadState: function() {
17
- t2.value = false, n.value = false, u.value = false;
18
- }, pageLoaded: u, getPageLoaded: function() {
19
- return u.value;
20
- }, setPageLoaded: function(e2) {
21
- u.value = e2;
22
- } };
1
+ import { ref } from "vue";
2
+ import { defineStore } from "pinia";
3
+ import bus from "./eventBus.js";
4
+ const usePageContextStore = defineStore("pageContextUtil", () => {
5
+ const pageContext = ref({ systemCode: "", systemVersion: -1 });
6
+ const pageComponentsLoaded = ref(false);
7
+ const formPageDataLoaded = ref(false);
8
+ const pageLoaded = ref(false);
9
+ const componentsTotalNmber = ref(0);
10
+ const componentsLoadedNumber = ref(0);
11
+ function setPageContext(newPageContext) {
12
+ pageContext.value = newPageContext;
13
+ }
14
+ function countComponentsTotalNmber() {
15
+ componentsTotalNmber.value++;
16
+ pageComponentsLoaded.value = false;
17
+ pageLoaded.value = false;
18
+ }
19
+ function countComponentsLoadedNumber() {
20
+ componentsLoadedNumber.value++;
21
+ pageLoaded.value = false;
22
+ }
23
+ function setPageComponentsLoaded(state) {
24
+ pageComponentsLoaded.value = state;
25
+ if (pageComponentsLoaded.value && formPageDataLoaded.value) {
26
+ bus.$emit("pageLoaded");
27
+ pageLoaded.value = true;
28
+ }
29
+ }
30
+ function setFormPageDataLoadState(state) {
31
+ formPageDataLoaded.value = state;
32
+ if (pageComponentsLoaded.value && formPageDataLoaded.value) {
33
+ console.log(
34
+ "setpageLoaded+++++++++++++++++++",
35
+ pageComponentsLoaded.value,
36
+ formPageDataLoaded.value
37
+ );
38
+ pageLoaded.value = true;
39
+ }
40
+ }
41
+ function restorePageLoadState() {
42
+ pageComponentsLoaded.value = false;
43
+ formPageDataLoaded.value = false;
44
+ pageLoaded.value = false;
45
+ }
46
+ function getPageLoaded() {
47
+ return pageLoaded.value;
48
+ }
49
+ function setPageLoaded(state) {
50
+ pageLoaded.value = state;
51
+ }
52
+ return {
53
+ pageContext,
54
+ setPageContext,
55
+ countComponentsTotalNmber,
56
+ countComponentsLoadedNumber,
57
+ componentsTotalNmber,
58
+ componentsLoadedNumber,
59
+ setPageComponentsLoaded,
60
+ setFormPageDataLoadState,
61
+ formPageDataLoaded,
62
+ pageComponentsLoaded,
63
+ restorePageLoadState,
64
+ pageLoaded,
65
+ getPageLoaded,
66
+ setPageLoaded
67
+ };
23
68
  });
24
69
  export {
25
- t as usePageContextStore
70
+ usePageContextStore
26
71
  };
@@ -1,13 +1,17 @@
1
- import t from "./store.js";
2
- function o(o2, n, r, s) {
3
- const c = e(o2, n);
4
- let f = t.get(c);
5
- f || (f = {}, t.set(c, f)), f[r] = s;
1
+ import store from "./store.js";
2
+ function setStoreInfo(pageCode, pageVersion, key, value) {
3
+ const pageKey = getPageStoreKey(pageCode, pageVersion);
4
+ let pageCodeStoreInfo = store.get(pageKey);
5
+ if (!pageCodeStoreInfo) {
6
+ pageCodeStoreInfo = {};
7
+ store.set(pageKey, pageCodeStoreInfo);
8
+ }
9
+ pageCodeStoreInfo[key] = value;
6
10
  }
7
- function e(t2, o2) {
8
- return t2 + ":" + o2;
11
+ function getPageStoreKey(pageCode, pageVersion) {
12
+ return pageCode + ":" + pageVersion;
9
13
  }
10
14
  export {
11
- e as getPageStoreKey,
12
- o as setStoreInfo
15
+ getPageStoreKey,
16
+ setStoreInfo
13
17
  };
@@ -1,4 +1,4 @@
1
- const a = /* @__PURE__ */ new Map();
1
+ const store = /* @__PURE__ */ new Map();
2
2
  export {
3
- a as default
3
+ store as default
4
4
  };