super-page-runtime 1.0.16 → 2.0.1

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 (519) hide show
  1. package/dist/es/assets/chart-themes/theme1.d.ts +4 -0
  2. package/{lib/src → dist/es}/assets/chart-themes/theme1.js +3 -2
  3. package/dist/es/assets/chart-themes/theme2.d.ts +4 -0
  4. package/{lib/src → dist/es}/assets/chart-themes/theme2.js +3 -2
  5. package/dist/es/assets/chart-themes/theme3.d.ts +4 -0
  6. package/{lib/src → dist/es}/assets/chart-themes/theme3.js +3 -2
  7. package/dist/es/components/runtime/index.d.ts +4 -0
  8. package/{lib/src → dist/es/components/runtime}/utils/api/api-util.js +15 -15
  9. package/dist/es/components/runtime/utils/assemblys-config.js +257 -0
  10. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +11 -0
  11. package/dist/es/components/runtime/utils/charts/chart-util.js +28 -0
  12. package/{lib/src → dist/es/components/runtime}/utils/common-util.d.ts +5 -0
  13. package/{lib/src → dist/es/components/runtime}/utils/common-util.js +25 -12
  14. package/dist/es/components/runtime/utils/eventBus.d.ts +7 -0
  15. package/dist/es/components/runtime/utils/eventBus.js +11 -0
  16. package/{lib/src → dist/es/components/runtime}/utils/events/event-util.d.ts +1 -1
  17. package/{lib/src → dist/es/components/runtime}/utils/events/event-util.js +41 -40
  18. package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.js +149 -148
  19. package/{lib/src → dist/es/components/runtime}/utils/events/validator-util.js +23 -23
  20. package/{lib/src → dist/es/components/runtime}/utils/global-refs.js +8 -8
  21. package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.d.ts +2 -0
  22. package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.js +3 -3
  23. package/{lib/src → dist/es/components/runtime}/utils/page-helper-util.d.ts +19 -0
  24. package/{lib/src → dist/es/components/runtime}/utils/page-helper-util.js +135 -19
  25. package/{lib/src → dist/es/components/runtime}/utils/page-init-util.js +18 -18
  26. package/dist/es/components/runtime/utils/page-permission-util.d.ts +26 -0
  27. package/dist/es/components/runtime/utils/page-permission-util.js +525 -0
  28. package/{lib/src → dist/es/components/runtime}/utils/store-util.js +5 -5
  29. package/{lib/src → dist/es/components/runtime}/utils/store.js +3 -2
  30. package/{lib/src → dist/es/components/runtime}/utils/table-utils.js +10 -9
  31. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +4 -0
  32. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +55 -0
  33. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -0
  34. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +36 -0
  35. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +4 -0
  36. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +111 -0
  37. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +4 -0
  38. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +249 -0
  39. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +62 -0
  40. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +4 -0
  41. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +57 -0
  42. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +4 -0
  43. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +4 -0
  44. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +50 -0
  45. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +4 -0
  46. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +51 -0
  47. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +4 -0
  48. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +51 -0
  49. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +4 -0
  50. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +52 -0
  51. package/{lib → dist/es/components}/runtime/views/assemblys/common/export-form-report-dialog.vue.js +34 -27
  52. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +4 -0
  53. package/{lib → dist/es/components}/runtime/views/assemblys/common/remove-signer-dialog.vue.js +33 -32
  54. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +4 -0
  55. package/{lib → dist/es/components}/runtime/views/assemblys/common/task-informition-dialog.vue.js +30 -29
  56. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +4 -0
  57. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +4 -0
  58. package/{lib → dist/es/components}/runtime/views/assemblys/container/card/card-runtime.vue2.js +24 -23
  59. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +4 -0
  60. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +75 -0
  61. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +4 -0
  62. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +80 -0
  63. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +4 -0
  64. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +44 -0
  65. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +4 -0
  66. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +45 -0
  67. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
  68. package/{lib → dist/es/components}/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -8
  69. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +4 -0
  70. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +70 -0
  71. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +4 -0
  72. package/{lib → dist/es/components}/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +17 -15
  73. package/{lib → dist/es/components}/runtime/views/assemblys/data/table/main-table-runtime.vue.js +66 -63
  74. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +4 -0
  75. package/{lib → dist/es/components}/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +40 -38
  76. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +4 -0
  77. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +4 -0
  78. package/{lib → dist/es/components}/runtime/views/assemblys/data/table/table-runtime.vue2.js +17 -11
  79. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +23 -0
  80. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +4 -0
  81. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +4 -0
  82. package/{lib → dist/es/components}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +36 -35
  83. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +4 -0
  84. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +83 -0
  85. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +4 -0
  86. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +64 -0
  87. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +4 -0
  88. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +41 -0
  89. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +4 -0
  90. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +75 -0
  91. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +4 -0
  92. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +64 -0
  93. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +4 -0
  94. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +128 -0
  95. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +4 -0
  96. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +128 -0
  97. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +4 -0
  98. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +78 -0
  99. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -0
  100. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +30 -0
  101. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
  102. package/{lib → dist/es/components}/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +37 -36
  103. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +4 -0
  104. package/{lib → dist/es/components}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +37 -48
  105. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +4 -0
  106. package/{lib → dist/es/components}/runtime/views/assemblys/form/select/select-runtime.vue2.js +54 -53
  107. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +4 -0
  108. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +64 -0
  109. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +4 -0
  110. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +64 -0
  111. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +4 -0
  112. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +66 -0
  113. package/{lib → dist/es}/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  114. package/{lib → dist/es/components}/runtime/views/assemblys/object-render.vue.js +35 -34
  115. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +4 -0
  116. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -0
  117. package/{lib → dist/es/components}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +17 -16
  118. package/{lib/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.js +19 -17
  119. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +4 -0
  120. package/{lib → dist/es}/components/runtime/views/super-page.vue.d.ts +1 -1
  121. package/{lib → dist/es/components}/runtime/views/super-page.vue.js +129 -112
  122. package/dist/es/components/runtime/views/super-page.vue2.js +4 -0
  123. package/dist/es/index.d.ts +8 -0
  124. package/dist/es/index.js +15 -0
  125. package/package.json +70 -67
  126. package/src/index.ts +15 -0
  127. package/.eslintrc.cjs +0 -26
  128. package/.prettierrc.json +0 -8
  129. package/App.vue +0 -9
  130. package/components/index.ts +0 -17
  131. package/components/runtime/index.ts +0 -2
  132. package/components/runtime/utils/assemblys-config.js +0 -294
  133. package/components/runtime/views/assemblys/button/button/button-runtime.vue +0 -49
  134. package/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +0 -26
  135. package/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +0 -93
  136. package/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +0 -59
  137. package/components/runtime/views/assemblys/chart/common/common-attr-assistant.vue +0 -32
  138. package/components/runtime/views/assemblys/chart/common/common-attr-base.vue +0 -60
  139. package/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +0 -39
  140. package/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +0 -104
  141. package/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +0 -145
  142. package/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +0 -119
  143. package/components/runtime/views/assemblys/chart/common/common-style-custom.vue +0 -28
  144. package/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +0 -45
  145. package/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +0 -78
  146. package/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +0 -56
  147. package/components/runtime/views/assemblys/chart/common/common-style-grid.vue +0 -70
  148. package/components/runtime/views/assemblys/chart/common/common-style-legend.vue +0 -70
  149. package/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +0 -140
  150. package/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +0 -58
  151. package/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +0 -125
  152. package/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +0 -67
  153. package/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +0 -57
  154. package/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +0 -23
  155. package/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +0 -209
  156. package/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +0 -46
  157. package/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +0 -56
  158. package/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +0 -55
  159. package/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +0 -57
  160. package/components/runtime/views/assemblys/common/common-attr-cursor.vue +0 -23
  161. package/components/runtime/views/assemblys/common/common-attr-size.vue +0 -54
  162. package/components/runtime/views/assemblys/common/common-select-table.vue +0 -287
  163. package/components/runtime/views/assemblys/common/common-style-background.vue +0 -46
  164. package/components/runtime/views/assemblys/common/common-style-border.vue +0 -37
  165. package/components/runtime/views/assemblys/common/common-style-custom.vue +0 -35
  166. package/components/runtime/views/assemblys/common/common-style-font-head.vue +0 -53
  167. package/components/runtime/views/assemblys/common/common-style-font.vue +0 -53
  168. package/components/runtime/views/assemblys/common/common-style-margin.vue +0 -34
  169. package/components/runtime/views/assemblys/common/common-style-padding.vue +0 -34
  170. package/components/runtime/views/assemblys/common/common-style-position.vue +0 -39
  171. package/components/runtime/views/assemblys/common/common-style-shadow.vue +0 -37
  172. package/components/runtime/views/assemblys/common/export-form-report-dialog.vue +0 -108
  173. package/components/runtime/views/assemblys/common/remove-signer-dialog.vue +0 -99
  174. package/components/runtime/views/assemblys/common/task-informition-dialog.vue +0 -69
  175. package/components/runtime/views/assemblys/common-attr-events.vue +0 -46
  176. package/components/runtime/views/assemblys/container/card/card-runtime.vue +0 -59
  177. package/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +0 -59
  178. package/components/runtime/views/assemblys/container/container/container-runtime.vue +0 -41
  179. package/components/runtime/views/assemblys/container/flex/flex-runtime.vue +0 -35
  180. package/components/runtime/views/assemblys/container/form/form-runtime.vue +0 -37
  181. package/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +0 -32
  182. package/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +0 -54
  183. package/components/runtime/views/assemblys/container/tools/tools-runtime.vue +0 -99
  184. package/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +0 -117
  185. package/components/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +0 -14
  186. package/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +0 -25
  187. package/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +0 -28
  188. package/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +0 -103
  189. package/components/runtime/views/assemblys/data/component/attr-header.vue +0 -69
  190. package/components/runtime/views/assemblys/data/component/attr-style.vue +0 -64
  191. package/components/runtime/views/assemblys/data/component/column-config.vue +0 -171
  192. package/components/runtime/views/assemblys/data/component/combinedHeader.vue +0 -96
  193. package/components/runtime/views/assemblys/data/component/composite-header.vue +0 -257
  194. package/components/runtime/views/assemblys/data/component/configuration-value.vue +0 -206
  195. package/components/runtime/views/assemblys/data/component/data-origin-tree.vue +0 -117
  196. package/components/runtime/views/assemblys/data/component/data-origin.vue +0 -260
  197. package/components/runtime/views/assemblys/data/component/formatting.vue +0 -200
  198. package/components/runtime/views/assemblys/data/component/in-parameter.vue +0 -56
  199. package/components/runtime/views/assemblys/data/component/querySetting.vue +0 -52
  200. package/components/runtime/views/assemblys/data/component/return-set-table.vue +0 -91
  201. package/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +0 -58
  202. package/components/runtime/views/assemblys/data/component/select-data-table.vue +0 -86
  203. package/components/runtime/views/assemblys/data/table/main-table-runtime.vue +0 -858
  204. package/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +0 -625
  205. package/components/runtime/views/assemblys/data/table/table-runtime.vue +0 -93
  206. package/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +0 -137
  207. package/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +0 -14
  208. package/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +0 -55
  209. package/components/runtime/views/assemblys/data/tree/tree-attr.vue +0 -28
  210. package/components/runtime/views/assemblys/data/tree/tree-design.vue +0 -125
  211. package/components/runtime/views/assemblys/error-attr.vue +0 -15
  212. package/components/runtime/views/assemblys/error-render.vue +0 -17
  213. package/components/runtime/views/assemblys/form/cascader/cascader-design.vue +0 -288
  214. package/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +0 -198
  215. package/components/runtime/views/assemblys/form/colors/colors-design.vue +0 -16
  216. package/components/runtime/views/assemblys/form/common/analytic-rule.vue +0 -148
  217. package/components/runtime/views/assemblys/form/common/attr-event.vue +0 -82
  218. package/components/runtime/views/assemblys/form/common/attr-header.vue +0 -54
  219. package/components/runtime/views/assemblys/form/common/attr-style.vue +0 -44
  220. package/components/runtime/views/assemblys/form/common/bar-code-rule.vue +0 -104
  221. package/components/runtime/views/assemblys/form/common/condition.vue +0 -147
  222. package/components/runtime/views/assemblys/form/common/data-origin.vue +0 -81
  223. package/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +0 -64
  224. package/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +0 -106
  225. package/components/runtime/views/assemblys/form/common/default-value-setting.vue +0 -362
  226. package/components/runtime/views/assemblys/form/common/dimension-input.vue +0 -68
  227. package/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +0 -115
  228. package/components/runtime/views/assemblys/form/common/formatting-label.vue +0 -81
  229. package/components/runtime/views/assemblys/form/common/grid-num-select.vue +0 -43
  230. package/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +0 -144
  231. package/components/runtime/views/assemblys/form/common/linkage.vue +0 -21
  232. package/components/runtime/views/assemblys/form/common/overall-height.vue +0 -20
  233. package/components/runtime/views/assemblys/form/common/overall-width.vue +0 -48
  234. package/components/runtime/views/assemblys/form/common/pre-suffix.vue +0 -33
  235. package/components/runtime/views/assemblys/form/common/rich-text.vue +0 -100
  236. package/components/runtime/views/assemblys/form/common/row-ul-li.vue +0 -55
  237. package/components/runtime/views/assemblys/form/common/setoption-table.vue +0 -86
  238. package/components/runtime/views/assemblys/form/common/size-input.vue +0 -65
  239. package/components/runtime/views/assemblys/form/common/suffixmodule.vue +0 -82
  240. package/components/runtime/views/assemblys/form/common/title.vue +0 -20
  241. package/components/runtime/views/assemblys/form/common/uploading.vue +0 -34
  242. package/components/runtime/views/assemblys/form/common/verification.vue +0 -79
  243. package/components/runtime/views/assemblys/form/common/voluntarily.vue +0 -27
  244. package/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +0 -81
  245. package/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +0 -14
  246. package/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +0 -14
  247. package/components/runtime/views/assemblys/form/custom/custom-attr.vue +0 -28
  248. package/components/runtime/views/assemblys/form/custom/custom-design.vue +0 -57
  249. package/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +0 -80
  250. package/components/runtime/views/assemblys/form/datetime/datetime-design.vue +0 -19
  251. package/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +0 -60
  252. package/components/runtime/views/assemblys/form/divider/divider-runtime.vue +0 -44
  253. package/components/runtime/views/assemblys/form/file-picture/picture-design.vue +0 -80
  254. package/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +0 -79
  255. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +0 -142
  256. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +0 -14
  257. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +0 -14
  258. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +0 -28
  259. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +0 -104
  260. package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +0 -75
  261. package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +0 -13
  262. package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +0 -14
  263. package/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +0 -28
  264. package/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +0 -76
  265. package/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +0 -62
  266. package/components/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +0 -68
  267. package/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +0 -14
  268. package/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +0 -70
  269. package/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +0 -28
  270. package/components/runtime/views/assemblys/form/input-show/input-show-design.vue +0 -155
  271. package/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +0 -142
  272. package/components/runtime/views/assemblys/form/label/label-runtime.vue +0 -143
  273. package/components/runtime/views/assemblys/form/link/link-runtime.vue +0 -70
  274. package/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +0 -24
  275. package/components/runtime/views/assemblys/form/radio/radio-runtime.vue +0 -203
  276. package/components/runtime/views/assemblys/form/rate/rate-design.vue +0 -16
  277. package/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +0 -169
  278. package/components/runtime/views/assemblys/form/select/select-runtime.vue +0 -247
  279. package/components/runtime/views/assemblys/form/slider/slider-design.vue +0 -16
  280. package/components/runtime/views/assemblys/form/switch/switch-runtime.vue +0 -63
  281. package/components/runtime/views/assemblys/form/tag/tag-runtime.vue +0 -65
  282. package/components/runtime/views/assemblys/form/text/text-design.vue +0 -19
  283. package/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +0 -63
  284. package/components/runtime/views/assemblys/form/transfer/transfer-design.vue +0 -32
  285. package/components/runtime/views/assemblys/object-render.vue +0 -176
  286. package/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +0 -179
  287. package/components/runtime/views/assemblys/page/page-attr-base.vue +0 -259
  288. package/components/runtime/views/assemblys/page/page-attr-events.vue +0 -50
  289. package/components/runtime/views/assemblys/page/page-attr-style.vue +0 -25
  290. package/components/runtime/views/assemblys/page/page-attr.vue +0 -84
  291. package/components/runtime/views/assemblys/page/variable-dialog.vue +0 -242
  292. package/components/runtime/views/assemblys/workflow/component/combination.vue +0 -206
  293. package/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +0 -99
  294. package/components/runtime/views/assemblys/workflow/component/event-dialog.vue +0 -278
  295. package/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +0 -174
  296. package/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +0 -155
  297. package/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +0 -47
  298. package/components/runtime/views/assemblys/workflow/component/set-dialog.vue +0 -130
  299. package/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +0 -96
  300. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +0 -43
  301. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +0 -14
  302. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +0 -27
  303. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +0 -28
  304. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +0 -17
  305. package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +0 -60
  306. package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +0 -14
  307. package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +0 -27
  308. package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +0 -28
  309. package/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +0 -17
  310. package/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +0 -64
  311. package/components/runtime/views/render/page-view.vue +0 -80
  312. package/components/runtime/views/super-page copy.vue +0 -61
  313. package/components/runtime/views/super-page.vue +0 -667
  314. package/components/super-page-dialog/index.ts +0 -2
  315. package/components/super-page-dialog/super-page-dialog.vue +0 -267
  316. package/components/wf-editor/index.ts +0 -2
  317. package/components/wf-editor/wf-editor.vue +0 -15
  318. package/cypress/e2e/example.cy.ts +0 -8
  319. package/cypress/e2e/tsconfig.json +0 -10
  320. package/cypress/fixtures/example.json +0 -5
  321. package/cypress/support/commands.ts +0 -39
  322. package/cypress/support/e2e.ts +0 -20
  323. package/cypress.config.ts +0 -8
  324. package/env.d.ts +0 -1
  325. package/index.html +0 -13
  326. package/lib/_virtual/_plugin-vue_export-helper.js +0 -9
  327. package/lib/components/index.d.ts +0 -5
  328. package/lib/components/runtime/index.d.ts +0 -3
  329. package/lib/components/super-page-dialog/index.d.ts +0 -3
  330. package/lib/components/wf-editor/index.d.ts +0 -3
  331. package/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
  332. package/lib/index.js +0 -8
  333. package/lib/runtime/index.js +0 -3
  334. package/lib/runtime/utils/assemblys-config.js +0 -258
  335. package/lib/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
  336. package/lib/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
  337. package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
  338. package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
  339. package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
  340. package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
  341. package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
  342. package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -53
  343. package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
  344. package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -42
  345. package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
  346. package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -50
  347. package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
  348. package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -50
  349. package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
  350. package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -51
  351. package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
  352. package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
  353. package/lib/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
  354. package/lib/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
  355. package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
  356. package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -73
  357. package/lib/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
  358. package/lib/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -78
  359. package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
  360. package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -42
  361. package/lib/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
  362. package/lib/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -43
  363. package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
  364. package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
  365. package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -68
  366. package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
  367. package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
  368. package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
  369. package/lib/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
  370. package/lib/runtime/views/assemblys/error-render.vue.js +0 -22
  371. package/lib/runtime/views/assemblys/error-render.vue2.js +0 -3
  372. package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
  373. package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
  374. package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
  375. package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
  376. package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -59
  377. package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
  378. package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
  379. package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
  380. package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
  381. package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
  382. package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
  383. package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
  384. package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
  385. package/lib/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
  386. package/lib/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -133
  387. package/lib/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
  388. package/lib/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
  389. package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
  390. package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
  391. package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
  392. package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
  393. package/lib/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
  394. package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
  395. package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
  396. package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
  397. package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
  398. package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
  399. package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
  400. package/lib/runtime/views/assemblys/object-render.vue2.js +0 -3
  401. package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
  402. package/lib/runtime/views/super-page.vue2.js +0 -3
  403. package/lib/src/utils/charts/chart-util.js +0 -15
  404. package/lib/super-page-dialog/index.js +0 -3
  405. package/lib/super-page-dialog/super-page-dialog.vue2.js +0 -3
  406. package/lib/wf-editor/index.js +0 -3
  407. package/lib/wf-editor/wf-editor.css +0 -4
  408. package/lib/wf-editor/wf-editor.vue.js +0 -15
  409. package/main.ts +0 -11
  410. package/package-ws.json +0 -70
  411. package/public/favicon.ico +0 -0
  412. package/src/assets/base.css +0 -86
  413. package/src/assets/chart-themes/theme1.ts +0 -6
  414. package/src/assets/chart-themes/theme2.ts +0 -6
  415. package/src/assets/chart-themes/theme3.ts +0 -6
  416. package/src/assets/images/button/button-group.png +0 -0
  417. package/src/assets/images/button/button.png +0 -0
  418. package/src/assets/images/chart/chart-column.png +0 -0
  419. package/src/assets/images/chart/chart-gauge.png +0 -0
  420. package/src/assets/images/chart/chart-pie.png +0 -0
  421. package/src/assets/images/chart/chart-radar.png +0 -0
  422. package/src/assets/images/chart/chart-scatter.png +0 -0
  423. package/src/assets/images/container/container-card.png +0 -0
  424. package/src/assets/images/container/container-collapse.png +0 -0
  425. package/src/assets/images/container/container-container.png +0 -0
  426. package/src/assets/images/container/container-flex.png +0 -0
  427. package/src/assets/images/container/container-form.png +0 -0
  428. package/src/assets/images/container/container-iframe.png +0 -0
  429. package/src/assets/images/container/container-normal.png +0 -0
  430. package/src/assets/images/container/container-tabs.png +0 -0
  431. package/src/assets/images/container/container-tools.png +0 -0
  432. package/src/assets/images/data/data-process.png +0 -0
  433. package/src/assets/images/data/data-step.png +0 -0
  434. package/src/assets/images/data/data-table-column.png +0 -0
  435. package/src/assets/images/data/data-table.png +0 -0
  436. package/src/assets/images/data/data-timeline.png +0 -0
  437. package/src/assets/images/data/data-tree.png +0 -0
  438. package/src/assets/images/form/form-cascader.png +0 -0
  439. package/src/assets/images/form/form-check.png +0 -0
  440. package/src/assets/images/form/form-color.png +0 -0
  441. package/src/assets/images/form/form-count.png +0 -0
  442. package/src/assets/images/form/form-custom.png +0 -0
  443. package/src/assets/images/form/form-date.png +0 -0
  444. package/src/assets/images/form/form-dept.png +0 -0
  445. package/src/assets/images/form/form-divider.png +0 -0
  446. package/src/assets/images/form/form-file.png +0 -0
  447. package/src/assets/images/form/form-image-upload.png +0 -0
  448. package/src/assets/images/form/form-img.png +0 -0
  449. package/src/assets/images/form/form-input.png +0 -0
  450. package/src/assets/images/form/form-label.png +0 -0
  451. package/src/assets/images/form/form-link.png +0 -0
  452. package/src/assets/images/form/form-radio.png +0 -0
  453. package/src/assets/images/form/form-scan.png +0 -0
  454. package/src/assets/images/form/form-score.png +0 -0
  455. package/src/assets/images/form/form-select.png +0 -0
  456. package/src/assets/images/form/form-slider.png +0 -0
  457. package/src/assets/images/form/form-space.png +0 -0
  458. package/src/assets/images/form/form-switch.png +0 -0
  459. package/src/assets/images/form/form-text.png +0 -0
  460. package/src/assets/images/form/form-textarea.png +0 -0
  461. package/src/assets/images/form/form-transfer.png +0 -0
  462. package/src/assets/images/form/form-zoom.png +0 -0
  463. package/src/assets/images/group-button.png +0 -0
  464. package/src/assets/images/group-chart.png +0 -0
  465. package/src/assets/images/group-container.png +0 -0
  466. package/src/assets/images/group-data.png +0 -0
  467. package/src/assets/images/group-form.png +0 -0
  468. package/src/assets/images/group-workflow.png +0 -0
  469. package/src/assets/images/workflow/workflow-button.png +0 -0
  470. package/src/assets/images/workflow/workflow-history-texts.png +0 -0
  471. package/src/assets/images/workflow/workflow-history.png +0 -0
  472. package/src/assets/images/workflow/workflow-imagehistory.png +0 -0
  473. package/src/assets/images/workflow/workflow-texthistory .png +0 -0
  474. package/src/assets/logo.svg +0 -1
  475. package/src/assets/main.css +0 -1
  476. package/src/i18n/langs/cn.js +0 -52
  477. package/src/i18n/langs/en.js +0 -52
  478. package/src/stores/counter.ts +0 -12
  479. package/src/utils/api/api-util.ts +0 -176
  480. package/src/utils/charts/chart-util.ts +0 -41
  481. package/src/utils/common-util.ts +0 -96
  482. package/src/utils/container-style-util.ts +0 -237
  483. package/src/utils/eventBus.ts +0 -14
  484. package/src/utils/events/event-util.ts +0 -790
  485. package/src/utils/events/jump-page-util.ts +0 -0
  486. package/src/utils/events/standard-event.ts +0 -2075
  487. package/src/utils/events/validator-util.ts +0 -474
  488. package/src/utils/global-refs.ts +0 -160
  489. package/src/utils/interfaces/page-design-types.ts +0 -259
  490. package/src/utils/page-helper-util.ts +0 -850
  491. package/src/utils/page-init-util.ts +0 -291
  492. package/src/utils/page-permission-util.ts +0 -521
  493. package/src/utils/store-util.ts +0 -41
  494. package/src/utils/store.ts +0 -3
  495. package/src/utils/table-utils.ts +0 -31
  496. package/tsconfig copy.json +0 -17
  497. package/tsconfig.app copy.json +0 -14
  498. package/tsconfig.app.json +0 -14
  499. package/tsconfig.json +0 -17
  500. package/tsconfig.node copy.json +0 -19
  501. package/tsconfig.node.json +0 -19
  502. package/tsconfig.vitest copy.json +0 -11
  503. package/tsconfig.vitest.json +0 -11
  504. package/vite.config copy.ts +0 -109
  505. package/vite.config.ts +0 -86
  506. package/vitest.config.ts +0 -14
  507. /package/{lib/src → dist/es/components/runtime}/utils/api/api-util.d.ts +0 -0
  508. /package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.d.ts +0 -0
  509. /package/{lib/src → dist/es/components/runtime}/utils/events/validator-util.d.ts +0 -0
  510. /package/{lib/src → dist/es/components/runtime}/utils/global-refs.d.ts +0 -0
  511. /package/{lib/src → dist/es/components/runtime}/utils/page-init-util.d.ts +0 -0
  512. /package/{lib/src → dist/es/components/runtime}/utils/store-util.d.ts +0 -0
  513. /package/{lib/src → dist/es/components/runtime}/utils/store.d.ts +0 -0
  514. /package/{lib → dist/es}/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -0
  515. /package/{lib → dist/es}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -0
  516. /package/{lib → dist/es}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -0
  517. /package/{lib → dist/es}/components/runtime/views/assemblys/error-render.vue.d.ts +0 -0
  518. /package/{lib/components/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.d.ts +0 -0
  519. /package/{lib → dist/es}/favicon.ico +0 -0
@@ -1,858 +0,0 @@
1
- <template>
2
- <div>
3
- <!--//TODO:暂不支持弹框方式查询 @setSearchType="closeSearch" -->
4
- <super-grid
5
- ref="gridRef"
6
- :url="urlToListData"
7
- :options="listOptions"
8
- :code="superGridSetting ? null : listCode"
9
- :settings="superGridSetting"
10
- :search-form-info="searchFormInfo"
11
- :list-toolbar-form-data="listToolbarFormData"
12
- @select="select"
13
- @select-all="selectAll"
14
- @selection-change="selectionChange"
15
- @cell-click="cellClickEvent"
16
- @cell-dblclick="cellDblClickEvent"
17
- @row-click="rowClickEvent"
18
- @row-dblclick="rowDblClickEvent"
19
- @header-click="headerClickEvent"
20
- @refresh="clearSelections"
21
- @new-open-grid-dialog="popupToPage"
22
- />
23
- </div>
24
- </template>
25
- <script lang="ts" setup>
26
- import { SuperIcon } from 'agilebuilder-ui'
27
- import { computed, onMounted, watch, ref, onUnmounted } from 'vue'
28
- import type {
29
- Component,
30
- PageContext
31
- } from '../../../../../../src/utils/interfaces/page-design-types'
32
- import {
33
- doAfterClickEvent,
34
- canExecuteButton,
35
- doBeforeClickEvent,
36
- getEventFuncByType,
37
- getHandleEvent,
38
- gridSelectRecord,
39
- setTableEvents,
40
- gridSelectAllRecords,
41
- gridSelectionChange,
42
- cellClick,
43
- cellDblClick,
44
- rowClick,
45
- rowDblClick,
46
- headerClick
47
- } from '../../../../../../src/utils/events/event-util'
48
- import { getRealRestApiPath, getListCode } from '../../../../../../src/utils/common-util'
49
- import {
50
- getSaveFormRequest,
51
- standardEvents
52
- } from '../../../../../../src/utils/events/standard-event'
53
- import { isPromise } from 'agilebuilder-ui/src/utils/common-util'
54
- import { getDataTypeMap, popupToPage } from '../../../../../../src/utils/table-utils'
55
- // import eventBus from '../../../../../../src/utils/eventBus'
56
- interface MyProps {
57
- pageContext: PageContext
58
- configure: Component
59
- }
60
- const props = defineProps<MyProps>()
61
- const pageContext = props.pageContext
62
- const configure = props.configure
63
-
64
- //获取默认的样式及配置
65
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {}
66
-
67
- const runtimeStyle = runtimeInfo.style
68
- const runtimeClass = runtimeInfo.class
69
-
70
- const system = pageContext.entity.system
71
- // TODO: table的数据表名是这样获得吗??
72
- const tableName = pageContext.tableName
73
- const baseURL = window['$vueApp'].config.globalProperties.baseURL
74
- const operationButtonObj = ref(null)
75
- const eventName = ref(null)
76
- const listOptions = ref({})
77
- listOptions.value = getOptions()
78
-
79
- // 获得列表的Ref对象
80
- const gridRef = ref(null)
81
-
82
- const urlToListData = getUrlToListData(system)
83
- const listCode = getListCode(pageContext.code, pageContext.version, configure.uuid)
84
-
85
- const myPageCode = pageContext.code
86
- // TODO: 列表“-close-component-page-dialog”事件处理,事件名多了“_listCode"信息
87
- const eventPageInfo = myPageCode + '_' + listCode
88
- const selections = ref([])
89
- const listToolbarFormData = pageContext.entity.page
90
- const searchFormInfo = ref({ data: [] })
91
- const superGridItems = pageContext.superGridItems
92
- const superGridSetting = superGridItems ? superGridItems[configure.uuid] : null
93
- console.log('superGridSetting1111===', superGridItems, superGridSetting)
94
-
95
- onMounted(() => {
96
- window.addEventListener('message', recieveMessage)
97
- // TODO: 列表“-close-component-page-dialog”事件处理,事件名多了“_listCode"信息 myPageCode + '_' + myPageVersion + '_' + listCode
98
- window['$eventBus'].$on(
99
- eventPageInfo + '-close-component-page-dialog',
100
- function ({ jumpInfo, popEntity, popPageCode }) {
101
- gridRef.value.closePageDialog({
102
- entity: popEntity,
103
- pageCode: popPageCode,
104
- jumpInfo: jumpInfo
105
- })
106
- }
107
- )
108
- // TODO: 刷新指定页签的表格数据(原list-page页面中的事件)
109
- // window['$eventBus'].$on(that.pageCode + '-refresh-tab', function({ tabCode, entity }) {
110
- // if (
111
- // that.$refs.grid &&
112
- // tabCode !== undefined &&
113
- // tabCode === that.tabCode
114
- // ) {
115
- // that.$refs.grid.refresh()
116
- // }
117
- // })
118
- // 关闭弹框事件回调使用
119
- // TODO: 列表“_close-dialog-get-entity”事件处理,事件名多了“_listCode"信息 myPageCode + '_' + myPageVersion + '_' + listCode
120
- window['$eventBus'].$on(eventPageInfo + '_close-dialog-get-entity', () => {
121
- window['$eventBus'].$emit(eventPageInfo + '_close-super-dialog')
122
- })
123
- })
124
- // 监听查询条件更新
125
- watch(
126
- () => props.pageContext.searchFormData,
127
- (searchFormData) => {
128
- searchFormInfo.value.data = searchFormData
129
- }
130
- )
131
- // 监听工具栏快捷查询组件
132
- watch(
133
- () => props.pageContext.entity.data,
134
- (searchFormData) => {
135
- searchGridData(props.pageContext.entity.data)
136
- }
137
- )
138
- // 监听工具栏快捷查询组件
139
- watch(
140
- () => props.pageContext.entity.page,
141
- (searchFormData) => {
142
- searchGridData(props.pageContext.entity.page)
143
- }
144
- )
145
-
146
- onUnmounted(() => {
147
- window['$eventBus'].$off(eventPageInfo + '-close-component-page-dialog')
148
- window['$eventBus'].$off(eventPageInfo + '_close-dialog-get-entity')
149
- })
150
-
151
- function getUrlToListData(system) {
152
- let urlToListData
153
- if (!pageContext.isTest) {
154
- urlToListData = baseURL + '/dsc/commons/list'
155
- if (urlToListData) {
156
- urlToListData = getRealRestApiPath(urlToListData, system)
157
- }
158
- }
159
- return urlToListData
160
- }
161
-
162
- function getOptions() {
163
- const system = pageContext.entity.system
164
- const permissionPrefix = system.code + '.' + pageContext.code
165
- let initSearchForm =
166
- configure.props && configure.props.dataOrigin
167
- ? configure.props.dataOrigin.sqlFilterCondition
168
- : null
169
- if (typeof initSearchForm === 'undefined' || initSearchForm === null) {
170
- initSearchForm = []
171
- }
172
- const options = {
173
- isSql: true,
174
- extraParam: {
175
- beanName: pageContext.beanName,
176
- functionCode: permissionPrefix + '.list',
177
- tableName: tableName,
178
- systemCode: system.code // 系统编码传给列表数据后台请求
179
- },
180
- initSearchForm,
181
- lineEditOptions: {
182
- aftersaveIsCreateRow: false,
183
- autoSave: false,
184
- enter: enterSave,
185
- esc: escRestorRow
186
- },
187
- indexContinuous:
188
- configure.props && configure.props.otherSettings
189
- ? configure.props.otherSettings.serialNumberContinuous
190
- : false,
191
- initSearch:
192
- configure.props && configure.props.base.initializationQuery
193
- ? configure.props.base.initializationQuery
194
- : true, // 初始化时是否查询,默认是查询
195
- resizeHeight: resizeListHeight,
196
- pageCode: pageContext.code,
197
- pageVersion: pageContext.version,
198
- // pageHeight: pageHeight, // 页面的高度 //TODO: pageHeight如何获得,页面高度,计算列表高度应该会用
199
- additionalParamMap: pageContext.entity.request, // 将路由参数传给列表组件
200
- showOverflowTooltip: !!(
201
- configure.props &&
202
- configure.props.otherSettings &&
203
- (configure.props.otherSettings.isBreakLine === undefined ||
204
- configure.props.otherSettings.isBreakLine === false)
205
- ), // 单元格内容是否换行显示
206
- isEnableEnterEvent:
207
- configure.props &&
208
- configure.props.otherSettings &&
209
- configure.props.otherSettings.isEnableEnterEvent, // 是否启用回车事件
210
- // 当前系统,表示是当前的自定义系统信息
211
- system,
212
- isWithDataPermission:
213
- configure.props &&
214
- configure.props.otherSettings &&
215
- configure.props.otherSettings.isWithDataPermission
216
- ? configure.props.otherSettings.isWithDataPermission
217
- : false,
218
- pageDevMode: false,
219
- isWorkflowEntity: pageContext.workflowCode ? true : false,
220
- tableClass: runtimeClass,
221
- tableStyle: runtimeStyle,
222
- pageContext,
223
- configureObj: configure
224
- }
225
- // 设置排序字段信息
226
- setSortInfo(options)
227
- // 获得字段集合
228
- myGetDataTypeMap(options)
229
- // 设置树形配置
230
- setTreeSetting(options)
231
- // 设置表格事件
232
- setGridEvents(options)
233
- // TODO: 是否需要区分预览
234
- // const isPreview = getStoreInfo(this.pageCode, '_pagePreview')
235
- // if (isPreview !== undefined && isPreview === true) {
236
- // // 预览时,不请求数据,只查看列表结构
237
- // options.loadBeforeSend = function () {
238
- // return false
239
- // }
240
- return options
241
- }
242
-
243
- // 设置排序字段信息
244
- function setSortInfo(options) {
245
- if (configure.props && configure.props.dataOrigin && configure.props.dataOrigin.sortFields) {
246
- options.initSortInfo = []
247
- this.colSetting.options.sortFields.forEach((item) => {
248
- const sortInfo = {
249
- order: item.sortOrder
250
- }
251
- sortInfo['prop'] = item.propDbName
252
- options.initSortInfo.push(sortInfo)
253
- })
254
- }
255
- }
256
-
257
- // 获得字段集合
258
- function myGetDataTypeMap(options) {
259
- if (!system || !tableName) {
260
- return
261
- }
262
- getDataTypeMap(system, tableName).then((result) => {
263
- pageContext['dataTypeMaps'][tableName] = result['dataTypeMap']
264
- // 设置列表操作列按钮
265
- setOperationButtons(options)
266
- })
267
- }
268
-
269
- // 设置列表组件需要的操作列按钮配置信息
270
- function setOperationButtons(options) {
271
- const showOperation =
272
- configure.props && configure.props.base ? configure.props.base.showOperation : false
273
- const operationButtons = configure.btnList
274
- if (showOperation && operationButtons) {
275
- // 是否受权限控制
276
- let noPermission = false
277
- const operationButtons = []
278
- operationButtons.forEach((buttonConfigure) => {
279
- const myButtonSet = {}
280
- const myButtonProps = Object.assign({}, buttonConfigure.props.base)
281
- // element plus不支持该属性了
282
- // myButtonProps.type = 'text'
283
- myButtonProps.elementType = 'el-button'
284
- if (
285
- !noPermission &&
286
- (buttonConfigure.isPermission === undefined || buttonConfigure.isPermission + '' === 'true')
287
- ) {
288
- // 表示受权限控制
289
- if (buttonConfigure.functionCode) {
290
- myButtonProps.permission = buttonConfigure.functionCode
291
- }
292
- }
293
-
294
- myButtonSet['props'] = myButtonProps
295
- myButtonSet['onClick'] = getOperationButtonClickEvent(buttonConfigure)
296
- operationButtons.push(myButtonSet)
297
- })
298
- if (!options.operations) {
299
- options.operations = {}
300
- }
301
- options.operations.operation = operationButtons
302
- }
303
- }
304
-
305
- // 设置树形配置
306
- function setTreeSetting(options) {
307
- const dataOrigin = configure.props ? configure.props.dataOrigin : {}
308
- if (dataOrigin.treeTable) {
309
- let parentPropDbName
310
- // 格式为:name~~dbCloumnName,name表示实体字段名,dbCloumnName表示数据库字段名
311
- const parentPropInfo = dataOrigin.rowKey
312
- if (parentPropInfo && parentPropInfo.indexOf('~~') > 0) {
313
- parentPropDbName = parentPropInfo.substring(parentPropInfo.indexOf('~~') + 2)
314
- } else {
315
- parentPropDbName = parentPropInfo
316
- }
317
- // 数据库字段名
318
- options.parentProp = parentPropDbName
319
- if (options.parentProp) {
320
- // 表示配置了父级字段名,则表示是树状结构数据
321
- const isLazy = dataOrigin.lazy
322
- const defaultExpandAll = dataOrigin.defaultExpandAll
323
- if (isLazy === undefined || isLazy === null) {
324
- options.lazy = true
325
- } else {
326
- options.lazy = isLazy
327
- }
328
- if (defaultExpandAll === undefined || defaultExpandAll === null) {
329
- options.defaultExpandAll = false
330
- } else {
331
- options.defaultExpandAll = defaultExpandAll
332
- }
333
- const listViewTreeTableSetting = {
334
- parentProp: parentPropDbName,
335
- lazy: options.lazy,
336
- defaultExpandAll: options.defaultExpandAll
337
- }
338
- // 树表格配置传给后台
339
- options.extraParam.listViewTreeSetting = JSON.stringify(listViewTreeTableSetting)
340
- options.subRowUrl = baseURL + '/dsc/commons/list-subs'
341
- }
342
- }
343
- }
344
-
345
- // 设置表格事件
346
- function setGridEvents(options) {
347
- const tableEvents = configure.events
348
- setTableEvents(options, tableEvents, pageContext, configure)
349
- const customEvents = pageContext.customEvents
350
- if (customEvents) {
351
- // 将页面中配置的自定义事件集合传给列表组件super-grid,供列表行编辑控件使用
352
- options.eventCallBack = customEvents
353
- const rowStyleEvent = getEventFuncByType(pageContext, tableEvents, 'rowStyle')
354
- if (rowStyleEvent) {
355
- options.rowStyleRender = rowStyleEvent
356
- }
357
- }
358
- }
359
-
360
- // 回车保存事件
361
- function enterSave(rowIndex, column, row, orgRow) {
362
- saveRow(null, null, row, column, rowIndex)
363
- }
364
-
365
- // 行编辑保存
366
- function saveRow(originalValue, formatValue, row, column, rowIndex) {
367
- const buttonConfigure = operationButtonObj.value[eventName.value]
368
- listOptions.value['lineEditOptions']['beforeSave'] = beforeSaveRow
369
- pageContext.editData = row
370
- canExecuteButton({ pageContext, configureObj: buttonConfigure })
371
- .then((result) => {
372
- if (result['canExecute'] === true) {
373
- // 设置保存的自定义实现
374
- listOptions.value['lineEditOptions']['saveRow'] = saveLineEditRow
375
- gridRef.value.saveRow(rowIndex, listCode).then(() => {
376
- const otherParams = {
377
- originalValue,
378
- formatValue,
379
- row,
380
- column,
381
- rowIndex
382
- }
383
- // 调用afterClick回调方法
384
- doAfterClickEvent(pageContext, buttonConfigure, otherParams)
385
- })
386
- }
387
- })
388
- .finally(() => {
389
- pageContext.editData = null
390
- })
391
- }
392
-
393
- // 获得操作列按钮点击事件
394
- function getOperationButtonClickEvent(buttonConfigure) {
395
- let onClick
396
- eventName.value = buttonConfigure.eventName
397
- operationButtonObj.value[eventName.value] = buttonConfigure
398
- if (eventName.value === 'lineEditSave') {
399
- // 行编辑保存
400
- onClick = saveRow
401
- } else if (eventName.value === 'restoreEdit') {
402
- onClick = restoreRow
403
- } else if (eventName.value === 'lineEditUpdate') {
404
- // 行编辑修改按钮
405
- onClick = editRow
406
- } else if (eventName.value === 'lineEditDelete') {
407
- // 行编辑删除按钮
408
- onClick = deleteRow
409
- } else {
410
- onClick = customButtonClick
411
- // TODO 自定义行编辑按钮事件处理
412
- }
413
- if (!onClick) {
414
- onClick = function () {}
415
- }
416
- return onClick
417
- }
418
-
419
- function beforeSaveRow(
420
- row,
421
- columns,
422
- dataTypeMap,
423
- dynamicColumnInfo,
424
- additionalParamMap,
425
- mainDefaultValueColumns
426
- ) {
427
- const buttonConfigure = operationButtonObj.value[eventName.value]
428
- const otherParams = {
429
- dynamicColumnInfo,
430
- mainDefaultValueColumns,
431
- dataTypeMap,
432
- row,
433
- columns
434
- }
435
- return doBeforeClickEvent(pageContext, buttonConfigure, otherParams)
436
- }
437
-
438
- // 重写行编辑时保存的实现
439
- function saveLineEditRow(
440
- row,
441
- columns,
442
- dataTypeMap,
443
- dynamicColumnInfo,
444
- additionalParamMap,
445
- mainDefaultValueColumns
446
- ) {
447
- const buttonConfigure = operationButtonObj.value[eventName.value]
448
- return new Promise((resolve, reject) => {
449
- getSaveFormRequest(
450
- pageContext,
451
- buttonConfigure,
452
- '/dsc/commons',
453
- false,
454
- mainDefaultValueColumns,
455
- dynamicColumnInfo
456
- )
457
- .then((commonEntity) => {
458
- if (commonEntity) {
459
- resolve(commonEntity.entity)
460
- } else {
461
- resolve({})
462
- }
463
- })
464
- .catch((error) => {
465
- reject(error)
466
- })
467
- })
468
- }
469
-
470
- // esc取消行编辑
471
- function escRestorRow(rowIndex, column, row, orgRow) {
472
- restoreRow(null, null, row, column, rowIndex)
473
- }
474
-
475
- // 行编辑取消编辑
476
- function restoreRow(originalValue, formatValue, row, column, rowIndex) {
477
- const buttonConfigure = operationButtonObj.value[eventName.value]
478
- const otherParams = {
479
- originalValue,
480
- formatValue,
481
- row,
482
- column,
483
- rowIndex
484
- }
485
- const beforeClickResult = doBeforeClickEvent(pageContext, buttonConfigure, otherParams)
486
- if (!beforeClickResult) {
487
- // 返回值为false,不继续执行按钮操作
488
- return
489
- }
490
- if (isPromise(beforeClickResult)) {
491
- // 表示是promise函数
492
- beforeClickResult.then((result) => {
493
- if (result) {
494
- gridRef.value.restoreRow(rowIndex, listCode)
495
- }
496
- })
497
- } else {
498
- gridRef.value.restoreRow(rowIndex, listCode)
499
- }
500
- const afterOtherParams = {
501
- originalValue,
502
- formatValue,
503
- row,
504
- column,
505
- rowIndex
506
- }
507
- // 调用afterClick回调方法
508
- doAfterClickEvent(pageContext, configure, afterOtherParams)
509
- }
510
-
511
- // 行编辑的修改
512
- function editRow(originalValue, formatValue, row, column, rowIndex) {
513
- const buttonConfigure = operationButtonObj.value[eventName.value]
514
- const otherParams = {
515
- originalValue,
516
- formatValue,
517
- row,
518
- column,
519
- rowIndex
520
- }
521
- const beforeClickResult = doBeforeClickEvent(pageContext, buttonConfigure, otherParams)
522
- if (!beforeClickResult) {
523
- // 返回值为false,不继续执行按钮操作
524
- return
525
- }
526
- if (isPromise(beforeClickResult)) {
527
- // 表示是promise函数
528
- beforeClickResult.then((result) => {
529
- if (result) {
530
- editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure)
531
- }
532
- })
533
- } else {
534
- editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure)
535
- }
536
- }
537
-
538
- function editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure) {
539
- pageContext.editData = row
540
- canExecuteButton({ pageContext, configureObj: buttonConfigure })
541
- .then((result) => {
542
- if (result['canExecute'] === true) {
543
- // TODO: 行编辑修改按钮跳转页面解析
544
- // if (buttonConfigure.jumpPage) {
545
- // let dataId
546
- // if (row && row.id) {
547
- // dataId = row.id
548
- // } else if (row && row.ID) {
549
- // dataId = row.ID
550
- // }
551
- // if (!dataId) {
552
- // this.$message({
553
- // showClose: true,
554
- // type: 'warning',
555
- // message: this.$t('superPageMessage.pleaseSaveRow')
556
- // })
557
- // return
558
- // }
559
- // this.update(button.jumpPage, this.system, dataId, button)
560
- // } else {
561
- gridRef.value.editRow(rowIndex, listCode)
562
- // 调用afterClick回调方法
563
- const afterOtherParams = {
564
- originalValue,
565
- formatValue,
566
- row,
567
- column,
568
- rowIndex
569
- }
570
- doAfterClickEvent(pageContext, configure, afterOtherParams)
571
- // }
572
- }
573
- })
574
- .finally(() => {
575
- pageContext.editData = null
576
- })
577
- }
578
-
579
- // 行编辑的删除
580
- function deleteRow(originalValue, formatValue, row, column, rowIndex) {
581
- const buttonConfigure = operationButtonObj.value[eventName.value]
582
- const otherParams = {
583
- originalValue,
584
- formatValue,
585
- row,
586
- column,
587
- rowIndex
588
- }
589
- const beforeClickResult = doBeforeClickEvent(pageContext, buttonConfigure, otherParams)
590
- if (!beforeClickResult) {
591
- // 返回值为false,不继续执行按钮操作
592
- return
593
- }
594
- if (isPromise(beforeClickResult)) {
595
- // 表示是promise函数
596
- beforeClickResult.then((result) => {
597
- if (result) {
598
- deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure)
599
- }
600
- })
601
- } else {
602
- deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure)
603
- }
604
- }
605
-
606
- function deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure) {
607
- if (row.id || row.ID) {
608
- pageContext.editData = row
609
- canExecuteButton({ pageContext, configureObj: buttonConfigure })
610
- .then((result) => {
611
- if (result['canExecute'] === true) {
612
- const ids = []
613
- if (row.id) {
614
- ids.push(row.id)
615
- } else {
616
- ids.push(row.ID)
617
- }
618
- standardEvents.delete({
619
- pageContext,
620
- configureObj: buttonConfigure,
621
- ids,
622
- tableUuid: listCode
623
- })
624
- // }
625
- }
626
- })
627
- .finally(() => {
628
- pageContext.editData = null
629
- })
630
- } else {
631
- restoreRow(originalValue, formatValue, row, column, rowIndex)
632
- const afterOtherParams = {
633
- originalValue,
634
- formatValue,
635
- row,
636
- column,
637
- rowIndex
638
- }
639
- // 调用afterClick回调方法
640
- doAfterClickEvent(pageContext, configure, afterOtherParams)
641
- }
642
- }
643
-
644
- //TODO: 接受工具栏参数,刷新列表,需要测试是否这样实现??
645
- function searchGridData(data) {
646
- if (!pageContext['dataTypeMaps'] || !pageContext['dataTypeMaps'][tableName]) {
647
- return
648
- }
649
- const dataTypeObj = pageContext['dataTypeMaps'][tableName]
650
- let toolbarFieldParam = []
651
- if (data) {
652
- for (var key in data) {
653
- const value = data[key]
654
- if (value !== null && value !== undefined && value !== '') {
655
- // 需要解析data为FieldParam,
656
- // 如果是多选,需要用or拼接,其他不为空不为“”的值,用and连接
657
- if (value instanceof Array) {
658
- // 需要解析为两个
659
- if (value.length > 0) {
660
- const multipleFieldParam = []
661
- for (var i = 0; i < value.length; i++) {
662
- const fieldParam = {}
663
- if (i === 0) {
664
- fieldParam['leftBracket'] = '(('
665
- } else {
666
- fieldParam['leftBracket'] = '('
667
- }
668
- fieldParam['propName'] = key
669
- fieldParam['propDbName'] = key
670
- fieldParam['dataType'] = dataTypeObj[key] ? dataTypeObj[key] : 'TEXT'
671
- fieldParam['operator'] = 'EQ'
672
- fieldParam['propValue'] = value[i]
673
- if (i === value.length - 1) {
674
- fieldParam['rightBracket'] = '))'
675
- fieldParam['joinSign'] = 'and'
676
- } else {
677
- fieldParam['rightBracket'] = ')'
678
- fieldParam['joinSign'] = 'or'
679
- }
680
- multipleFieldParam.push(fieldParam)
681
- }
682
- toolbarFieldParam = toolbarFieldParam.concat(multipleFieldParam)
683
- }
684
- } else {
685
- // 解析为单个-判断是普通值还是时间选择
686
- const fieldParam = {}
687
- fieldParam['leftBracket'] = '('
688
- fieldParam['propName'] = key
689
- fieldParam['propDbName'] = key
690
- fieldParam['dataType'] = dataTypeObj[key] ? dataTypeObj[key] : 'TEXT'
691
- fieldParam['operator'] = 'EQ'
692
- fieldParam['propValue'] = value
693
- fieldParam['rightBracket'] = ')'
694
- fieldParam['joinSign'] = 'and'
695
- toolbarFieldParam.push(fieldParam)
696
- }
697
- }
698
- }
699
- }
700
- gridRef.value.toolbarRefresh(null, null, toolbarFieldParam)
701
- }
702
-
703
- function resizeListHeight(params) {
704
- // TODO: 重新计算列表高度
705
- // const pageHeight = getStoreInfo(this.pageCode, '_pageHeight')
706
- // if (pageHeight === undefined || pageHeight === null || pageHeight === '') {
707
- // return params.height - 20
708
- // }
709
- }
710
-
711
- function customButtonClick(originalValue, formatValue, row, column, rowIndex, button) {
712
- const otherParams = {
713
- originalValue,
714
- formatValue,
715
- row,
716
- column,
717
- rowIndex,
718
- button
719
- }
720
- const buttonConfigure = operationButtonObj.value[eventName.value]
721
- getHandleEvent(null, pageContext, buttonConfigure, 'click', otherParams)
722
- }
723
-
724
- // 关闭浏览器页签时刷新列表
725
- function recieveMessage(event) {
726
- if (event.data === 'close_open_win') {
727
- gridRef.value.refresh()
728
- }
729
- }
730
-
731
- // 选择记录时
732
- function select(selection, row) {
733
- selections.value = selection
734
- const params = {
735
- selection,
736
- row
737
- }
738
- gridSelectRecord(pageContext, configure, params)
739
- }
740
-
741
- function selectAll(selection) {
742
- selections.value = selection
743
- const params = {
744
- selection
745
- }
746
- gridSelectAllRecords(pageContext, configure, params)
747
- }
748
-
749
- function selectionChange(newSelection) {
750
- const params = {
751
- newSelection
752
- }
753
- gridSelectionChange(pageContext, configure, params)
754
- }
755
-
756
- function cellClickEvent(row: any, column: any, cell: HTMLTableCellElement, event: Event) {
757
- const params = {
758
- row,
759
- column,
760
- cell,
761
- event
762
- }
763
- cellClick(pageContext, configure, params)
764
- }
765
-
766
- function cellDblClickEvent(row: any, column: any, cell: HTMLTableCellElement, event: Event) {
767
- const params = {
768
- row,
769
- column,
770
- cell,
771
- event
772
- }
773
- cellDblClick(pageContext, configure, params)
774
- }
775
-
776
- function rowClickEvent(row: any, column: any, event: Event) {
777
- const params = {
778
- row,
779
- column,
780
- event
781
- }
782
- rowClick(pageContext, configure, params)
783
- }
784
-
785
- function rowDblClickEvent(row: any, column: any, event: Event) {
786
- const params = {
787
- row,
788
- column,
789
- event
790
- }
791
- rowDblClick(pageContext, configure, params)
792
- }
793
-
794
- function headerClickEvent(column: any, event: Event) {
795
- const params = {
796
- column,
797
- event
798
- }
799
- headerClick(pageContext, configure, params)
800
- }
801
-
802
- // api:子表保存时验证子表记录必填
803
- function validatorSunTableListData() {
804
- return gridRef.value.validatorSunTableListData()
805
- }
806
-
807
- // api:列表组件内容刷新后的回调事件
808
- function clearSelections() {
809
- selections.value = []
810
- }
811
-
812
- // api:刷新列表数据
813
- function refresh() {
814
- return gridRef.value.refresh()
815
- }
816
-
817
- // api:行编辑新建记录
818
- function createRow() {
819
- return gridRef.value.createRow(listCode)
820
- }
821
-
822
- // api:获得选中记录集合
823
- function getSelections() {
824
- return selections.value
825
- }
826
-
827
- // api:获得选中记录id集合
828
- function getSelectionIds() {
829
- const dataIds = []
830
- if (selections.value !== null) {
831
- selections.value.forEach((item) => {
832
- dataIds.push(item.id ? item.id : item.ID ? item.ID : null)
833
- })
834
- }
835
- return dataIds
836
- }
837
-
838
- // api:获得表格配置
839
- function getTableConfigure() {
840
- return configure
841
- }
842
-
843
- // api: 是否是执行了删除操作
844
- function isDeleteChange(value) {
845
- gridRef.value.isDeleteChange(value)
846
- }
847
-
848
- defineExpose({
849
- refresh,
850
- createRow,
851
- clearSelections,
852
- getSelections,
853
- getSelectionIds,
854
- getTableConfigure,
855
- isDeleteChange,
856
- validatorSunTableListData
857
- })
858
- </script>