super-page-runtime 1.0.14 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/dist/es/components/index.d.ts +5 -0
  2. package/dist/es/components/index.js +8 -0
  3. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +1 -1
  4. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +1 -1
  5. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  6. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +2 -9
  7. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  9. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  10. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +3 -9
  11. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -1
  12. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -1
  13. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -1
  14. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -1
  15. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -1
  16. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -1
  17. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -1
  18. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +4 -5
  19. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +5 -5
  20. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -5
  21. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
  22. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +2 -2
  23. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +1 -5
  24. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +2 -2
  27. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +3 -3
  28. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +10 -4
  29. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  30. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +2 -2
  31. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -3
  32. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +2 -2
  33. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  34. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  37. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -5
  38. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
  39. package/dist/es/components/runtime/views/super-page.vue.d.ts +1 -1
  40. package/dist/es/components/runtime/views/super-page.vue.js +7 -8
  41. package/dist/es/components/super-page-dialog/super-page-dialog.vue.js +0 -1
  42. package/dist/es/components/wf-editor/wf-editor.css +1 -1
  43. package/dist/es/components/wf-editor/wf-editor.vue.js +2 -2
  44. package/dist/es/src/utils/charts/chart-util.js +15 -0
  45. package/dist/es/{components/runtime → src}/utils/events/event-util.d.ts +1 -1
  46. package/dist/lib/components/index.d.ts +5 -0
  47. package/dist/lib/{index.js → components/index.js} +3 -3
  48. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +1 -1
  49. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +1 -1
  50. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  51. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +2 -9
  52. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  53. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  54. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  55. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +3 -9
  56. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -1
  57. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -1
  58. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -1
  59. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -1
  60. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -1
  61. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -1
  62. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -1
  63. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +4 -5
  64. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +5 -5
  65. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -5
  66. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
  67. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +2 -2
  68. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +1 -5
  69. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
  70. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
  71. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +2 -2
  72. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +3 -3
  73. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +10 -4
  74. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  75. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +2 -2
  76. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -3
  77. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +2 -2
  78. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  79. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +2 -2
  80. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +2 -2
  81. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  82. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +5 -5
  83. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
  84. package/dist/lib/components/runtime/views/super-page.vue.d.ts +1 -1
  85. package/dist/lib/components/runtime/views/super-page.vue.js +7 -8
  86. package/dist/lib/components/super-page-dialog/super-page-dialog.vue.js +0 -1
  87. package/dist/lib/components/wf-editor/wf-editor.css +1 -1
  88. package/dist/lib/components/wf-editor/wf-editor.vue.js +2 -2
  89. package/dist/lib/src/utils/charts/chart-util.js +15 -0
  90. package/dist/lib/{components/runtime → src}/utils/events/event-util.d.ts +1 -1
  91. package/lib/components/index.js +8 -0
  92. package/package.json +3 -3
  93. package/src/utils/charts/chart-util.ts +41 -0
  94. package/src/utils/container-style-util.ts +237 -0
  95. package/src/{components/runtime/utils → utils}/events/event-util.ts +2 -3
  96. package/src/{components/runtime/utils → utils}/events/standard-event.ts +1 -1
  97. package/src/{components/runtime/utils → utils}/events/validator-util.ts +1 -1
  98. package/dist/es/components/runtime/utils/charts/chart-util.js +0 -15
  99. package/dist/es/index.d.ts +0 -5
  100. package/dist/es/index.js +0 -8
  101. package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -15
  102. package/dist/lib/index.d.ts +0 -5
  103. package/src/App.vue +0 -9
  104. package/src/components/runtime/index.ts +0 -2
  105. package/src/components/runtime/utils/assemblys-config.js +0 -294
  106. package/src/components/runtime/utils/charts/chart-util.ts +0 -37
  107. package/src/components/runtime/utils/container-style-util.ts +0 -223
  108. package/src/components/runtime/views/assemblys/button/button/button-runtime.vue +0 -46
  109. package/src/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +0 -27
  110. package/src/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +0 -85
  111. package/src/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +0 -61
  112. package/src/components/runtime/views/assemblys/chart/common/common-attr-assistant.vue +0 -32
  113. package/src/components/runtime/views/assemblys/chart/common/common-attr-base.vue +0 -60
  114. package/src/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +0 -39
  115. package/src/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +0 -104
  116. package/src/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +0 -145
  117. package/src/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +0 -119
  118. package/src/components/runtime/views/assemblys/chart/common/common-style-custom.vue +0 -28
  119. package/src/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +0 -45
  120. package/src/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +0 -78
  121. package/src/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +0 -56
  122. package/src/components/runtime/views/assemblys/chart/common/common-style-grid.vue +0 -70
  123. package/src/components/runtime/views/assemblys/chart/common/common-style-legend.vue +0 -70
  124. package/src/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +0 -140
  125. package/src/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +0 -58
  126. package/src/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +0 -125
  127. package/src/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +0 -67
  128. package/src/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +0 -57
  129. package/src/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +0 -23
  130. package/src/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +0 -209
  131. package/src/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +0 -54
  132. package/src/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +0 -57
  133. package/src/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +0 -56
  134. package/src/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +0 -58
  135. package/src/components/runtime/views/assemblys/common/common-attr-cursor.vue +0 -23
  136. package/src/components/runtime/views/assemblys/common/common-attr-size.vue +0 -54
  137. package/src/components/runtime/views/assemblys/common/common-select-table.vue +0 -287
  138. package/src/components/runtime/views/assemblys/common/common-style-background.vue +0 -46
  139. package/src/components/runtime/views/assemblys/common/common-style-border.vue +0 -37
  140. package/src/components/runtime/views/assemblys/common/common-style-custom.vue +0 -35
  141. package/src/components/runtime/views/assemblys/common/common-style-font-head.vue +0 -53
  142. package/src/components/runtime/views/assemblys/common/common-style-font.vue +0 -53
  143. package/src/components/runtime/views/assemblys/common/common-style-margin.vue +0 -34
  144. package/src/components/runtime/views/assemblys/common/common-style-padding.vue +0 -34
  145. package/src/components/runtime/views/assemblys/common/common-style-position.vue +0 -39
  146. package/src/components/runtime/views/assemblys/common/common-style-shadow.vue +0 -37
  147. package/src/components/runtime/views/assemblys/common/export-form-report-dialog.vue +0 -118
  148. package/src/components/runtime/views/assemblys/common/remove-signer-dialog.vue +0 -99
  149. package/src/components/runtime/views/assemblys/common/task-informition-dialog.vue +0 -69
  150. package/src/components/runtime/views/assemblys/common-attr-events.vue +0 -46
  151. package/src/components/runtime/views/assemblys/container/card/card-runtime.vue +0 -56
  152. package/src/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +0 -56
  153. package/src/components/runtime/views/assemblys/container/container/container-runtime.vue +0 -50
  154. package/src/components/runtime/views/assemblys/container/flex/flex-runtime.vue +0 -33
  155. package/src/components/runtime/views/assemblys/container/form/form-runtime.vue +0 -35
  156. package/src/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +0 -28
  157. package/src/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +0 -51
  158. package/src/components/runtime/views/assemblys/container/tools/tools-runtime.vue +0 -97
  159. package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +0 -110
  160. package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +0 -14
  161. package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +0 -25
  162. package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +0 -29
  163. package/src/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +0 -95
  164. package/src/components/runtime/views/assemblys/data/component/attr-header.vue +0 -69
  165. package/src/components/runtime/views/assemblys/data/component/attr-style.vue +0 -64
  166. package/src/components/runtime/views/assemblys/data/component/column-config.vue +0 -171
  167. package/src/components/runtime/views/assemblys/data/component/combinedHeader.vue +0 -96
  168. package/src/components/runtime/views/assemblys/data/component/composite-header.vue +0 -257
  169. package/src/components/runtime/views/assemblys/data/component/configuration-value.vue +0 -206
  170. package/src/components/runtime/views/assemblys/data/component/data-origin-tree.vue +0 -117
  171. package/src/components/runtime/views/assemblys/data/component/data-origin.vue +0 -260
  172. package/src/components/runtime/views/assemblys/data/component/formatting.vue +0 -200
  173. package/src/components/runtime/views/assemblys/data/component/in-parameter.vue +0 -56
  174. package/src/components/runtime/views/assemblys/data/component/querySetting.vue +0 -52
  175. package/src/components/runtime/views/assemblys/data/component/return-set-table.vue +0 -91
  176. package/src/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +0 -58
  177. package/src/components/runtime/views/assemblys/data/component/select-data-table.vue +0 -86
  178. package/src/components/runtime/views/assemblys/data/table/main-table-runtime.vue +0 -852
  179. package/src/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +0 -622
  180. package/src/components/runtime/views/assemblys/data/table/table-runtime.vue +0 -93
  181. package/src/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +0 -137
  182. package/src/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +0 -14
  183. package/src/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +0 -55
  184. package/src/components/runtime/views/assemblys/data/tree/tree-attr.vue +0 -29
  185. package/src/components/runtime/views/assemblys/data/tree/tree-design.vue +0 -114
  186. package/src/components/runtime/views/assemblys/error-attr.vue +0 -15
  187. package/src/components/runtime/views/assemblys/error-render.vue +0 -17
  188. package/src/components/runtime/views/assemblys/form/cascader/cascader-design.vue +0 -288
  189. package/src/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +0 -192
  190. package/src/components/runtime/views/assemblys/form/colors/colors-design.vue +0 -16
  191. package/src/components/runtime/views/assemblys/form/common/analytic-rule.vue +0 -148
  192. package/src/components/runtime/views/assemblys/form/common/attr-event.vue +0 -82
  193. package/src/components/runtime/views/assemblys/form/common/attr-header.vue +0 -54
  194. package/src/components/runtime/views/assemblys/form/common/attr-style.vue +0 -44
  195. package/src/components/runtime/views/assemblys/form/common/bar-code-rule.vue +0 -104
  196. package/src/components/runtime/views/assemblys/form/common/condition.vue +0 -147
  197. package/src/components/runtime/views/assemblys/form/common/data-origin.vue +0 -81
  198. package/src/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +0 -64
  199. package/src/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +0 -106
  200. package/src/components/runtime/views/assemblys/form/common/default-value-setting.vue +0 -362
  201. package/src/components/runtime/views/assemblys/form/common/dimension-input.vue +0 -68
  202. package/src/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +0 -115
  203. package/src/components/runtime/views/assemblys/form/common/formatting-label.vue +0 -81
  204. package/src/components/runtime/views/assemblys/form/common/grid-num-select.vue +0 -43
  205. package/src/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +0 -144
  206. package/src/components/runtime/views/assemblys/form/common/linkage.vue +0 -21
  207. package/src/components/runtime/views/assemblys/form/common/overall-height.vue +0 -20
  208. package/src/components/runtime/views/assemblys/form/common/overall-width.vue +0 -48
  209. package/src/components/runtime/views/assemblys/form/common/pre-suffix.vue +0 -33
  210. package/src/components/runtime/views/assemblys/form/common/rich-text.vue +0 -100
  211. package/src/components/runtime/views/assemblys/form/common/row-ul-li.vue +0 -55
  212. package/src/components/runtime/views/assemblys/form/common/setoption-table.vue +0 -86
  213. package/src/components/runtime/views/assemblys/form/common/size-input.vue +0 -65
  214. package/src/components/runtime/views/assemblys/form/common/suffixmodule.vue +0 -82
  215. package/src/components/runtime/views/assemblys/form/common/title.vue +0 -20
  216. package/src/components/runtime/views/assemblys/form/common/uploading.vue +0 -34
  217. package/src/components/runtime/views/assemblys/form/common/verification.vue +0 -79
  218. package/src/components/runtime/views/assemblys/form/common/voluntarily.vue +0 -27
  219. package/src/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +0 -81
  220. package/src/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +0 -14
  221. package/src/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +0 -14
  222. package/src/components/runtime/views/assemblys/form/custom/custom-attr.vue +0 -29
  223. package/src/components/runtime/views/assemblys/form/custom/custom-design.vue +0 -46
  224. package/src/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +0 -74
  225. package/src/components/runtime/views/assemblys/form/datetime/datetime-design.vue +0 -19
  226. package/src/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +0 -57
  227. package/src/components/runtime/views/assemblys/form/divider/divider-runtime.vue +0 -40
  228. package/src/components/runtime/views/assemblys/form/file-picture/picture-design.vue +0 -80
  229. package/src/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +0 -76
  230. package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +0 -142
  231. package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +0 -14
  232. package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +0 -14
  233. package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +0 -29
  234. package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +0 -84
  235. package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +0 -75
  236. package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +0 -13
  237. package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +0 -14
  238. package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +0 -29
  239. package/src/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +0 -66
  240. package/src/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +0 -57
  241. package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +0 -68
  242. package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +0 -14
  243. package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +0 -58
  244. package/src/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +0 -29
  245. package/src/components/runtime/views/assemblys/form/input-show/input-show-design.vue +0 -132
  246. package/src/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +0 -139
  247. package/src/components/runtime/views/assemblys/form/label/label-runtime.vue +0 -115
  248. package/src/components/runtime/views/assemblys/form/link/link-runtime.vue +0 -67
  249. package/src/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +0 -23
  250. package/src/components/runtime/views/assemblys/form/radio/radio-runtime.vue +0 -197
  251. package/src/components/runtime/views/assemblys/form/rate/rate-design.vue +0 -16
  252. package/src/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +0 -153
  253. package/src/components/runtime/views/assemblys/form/select/select-runtime.vue +0 -241
  254. package/src/components/runtime/views/assemblys/form/slider/slider-design.vue +0 -16
  255. package/src/components/runtime/views/assemblys/form/switch/switch-runtime.vue +0 -58
  256. package/src/components/runtime/views/assemblys/form/tag/tag-runtime.vue +0 -60
  257. package/src/components/runtime/views/assemblys/form/text/text-design.vue +0 -19
  258. package/src/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +0 -60
  259. package/src/components/runtime/views/assemblys/form/transfer/transfer-design.vue +0 -32
  260. package/src/components/runtime/views/assemblys/object-render.vue +0 -176
  261. package/src/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +0 -179
  262. package/src/components/runtime/views/assemblys/page/page-attr-base.vue +0 -252
  263. package/src/components/runtime/views/assemblys/page/page-attr-events.vue +0 -50
  264. package/src/components/runtime/views/assemblys/page/page-attr-style.vue +0 -25
  265. package/src/components/runtime/views/assemblys/page/page-attr.vue +0 -84
  266. package/src/components/runtime/views/assemblys/page/variable-dialog.vue +0 -242
  267. package/src/components/runtime/views/assemblys/workflow/component/combination.vue +0 -206
  268. package/src/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +0 -99
  269. package/src/components/runtime/views/assemblys/workflow/component/event-dialog.vue +0 -278
  270. package/src/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +0 -174
  271. package/src/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +0 -155
  272. package/src/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +0 -47
  273. package/src/components/runtime/views/assemblys/workflow/component/set-dialog.vue +0 -130
  274. package/src/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +0 -96
  275. package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +0 -43
  276. package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +0 -14
  277. package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +0 -27
  278. package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +0 -29
  279. package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +0 -17
  280. package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +0 -60
  281. package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +0 -14
  282. package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +0 -27
  283. package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +0 -29
  284. package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +0 -17
  285. package/src/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +0 -61
  286. package/src/components/runtime/views/render/page-view.vue +0 -80
  287. package/src/components/runtime/views/super-page copy.vue +0 -61
  288. package/src/components/runtime/views/super-page.vue +0 -662
  289. package/src/components/super-page-dialog/index.ts +0 -2
  290. package/src/components/super-page-dialog/super-page-dialog.vue +0 -267
  291. package/src/components/wf-editor/index.ts +0 -2
  292. package/src/components/wf-editor/wf-editor.vue +0 -15
  293. package/src/index.ts +0 -17
  294. package/src/main.ts +0 -11
  295. /package/dist/es/{assets → src/assets}/chart-themes/theme1.js +0 -0
  296. /package/dist/es/{assets → src/assets}/chart-themes/theme2.js +0 -0
  297. /package/dist/es/{assets → src/assets}/chart-themes/theme3.js +0 -0
  298. /package/dist/es/{components/runtime → src}/utils/api/api-util.d.ts +0 -0
  299. /package/dist/es/{components/runtime → src}/utils/api/api-util.js +0 -0
  300. /package/dist/es/{components/runtime → src}/utils/common-util.d.ts +0 -0
  301. /package/dist/es/{components/runtime → src}/utils/common-util.js +0 -0
  302. /package/dist/es/{components/runtime → src}/utils/events/event-util.js +0 -0
  303. /package/dist/es/{components/runtime → src}/utils/events/standard-event.d.ts +0 -0
  304. /package/dist/es/{components/runtime → src}/utils/events/standard-event.js +0 -0
  305. /package/dist/es/{components/runtime → src}/utils/events/validator-util.d.ts +0 -0
  306. /package/dist/es/{components/runtime → src}/utils/events/validator-util.js +0 -0
  307. /package/dist/es/{components/runtime → src}/utils/global-refs.d.ts +0 -0
  308. /package/dist/es/{components/runtime → src}/utils/global-refs.js +0 -0
  309. /package/dist/es/{components/runtime → src}/utils/interfaces/page-design-types.d.ts +0 -0
  310. /package/dist/es/{components/runtime → src}/utils/interfaces/page-design-types.js +0 -0
  311. /package/dist/es/{components/runtime → src}/utils/page-helper-util.d.ts +0 -0
  312. /package/dist/es/{components/runtime → src}/utils/page-helper-util.js +0 -0
  313. /package/dist/es/{components/runtime → src}/utils/page-init-util.d.ts +0 -0
  314. /package/dist/es/{components/runtime → src}/utils/page-init-util.js +0 -0
  315. /package/dist/es/{components/runtime → src}/utils/store-util.d.ts +0 -0
  316. /package/dist/es/{components/runtime → src}/utils/store-util.js +0 -0
  317. /package/dist/es/{components/runtime → src}/utils/store.d.ts +0 -0
  318. /package/dist/es/{components/runtime → src}/utils/store.js +0 -0
  319. /package/dist/es/{components/runtime → src}/utils/table-utils.js +0 -0
  320. /package/dist/lib/{assets → src/assets}/chart-themes/theme1.js +0 -0
  321. /package/dist/lib/{assets → src/assets}/chart-themes/theme2.js +0 -0
  322. /package/dist/lib/{assets → src/assets}/chart-themes/theme3.js +0 -0
  323. /package/dist/lib/{components/runtime → src}/utils/api/api-util.d.ts +0 -0
  324. /package/dist/lib/{components/runtime → src}/utils/api/api-util.js +0 -0
  325. /package/dist/lib/{components/runtime → src}/utils/common-util.d.ts +0 -0
  326. /package/dist/lib/{components/runtime → src}/utils/common-util.js +0 -0
  327. /package/dist/lib/{components/runtime → src}/utils/events/event-util.js +0 -0
  328. /package/dist/lib/{components/runtime → src}/utils/events/standard-event.d.ts +0 -0
  329. /package/dist/lib/{components/runtime → src}/utils/events/standard-event.js +0 -0
  330. /package/dist/lib/{components/runtime → src}/utils/events/validator-util.d.ts +0 -0
  331. /package/dist/lib/{components/runtime → src}/utils/events/validator-util.js +0 -0
  332. /package/dist/lib/{components/runtime → src}/utils/global-refs.d.ts +0 -0
  333. /package/dist/lib/{components/runtime → src}/utils/global-refs.js +0 -0
  334. /package/dist/lib/{components/runtime → src}/utils/interfaces/page-design-types.d.ts +0 -0
  335. /package/dist/lib/{components/runtime → src}/utils/interfaces/page-design-types.js +0 -0
  336. /package/dist/lib/{components/runtime → src}/utils/page-helper-util.d.ts +0 -0
  337. /package/dist/lib/{components/runtime → src}/utils/page-helper-util.js +0 -0
  338. /package/dist/lib/{components/runtime → src}/utils/page-init-util.d.ts +0 -0
  339. /package/dist/lib/{components/runtime → src}/utils/page-init-util.js +0 -0
  340. /package/dist/lib/{components/runtime → src}/utils/store-util.d.ts +0 -0
  341. /package/dist/lib/{components/runtime → src}/utils/store-util.js +0 -0
  342. /package/dist/lib/{components/runtime → src}/utils/store.d.ts +0 -0
  343. /package/dist/lib/{components/runtime → src}/utils/store.js +0 -0
  344. /package/dist/lib/{components/runtime → src}/utils/table-utils.js +0 -0
  345. /package/src/{components/runtime/utils → utils}/api/api-util.ts +0 -0
  346. /package/src/{components/runtime/utils → utils}/common-util.ts +0 -0
  347. /package/src/{components/runtime/utils → utils}/eventBus.ts +0 -0
  348. /package/src/{components/runtime/utils → utils}/events/jump-page-util.ts +0 -0
  349. /package/src/{components/runtime/utils → utils}/global-refs.ts +0 -0
  350. /package/src/{components/runtime/utils → utils}/interfaces/page-design-types.ts +0 -0
  351. /package/src/{components/runtime/utils → utils}/page-helper-util.ts +0 -0
  352. /package/src/{components/runtime/utils → utils}/page-init-util.ts +0 -0
  353. /package/src/{components/runtime/utils → utils}/page-permission-util.ts +0 -0
  354. /package/src/{components/runtime/utils → utils}/store-util.ts +0 -0
  355. /package/src/{components/runtime/utils → utils}/store.ts +0 -0
  356. /package/src/{components/runtime/utils → utils}/table-utils.ts +0 -0
@@ -1,622 +0,0 @@
1
- <template>
2
- <div>
3
- <super-grid
4
- v-if="listViewShowFlag"
5
- ref="gridRef"
6
- :url="baseURL + '/common/super-forms/sub-table'"
7
- :options="listViewOptions"
8
- :code="superGridSetting ? null : listCode"
9
- :settings="superGridSetting"
10
- @select="select"
11
- @select-all="selectAll"
12
- @selection-change="selectionChange"
13
- @cell-click="cellClickEvent"
14
- @cell-dblclick="cellDblClickEvent"
15
- @row-click="rowClickEvent"
16
- @row-dblclick="rowDblClickEvent"
17
- @header-click="headerClickEvent"
18
- @fn-prohibit-to-edit="fnProhibitToEdit"
19
- @change-grid-data="changeGridData"
20
- @reload-grid="changeInitializationSubTable"
21
- @refresMainTableFields="refresMainTableFields"
22
- @set-select-options="setSelectOptions"
23
- @change-rows-per-page="changeRowsPerpage"
24
- @new-open-grid-dialog="popupToPage"
25
- @change-form-data="changeFormData"
26
- />
27
- </div>
28
- </template>
29
- <script lang="ts" setup>
30
- import { computed, onMounted, watch, ref } from 'vue'
31
- import type { Component, PageContext } from '../../../../utils/interfaces/page-design-types'
32
- import {
33
- gridSelectRecord,
34
- setTableEvents,
35
- gridSelectAllRecords,
36
- gridSelectionChange,
37
- cellClick,
38
- cellDblClick,
39
- rowClick,
40
- rowDblClick,
41
- headerClick
42
- } from '../../../../utils/events/event-util'
43
- import { getVariableValue, setVariableValue } from '../../../../utils/page-helper-util'
44
- import { getFormModelFields } from '../../../../utils/page-init-util'
45
- // import eventBus from '../../../../utils/eventBus'
46
- import { popupToPage } from '../../../../utils/table-utils'
47
- import { getListCode } from '../../../../utils/common-util'
48
- interface MyProps {
49
- pageContext: PageContext
50
- configure: Component
51
- }
52
- const props = defineProps<MyProps>()
53
- const pageContext = props.pageContext
54
- const configure = props.configure
55
- // 表单的数据
56
- const dataModel = pageContext.entity.data
57
- // 绑定变量
58
- const prop = configure.props && configure.props.base ? configure.props.base.prop : null
59
- // 附加参数
60
- const additionalParamMap = pageContext.entity.request
61
- // 表格事件
62
- const tableEvents = configure.events
63
- // 表单子表切换每页显示多少条记录时的事件处理
64
- const subTablePageInfo = ref({})
65
- const selections = ref([])
66
- const superGridItems = pageContext.superGridItems
67
- const superGridSetting = superGridItems ? superGridItems[configure.uuid] : null
68
- console.log('superGridSetting===', superGridItems, superGridSetting)
69
-
70
- //获取默认的样式及配置
71
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {}
72
-
73
- const runtimeStyle = runtimeInfo.style
74
- const runtimeClass = runtimeInfo.class
75
-
76
- const entity: any = props.pageContext.entity ? props.pageContext.entity : {}
77
-
78
- let dynamicFields: string[] = getFormModelFields(props.pageContext, props.configure)
79
-
80
- const listViewShowFlag = ref(false)
81
- const baseURL = window['$vueApp'].config.globalProperties.baseURL
82
- const listViewOptions = ref({
83
- subTableData: null,
84
- extraParam: {},
85
- operations: {},
86
- hiddenColumns: [],
87
- pageCode: pageContext.code,
88
- pageVersion: pageContext.version,
89
- pageContext,
90
- configureObj: configure,
91
- showPageArea: false,
92
- showOverflowTooltip: !!(
93
- configure.props &&
94
- configure.props.otherSettings &&
95
- (configure.props.otherSettings.isBreakLine === undefined ||
96
- configure.props.otherSettings.isBreakLine === false)
97
- ) // 单元格内容是否换行显示
98
- })
99
-
100
- if (runtimeStyle) {
101
- listViewOptions.value['tableStyle'] = runtimeStyle
102
- }
103
- if (runtimeClass) {
104
- listViewOptions.value['tableClass'] = runtimeClass
105
- }
106
- if (
107
- (configure.props && configure.props.base && configure.props.base.subPaging === undefined) ||
108
- configure.props.base.subPaging === null ||
109
- configure.props.base.subPaging === false
110
- ) {
111
- listViewOptions.value.showPageArea = false
112
- } else {
113
- listViewOptions.value.showPageArea = true
114
- }
115
- // 获得列表的Ref对象
116
- const gridRef = ref(null)
117
- const listCode = getListCode(pageContext.code, pageContext.version, configure.uuid)
118
-
119
- // 列表设置-通用设置
120
- function currencyListViewSetting(canRrefreshSubtableData?: boolean) {
121
- if (canRrefreshSubtableData === undefined) {
122
- // 表示没有传该参数过来时,重新获得
123
- canRrefreshSubtableData = judgeInitializationSubTable()
124
- }
125
- listViewOptions.value['isFormSubTable'] = true
126
- listViewOptions.value['canRrefreshSubtableData'] = canRrefreshSubtableData
127
- listViewOptions.value['getFormData'] = getParentFormData
128
- listViewOptions.value['getGridData'] = getGridData
129
- if (!(configure.props && configure.props.base && configure.props.base.showOperation)) {
130
- let hiddenColumns = listViewOptions.value.hiddenColumns
131
- if (!hiddenColumns) {
132
- hiddenColumns = ['operation']
133
- } else {
134
- hiddenColumns.push('operation')
135
- }
136
- listViewOptions.value['hiddenColumns'] = hiddenColumns
137
- }
138
- listViewOptions.value['showOperationButton'] =
139
- configure.props && configure.props.base ? configure.props.base.showOperation : false
140
- listViewOptions.value['isPdfEditor'] = false
141
- listViewOptions.value['tableRecordMaxNum'] =
142
- configure.props && configure.props.otherSettings
143
- ? configure.props.otherSettings.tableRecordMaxNum
144
- : null
145
- // TODO: table组件的”尺寸/高度“要保留
146
- if (configure.props && configure.props.size && configure.props.size.fixHeight) {
147
- listViewOptions.value['formSetHeight'] = configure.props.size.fixHeight
148
- }
149
- // TODO: table组件的”尺寸“添加”最大高度“
150
- if (configure.props && configure.props.size && configure.props.size.maxHeight) {
151
- listViewOptions.value['formSetMaxHeight'] = configure.props.size.maxHeight
152
- }
153
- }
154
-
155
- // 是否初始化子表
156
- function judgeInitializationSubTable() {
157
- if (!configure.props || !configure.props.otherSettings) {
158
- return
159
- }
160
- // 判断时机
161
- if (
162
- configure.props.otherSettings.subtableSetting &&
163
- configure.props.otherSettings.timeToInitializeSubTable &&
164
- configure.props.otherSettings.subtableSetting.timeToInitializeSubTable.length > 0
165
- ) {
166
- let flag = false
167
- if (
168
- configure.props.otherSettings.subtableSetting.timeToInitializeSubTable.indexOf('create') !==
169
- -1
170
- ) {
171
- if (dataModel.id || dataModel.ID) {
172
- // 表示有id
173
- flag = false
174
- } else {
175
- flag = true
176
- }
177
- }
178
- if (
179
- configure.props.otherSettings.subtableSetting.timeToInitializeSubTable.indexOf('noData') !==
180
- -1
181
- ) {
182
- const tableData = dataModel[prop]
183
- if (!tableData || tableData.length <= 0) {
184
- // 表示没数据
185
- flag = true
186
- }
187
- }
188
- return flag
189
- } else {
190
- return false
191
- }
192
- }
193
-
194
- // 获得表单内容
195
- function getParentFormData() {
196
- return pageContext.entity.data
197
- }
198
-
199
- // 获得表格数据
200
- function getGridData() {
201
- return getVariableValue(entity, dynamicFields)
202
- }
203
-
204
- function changeInitializationSubTable(canRrefreshSubtableData?: boolean) {
205
- currencyListViewSetting(canRrefreshSubtableData)
206
- // TODO:是否区分设计、预览、正常解析
207
- listViewOptions.value['isPageInfo'] = false
208
- listViewOptions.value['subTableData'] = null
209
- listViewOptions.value.extraParam['subTableListViewCode'] = listCode
210
- listViewOptions.value.extraParam['subtableSetting'] =
211
- configure.props || !configure.props.otherSettings
212
- ? JSON.stringify(configure.props.otherSettings.subtableSetting)
213
- : null
214
- listViewOptions.value.extraParam['additionalParamMap'] = additionalParamMap
215
- // console.log('主表发生改变', models)
216
- listViewOptions.value.extraParam['entityMap'] = pageContext.entity.data
217
- // TODO: formViewCode没找到superGrid组件中使用的地方,后面再看
218
- // listViewOptions.value.extraParam['formViewCode'] = store.get('formViewCode')
219
- // 设置子表事件相关配置
220
- setGridDataEventOptions()
221
- // console.log('修改表单子表记录前---getElementId(widget)=', getElementId(widget))
222
- // 重新加载子表记录
223
- listViewShowFlag.value = false
224
- setTimeout(() => {
225
- // console.log('修改表单子表记录前11')
226
- listViewShowFlag.value = true
227
- setGridToStore()
228
- // console.log('修改表单子表记录后')
229
- }, 10)
230
- }
231
-
232
- // 初始化列表配置
233
- changeInitializationSubTable()
234
-
235
- // 设置子表事件相关配置
236
- function setGridDataEventOptions() {
237
- // 设置子表字段权限相关信息
238
- setSubTableValidateInfo()
239
- // console.log('fieldPermissionMap', fieldPermissionMap)
240
- // console.log('actionPermissionMap', actionPermissionMap)
241
- const tableEvents = configure.events
242
- setTableEvents(listViewOptions.value, tableEvents, pageContext, configure)
243
- const customEvents = pageContext.customEvents
244
- if (customEvents) {
245
- // 表单页面中子表自定义事件集合
246
- listViewOptions.value['eventCallBack'] = customEvents
247
- }
248
- listViewShowFlag.value = true
249
- setGridToStore()
250
- }
251
-
252
- // 设置子表字段编辑权限相关信息
253
- function setSubTableValidateInfo() {
254
- // console.log('fieldPermissionMap', fieldPermissionMap)
255
- // console.log('propName', propName)
256
- const fieldPermissionMap = pageContext.fieldPermissionMap
257
- const actionPermissionMap = pageContext.actionPermissionMap
258
- if (fieldPermissionMap && fieldPermissionMap != null) {
259
- let validateRules = fieldPermissionMap.get(prop)
260
- if (!validateRules) {
261
- const allValidateRules = fieldPermissionMap.get('all_fields')
262
- if (allValidateRules) {
263
- validateRules = [allValidateRules]
264
- }
265
- }
266
- // console.log('validateRules', validateRules)
267
- if (validateRules) {
268
- // 表示有子表行编辑验证
269
- listViewOptions.value['validateRules'] = validateRules
270
- } else {
271
- listViewOptions.value['validateRules'] = null
272
- }
273
- }
274
- if (actionPermissionMap && actionPermissionMap != null) {
275
- let actionPermission = actionPermissionMap.get(prop)
276
- if (!actionPermission) {
277
- actionPermission = actionPermissionMap.get('all_sub_tables')
278
- }
279
- listViewOptions.value['actionPermission'] = actionPermission
280
- }
281
- // 子表是否可以新增记录
282
- const subTableOperations = getOperations()
283
- // 子表操作列按钮集合
284
- listViewOptions.value['operations']['operation'] = subTableOperations
285
- listViewOptions.value['subTableCanAdd'] = isShowAdd()
286
- }
287
-
288
- function setGridToStore() {
289
- if (!pageContext.tableUuids) {
290
- pageContext.tableUuids = []
291
- }
292
- pageContext.tableUuids.push(configure.uuid)
293
- // TODO: 数据表子表集合如何获得??选择服务时没有对应的数据表
294
- // if(!pageContext.tableNames){
295
- // pageContext.tableNames = []
296
- // }
297
- // pageContext.tableNames.push(configure.props.dataOrigin.)
298
- }
299
- // 获得子表操作列按钮
300
- function getOperations() {
301
- let operations = []
302
- if (isShowAdd()) {
303
- // 新增按钮
304
- const addButton = {
305
- props: {
306
- elementType: 'el-button',
307
- icon: 'Plus',
308
- type: 'primary',
309
- circle: true,
310
- size: 'mini',
311
- permission: 'true'
312
- },
313
- onClick: addSubTableData
314
- }
315
- operations.push(addButton)
316
- // console.log('子表有创建权限')
317
- }
318
- if (isShowDelete(null, null, null, null, null, true)) {
319
- // 删除按钮
320
- const removeButton = {
321
- props: {
322
- elementType: 'el-button',
323
- icon: 'Minus',
324
- type: 'danger',
325
- circle: true,
326
- size: 'mini',
327
- permission: 'true'
328
- },
329
- onClick: removeSubTableData,
330
- isShow: isShowDelete
331
- }
332
- operations.push(removeButton)
333
- // console.log('子表有删除权限')
334
- }
335
- return operations
336
- }
337
- function getEntityId(row) {
338
- if (row && row.id) {
339
- return row.id
340
- } else if (row && row.ID) {
341
- return row.ID
342
- }
343
- }
344
- // 是否有新增权限
345
- function isShowAdd() {
346
- const fieldPermissionMap = pageContext.fieldPermissionMap
347
- const actionPermissionMap = pageContext.actionPermissionMap
348
-
349
- let canAdd = true
350
- if (fieldPermissionMap && fieldPermissionMap !== null) {
351
- const allFieldPermission = fieldPermissionMap.get('all_fields')
352
- if (
353
- typeof allFieldPermission !== 'undefined' &&
354
- allFieldPermission.canEdit === false &&
355
- (allFieldPermission.rowIndexes === undefined ||
356
- allFieldPermission.rowIndexes === null ||
357
- allFieldPermission.rowIndexes.length === 0)
358
- ) {
359
- // 表示所有字段都禁止编辑,则表示子表也不能删除
360
- canAdd = false
361
- }
362
- }
363
- if (canAdd === true && prop && actionPermissionMap && actionPermissionMap !== null) {
364
- let oneTableActionPermission = actionPermissionMap.get(prop)
365
- if (!oneTableActionPermission) {
366
- oneTableActionPermission = actionPermissionMap.get('all_sub_tables')
367
- }
368
- if (
369
- oneTableActionPermission &&
370
- oneTableActionPermission.canAdd !== undefined &&
371
- oneTableActionPermission.canAdd === false
372
- ) {
373
- canAdd = false
374
- }
375
- }
376
- return canAdd
377
- }
378
-
379
- // 是否有删除权限
380
- function isShowDelete(originalValue, formatValue, row, column, rowIndex, isFormJudge) {
381
- // console.log('isShowDelete', originalValue, formatValue, row, column, rowIndex)
382
- const fieldPermissionMap = pageContext.fieldPermissionMap
383
- const actionPermissionMap = pageContext.actionPermissionMap
384
- let canDelete = true
385
- if (fieldPermissionMap && fieldPermissionMap !== null) {
386
- const allFieldPermission = fieldPermissionMap.get('all_fields')
387
- if (
388
- typeof allFieldPermission !== 'undefined' &&
389
- allFieldPermission.canEdit === false &&
390
- (allFieldPermission.rowIndexes === undefined ||
391
- allFieldPermission.rowIndexes === null ||
392
- allFieldPermission.rowIndexes.length === 0)
393
- ) {
394
- // 表示所有字段都禁止编辑,则表示子表也不能删除
395
- canDelete = false
396
- }
397
- }
398
- if (canDelete === true && prop && actionPermissionMap && actionPermissionMap !== null) {
399
- let oneTableActionPermission = actionPermissionMap.get(prop)
400
- if (!oneTableActionPermission) {
401
- oneTableActionPermission = actionPermissionMap.get('all_sub_tables')
402
- }
403
- if (
404
- oneTableActionPermission &&
405
- oneTableActionPermission.canDelete !== undefined &&
406
- oneTableActionPermission.canDelete === false
407
- ) {
408
- canDelete = false
409
- }
410
- if (
411
- oneTableActionPermission &&
412
- oneTableActionPermission.canDelete !== undefined &&
413
- oneTableActionPermission.canDelete === true
414
- ) {
415
- if (oneTableActionPermission.deleteRowIndexes) {
416
- // 表示配置了可删除行记录
417
- if (oneTableActionPermission.deleteRowIndexes.length > 0) {
418
- if (isFormJudge) {
419
- canDelete = true
420
- } else {
421
- // 表示配置了可删除,并且有满足条件的行记录,那就判断是否是当前行
422
- const rowId = getEntityId(row)
423
- if (
424
- rowId !== undefined &&
425
- oneTableActionPermission.deleteRowIndexes.indexOf(rowId) >= 0
426
- ) {
427
- canDelete = true
428
- } else {
429
- canDelete = false
430
- }
431
- }
432
- } else {
433
- // 表示没有配置行删除获取没有符合执行条件的记录,直接返回false
434
- canDelete = false
435
- }
436
- }
437
- }
438
- }
439
- // console.log('canDelete', canDelete)
440
- return canDelete
441
- }
442
- function addSubTableData(originalValue, formatValue, row, column, rowIndex) {
443
- gridRef.value.createRow(listCode)
444
- }
445
- function removeSubTableData(originalValue, formatValue, row, column, rowIndex) {
446
- gridRef.value.deleteRow(rowIndex, listCode, false)
447
- }
448
-
449
- function changeGridData(gridData) {
450
- setVariableValue(entity, dynamicFields, gridData)
451
- }
452
-
453
- // 捕获改变列表每页显示多少条记录事件处理
454
- function changeRowsPerpage(pageSize) {
455
- console.log('表单组件--Item--changeRowsPerpage==pageSize=', pageSize)
456
- if (!pageContext.subTablePageInfo) {
457
- pageContext.subTablePageInfo = {}
458
- }
459
- pageContext.subTablePageInfo[prop] = { pageSize: pageSize }
460
- }
461
-
462
- // 下拉选集合初始化事件
463
- function setSelectOptions(valueSetOptions) {
464
- const propName = valueSetOptions.key
465
- const options = valueSetOptions.value
466
- if (!pageContext.selectOptions) {
467
- pageContext.selectOptions = {}
468
- }
469
- pageContext.selectOptions[propName] = options
470
- }
471
-
472
- // 设置禁止编辑字段
473
- function fnProhibitToEdit(data) {
474
- const myPageCode = pageContext.code
475
- const eventPageInfo = myPageCode + '_'
476
- window['$eventBus'].$emit(eventPageInfo + 'prohibit-edit', data)
477
- }
478
-
479
- // 更新主表字段的值
480
- function refresMainTableFields(entity) {
481
- const dataModel = pageContext.entity.data
482
- if (entity) {
483
- for (const key in entity) {
484
- dataModel[key] = entity[key]
485
- }
486
- }
487
- }
488
-
489
- // 选择记录时
490
- function select(selection, row) {
491
- selections.value = selection
492
- const params = {
493
- selection,
494
- row
495
- }
496
- gridSelectRecord(pageContext, configure, params)
497
- }
498
-
499
- function selectAll(selection) {
500
- selections.value = selection
501
- const params = {
502
- selection
503
- }
504
- gridSelectAllRecords(pageContext, configure, params)
505
- }
506
-
507
- function selectionChange(newSelection) {
508
- const params = {
509
- newSelection
510
- }
511
- gridSelectionChange(pageContext, configure, params)
512
- }
513
-
514
- function cellClickEvent(row: any, column: any, cell: HTMLTableCellElement, event: Event) {
515
- const params = {
516
- row,
517
- column,
518
- cell,
519
- event
520
- }
521
- cellClick(pageContext, configure, params)
522
- }
523
-
524
- function cellDblClickEvent(row: any, column: any, cell: HTMLTableCellElement, event: Event) {
525
- const params = {
526
- row,
527
- column,
528
- cell,
529
- event
530
- }
531
- cellDblClick(pageContext, configure, params)
532
- }
533
-
534
- function rowClickEvent(row: any, column: any, event: Event) {
535
- const params = {
536
- row,
537
- column,
538
- event
539
- }
540
- rowClick(pageContext, configure, params)
541
- }
542
-
543
- function rowDblClickEvent(row: any, column: any, event: Event) {
544
- const params = {
545
- row,
546
- column,
547
- event
548
- }
549
- rowDblClick(pageContext, configure, params)
550
- }
551
-
552
- function headerClickEvent(column: any, event: Event) {
553
- const params = {
554
- column,
555
- event
556
- }
557
- headerClick(pageContext, configure, params)
558
- }
559
-
560
- // TODO: pageModel更新如何更新
561
- function changeFormData(formData) {
562
- pageContext.entity.data = formData
563
- }
564
-
565
- // api:子表保存时验证子表记录必填
566
- function validatorSunTableListData() {
567
- return gridRef.value.validatorSunTableListData()
568
- }
569
-
570
- // api:行编辑新建记录
571
- function createRow() {
572
- return gridRef.value.createRow(listCode)
573
- }
574
- // api:获得选中记录集合
575
- function getSelections() {
576
- return selections.value
577
- }
578
-
579
- // api:获得选中记录id集合
580
- function getSelectionIds() {
581
- const dataIds = []
582
- if (selections.value !== null) {
583
- selections.value.forEach((item) => {
584
- dataIds.push(item.id ? item.id : item.ID ? item.ID : null)
585
- })
586
- }
587
- return dataIds
588
- }
589
- // api:列表组件内容刷新后的回调事件
590
- function clearSelections() {
591
- selections.value = []
592
- }
593
- // api:获得表格配置
594
- function getTableConfigure() {
595
- return configure
596
- }
597
-
598
- /**
599
- *api: 获取值
600
- */
601
- function getValue() {
602
- return getVariableValue(entity, dynamicFields)
603
- }
604
-
605
- /**
606
- * api:设置值
607
- */
608
- function setValue(value: any) {
609
- return setVariableValue(entity, dynamicFields, value)
610
- }
611
-
612
- defineExpose({
613
- createRow,
614
- getSelections,
615
- getSelectionIds,
616
- clearSelections,
617
- getTableConfigure,
618
- validatorSunTableListData,
619
- getValue,
620
- setValue
621
- })
622
- </script>
@@ -1,93 +0,0 @@
1
- <template>
2
- <div>
3
- <SubTable
4
- v-if="pageType && pageType === 'form'"
5
- ref="gridRef"
6
- :pageContext="pageContext"
7
- :configure="configure"
8
- />
9
- <MainTable v-else ref="gridRef" :pageContext="pageContext" :configure="tableConfigure" />
10
- </div>
11
- </template>
12
- <script lang="ts" setup>
13
- import { SuperIcon } from 'agilebuilder-ui'
14
- import { computed, onMounted, watch, ref } from 'vue'
15
- import { Component, PageContext } from '../../../../utils/interfaces/page-design-types'
16
- import { getVariableValue, setVariableValue } from '../../../../utils/page-helper-util'
17
- import SubTable from './sub-table-runtime.vue'
18
- import MainTable from './main-table-runtime.vue'
19
- interface MyProps {
20
- pageContext: PageContext
21
- configure: Component
22
- }
23
- const props = defineProps<MyProps>()
24
- const pageType = props.pageContext.pageType
25
- const tableConfigure = ref(null)
26
- const tableUuid = props.configure.uuid
27
- const superGridItems = props.pageContext.superGridItems
28
- const superGridSetting = superGridItems ? superGridItems[tableUuid] : null
29
- tableConfigure.value = superGridSetting.configure ? JSON.parse(superGridSetting.configure) : null
30
-
31
- //获取默认的样式及配置
32
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {}
33
-
34
- const runtimeStyle = runtimeInfo.style
35
- const runtimeClass = runtimeInfo.class
36
- const gridRef = ref(null)
37
- // api:子表保存时验证子表记录必填
38
- function validatorSunTableListData() {
39
- if (pageType && pageType === 'form') {
40
- return gridRef.value.validatorSunTableListData()
41
- }
42
- }
43
-
44
- // api:列表组件内容刷新后的回调事件
45
- function clearSelections() {
46
- return gridRef.value.clearSelections()
47
- }
48
-
49
- // api:刷新列表数据
50
- function refresh() {
51
- if (pageType && pageType === 'list') {
52
- return gridRef.value.refresh()
53
- }
54
- }
55
-
56
- // api:行编辑新建记录
57
- function createRow() {
58
- return gridRef.value.createRow()
59
- }
60
-
61
- // api:获得选中记录集合
62
- function getSelections() {
63
- return gridRef.value.getSelections()
64
- }
65
-
66
- // api:获得选中记录id集合
67
- function getSelectionIds() {
68
- return gridRef.value.getSelectionIds()
69
- }
70
-
71
- // api:获得表格配置
72
- function getTableConfigure() {
73
- return gridRef.value.getTableConfigure()
74
- }
75
-
76
- // api: 是否是执行了删除操作
77
- function isDeleteChange(value) {
78
- if (pageType && pageType === 'list') {
79
- gridRef.value.isDeleteChange(value)
80
- }
81
- }
82
-
83
- defineExpose({
84
- refresh,
85
- createRow,
86
- clearSelections,
87
- getSelections,
88
- getSelectionIds,
89
- getTableConfigure,
90
- isDeleteChange,
91
- validatorSunTableListData
92
- })
93
- </script>