cnhis-design-vue 3.1.41-beta.4 → 3.1.41-beta.40

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 (312) hide show
  1. package/es/components/base-search/index.d.ts +293 -0
  2. package/es/components/base-search/index.js +1 -0
  3. package/es/components/base-search/src/index.vue.d.ts +294 -0
  4. package/es/components/base-search/src/index.vue.js +1 -0
  5. package/es/components/base-search/style/iconfont.ttf +0 -0
  6. package/es/components/base-search/style/index.css +1 -0
  7. package/es/components/big-table/index.d.ts +1 -0
  8. package/es/components/big-table/src/BigTable.vue.d.ts +1 -0
  9. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  10. package/es/components/big-table/style/index.css +1 -1
  11. package/es/components/button-print/index.d.ts +3 -2
  12. package/es/components/button-print/src/ButtonPrint.vue.d.ts +3 -2
  13. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  14. package/es/components/button-print/src/api.d.ts +3 -0
  15. package/es/components/button-print/src/api.js +1 -0
  16. package/es/components/button-print/src/utils/print.d.ts +1 -1
  17. package/es/components/button-print/src/utils/print.js +1 -1
  18. package/es/components/classification/index.d.ts +995 -0
  19. package/es/components/classification/index.js +1 -0
  20. package/es/components/classification/src/components/search-filter/index.vue.d.ts +373 -0
  21. package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
  22. package/es/components/classification/src/components/set-classification/index.vue.d.ts +718 -0
  23. package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
  24. package/es/components/{table-filter/src/components/table-modal/TableModal.vue.d.ts → classification/src/components/table-modal/index.vue.d.ts} +0 -42
  25. package/es/components/classification/src/components/table-modal/index.vue.js +1 -0
  26. package/es/components/classification/src/const/index.d.ts +2 -0
  27. package/es/components/classification/src/const/index.js +1 -0
  28. package/es/components/classification/src/index.vue.d.ts +996 -0
  29. package/es/components/classification/src/index.vue.js +1 -0
  30. package/es/components/classification/style/iconfont.ttf +0 -0
  31. package/es/components/classification/style/index.css +1 -0
  32. package/es/components/config-provider/index.d.ts +14 -0
  33. package/es/components/config-provider/index.js +1 -0
  34. package/es/components/config-provider/src/ConfigProvider.d.ts +14 -0
  35. package/es/components/config-provider/src/ConfigProvider.js +1 -0
  36. package/es/components/config-provider/src/interface.d.ts +18 -0
  37. package/es/components/config-provider/src/utils/index.d.ts +2 -0
  38. package/es/components/config-provider/src/utils/index.js +1 -0
  39. package/es/components/date-picker/index.d.ts +20 -0
  40. package/es/components/date-picker/index.js +1 -0
  41. package/es/components/date-picker/src/DatePicker.vue.d.ts +20 -0
  42. package/es/components/date-picker/src/DatePicker.vue.js +1 -0
  43. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  44. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  45. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -0
  46. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  47. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  48. package/es/components/fabric-chart/src/hooks/useOther.js +1 -1
  49. package/es/components/fabric-chart/src/hooks/useTop.js +1 -1
  50. package/es/components/field-set/index.d.ts +8 -0
  51. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -0
  52. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  53. package/es/components/field-set/style/index.css +1 -1
  54. package/es/components/form-config/index.d.ts +6780 -69
  55. package/es/components/form-config/src/FormConfig.vue.d.ts +6918 -206
  56. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  57. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +13 -13
  58. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
  59. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +4 -4
  60. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  61. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3423 -71
  62. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  63. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +2 -2
  64. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
  65. package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +3 -3
  66. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
  67. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +10 -10
  68. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
  69. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +6 -6
  70. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  71. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -3
  72. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  73. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +4 -2
  74. package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
  75. package/es/components/form-config/src/hooks/usePresetRenderer.d.ts +1 -1
  76. package/es/components/form-config/src/types/index.d.ts +8 -2
  77. package/es/components/form-config/src/utils/index.d.ts +4 -1
  78. package/es/components/form-config/src/utils/index.js +1 -1
  79. package/es/components/form-config/style/index.css +1 -1
  80. package/es/components/form-render/index.d.ts +13 -13
  81. package/es/components/form-render/index.js +1 -1
  82. package/es/components/form-render/src/FormRender.vue.d.ts +12 -12
  83. package/es/components/form-render/src/FormRender.vue.js +1 -1
  84. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +33 -32
  85. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  86. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  87. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  88. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  89. package/es/components/form-render/src/components/renderer/select.js +1 -1
  90. package/es/components/form-render/src/constants/index.d.ts +0 -12
  91. package/es/components/form-render/src/constants/index.js +1 -1
  92. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -6
  93. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  94. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  95. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  96. package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
  97. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  98. package/es/components/form-render/src/hooks/useFormField.d.ts +1 -0
  99. package/es/components/form-render/src/hooks/useFormField.js +1 -1
  100. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -2
  101. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  102. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  103. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
  104. package/es/components/form-render/src/types/index.d.ts +5 -3
  105. package/es/components/form-render/src/utils/dom.d.ts +2 -1
  106. package/es/components/form-render/src/utils/dom.js +1 -1
  107. package/es/components/iho-table/index.d.ts +6 -5
  108. package/es/components/iho-table/index.js +1 -1
  109. package/es/components/iho-table/src/IhoTable.vue.d.ts +6 -5
  110. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  111. package/es/components/iho-table/src/constants/index.d.ts +4 -4
  112. package/es/components/iho-table/src/constants/index.js +1 -1
  113. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
  114. package/es/components/iho-table/src/hooks/useTableTheme.d.ts +4 -0
  115. package/es/components/iho-table/src/hooks/useTableTheme.js +1 -0
  116. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  117. package/es/components/iho-table/src/plugins/{filterPlugin → filterRenderPlugin}/filter.vue.d.ts +15 -74
  118. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -0
  119. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -0
  120. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -0
  121. package/es/components/iho-table/src/plugins/index.js +1 -1
  122. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +20 -7
  123. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  124. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +102 -0
  125. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -0
  126. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/{timeRendererPlugin.d.ts → timeRendererPlugin/index.d.ts} +1 -1
  127. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -0
  128. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -1
  129. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  130. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
  131. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  132. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  133. package/es/components/iho-table/src/types/index.d.ts +20 -11
  134. package/es/components/iho-table/src/utils/index.d.ts +1 -0
  135. package/es/components/iho-table/src/utils/index.js +1 -1
  136. package/es/components/iho-table/style/index.css +1 -1
  137. package/es/components/index.css +1 -1
  138. package/es/components/index.d.ts +8 -2
  139. package/es/components/index.js +1 -1
  140. package/es/components/info-header/index.d.ts +3967 -190
  141. package/es/components/info-header/src/InfoHeader.vue.d.ts +3969 -192
  142. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  143. package/es/components/info-header/src/components/index.d.ts +3 -0
  144. package/es/components/info-header/src/components/index.js +1 -0
  145. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1842 -0
  146. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -0
  147. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1972 -0
  148. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -0
  149. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -0
  150. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -0
  151. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2796 -0
  152. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -0
  153. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +783 -0
  154. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -0
  155. package/es/components/info-header/src/constants/index.d.ts +4 -0
  156. package/es/components/info-header/src/constants/index.js +1 -0
  157. package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +4 -0
  158. package/es/components/info-header/src/hooks/useThemeOverrides.js +1 -0
  159. package/es/components/info-header/src/types/index.d.ts +43 -0
  160. package/es/components/info-header/src/types/index.js +1 -0
  161. package/es/components/info-header/style/index.css +1 -1
  162. package/es/components/keyboard/index.d.ts +3 -1
  163. package/es/components/keyboard/src/Keyboard.vue.d.ts +3 -1
  164. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  165. package/es/components/keyboard/src/constants/index.d.ts +2 -0
  166. package/es/components/keyboard/src/constants/index.js +1 -0
  167. package/es/components/keyboard/style/index.css +1 -1
  168. package/es/components/quick-search/index.d.ts +713 -0
  169. package/es/components/quick-search/index.js +1 -0
  170. package/es/components/quick-search/src/index.vue.d.ts +715 -0
  171. package/es/components/quick-search/src/index.vue.js +1 -0
  172. package/es/components/quick-search/style/index.css +1 -0
  173. package/es/components/recommend-search/index.d.ts +12 -12
  174. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +12 -12
  175. package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +2 -2
  176. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +4 -4
  177. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +5 -5
  178. package/es/components/scale-view/index.d.ts +1 -2
  179. package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -5
  180. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  181. package/es/components/scale-view/src/components/formitem/sign-com.d.ts +1 -1
  182. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
  183. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
  184. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  185. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  186. package/es/components/scale-view/src/hooks/use-component.d.ts +82 -116
  187. package/es/components/scale-view/src/utils/judge-types.js +1 -1
  188. package/es/components/scale-view/style/index.css +1 -1
  189. package/es/components/search-cascader/index.d.ts +2 -2
  190. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -2
  191. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  192. package/es/components/select-label/index.d.ts +83 -169
  193. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -53
  194. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  195. package/es/components/select-label/src/SelectLabel.vue.d.ts +83 -116
  196. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  197. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  198. package/es/components/select-label/style/iconfont.ttf +0 -0
  199. package/es/components/select-label/style/index.css +1 -1
  200. package/es/components/shortcut-setter/index.d.ts +14 -14
  201. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +14 -14
  202. package/es/components/steps-wheel/index.d.ts +2 -1
  203. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +2 -1
  204. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  205. package/es/components/steps-wheel/src/constants/index.d.ts +2 -0
  206. package/es/components/steps-wheel/src/constants/index.js +1 -0
  207. package/es/components/steps-wheel/style/index.css +1 -1
  208. package/es/components/table-filter/index.d.ts +0 -9098
  209. package/es/components/table-filter/index.js +1 -1
  210. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +3 -2
  211. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  212. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -42
  213. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  214. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +21 -49
  215. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  216. package/es/components/table-filter/src/components/render-widget/enums.d.ts +0 -8
  217. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  218. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +2 -1
  219. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  220. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  221. package/es/components/table-filter/src/hooks/export.js +1 -1
  222. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +6 -3
  223. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  224. package/es/components/table-filter/src/hooks/useMixins.d.ts +2 -55
  225. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  226. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  227. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  228. package/es/components/table-filter/src/tool/transformData.d.ts +1 -37
  229. package/es/components/table-filter/src/tool/transformData.js +1 -1
  230. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  231. package/es/components/table-filter/src/types/enums.js +1 -1
  232. package/es/components/table-filter/src/types/index.d.ts +12 -178
  233. package/es/components/time-picker/index.d.ts +18 -0
  234. package/es/components/time-picker/index.js +1 -0
  235. package/es/components/time-picker/src/TimePicker.vue.d.ts +18 -0
  236. package/es/components/time-picker/src/TimePicker.vue.js +1 -0
  237. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
  238. package/es/shared/components/no-data/NoData.vue.d.ts +5 -0
  239. package/es/shared/components/no-data/NoData.vue.js +1 -1
  240. package/es/shared/mixins/index.d.ts +1 -0
  241. package/es/shared/mixins/index.js +1 -0
  242. package/es/shared/mixins/useTheme.d.ts +3 -0
  243. package/es/shared/mixins/useTheme.js +1 -0
  244. package/es/shared/utils/index.d.ts +17 -0
  245. package/es/shared/utils/index.js +1 -1
  246. package/package.json +2 -2
  247. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +0 -1
  248. package/es/components/iho-table/src/plugins/filterPlugin/index.d.ts +0 -1
  249. package/es/components/iho-table/src/plugins/filterPlugin/index.js +0 -1
  250. package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +0 -7
  251. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +0 -1
  252. package/es/components/info-header/src/HiddenContent.vue.js +0 -1
  253. package/es/components/info-header/src/InfoEllipsis.vue.js +0 -1
  254. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +0 -3630
  255. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
  256. package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +0 -3582
  257. package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
  258. package/es/components/table-filter/src/classification/search-class-name.vue.d.ts +0 -90
  259. package/es/components/table-filter/src/classification/search-class-name.vue.js +0 -1
  260. package/es/components/table-filter/src/classification/search-professional-model.vue.d.ts +0 -1472
  261. package/es/components/table-filter/src/classification/search-professional-model.vue.js +0 -1
  262. package/es/components/table-filter/src/components/age-com/index.vue.d.ts +0 -119
  263. package/es/components/table-filter/src/components/age-com/index.vue.js +0 -1
  264. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.d.ts +0 -199
  265. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +0 -1
  266. package/es/components/table-filter/src/components/button-icon/getBtnIcon.d.ts +0 -2
  267. package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +0 -1
  268. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.d.ts +0 -90
  269. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +0 -1
  270. package/es/components/table-filter/src/components/multi-select/multi-select.vue.d.ts +0 -113
  271. package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +0 -1
  272. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.d.ts +0 -266
  273. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +0 -1
  274. package/es/components/table-filter/src/components/range-age/index.vue.d.ts +0 -248
  275. package/es/components/table-filter/src/components/range-age/index.vue.js +0 -1
  276. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.d.ts +0 -789
  277. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +0 -1
  278. package/es/components/table-filter/src/components/search-condition/fieldTypeList.d.ts +0 -18
  279. package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +0 -1
  280. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.d.ts +0 -1244
  281. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +0 -1
  282. package/es/components/table-filter/src/components/search-modal/set-classification.vue.d.ts +0 -1651
  283. package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +0 -1
  284. package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +0 -1
  285. package/es/components/table-filter/src/const/dataOptions.d.ts +0 -36
  286. package/es/components/table-filter/src/const/dataOptions.js +0 -1
  287. package/es/components/table-filter/src/const/index.d.ts +0 -5
  288. package/es/components/table-filter/src/const/index.js +0 -1
  289. package/es/components/table-filter/src/directive/preventReClick.d.ts +0 -4
  290. package/es/components/table-filter/src/directive/preventReClick.js +0 -1
  291. package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
  292. package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
  293. package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
  294. package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
  295. package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +0 -1942
  296. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
  297. package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
  298. package/es/components/table-filter/src/tool/time-domain.js +0 -1
  299. package/es/components/table-filter/src/tool/utils.d.ts +0 -4
  300. package/es/components/table-filter/src/tool/utils.js +0 -1
  301. package/es/components/table-filter/style/index.css +0 -1
  302. package/es/components/{table-filter → base-search}/src/directive/resize.d.ts +0 -0
  303. package/es/components/{table-filter → base-search}/src/directive/resize.js +0 -0
  304. package/es/components/{table-filter → base-search}/src/tool/resizeSensor.d.ts +0 -0
  305. package/es/components/{table-filter → base-search}/src/tool/resizeSensor.js +0 -0
  306. package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
  307. package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
  308. package/es/components/{iho-table/src/plugins/filterPlugin/types.js → config-provider/src/interface.js} +0 -0
  309. package/es/components/info-header/src/{HiddenContent.vue.d.ts → components/infoDescription/HiddenContent.vue.d.ts} +2 -2
  310. package/es/components/info-header/src/{InfoEllipsis.vue.d.ts → components/infoDescription/InfoEllipsis.vue.d.ts} +1 -1
  311. /package/es/components/table-filter/src/tool/{options.d.ts → baseOptions.d.ts} +0 -0
  312. /package/es/components/table-filter/src/tool/{options.js → baseOptions.js} +0 -0
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,computed as a,watch as t,onMounted as i,openBlock as n,createElementBlock as o,createElementVNode as s,Fragment as r,renderList as u,unref as c,normalizeClass as d,createCommentVNode as v,toDisplayString as f,createBlock as m,createVNode as p,withCtx as h,createTextVNode as g,withDirectives as k,vShow as b,isRef as y}from"vue";import{useMessage as C,NModal as S,NCard as _,NIcon as x,NButton as q,NForm as A,NFormItem as w,NInput as F}from"naive-ui";import{CloseOutline as j,AddOutline as I}from"@vicons/ionicons5";import R from"../../table-filter/src/hooks/useMixins.js";import V from"../../table-filter/src/hooks/useRenderWidget.js";import D from"../../table-filter/src/hooks/useAdvanced.js";import E from"../../table-filter/src/components/render-widget/index.vue.js";import"moment/locale/zh-cn";import{cloneDeep as L}from"lodash-es";import U from"../../../_virtual/plugin-vue_export-helper.js";const z={class:"quick-search-block quick-search-table"},B={class:"quick-row"},T={class:"quick-item-title"},N={class:"quick-item-col"},O={class:"svg-wrap"},P={class:"flex_right"},Q={class:"class-filter-content"},W={class:"quickSearch-content"},M=s("span",{class:"label"},"父类名称:",-1),G=["onDblclick","onClick"],J={key:0,class:"s-content"};var H=U(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:U,emit:H}){const K=e,X={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},Y=C(),{handleGetConfigApi:Z,outQuickSearchFn:$}=R(),{getDefValByRenderWidget:ee,getRenderSearchConObj:le,resetRenderWidgetValue:ae,isRender:te}=V(),{transformData:ie,getCacheDef:ne,transformParams:oe}=D(),se=l(null),re=l({classname:""});let ue=l(!1),ce=l([]),de=l([]),ve=l(!1),fe=l(""),me=a((()=>!!de.value.length&&de.value.some((e=>e.isAdd)))),pe=a((()=>(e,l="name")=>e.alias||e[l]));function he(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=le(t);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(ce.value)||[]}function ge(){var e;null==(e=se.value)||e.validate((e=>{var l;if(e)return;let a=he();a.length||(a=[]);let t=null==(l=de.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await Z(e,"requestSaveTableCondiTion",{},K.filterApiConfig))return;ue.value=!1,null==(l=se.value)||l.restoreValidation(),re.value.classname="",de.value=[],Se()}catch(e){console.log(e)}}({tableId:K.tableId||"",setting:JSON.stringify({displayCategory:t,name:re.value.classname,conObj:a}),conditionList:"[]"})}))}function ke(e){var l;const a=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{a&&a.focus()})),ve.value=!0}function be(){ve.value=!1,fe.value&&(de.value.forEach((e=>e.selected=!1)),de.value.push({disabled:!0,value:fe.value,selected:!0,isAdd:!0}),fe.value="")}function ye(e,l){!function(e,l){de.value.splice(e,1)}(e)}function Ce(){ue.value=!1}function Se(){_e(ce.value),H("clearQuickSearchConfig")}function _e(e){Array.isArray(e)&&(e.forEach((e=>{ae(e)})),$.handlerInitSearchItem(ce.value))}return t((()=>K.searchFieldList),(e=>{e&&e.length>0&&function(){let e=L(ie(K.searchFieldList)).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];ce.value=e||[],$.handlerInitSearchItem(ce.value)}()}),{immediate:!0,deep:!0}),t((()=>ce),(()=>{const e=he()||[],l=oe(e);H("getFilterParam",e,l)}),{deep:!0}),i((()=>{const e=K.quickSearchConfig;if(e&&e.length>0)return l=e,void ce.value.forEach(((e,a)=>{var t;if(te(e)){const a=l.find((l=>l.field_key===e.columnName));a&&(null==(t=a.value)?void 0:t.length)>0&&(e.value=ne(e,a.value))}}));var l;_e(ce.value)})),U({openSaveToCalss:function(){let e=he();e&&(e.length>0?ue.value=!0:Y.warning("请设置搜索条件"))},clearData:Se,onFilterSearch:function(){let e=he()||[];const l=oe(e);return H("onFilterSearch",e,l,!1),ce.value}}),(e,l)=>(n(),o("div",null,[s("div",z,[(n(!0),o(r,null,u(c(ce),(e=>(n(),o("div",{class:d(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[s("div",B,[v(" title "),s("div",T,[s("span",null,f(c(pe)(e,"title"))+"  ",1)]),v(" content "),s("div",N,[v(" 直接渲染组件 "),e.isRender?(n(),m(E,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},null,8,["cfg","modelValue","onUpdate:modelValue"])):v("v-if",!0)])])],2)))),128))]),v(" 保存到分类的弹窗 "),p(c(S),{show:c(ue),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:ge,onNegativeClick:Ce,class:"classification-modal-block"},{default:h((()=>[p(c(_),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":h((()=>[s("div",O,[p(c(x),{component:c(j),size:"24",onClick:Ce},null,8,["component"])])])),footer:h((()=>[s("div",P,[p(c(q),{onClick:Ce},{default:h((()=>[g("取消")])),_:1}),p(c(q),{type:"info",onClick:ge},{default:h((()=>[g("确认")])),_:1})])])),default:h((()=>[s("div",Q,[p(c(A),{ref_key:"formRef",ref:se,"label-placement":"left",rules:X,model:re.value},{default:h((()=>[p(c(w),{label:"筛选集名称",path:"classname"},{default:h((()=>[p(c(F),{value:re.value.classname,"onUpdate:value":l[0]||(l[0]=e=>re.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),s("div",W,[M,(n(!0),o(r,null,u(c(de),((e,l)=>(n(),o("div",{class:d(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}]),key:l,onDblclick:l=>function(e,l){l.disabled=!1,setTimeout((()=>{var l;null==(l=e.target)||l.focus()}),0)}(l,e),onClick:a=>function(e,l){e.disabled&&(de.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(n(),o("div",J,[s("span",null,f(e.value),1)])):(n(),m(c(F),{key:1,style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxLength:10},null,8,["value","onUpdate:value","disabled","onBlur"])),p(c(x),{component:c(j),class:"anticon-close",size:"20",onClick:e=>ye(l)},null,8,["component","onClick"])],42,G)))),128)),c(me)?v("v-if",!0):(n(),o(r,{key:0},[k(p(c(q),{dashed:"",icon:"plus",class:"ant-btn",onClick:ke},{default:h((()=>[p(c(x),{component:c(I),size:"20"},null,8,["component"]),g("添加分类 ")])),_:1},512),[[b,!c(ve)]]),k(p(c(F),{style:{width:"100px"},class:"edit-tag",value:c(fe),"onUpdate:value":l[1]||(l[1]=e=>y(fe)?fe.value=e:fe=e),valueModifiers:{trim:!0},onBlur:be,maxLength:10},null,8,["value"]),[[b,c(ve)]])],64))])])])),_:1})])),_:1},8,["show"])]))}}),[["__file","index.vue"]]);export{H as default};
@@ -0,0 +1 @@
1
+ .classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex;flex-wrap:wrap}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px}.quick-search-block .quick-item .quick-row{align-items:center;display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{line-height:32px;min-width:80px;padding-left:12px;text-align:right}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 12px}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block}
@@ -100,9 +100,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
100
100
  };
101
101
  }>> & {
102
102
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
103
- onSearch?: ((...args: any[]) => any) | undefined;
104
103
  onDelete?: ((...args: any[]) => any) | undefined;
105
104
  onClear?: ((...args: any[]) => any) | undefined;
105
+ onSearch?: ((...args: any[]) => any) | undefined;
106
106
  onChoose?: ((...args: any[]) => any) | undefined;
107
107
  onOpenMenu?: ((...args: any[]) => any) | undefined;
108
108
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -169,9 +169,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
169
169
  };
170
170
  }>> & {
171
171
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
172
- onSearch?: ((...args: any[]) => any) | undefined;
173
172
  onDelete?: ((...args: any[]) => any) | undefined;
174
173
  onClear?: ((...args: any[]) => any) | undefined;
174
+ onSearch?: ((...args: any[]) => any) | undefined;
175
175
  onChoose?: ((...args: any[]) => any) | undefined;
176
176
  onOpenMenu?: ((...args: any[]) => any) | undefined;
177
177
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -330,9 +330,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
330
330
  default: boolean;
331
331
  };
332
332
  }>> & {
333
- onSearch?: ((...args: any[]) => any) | undefined;
334
333
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
335
334
  onClear?: ((...args: any[]) => any) | undefined;
335
+ onSearch?: ((...args: any[]) => any) | undefined;
336
336
  onOpenMenu?: ((...args: any[]) => any) | undefined;
337
337
  onCloseMenu?: ((...args: any[]) => any) | undefined;
338
338
  }>>;
@@ -388,9 +388,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
388
388
  default: boolean;
389
389
  };
390
390
  }>> & {
391
- onSearch?: ((...args: any[]) => any) | undefined;
392
391
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
393
392
  onClear?: ((...args: any[]) => any) | undefined;
393
+ onSearch?: ((...args: any[]) => any) | undefined;
394
394
  onOpenMenu?: ((...args: any[]) => any) | undefined;
395
395
  onCloseMenu?: ((...args: any[]) => any) | undefined;
396
396
  }, {
@@ -432,9 +432,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
432
432
  };
433
433
  }>> & {
434
434
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
435
- onSearch?: ((...args: any[]) => any) | undefined;
436
435
  onDelete?: ((...args: any[]) => any) | undefined;
437
436
  onClear?: ((...args: any[]) => any) | undefined;
437
+ onSearch?: ((...args: any[]) => any) | undefined;
438
438
  onChoose?: ((...args: any[]) => any) | undefined;
439
439
  onOpenMenu?: ((...args: any[]) => any) | undefined;
440
440
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -513,9 +513,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
513
513
  };
514
514
  }>> & {
515
515
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
516
- onSearch?: ((...args: any[]) => any) | undefined;
517
516
  onDelete?: ((...args: any[]) => any) | undefined;
518
517
  onClear?: ((...args: any[]) => any) | undefined;
518
+ onSearch?: ((...args: any[]) => any) | undefined;
519
519
  onChoose?: ((...args: any[]) => any) | undefined;
520
520
  onOpenMenu?: ((...args: any[]) => any) | undefined;
521
521
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -620,9 +620,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
620
620
  default: boolean;
621
621
  };
622
622
  }>> & {
623
- onSearch?: ((...args: any[]) => any) | undefined;
624
623
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
625
624
  onClear?: ((...args: any[]) => any) | undefined;
625
+ onSearch?: ((...args: any[]) => any) | undefined;
626
626
  onOpenMenu?: ((...args: any[]) => any) | undefined;
627
627
  onCloseMenu?: ((...args: any[]) => any) | undefined;
628
628
  }>>;
@@ -678,9 +678,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
678
678
  default: boolean;
679
679
  };
680
680
  }>> & {
681
- onSearch?: ((...args: any[]) => any) | undefined;
682
681
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
683
682
  onClear?: ((...args: any[]) => any) | undefined;
683
+ onSearch?: ((...args: any[]) => any) | undefined;
684
684
  onOpenMenu?: ((...args: any[]) => any) | undefined;
685
685
  onCloseMenu?: ((...args: any[]) => any) | undefined;
686
686
  }, {
@@ -727,18 +727,18 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
727
727
  };
728
728
  }>> & {
729
729
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
730
- onSearch?: ((...args: any[]) => any) | undefined;
731
730
  onDelete?: ((...args: any[]) => any) | undefined;
732
731
  onClear?: ((...args: any[]) => any) | undefined;
732
+ onSearch?: ((...args: any[]) => any) | undefined;
733
733
  onChoose?: ((...args: any[]) => any) | undefined;
734
734
  onOpenMenu?: ((...args: any[]) => any) | undefined;
735
735
  onCloseMenu?: ((...args: any[]) => any) | undefined;
736
736
  }, {
737
737
  options: import("../../../es/shared/types").AnyObject[];
738
738
  placeholder: string;
739
+ valueKey: string;
739
740
  editPlaceholder: string;
740
741
  labelKey: string;
741
- valueKey: string;
742
742
  commonList: import("./src/types").RecommendItem[];
743
743
  recentList: import("./src/types").RecommendItem[];
744
744
  }>;
@@ -795,19 +795,19 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
795
795
  };
796
796
  }>> & {
797
797
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
798
- onSearch?: ((...args: any[]) => any) | undefined;
799
798
  onDelete?: ((...args: any[]) => any) | undefined;
800
799
  onClear?: ((...args: any[]) => any) | undefined;
800
+ onSearch?: ((...args: any[]) => any) | undefined;
801
801
  onChoose?: ((...args: any[]) => any) | undefined;
802
802
  onOpenMenu?: ((...args: any[]) => any) | undefined;
803
803
  onCloseMenu?: ((...args: any[]) => any) | undefined;
804
804
  }, {
805
805
  options: import("../../../es/shared/types").AnyObject[];
806
806
  mode: "input" | "select";
807
+ valueKey: string;
807
808
  clearable: boolean;
808
809
  editPlaceholder: string;
809
810
  labelKey: string;
810
- valueKey: string;
811
811
  commonList: import("./src/types").RecommendItem[];
812
812
  recentList: import("./src/types").RecommendItem[];
813
813
  recommendDeletable: boolean;
@@ -102,9 +102,9 @@ declare const _default: import("vue").DefineComponent<{
102
102
  };
103
103
  }>> & {
104
104
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
105
- onSearch?: ((...args: any[]) => any) | undefined;
106
105
  onDelete?: ((...args: any[]) => any) | undefined;
107
106
  onClear?: ((...args: any[]) => any) | undefined;
107
+ onSearch?: ((...args: any[]) => any) | undefined;
108
108
  onChoose?: ((...args: any[]) => any) | undefined;
109
109
  onOpenMenu?: ((...args: any[]) => any) | undefined;
110
110
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -171,9 +171,9 @@ declare const _default: import("vue").DefineComponent<{
171
171
  };
172
172
  }>> & {
173
173
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
174
- onSearch?: ((...args: any[]) => any) | undefined;
175
174
  onDelete?: ((...args: any[]) => any) | undefined;
176
175
  onClear?: ((...args: any[]) => any) | undefined;
176
+ onSearch?: ((...args: any[]) => any) | undefined;
177
177
  onChoose?: ((...args: any[]) => any) | undefined;
178
178
  onOpenMenu?: ((...args: any[]) => any) | undefined;
179
179
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -332,9 +332,9 @@ declare const _default: import("vue").DefineComponent<{
332
332
  default: boolean;
333
333
  };
334
334
  }>> & {
335
- onSearch?: ((...args: any[]) => any) | undefined;
336
335
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
337
336
  onClear?: ((...args: any[]) => any) | undefined;
337
+ onSearch?: ((...args: any[]) => any) | undefined;
338
338
  onOpenMenu?: ((...args: any[]) => any) | undefined;
339
339
  onCloseMenu?: ((...args: any[]) => any) | undefined;
340
340
  }>>;
@@ -390,9 +390,9 @@ declare const _default: import("vue").DefineComponent<{
390
390
  default: boolean;
391
391
  };
392
392
  }>> & {
393
- onSearch?: ((...args: any[]) => any) | undefined;
394
393
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
395
394
  onClear?: ((...args: any[]) => any) | undefined;
395
+ onSearch?: ((...args: any[]) => any) | undefined;
396
396
  onOpenMenu?: ((...args: any[]) => any) | undefined;
397
397
  onCloseMenu?: ((...args: any[]) => any) | undefined;
398
398
  }, {
@@ -434,9 +434,9 @@ declare const _default: import("vue").DefineComponent<{
434
434
  };
435
435
  }>> & {
436
436
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
437
- onSearch?: ((...args: any[]) => any) | undefined;
438
437
  onDelete?: ((...args: any[]) => any) | undefined;
439
438
  onClear?: ((...args: any[]) => any) | undefined;
439
+ onSearch?: ((...args: any[]) => any) | undefined;
440
440
  onChoose?: ((...args: any[]) => any) | undefined;
441
441
  onOpenMenu?: ((...args: any[]) => any) | undefined;
442
442
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -515,9 +515,9 @@ declare const _default: import("vue").DefineComponent<{
515
515
  };
516
516
  }>> & {
517
517
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
518
- onSearch?: ((...args: any[]) => any) | undefined;
519
518
  onDelete?: ((...args: any[]) => any) | undefined;
520
519
  onClear?: ((...args: any[]) => any) | undefined;
520
+ onSearch?: ((...args: any[]) => any) | undefined;
521
521
  onChoose?: ((...args: any[]) => any) | undefined;
522
522
  onOpenMenu?: ((...args: any[]) => any) | undefined;
523
523
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -622,9 +622,9 @@ declare const _default: import("vue").DefineComponent<{
622
622
  default: boolean;
623
623
  };
624
624
  }>> & {
625
- onSearch?: ((...args: any[]) => any) | undefined;
626
625
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
627
626
  onClear?: ((...args: any[]) => any) | undefined;
627
+ onSearch?: ((...args: any[]) => any) | undefined;
628
628
  onOpenMenu?: ((...args: any[]) => any) | undefined;
629
629
  onCloseMenu?: ((...args: any[]) => any) | undefined;
630
630
  }>>;
@@ -680,9 +680,9 @@ declare const _default: import("vue").DefineComponent<{
680
680
  default: boolean;
681
681
  };
682
682
  }>> & {
683
- onSearch?: ((...args: any[]) => any) | undefined;
684
683
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
685
684
  onClear?: ((...args: any[]) => any) | undefined;
685
+ onSearch?: ((...args: any[]) => any) | undefined;
686
686
  onOpenMenu?: ((...args: any[]) => any) | undefined;
687
687
  onCloseMenu?: ((...args: any[]) => any) | undefined;
688
688
  }, {
@@ -729,18 +729,18 @@ declare const _default: import("vue").DefineComponent<{
729
729
  };
730
730
  }>> & {
731
731
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
732
- onSearch?: ((...args: any[]) => any) | undefined;
733
732
  onDelete?: ((...args: any[]) => any) | undefined;
734
733
  onClear?: ((...args: any[]) => any) | undefined;
734
+ onSearch?: ((...args: any[]) => any) | undefined;
735
735
  onChoose?: ((...args: any[]) => any) | undefined;
736
736
  onOpenMenu?: ((...args: any[]) => any) | undefined;
737
737
  onCloseMenu?: ((...args: any[]) => any) | undefined;
738
738
  }, {
739
739
  options: AnyObject[];
740
740
  placeholder: string;
741
+ valueKey: string;
741
742
  editPlaceholder: string;
742
743
  labelKey: string;
743
- valueKey: string;
744
744
  commonList: RecommendItem[];
745
745
  recentList: RecommendItem[];
746
746
  }>;
@@ -797,19 +797,19 @@ declare const _default: import("vue").DefineComponent<{
797
797
  };
798
798
  }>> & {
799
799
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
800
- onSearch?: ((...args: any[]) => any) | undefined;
801
800
  onDelete?: ((...args: any[]) => any) | undefined;
802
801
  onClear?: ((...args: any[]) => any) | undefined;
802
+ onSearch?: ((...args: any[]) => any) | undefined;
803
803
  onChoose?: ((...args: any[]) => any) | undefined;
804
804
  onOpenMenu?: ((...args: any[]) => any) | undefined;
805
805
  onCloseMenu?: ((...args: any[]) => any) | undefined;
806
806
  }, {
807
807
  options: AnyObject[];
808
808
  mode: "input" | "select";
809
+ valueKey: string;
809
810
  clearable: boolean;
810
811
  editPlaceholder: string;
811
812
  labelKey: string;
812
- valueKey: string;
813
813
  commonList: RecommendItem[];
814
814
  recentList: RecommendItem[];
815
815
  recommendDeletable: boolean;
@@ -68,9 +68,9 @@ declare const _default: import("vue").DefineComponent<{
68
68
  default: boolean;
69
69
  };
70
70
  }>> & {
71
- onSearch?: ((...args: any[]) => any) | undefined;
72
71
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
73
72
  onClear?: ((...args: any[]) => any) | undefined;
73
+ onSearch?: ((...args: any[]) => any) | undefined;
74
74
  onOpenMenu?: ((...args: any[]) => any) | undefined;
75
75
  onCloseMenu?: ((...args: any[]) => any) | undefined;
76
76
  }>>;
@@ -126,9 +126,9 @@ declare const _default: import("vue").DefineComponent<{
126
126
  default: boolean;
127
127
  };
128
128
  }>> & {
129
- onSearch?: ((...args: any[]) => any) | undefined;
130
129
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
131
130
  onClear?: ((...args: any[]) => any) | undefined;
131
+ onSearch?: ((...args: any[]) => any) | undefined;
132
132
  onOpenMenu?: ((...args: any[]) => any) | undefined;
133
133
  onCloseMenu?: ((...args: any[]) => any) | undefined;
134
134
  }, {
@@ -61,9 +61,9 @@ declare const _default: import("vue").DefineComponent<{
61
61
  };
62
62
  }>> & {
63
63
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
64
- onSearch?: ((...args: any[]) => any) | undefined;
65
64
  onDelete?: ((...args: any[]) => any) | undefined;
66
65
  onClear?: ((...args: any[]) => any) | undefined;
66
+ onSearch?: ((...args: any[]) => any) | undefined;
67
67
  onChoose?: ((...args: any[]) => any) | undefined;
68
68
  onOpenMenu?: ((...args: any[]) => any) | undefined;
69
69
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -222,9 +222,9 @@ declare const _default: import("vue").DefineComponent<{
222
222
  default: boolean;
223
223
  };
224
224
  }>> & {
225
- onSearch?: ((...args: any[]) => any) | undefined;
226
225
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
227
226
  onClear?: ((...args: any[]) => any) | undefined;
227
+ onSearch?: ((...args: any[]) => any) | undefined;
228
228
  onOpenMenu?: ((...args: any[]) => any) | undefined;
229
229
  onCloseMenu?: ((...args: any[]) => any) | undefined;
230
230
  }>>;
@@ -280,9 +280,9 @@ declare const _default: import("vue").DefineComponent<{
280
280
  default: boolean;
281
281
  };
282
282
  }>> & {
283
- onSearch?: ((...args: any[]) => any) | undefined;
284
283
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
285
284
  onClear?: ((...args: any[]) => any) | undefined;
285
+ onSearch?: ((...args: any[]) => any) | undefined;
286
286
  onOpenMenu?: ((...args: any[]) => any) | undefined;
287
287
  onCloseMenu?: ((...args: any[]) => any) | undefined;
288
288
  }, {
@@ -324,9 +324,9 @@ declare const _default: import("vue").DefineComponent<{
324
324
  };
325
325
  }>> & {
326
326
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
327
- onSearch?: ((...args: any[]) => any) | undefined;
328
327
  onDelete?: ((...args: any[]) => any) | undefined;
329
328
  onClear?: ((...args: any[]) => any) | undefined;
329
+ onSearch?: ((...args: any[]) => any) | undefined;
330
330
  onChoose?: ((...args: any[]) => any) | undefined;
331
331
  onOpenMenu?: ((...args: any[]) => any) | undefined;
332
332
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -68,9 +68,9 @@ declare const _default: import("vue").DefineComponent<{
68
68
  };
69
69
  }>> & {
70
70
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
71
- onSearch?: ((...args: any[]) => any) | undefined;
72
71
  onDelete?: ((...args: any[]) => any) | undefined;
73
72
  onClear?: ((...args: any[]) => any) | undefined;
73
+ onSearch?: ((...args: any[]) => any) | undefined;
74
74
  onChoose?: ((...args: any[]) => any) | undefined;
75
75
  onOpenMenu?: ((...args: any[]) => any) | undefined;
76
76
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -175,9 +175,9 @@ declare const _default: import("vue").DefineComponent<{
175
175
  default: boolean;
176
176
  };
177
177
  }>> & {
178
- onSearch?: ((...args: any[]) => any) | undefined;
179
178
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
180
179
  onClear?: ((...args: any[]) => any) | undefined;
180
+ onSearch?: ((...args: any[]) => any) | undefined;
181
181
  onOpenMenu?: ((...args: any[]) => any) | undefined;
182
182
  onCloseMenu?: ((...args: any[]) => any) | undefined;
183
183
  }>>;
@@ -233,9 +233,9 @@ declare const _default: import("vue").DefineComponent<{
233
233
  default: boolean;
234
234
  };
235
235
  }>> & {
236
- onSearch?: ((...args: any[]) => any) | undefined;
237
236
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
238
237
  onClear?: ((...args: any[]) => any) | undefined;
238
+ onSearch?: ((...args: any[]) => any) | undefined;
239
239
  onOpenMenu?: ((...args: any[]) => any) | undefined;
240
240
  onCloseMenu?: ((...args: any[]) => any) | undefined;
241
241
  }, {
@@ -282,18 +282,18 @@ declare const _default: import("vue").DefineComponent<{
282
282
  };
283
283
  }>> & {
284
284
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
285
- onSearch?: ((...args: any[]) => any) | undefined;
286
285
  onDelete?: ((...args: any[]) => any) | undefined;
287
286
  onClear?: ((...args: any[]) => any) | undefined;
287
+ onSearch?: ((...args: any[]) => any) | undefined;
288
288
  onChoose?: ((...args: any[]) => any) | undefined;
289
289
  onOpenMenu?: ((...args: any[]) => any) | undefined;
290
290
  onCloseMenu?: ((...args: any[]) => any) | undefined;
291
291
  }, {
292
292
  options: AnyObject[];
293
293
  placeholder: string;
294
+ valueKey: string;
294
295
  editPlaceholder: string;
295
296
  labelKey: string;
296
- valueKey: string;
297
297
  commonList: RecommendItem[];
298
298
  recentList: RecommendItem[];
299
299
  }>;
@@ -315,8 +315,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
315
315
  showEvaluateCountdown: any;
316
316
  }>;
317
317
  skipCover: import("vue").ComputedRef<any>;
318
- showEvent: (formItem: any, isSubmitCallback?: any) => any;
319
- formKey: (item: any) => any;
318
+ scaleEdit: import("vue").ComputedRef<boolean>;
320
319
  initForm: (data: any) => void;
321
320
  submitMethod: () => void;
322
321
  nextLogicEvent: (choiceValue: any, formItem: any, formArray?: any[], isInit?: boolean | undefined) => void;
@@ -314,8 +314,7 @@ declare const _default: import("vue").DefineComponent<{
314
314
  showEvaluateCountdown: any;
315
315
  }>;
316
316
  skipCover: import("vue").ComputedRef<any>;
317
- showEvent: (formItem: any, isSubmitCallback?: any) => any;
318
- formKey: (item: any) => any;
317
+ scaleEdit: import("vue").ComputedRef<boolean>;
319
318
  initForm: (data: any) => void;
320
319
  submitMethod: () => void;
321
320
  nextLogicEvent: (choiceValue: any, formItem: any, formArray?: any[], isInit?: boolean | undefined) => void;
@@ -499,9 +498,6 @@ declare const _default: import("vue").DefineComponent<{
499
498
  getTotalLen: () => void;
500
499
  countdown: (startTime: any) => void;
501
500
  clearTimer: () => void;
502
- /**
503
- * wacth
504
- */
505
501
  init: () => void;
506
502
  checkType: (val: any) => string;
507
503
  diffAnswered: (form: any) => void;
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as o,ref as a,watch as t,nextTick as i,openBlock as n,createElementBlock as s,normalizeClass as l,unref as r,createCommentVNode as u,Fragment as c,createBlock as v,mergeProps as m,createElementVNode as p,normalizeStyle as d,createVNode as f,withCtx as g,renderList as y,toDisplayString as k,createTextVNode as h,resolveDynamicComponent as C,h as w}from"vue";import b from"./hooks/use-noData.js";import{getScaleViewState as S}from"./hooks/scaleview-state.js";import E from"./hooks/scaleview-props.js";import{ScaleViewComputed as _}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{handleQueryParams as T,isCollection as D,isEvaluation as O}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import x from"./components/NoData.vue.js";import I from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import P from"./components/EvaluateCountdown.vue.js";import N from"./components/EvaluatePage.vue.js";import q from"./components/AnswerParse.vue.js";import M from"./components/ScaleScore.js";import{useDialog as B,useMessage as R,NForm as K,NFormItem as V,NButton as F}from"naive-ui";import H from"../../../_virtual/plugin-vue_export-helper.js";const W=["innerHTML"],U={key:0,class:"required-text"},J={key:1,class:"evalute-label"},X=["onClick"],G={key:1,class:"footer"};var Q=H(e({__name:"ScaleView",props:E,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:E,emit:H}){const Q=e,{ScaleViewState:$}=S(),z=o($),Y=B(),Z=R(),ee=a(null),oe=a(null),{noDataState:ae,setNoData:te,resetNodata:ie}=b(),ne=T(),{showEvatip:se,isFormBoldOpen:le,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:ve,hasScore:me,isPreviewScale:pe,showEvaluateEntry:de,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:ke,propsConfig:he,evaluatePageProps:Ce,evaluateCountdownProps:we,skipCover:be,showEvent:Se,formKey:Ee}=_(Q,z,{query:ne}),{initForm:_e}=A(Q,z,H,{query:ne}),{submitMethod:Ae}=j(Q,z,H,{query:ne}),{nextLogicEvent:je,handleDynamicDataRelation:Te}=L(Q,z);(()=>{let{id:e}=ne;e&&(z.shareId=e)})();const De=e=>{try{ie(),_e(e)}catch(e){console.log(e,"--error"),z.spinning=!1,z.hasFrontAddress=!1,te(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};t((()=>Q.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&De(e):e.guage_id&&De(e)}),{immediate:!0}),t((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;z.form={},z.formArray=[];const o=JSON.parse(JSON.stringify(e));i((()=>{_e(o)}))}),{immediate:!0});const Oe=e=>{z.showEvaluateSettingWrap=!1,z.showEvaluateCountdown=!!e,H("startWriteScale")},Le=()=>{console.log("----closeEvaluateCountdown"),z.showEvaluateCountdown=!1,pe.value||(z.banSubmit=!0,Ae(),Y.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>{}}))},xe=e=>{Y.warning({title:"提示",content:()=>w("div",{class:"evatip-container"},[w("span","答案解析:"),w("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Ie=(e,o,a)=>{console.log(e,"--val");let{choiceObj:t,isSetObj:i}=a||{};switch(o.type.includes("SELECT")||(z.form[o.val_key]=e),o.type){case"SELECT":case"EVALUATE_SELECT":let{value:a,list:n=[]}=e;z.form[o.val_key]=a,je(e,o,z.formArray),Te(n,o,z.formArray);break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(z.choiceComObj[o.val_key]=t),je(e,o,z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":je(e,o,z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":z.submitForm[o.val_key]=e}},Pe=(e,o)=>{console.log(o),z.form[o.val_key]=e},Ne=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const o=e||[],a=[],t=[];return o.forEach((e=>{t.push(e),a.push(e.labelName)})),z.labelSelectedList=o,{labelStr:a.join(","),labels:t}},qe=()=>{var e;if(!z.formArray.find((e=>O(e.type))))return void Me("确认要提交吗?");let{evaluateResultSetting:o}=z.config;if(!o||!Object.keys(o).length&&!de.value)return void Me("确认要结束测评吗?");if("formIframe"==Q.openType&&de.value)return void H("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:o,totalLen:t}=e;o<t?a="存在未作答的题目,确定要提前结束测评吗?":!(null==z?void 0:z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}Me(a)},Me=e=>{Y.warning({title:"温馨提示",content:()=>w("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Be()},onNegativeClick(){}})},Be=()=>{var e;null==(e=oe.value)||e.validate((e=>{var o;if(e){console.log(e);let a=(null==(o=e[0])?void 0:o[0])||{},t=a.field,i=a.message,n=z.formArray.find((e=>e.databaseTitle===t));return n&&(t=n.title),Z.error(t+i),!1}Ae()}))},Re=()=>{H("onCloseSetting")};return E({getScaleData:()=>({...z}),onSubmit:qe,cancel:Re}),(e,o)=>(n(),s("div",{class:l(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),z.spinning||z.hasFrontAddress?u("v-if",!0):(n(),s(c,{key:0},[r(ae).noData?(n(),v(x,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),s(c,{key:1},[r(de)&&!r(be)?(n(),v(N,m({key:0},r(Ce),{onWriteGuage:Oe}),null,16)):(n(),s(c,{key:1},[r(fe)?(n(),v(P,m({key:0,ref_key:"countdownDom",ref:ee},r(we),{onCloseEvaluateCountdown:Le}),null,16)):u("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:d(r(re))},[r(me)?(n(),v(r(M),{key:0,config:z.config,maxScore:z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(K),{ref_key:"formRef",ref:oe,model:z.form,rules:z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),s(c,null,y(z.formArray,((e,o)=>(n(),s(c,{key:(e.id||e.seq)+o},[r(ce)(e)?(n(),v(r(V),{key:0,path:e.val_key,"show-label":!r(D)(e.type)},{label:g((()=>[p("span",{class:l({"scale-label-required":r(le)(e)}),innerHTML:r(ve)(e)},null,10,W),r(le)(e)?(n(),s("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),s("span",J,k(r(ye)(e)),1)):u("v-if",!0),r(se)(e)?(n(),s("span",{key:2,class:"evalute-tip",onClick:o=>(async e=>{var o;if(z.evatipMap[e.id])return void xe(z.evatipMap[e.id]);let a="getSubjectAnswer";const t=(null==(o=Q.scaleApiConfig)?void 0:o[a])||null;if(!t||"function"!=typeof t)return void Z.error(`${a} Is not a function`);let i=await t(e.id);i&&(z.evatipMap[e.id]||(z.evatipMap[e.id]=i,xe(i)))})(e)},[f(r(I),{"icon-class":"a-xitongtubiaotishi"}),h(" 查看提示 ")],8,X)):u("v-if",!0)])),default:g((()=>[(n(),v(C(e.renderCom),m(r(he)(e,o),{key:(e.id||e.seq)+o,onScaleChange:Ie,onOnChange:o=>((e,o)=>{z.form[o.val_key]=Ne(e)})(o,e),onVodFileList:Pe}),null,16,["onOnChange"])),r(ke)(e)?(n(),v(q,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(n(),s("div",G,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(n(),v(r(F),{key:0,onClick:Re},{default:g((()=>[h("取消")])),_:1})):u("v-if",!0),Q.isLock?u("v-if",!0):(n(),v(r(F),{key:1,onClick:qe,disabled:z.banSubmit,type:"primary"},{default:g((()=>[h("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{Q as default};
1
+ import{defineComponent as e,reactive as o,ref as a,watch as t,nextTick as i,openBlock as n,createElementBlock as s,normalizeClass as l,unref as r,createCommentVNode as u,Fragment as c,createBlock as m,mergeProps as v,createElementVNode as p,normalizeStyle as d,createVNode as f,withCtx as g,renderList as y,toDisplayString as k,createTextVNode as h,resolveDynamicComponent as C,h as w}from"vue";import b from"./hooks/use-noData.js";import{getScaleViewState as S}from"./hooks/scaleview-state.js";import E from"./hooks/scaleview-props.js";import{ScaleViewComputed as _}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{handleQueryParams as T,isCollection as D,isEvaluation as O}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import x from"./components/NoData.vue.js";import I from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import P from"./components/EvaluateCountdown.vue.js";import N from"./components/EvaluatePage.vue.js";import q from"./components/AnswerParse.vue.js";import M from"./components/ScaleScore.js";import{useDialog as B,useMessage as R,NForm as V,NFormItem as F,NButton as K}from"naive-ui";import H from"../../../_virtual/plugin-vue_export-helper.js";const W=["innerHTML"],U={key:0,class:"required-text"},J={key:1,class:"evalute-label"},X=["onClick"],G={key:1,class:"footer"};var Q=H(e({__name:"ScaleView",props:E,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:E,emit:H}){const Q=e,{ScaleViewState:$}=S(),z=o($),Y=B(),Z=R(),ee=a(null),oe=a(null),{noDataState:ae,setNoData:te,resetNodata:ie}=b(),ne=T(),{showEvatip:se,isFormBoldOpen:le,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:me,hasScore:ve,isPreviewScale:pe,showEvaluateEntry:de,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:ke,propsConfig:he,evaluatePageProps:Ce,evaluateCountdownProps:we,skipCover:be,scaleEdit:Se}=_(Q,z,{query:ne}),{initForm:Ee}=A(Q,z,H,{query:ne}),{submitMethod:_e}=j(Q,z,H,{query:ne}),{nextLogicEvent:Ae,handleDynamicDataRelation:je}=L(Q,z);(()=>{let{id:e}=ne;e&&(z.shareId=e)})();const Te=e=>{try{ie(),Ee(e)}catch(e){console.log(e,"--error"),z.spinning=!1,z.hasFrontAddress=!1,te(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};t((()=>Q.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),t((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;z.form={},z.formArray=[];const o=JSON.parse(JSON.stringify(e));i((()=>{Ee(o)}))}),{immediate:!0});const De=e=>{z.showEvaluateSettingWrap=!1,z.showEvaluateCountdown=!!e,H("startWriteScale")},Oe=()=>{console.log("----closeEvaluateCountdown"),z.showEvaluateCountdown=!1,pe.value||(z.banSubmit=!0,_e(),Y.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>{}}))},Le=e=>{Y.warning({title:"提示",content:()=>w("div",{class:"evatip-container"},[w("span","答案解析:"),w("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},xe=(e,o,a)=>{console.log(e,"--val");let{choiceObj:t,isSetObj:i}=a||{};switch(o.type.includes("SELECT")||(z.form[o.val_key]=e),o.type){case"SELECT":case"EVALUATE_SELECT":let{value:a,list:n=[]}=e;z.form[o.val_key]=a,Ae(e,o,z.formArray),je(n,o,z.formArray);break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(z.choiceComObj[o.val_key]=t),Ae(e,o,z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":Ae(e,o,z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":z.submitForm[o.val_key]=e}},Ie=(e,o)=>{console.log(o),z.form[o.val_key]=e},Pe=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const o=e||[],a=[],t=[];return o.forEach((e=>{t.push(e),a.push(e.labelName)})),z.labelSelectedList=o,{labelStr:a.join(","),labels:t}},Ne=()=>{var e;if(!z.formArray.find((e=>O(e.type))))return void qe("确认要提交吗?");let{evaluateResultSetting:o}=z.config;if(!o||!Object.keys(o).length&&!de.value||Se.value)return void qe("确认要结束测评吗?");if("formIframe"==Q.openType&&de.value)return void H("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:o,totalLen:t}=e;o<t?a="存在未作答的题目,确定要提前结束测评吗?":!(null==z?void 0:z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}qe(a)},qe=e=>{Y.warning({title:"温馨提示",content:()=>w("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Me()},onNegativeClick(){}})},Me=()=>{var e;null==(e=oe.value)||e.validate((e=>{var o;if(e){console.log(e);let a=(null==(o=e[0])?void 0:o[0])||{},t=a.field,i=a.message,n=z.formArray.find((e=>e.databaseTitle===t));return n&&(t=n.title),Z.error(t+i),!1}_e()}))},Be=()=>{H("onCloseSetting")};return E({getScaleData:()=>({...z}),onSubmit:Ne,cancel:Be}),(e,o)=>(n(),s("div",{class:l(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),z.spinning||z.hasFrontAddress?u("v-if",!0):(n(),s(c,{key:0},[r(ae).noData?(n(),m(x,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),s(c,{key:1},[r(de)&&!r(be)?(n(),m(N,v({key:0},r(Ce),{onWriteGuage:De}),null,16)):(n(),s(c,{key:1},[r(fe)?(n(),m(P,v({key:0,ref_key:"countdownDom",ref:ee},r(we),{onCloseEvaluateCountdown:Oe}),null,16)):u("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:d(r(re))},[r(ve)?(n(),m(r(M),{key:0,config:z.config,maxScore:z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(V),{ref_key:"formRef",ref:oe,model:z.form,rules:z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),s(c,null,y(z.formArray,((e,o)=>(n(),s(c,{key:(e.id||e.seq)+o},[r(ce)(e)?(n(),m(r(F),{key:0,path:e.val_key,"show-label":!r(D)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(le)(e)}),innerHTML:r(me)(e)},null,10,W),r(le)(e)?(n(),s("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),s("span",J,k(r(ye)(e)),1)):u("v-if",!0),r(se)(e)?(n(),s("span",{key:2,class:"evalute-tip",onClick:o=>(async e=>{var o;if(z.evatipMap[e.id])return void Le(z.evatipMap[e.id]);let a="getSubjectAnswer";const t=(null==(o=Q.scaleApiConfig)?void 0:o[a])||null;if(!t||"function"!=typeof t)return void Z.error(`${a} Is not a function`);let i=await t(e.id);i&&(z.evatipMap[e.id]||(z.evatipMap[e.id]=i,Le(i)))})(e)},[f(r(I),{"icon-class":"a-xitongtubiaotishi"}),h(" 查看提示 ")],8,X)):u("v-if",!0)])),default:g((()=>[(n(),m(C(e.renderCom),v(r(he)(e,o),{key:(e.id||e.seq)+o,onScaleChange:xe,onOnChange:o=>((e,o)=>{z.form[o.val_key]=Pe(e)})(o,e),onVodFileList:Ie}),null,16,["onOnChange"])),r(ke)(e)?(n(),m(q,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(n(),s("div",G,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(n(),m(r(K),{key:0,onClick:Be},{default:g((()=>[h("取消")])),_:1})):u("v-if",!0),Q.isLock?u("v-if",!0):(n(),m(r(K),{key:1,onClick:Ne,disabled:z.banSubmit,type:"primary"},{default:g((()=>[h("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{Q as default};
@@ -55,8 +55,8 @@ declare const _default: import("vue").DefineComponent<{
55
55
  }>> & {}, {
56
56
  height: number;
57
57
  width: number;
58
- lineWidth: number;
59
58
  lineColor: string;
59
+ lineWidth: number;
60
60
  bgColor: string;
61
61
  isCrop: boolean;
62
62
  }>;
@@ -79,8 +79,8 @@ declare const _default: import("vue").DefineComponent<{
79
79
  required: false;
80
80
  };
81
81
  }>>, {
82
- effect: string;
83
82
  placement: string;
83
+ effect: string;
84
84
  tooltipTitle: string | number;
85
85
  isAlias: boolean;
86
86
  }>;
@@ -41,4 +41,5 @@ export declare const ScaleViewComputed: (props: any, state: any, config: any) =>
41
41
  showEvaluateCountdown: any;
42
42
  }>;
43
43
  skipCover: import("vue").ComputedRef<any>;
44
+ scaleEdit: import("vue").ComputedRef<boolean>;
44
45
  };
@@ -1 +1 @@
1
- import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import a from"xe-utils";import n from"moment";import{componentMapStr as o}from"./use-component.js";const i=(i,l,r)=>{const{query:s}=r,u=(new Date).getTime(),c=e((()=>1==(null==s?void 0:s.formBoldOpen))),v=e((()=>e=>{var a;return!!t(e.type)&&(1==(null==s?void 0:s.evatip)||1==(null==(a=i.params)?void 0:a.evatip))})),d=e((()=>{var e;return(null==(e=l.config)?void 0:e.evaluateResultSetting)||{}})),m=e((()=>{const{evaluateTime:e}=d.value;return+e})),p=e((()=>{var e;return null==(e=d.value)?void 0:e.evaluateStartTime})),f=e((()=>{const e=new Date(p.value);return!!a.isValidDate(e)&&e})),g=e((()=>{if(!p.value||!m.value)return!1;if(!f.value)return!1;const e=n(p.value).add(m.value,"minutes").valueOf();return u>=e})),h=e((()=>{const e=f.value;if(!e)return!1;const t=n(e).valueOf();return u<t})),C=e((()=>e=>{const t=e.required;return i.styleSetting&&Object.keys(i.styleSetting).length&&"formBoldOpen"in i.styleSetting?t&&i.styleSetting.formBoldOpen:t&&c.value})),S=e((()=>{let e=l.fontSize;if(!e||"S"===e)return null;e={L:"large",M:"medium",XS:"extrasmall"}[e];const t=e&&(null==i?void 0:i.fontSizeObj[e])||1,a=Math.floor(100/t*1e4)/1e4;return{width:`${a}%`,height:`${a}%`,transform:`scale(${t})`}})),w=e((()=>!("customList"==i.type&&!i.noBtn)&&!(!i.noBtn&&!i.hideBtn))),y=e((()=>e=>q(e))),L=e((()=>e=>{var a;const{type:n}=e||{},o=!1===(null==(a=l.config)?void 0:a.autoQuestionNumber)?e.showTitle:`${e.softcode}、${e.showTitle}`;if(!t(n))return o;return`${o}&nbsp;<span style="color:#2d7aff;" class="score-i">${X(e)}</span>`})),O=e((()=>{const{config:e}=l;return!(!e||!Object.keys(e).length)&&"totalScore"in e})),E=e((()=>{var e;return(null==(e=i.ids)?void 0:e.guage_id)&&i.noBtn})),b=e((()=>{const e=i.params||{};if(!("skipCover"in e))return!1;return e.skipCover&&!h.value&&!g.value})),B=e((()=>!E.value&&l.showEvaluatePage&&l.showEvaluateSettingWrap&&!l.isFinished&&!i.noBtn&&!i.hideBtn)),A=e((()=>!E.value&&!B.value&&l.showEvaluateCountdownWrap&&!l.isFinished&&!i.noBtn&&!i.hideBtn)),T=e((()=>{const{evaluateResultSetting:e={}}=l.config;return(Object.values(e).filter((e=>{if(e)return!0}))||[]).length})),k=e((()=>l.paramsEvaluate&&Object.keys(l.paramsEvaluate).length)),R=e((()=>{const e=window.location.search||window.location.hash;if(!e)return;const t=["evaname","evadesc","evast","evadur","evaan"].find((t=>e.includes(t)));return l.paramsEvaluate||t})),_=e((()=>T.value||R.value?!i.noBtn&&!i.hideBtn&&!l.isFinished:!i.noBtn&&!i.hideBtn)),U=e((()=>T.value||R.value?!!i.hideBtn||!!i.isLock||l.isFinished:!!i.hideBtn||!!i.isLock)),F=e((()=>e=>({EVALUATE_RADIO_BLOCK:"单选题",EVALUATE_CHECKBOX_BLOCK:"多选题"}[e.type]))),P=e((()=>e=>{var t;const{evaluateAnswer:o,checkAnswerMode:i,evaluateStartTime:r,evaluateTime:s}=(null==(t=l.config)?void 0:t.evaluateResultSetting)||{},u=(null==e?void 0:e.scoreConfigs)||0,c=o&&l.isFinished&&["EVALUATE_RADIO_BLOCK","EVALUATE_CHECKBOX_BLOCK","EVALUATE_SELECT","EVALUATE_INPUT"].includes(e.type)&&u;if(!r||!s||i&&1==i)return c;if(!a.isValidDate(new Date(r)))return c;const v=n(r).add(s,"minutes").diff(n(),"seconds",!0);return c&&v<=0})),j=e((()=>"customList"===i.type?"保存":"提交")),D=e((()=>({getSelectOptions:i.getSelectOptions,getSearchOptions:i.getSearchOptions,openType:i.openType}))),V=e((()=>({getCascadeOptions:i.getCascadeOptions}))),N=e((()=>({uploadPictureUrl:i.uploadPictureUrl,uploadFileUrl:i.uploadFileUrl}))),x=e((()=>({ak:i.ak}))),$=e((()=>({source:"guage",getChunkUploadConfig:i.getChunkUploadConfig}))),K=e((()=>({selectedList:l.labelSelectedList,getLabelList:i.getLabelList,deleteLabel:i.deleteLabel,saveLabelItem:i.saveLabelItem,sourceType:i.sourceType}))),I={RSelectCom:D.value,RCascaderCom:V.value,RUploadCom:N.value,RMapCom:x.value,RVodChunkUploadCom:$.value,CSelectLabelCom:K.value},M=e((()=>(e,t)=>{var a;const n=o[e.type],i=I[n]||{},r={form:l.form,item:e,index:t,isLock:U.value,...i};return"RVodChunkUploadCom"===n&&Object.assign(r,{formData:e,limitNum:(null==(a=e.setting)?void 0:a.limitPic)||1,defFileList:l.form[e.val_key]}),"RMapCom"===n&&Object.assign(r,{locationProp:l.form[e.val_key]}),"CSelectLabelCom"===n&&(delete r.form,delete r.index),r})),q=(e,t)=>{if(e.hide)return!1;const{form:n={},formArray:o=[]}=l;let i={};if(t){let t=e.setting;if(e.setting&&a.isJSON(e.setting)&&(t=JSON.parse(e.setting)),i=a.isString(t.callbackCondition)?JSON.parse(t.callbackCondition):t.callbackCondition,!i||!i.condition||!i.condition.length)return!0}else i=a.isString(e.relationLogic)?JSON.parse(e.relationLogic):e.relationLogic;if(!i||!Object.keys(i).length)return!0;const{relation_logic_is:r,condition:s,relation_logic:u}=i;if(r){const t=s.map((e=>{const t=o.filter((t=>t.seq==e.subject_seq))[0],i=J(t);return a.isArray(n[i])?n[i].some((t=>e.value.includes(t))):e.value.includes(n[i])}));e.isShow="OR"==u?t.some((e=>e)):"AND"==u?t.every((e=>e)):t[0]}return e.isShow},J=e=>e.databaseTitle||e.title,X=e=>{const{minScore:t=0,maxScore:a=0,scoreType:n}=e.scoreConfigs||{};return`(${a}分)`},z=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,isFinished:l.isFinished,maxScore:l.maxScore}})),H=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,form:l.form,isFinished:l.isFinished,currentTime:l.currentTime,showEvaluateCountdown:l.showEvaluateCountdown}}));return{showEvatip:v,isFormBoldOpen:C,scaleStyle:S,handlePageClass:w,isShowItem:y,handleShowQuestionNumber:L,hasScore:O,isPreviewScale:E,showEvaluateEntry:B,showEvaluateCoundownPage:A,hasEvaluateResultSetting:T,hasparamsEvaluate:k,hasDefault:R,showSaveBtn:_,componentDisable:U,showEvaluateLabel:F,showAnswerParse:P,tipMsg:j,propsConfig:M,showEvent:q,formKey:J,evaluatePageProps:z,evaluateCountdownProps:H,skipCover:b}};export{i as ScaleViewComputed};
1
+ import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import a from"xe-utils";import n from"moment";import{componentMapStr as i}from"./use-component.js";const o=(o,l,r)=>{const{query:s}=r,u=(new Date).getTime(),v=e((()=>1==(null==s?void 0:s.formBoldOpen))),c=e((()=>e=>{var a;return!!t(e.type)&&(1==(null==s?void 0:s.evatip)||1==(null==(a=o.params)?void 0:a.evatip))})),d=e((()=>{var e;return(null==(e=l.config)?void 0:e.evaluateResultSetting)||{}})),m=e((()=>{const{evaluateTime:e}=d.value;return+e})),p=e((()=>{var e;return null==(e=d.value)?void 0:e.evaluateStartTime})),f=e((()=>{const e=new Date(p.value);return!!a.isValidDate(e)&&e})),g=e((()=>{if(!p.value||!m.value)return!1;if(!f.value)return!1;const e=n(p.value).add(m.value,"minutes").valueOf();return u>=e})),h=e((()=>{const e=f.value;if(!e)return!1;const t=n(e).valueOf();return u<t})),C=e((()=>e=>{const t=e.required;return o.styleSetting&&Object.keys(o.styleSetting).length&&"formBoldOpen"in o.styleSetting?t&&o.styleSetting.formBoldOpen:t&&v.value})),S=e((()=>{let e=l.fontSize;if(!e||"S"===e)return null;e={L:"large",M:"medium",XS:"extrasmall"}[e];const t=e&&(null==o?void 0:o.fontSizeObj[e])||1,a=Math.floor(100/t*1e4)/1e4;return{width:`${a}%`,height:`${a}%`,transform:`scale(${t})`}})),w=e((()=>!("customList"==o.type&&!o.noBtn)&&!(!o.noBtn&&!o.hideBtn))),y=e((()=>e=>X(e))),E=e((()=>e=>{var a;const{type:n}=e||{},i=!1===(null==(a=l.config)?void 0:a.autoQuestionNumber)?e.showTitle:`${e.softcode}、${e.showTitle}`;if(!t(n))return i;return`${i}&nbsp;<span style="color:#2d7aff;" class="score-i">${H(e)}</span>`})),L=e((()=>{const{config:e}=l;return!(!e||!Object.keys(e).length)&&"totalScore"in e})),O=e((()=>{var e;return(null==(e=o.ids)?void 0:e.guage_id)&&o.noBtn})),b=e((()=>{const e=o.params||{};if(!("skipCover"in e))return!1;return e.skipCover&&!h.value&&!g.value})),B=e((()=>!O.value&&l.showEvaluatePage&&l.showEvaluateSettingWrap&&!l.isFinished&&!o.noBtn&&!o.hideBtn)),A=e((()=>!O.value&&!B.value&&l.showEvaluateCountdownWrap&&!l.isFinished&&!o.noBtn&&!o.hideBtn)),T=e((()=>{const{evaluateResultSetting:e={}}=l.config;return(Object.values(e).filter((e=>{if(e)return!0}))||[]).length})),k=e((()=>l.paramsEvaluate&&Object.keys(l.paramsEvaluate).length)),R=e((()=>{const e=window.location.search||window.location.hash;if(!e)return;const t=["evaname","evadesc","evast","evadur","evaan"].find((t=>e.includes(t)));return l.paramsEvaluate||t})),_=e((()=>{var e;return 1==s.isEdit||1==(null==(e=o.params)?void 0:e.isEdit)})),U=e((()=>1==l.isFinished&&_.value)),F=e((()=>T.value||R.value?!o.noBtn&&!o.hideBtn&&(!l.isFinished||_.value):!o.noBtn&&!o.hideBtn)),P=e((()=>T.value||R.value?!!o.hideBtn||!!o.isLock||l.isFinished&&!_.value:!!o.hideBtn||!!o.isLock)),j=e((()=>e=>({EVALUATE_RADIO_BLOCK:"单选题",EVALUATE_CHECKBOX_BLOCK:"多选题"}[e.type]))),D=e((()=>e=>{var t;if(U.value)return!1;const{evaluateAnswer:i,checkAnswerMode:o,evaluateStartTime:r,evaluateTime:s}=(null==(t=l.config)?void 0:t.evaluateResultSetting)||{},u=(null==e?void 0:e.scoreConfigs)||0,v=i&&l.isFinished&&["EVALUATE_RADIO_BLOCK","EVALUATE_CHECKBOX_BLOCK","EVALUATE_SELECT","EVALUATE_INPUT"].includes(e.type)&&u;if(!r||!s||o&&1==o)return v;if(!a.isValidDate(new Date(r)))return v;const c=n(r).add(s,"minutes").diff(n(),"seconds",!0);return v&&c<=0})),V=e((()=>"customList"===o.type?"保存":"提交")),N=e((()=>({getSelectOptions:o.getSelectOptions,getSearchOptions:o.getSearchOptions,openType:o.openType}))),x=e((()=>({getCascadeOptions:o.getCascadeOptions}))),$=e((()=>({uploadPictureUrl:o.uploadPictureUrl,uploadFileUrl:o.uploadFileUrl}))),K=e((()=>({ak:o.ak}))),I=e((()=>({source:"guage",getChunkUploadConfig:o.getChunkUploadConfig}))),M=e((()=>({selectedList:l.labelSelectedList,getLabelList:o.getLabelList,deleteLabel:o.deleteLabel,saveLabelItem:o.saveLabelItem,sourceType:o.sourceType}))),q={RSelectCom:N.value,RCascaderCom:x.value,RUploadCom:$.value,RMapCom:K.value,RVodChunkUploadCom:I.value,CSelectLabelCom:M.value},J=e((()=>(e,t)=>{var a;const n=i[e.type],o=q[n]||{},r={form:l.form,item:e,index:t,isLock:P.value,...o};return"RVodChunkUploadCom"===n&&Object.assign(r,{formData:e,limitNum:(null==(a=e.setting)?void 0:a.limitPic)||1,defFileList:l.form[e.val_key]}),"RMapCom"===n&&Object.assign(r,{locationProp:l.form[e.val_key]}),"CSelectLabelCom"===n&&(delete r.form,delete r.index),r})),X=(e,t)=>{if(e.hide)return!1;const{form:n={},formArray:i=[]}=l;let o={};if(t){let t=e.setting;if(e.setting&&a.isJSON(e.setting)&&(t=JSON.parse(e.setting)),o=a.isString(t.callbackCondition)?JSON.parse(t.callbackCondition):t.callbackCondition,!o||!o.condition||!o.condition.length)return!0}else o=a.isString(e.relationLogic)?JSON.parse(e.relationLogic):e.relationLogic;if(!o||!Object.keys(o).length)return!0;const{relation_logic_is:r,condition:s,relation_logic:u}=o;if(r){const t=s.map((e=>{const t=i.filter((t=>t.seq==e.subject_seq))[0],o=z(t);return a.isArray(n[o])?n[o].some((t=>e.value.includes(t))):e.value.includes(n[o])}));e.isShow="OR"==u?t.some((e=>e)):"AND"==u?t.every((e=>e)):t[0]}return e.isShow},z=e=>e.databaseTitle||e.title,H=e=>{const{minScore:t=0,maxScore:a=0,scoreType:n}=e.scoreConfigs||{};return`(${a}分)`},Q=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,isFinished:l.isFinished,maxScore:l.maxScore}})),W=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,form:l.form,isFinished:l.isFinished,currentTime:l.currentTime,showEvaluateCountdown:l.showEvaluateCountdown}}));return{showEvatip:c,isFormBoldOpen:C,scaleStyle:S,handlePageClass:w,isShowItem:y,handleShowQuestionNumber:E,hasScore:L,isPreviewScale:O,showEvaluateEntry:B,showEvaluateCoundownPage:A,hasEvaluateResultSetting:T,hasparamsEvaluate:k,hasDefault:R,showSaveBtn:F,componentDisable:P,showEvaluateLabel:j,showAnswerParse:D,tipMsg:V,propsConfig:J,showEvent:X,formKey:z,evaluatePageProps:Q,evaluateCountdownProps:W,skipCover:b,scaleEdit:U}};export{o as ScaleViewComputed};
@@ -1 +1 @@
1
- import{isOnlyOptions as t,getQueryVariable as e}from"../utils/judge-types.js";import i from"xe-utils";import r from"moment";import{ScaleViewComputed as s}from"./scaleview-computed.js";const o=(o,n,a,f)=>{const{showEvent:p,formKey:l}=s(o,n,f),m=()=>{let e=Object.assign({},n.form,n.submitForm),i={};if(!Object.keys(e).length)return{};for(let s in e){let a=n.formArray.find((t=>l(t)==s));if(s&&a){let f;if(a&&a.databaseTitle&&(f=a.databaseTitle),"customList"==o.type&&a&&a.setting&&1!=a.setting.startToStop&&e[s]&&"DATETIME"==a.type&&(a.setting&&"time"==a.setting.dateType&&e[s]&&(e[s]=r().format("YYYY-MM-DD ")+e[s]),a.setting&&"date"==a.setting.dateType&&e[s]&&(e[s]=r(e[s]).format("YYYY-MM-DD ")+r().format("HH:mm:ss"))),i[f||s]=e[s]?e[s]:null,t(a.type)){let{options:t}=a,r=a.val_key,o=n.choiceComObj[r],f=e[s];if("RADIO_BLOCK"===a.type&&f&&(i[r]=u(f,t,o)),"CHECKBOX_BLOCK"===a.type&&(null==f?void 0:f.length)){let e=d(f,t,o);i[r]=e}}}else i[s]=e[s]}return console.log("res",i),i},d=(t,e,i)=>{let r,s=[],o=0,n=t.length;for(;o<n;o++){r=t[o];let n=e.find(((t,e)=>e+1===r));if(n&&!n.prefix&&!n.suffix){s.push(n.value);continue}let a=u(r,e,i);s.push(a)}return s},u=(t,e,i)=>{let{othersText:r,optionsPreSuffixObj:s={}}=i||{};if("other"===t)return r||"其他";let o=e.find(((e,i)=>i+1===t));if(!o)return;if(!o.prefix&&!o.suffix)return o.value;let n=s[t]||"";return o.prefix?n=o.prefix+n:n+=o.suffix,n};return{submitMethod:()=>{const t=n.defaultFormArray.find((t=>"SPREAD_PARAMS"===t.type));if(t){i.isJSON(t.setting)&&(t.setting=JSON.parse(t.setting));let r=l(t);n.submitForm[r]=t.setting.spreadParams.domains.map((t=>{let i={};return"1"==t.valueType?i[t.name]=t.value:"2"==t.valueType&&(i[t.name]=e(t.value,n,o.params)),i}))}let r=n.defaultFormArray.find((t=>"CHECKBOX_BLOCK"==t.type));r&&Array.isArray(n.form[r.title])&&"customList"===o.type&&(n.form[r.title]=n.form[r.title].join(","));const s=m();let f;if("customList"===o.type)f={definedListId:o.ids.guage_id,dbId:o.ids.db_id,scoreJson:JSON.stringify(s)};else{const{guageId:t,randomId:e}=n.config;f=Object.assign(o.params,{guageId:t,scoreJson:JSON.stringify(s),randomId:e})}n.shareId&&(f.shareId=n.shareId);const d=n.defaultFormArray.find((t=>"SUCCESS_TIP"===t.type));if(d){const t=i.isJSON(d.setting)?JSON.parse(d.setting):d.setting;f.tipSetting=JSON.stringify({tipMode:t.tipMode,tipType:t.tipType,tipText:t.tipText,tipApi:t.tipApi})}let u=n.defaultFormArray.find((t=>"CALLBACK_INTERFACE"===t.type)),g=!1;u&&(g=p(u,!0)),a("onSubmit",f,u,g)}}};export{o as ScaleViewSubmit};
1
+ import{isOnlyOptions as t,getQueryVariable as e}from"../utils/judge-types.js";import i from"xe-utils";import s from"moment";import{ScaleViewComputed as r}from"./scaleview-computed.js";const o=(o,n,a,f)=>{const{showEvent:p,formKey:m}=r(o,n,f),d=()=>{const e=Object.assign({},n.form,n.submitForm),i={};if(!Object.keys(e).length)return{};for(const r in e){const a=n.formArray.find((t=>m(t)==r));if(r&&a){let f;if(a&&a.databaseTitle&&(f=a.databaseTitle),"customList"==o.type&&a&&a.setting&&1!=a.setting.startToStop&&e[r]&&"DATETIME"==a.type&&(a.setting&&"time"==a.setting.dateType&&e[r]&&(e[r]=s().format("YYYY-MM-DD ")+e[r]),a.setting&&"date"==a.setting.dateType&&e[r]&&(e[r]=s(e[r]).format("YYYY-MM-DD ")+s().format("HH:mm:ss"))),i[f||r]=e[r]?e[r]:null,t(a.type)){const{options:t}=a,s=a.val_key,o=n.choiceComObj[s],f=e[r];if("RADIO_BLOCK"===a.type&&f&&(i[s]=c(f,t,o)),"CHECKBOX_BLOCK"===a.type&&(null==f?void 0:f.length)){const e=u(f,t,o);i[s]=e}}}else i[r]=e[r]}return console.log("res",i),i},u=(t,e,i)=>{const s=[];let r,o=0;for(;o<t.length;o++){r=t[o];const n=e.find(((t,e)=>e+1===r));if(n&&!n.prefix&&!n.suffix){s.push(n.value);continue}const a=c(r,e,i);s.push(a)}return s},c=(t,e,i)=>{const{othersText:s,optionsPreSuffixObj:r={}}=i||{};if("other"===t)return s||"其他";const o=e.find(((e,i)=>i+1===t));if(!o)return;if(!o.prefix&&!o.suffix)return o.value;let n=r[t]||"";return o.prefix?n=o.prefix+n:n+=o.suffix,n};return{submitMethod:()=>{const t=n.defaultFormArray.find((t=>"SPREAD_PARAMS"===t.type));if(t){i.isJSON(t.setting)&&(t.setting=JSON.parse(t.setting));const s=m(t);n.submitForm[s]=t.setting.spreadParams.domains.map((t=>{const i={};return"1"==t.valueType?i[t.name]=t.value:"2"==t.valueType&&(i[t.name]=e(t.value,n,o.params)),i}))}const s=n.defaultFormArray.find((t=>"CHECKBOX_BLOCK"==t.type));s&&Array.isArray(n.form[s.title])&&"customList"===o.type&&(n.form[s.title]=n.form[s.title].join(","));const r=d();let f;if("customList"===o.type)f={definedListId:o.ids.guage_id,dbId:o.ids.db_id,scoreJson:JSON.stringify(r)};else{const{guageId:t,randomId:e}=n.config;f=Object.assign(o.params,{guageId:t,scoreJson:JSON.stringify(r),randomId:e})}n.shareId&&(f.shareId=n.shareId);const u=n.defaultFormArray.find((t=>"SUCCESS_TIP"===t.type));if(u){const t=i.isJSON(u.setting)?JSON.parse(u.setting):u.setting;f.tipSetting=JSON.stringify({tipMode:t.tipMode,tipType:t.tipType,tipText:t.tipText,tipApi:t.tipApi})}const c=n.defaultFormArray.find((t=>"CALLBACK_INTERFACE"===t.type));let l=!1;c&&(l=p(c,!0)),a("onSubmit",f,c,l)}}};export{o as ScaleViewSubmit};