cnhis-design-vue 3.1.44-beta.11 → 3.1.44-beta.13

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 (283) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +0 -6
  3. package/es/components/base-search/src/index.vue.d.ts +0 -6
  4. package/es/components/base-search/src/index.vue.js +1 -1
  5. package/es/components/base-search/src/index.vue2.js +1 -0
  6. package/es/components/big-table/src/BigTable.vue.js +1 -1
  7. package/es/components/big-table/src/components/NoData.vue.js +1 -1
  8. package/es/components/big-table/src/components/NoData.vue2.js +1 -0
  9. package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -1
  10. package/es/components/big-table/src/components/edit-form/edit-separate.vue2.js +1 -0
  11. package/es/components/big-table/src/components/input-button.vue.js +1 -1
  12. package/es/components/big-table/src/components/input-button.vue2.js +1 -0
  13. package/es/components/big-table/src/components/separate.vue.js +1 -1
  14. package/es/components/big-table/src/components/separate.vue2.js +1 -0
  15. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
  16. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue2.js +1 -0
  17. package/es/components/button-print/src/ButtonPrint.vue.js +1 -1
  18. package/es/components/button-print/src/components/EditFormat.vue.js +1 -1
  19. package/es/components/button-print/src/components/EditFormat.vue2.js +1 -0
  20. package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -1
  21. package/es/components/button-print/src/components/IdentityVerification.vue2.js +1 -0
  22. package/es/components/button-print/src/components/Preview.vue.js +1 -1
  23. package/es/components/classification/index.d.ts +553 -75
  24. package/es/components/classification/src/components/search-filter/index.vue.d.ts +551 -61
  25. package/es/components/classification/src/components/search-filter/index.vue.js +1 -1
  26. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -0
  27. package/es/components/classification/src/components/set-classification/index.vue.d.ts +553 -75
  28. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  29. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -0
  30. package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
  31. package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
  32. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -0
  33. package/es/components/classification/src/const/index.d.ts +2 -2
  34. package/es/components/classification/src/index.vue.d.ts +553 -75
  35. package/es/components/classification/src/index.vue.js +1 -1
  36. package/es/components/classification/src/index.vue2.js +1 -0
  37. package/es/components/classification/style/index.css +1 -1
  38. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  39. package/es/components/date-picker/src/DatePicker.vue2.js +1 -0
  40. package/es/components/fabric-chart/src/FabricChart.vue.js +1 -1
  41. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -0
  42. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -1
  43. package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -0
  44. package/es/components/fabric-chart/src/utils/utils.js +1 -1
  45. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  46. package/es/components/field-set/src/FieldSet.vue2.js +1 -0
  47. package/es/components/form-config/index.d.ts +0 -2
  48. package/es/components/form-config/src/FormConfig.vue.d.ts +0 -2
  49. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  50. package/es/components/form-config/src/FormConfig.vue2.js +1 -0
  51. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +0 -1
  52. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
  53. package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -0
  54. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  55. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -0
  56. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +0 -1
  57. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  58. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -0
  59. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
  60. package/es/components/form-config/src/components/renderer/CloseButton.vue2.js +1 -0
  61. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
  62. package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +1 -0
  63. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  64. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -0
  65. package/es/components/form-render/index.d.ts +0 -1
  66. package/es/components/form-render/src/FormRender.vue.d.ts +0 -1
  67. package/es/components/form-render/src/FormRender.vue.js +1 -1
  68. package/es/components/form-render/src/FormRender.vue2.js +1 -0
  69. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +0 -1
  70. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  71. package/es/components/form-render/src/FormRenderWrapper.vue2.js +1 -0
  72. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  73. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  74. package/es/components/form-render/src/components/renderer/input.d.ts +4 -4
  75. package/es/components/form-render/src/components/renderer/input.js +1 -1
  76. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +4 -4
  77. package/es/components/form-render/src/components/renderer/inputNumber.js +1 -1
  78. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  79. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -1
  80. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -0
  81. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  82. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  83. package/es/components/form-render/src/components/renderer/select.js +1 -1
  84. package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -1
  85. package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -0
  86. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  87. package/es/components/form-render/src/types/index.d.ts +2 -0
  88. package/es/components/guide/src/renderer.js +1 -1
  89. package/es/components/iho-select-label/src/LabelFormContent.vue.js +1 -1
  90. package/es/components/iho-select-label/src/LabelFormContent.vue2.js +1 -0
  91. package/es/components/iho-select-label/src/SelectLabel.vue.js +1 -1
  92. package/es/components/iho-select-label/src/SelectLabel.vue2.js +1 -0
  93. package/es/components/iho-select-label/src/components/label-classify.vue.js +1 -1
  94. package/es/components/iho-select-label/src/components/label-classify.vue2.js +1 -0
  95. package/es/components/iho-table/index.d.ts +2 -0
  96. package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
  97. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  98. package/es/components/iho-table/src/IhoTable.vue2.js +1 -0
  99. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +1 -0
  100. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -1
  101. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +1 -0
  102. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  103. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -0
  104. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  105. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -0
  106. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  107. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -1
  108. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +1 -0
  109. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  110. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -0
  111. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  112. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  113. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  114. package/es/components/iho-table/src/types/index.d.ts +1 -0
  115. package/es/components/iho-table/src/utils/index.js +1 -1
  116. package/es/components/iho-table/style/index.css +1 -1
  117. package/es/components/index.css +1 -1
  118. package/es/components/info-header/index.d.ts +8 -2
  119. package/es/components/info-header/src/InfoHeader.vue.d.ts +8 -2
  120. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  121. package/es/components/info-header/src/InfoHeader.vue2.js +1 -0
  122. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -1
  123. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +1 -0
  124. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -1
  125. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +1 -0
  126. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  127. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue2.js +1 -0
  128. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  129. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +1 -0
  130. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +0 -1
  131. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  132. package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -0
  133. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +0 -1
  134. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  135. package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -0
  136. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  137. package/es/components/keyboard/src/Keyboard.vue2.js +1 -0
  138. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
  139. package/es/components/keyboard/src/components/InputNumber.vue2.js +1 -0
  140. package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -1
  141. package/es/components/keyboard/src/components/NumberPanel.vue2.js +1 -0
  142. package/es/components/map/src/Map.vue.js +1 -1
  143. package/es/components/map/src/Map.vue2.js +1 -0
  144. package/es/components/quick-search/index.d.ts +0 -6
  145. package/es/components/quick-search/src/index.vue.d.ts +0 -6
  146. package/es/components/quick-search/src/index.vue.js +1 -1
  147. package/es/components/quick-search/src/index.vue2.js +1 -0
  148. package/es/components/quick-search/style/index.css +1 -1
  149. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
  150. package/es/components/recommend-search/src/RecommendSearch.vue2.js +1 -0
  151. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
  152. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +1 -0
  153. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  154. package/es/components/recommend-search/src/components/RecommendMenu.vue2.js +1 -0
  155. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
  156. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +1 -0
  157. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  158. package/es/components/scale-view/src/ScaleView.vue2.js +1 -0
  159. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
  160. package/es/components/scale-view/src/components/AnswerParse.vue2.js +1 -0
  161. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
  162. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -0
  163. package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -1
  164. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +1 -0
  165. package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -1
  166. package/es/components/scale-view/src/components/NoData.vue.js +1 -1
  167. package/es/components/scale-view/src/components/NoData.vue2.js +1 -0
  168. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
  169. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -0
  170. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  171. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  172. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -0
  173. package/es/components/select-label/src/SelectLabel.vue.js +1 -1
  174. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  175. package/es/components/select-label/src/components/label-classify.vue2.js +1 -0
  176. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  177. package/es/components/select-person/src/SearchMultiple.vue.js +1 -1
  178. package/es/components/select-person/src/SelectPerson.vue.js +1 -1
  179. package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -1
  180. package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +1 -0
  181. package/es/components/shortcut-setter/index.d.ts +0 -1
  182. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +0 -1
  183. package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -1
  184. package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +1 -0
  185. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -1
  186. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue2.js +1 -0
  187. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  188. package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -0
  189. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +551 -48
  190. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  191. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -0
  192. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +134 -0
  193. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.js +1 -0
  194. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -0
  195. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +140 -0
  196. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.js +1 -0
  197. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -0
  198. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts +28 -0
  199. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js +1 -0
  200. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -0
  201. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.d.ts +28 -0
  202. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js +1 -0
  203. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js +1 -0
  204. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.d.ts +54 -0
  205. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js +1 -0
  206. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +1 -0
  207. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +61 -0
  208. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js +1 -0
  209. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -0
  210. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +68 -0
  211. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js +1 -0
  212. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -0
  213. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +47 -0
  214. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.js +1 -0
  215. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -0
  216. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +551 -0
  217. package/es/components/table-filter/src/components/classify-filter/components/index.js +1 -0
  218. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +551 -48
  219. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  220. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -0
  221. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
  222. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue2.js +1 -0
  223. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -1
  224. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
  225. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.js +1 -1
  226. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -0
  227. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.js +1 -1
  228. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -0
  229. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -1
  230. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +1 -0
  231. package/es/components/table-filter/src/components/render-widget/components/{Label.vue.d.ts → LabelInner.vue.d.ts} +1 -9
  232. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.js +1 -0
  233. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -0
  234. package/es/components/table-filter/src/components/render-widget/components/{SelectLabel.vue.d.ts → LabelOut.vue.d.ts} +1 -9
  235. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.js +1 -0
  236. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -0
  237. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +1 -9
  238. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
  239. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -0
  240. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +713 -8
  241. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  242. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +0 -6
  243. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  244. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -27
  245. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  246. package/es/components/table-filter/src/constants/index.d.ts +3 -0
  247. package/es/components/table-filter/src/constants/index.js +1 -0
  248. package/es/components/table-filter/src/directive/resize.js +1 -1
  249. package/es/components/table-filter/src/tool/baseOptions.d.ts +4 -0
  250. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  251. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  252. package/es/components/table-filter/src/tool/transformData.js +1 -1
  253. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  254. package/es/components/table-filter/src/types/enums.js +1 -1
  255. package/es/components/time-line/src/TimeLine.vue.js +1 -1
  256. package/es/components/time-line/src/TimeLine.vue2.js +1 -0
  257. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  258. package/es/components/time-picker/src/TimePicker.vue2.js +1 -0
  259. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -1
  260. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +1 -0
  261. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  262. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -0
  263. package/es/env.d.ts +25 -25
  264. package/es/shared/components/SelectPage/SelectPage.vue.js +1 -1
  265. package/es/shared/components/SelectPage/SelectPage.vue2.js +1 -0
  266. package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -1
  267. package/es/shared/components/SvgIcon/SvgIcon.vue2.js +1 -0
  268. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
  269. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue2.js +1 -0
  270. package/es/shared/components/no-data/NoData.vue.js +1 -1
  271. package/es/shared/components/no-data/NoData.vue2.js +1 -0
  272. package/es/shared/package.json.js +1 -1
  273. package/package.json +2 -2
  274. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  275. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  276. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  277. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  278. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  279. package/es/components/table-filter/src/components/render-widget/components/Label.vue.js +0 -1
  280. package/es/components/table-filter/src/components/render-widget/components/SelectLabel.vue.js +0 -1
  281. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  282. package/es/shared/utils/tapable/index.d.ts +0 -139
  283. /package/es/_virtual/{plugin-vue_export-helper.js → _plugin-vue_export-helper.js} +0 -0
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -140,9 +140,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
140
140
  modelValue: {
141
141
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
142
142
  };
143
- filterApiConfig: {
144
- type: ObjectConstructor;
145
- };
146
143
  }, any, {
147
144
  initialProps: {};
148
145
  }, {
@@ -166,9 +163,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
166
163
  modelValue: {
167
164
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
168
165
  };
169
- filterApiConfig: {
170
- type: ObjectConstructor;
171
- };
172
166
  }>> & {
173
167
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
174
168
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
@@ -141,9 +141,6 @@ declare const _default: import("vue").DefineComponent<{
141
141
  modelValue: {
142
142
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
143
143
  };
144
- filterApiConfig: {
145
- type: ObjectConstructor;
146
- };
147
144
  }, any, {
148
145
  initialProps: {};
149
146
  }, {
@@ -167,9 +164,6 @@ declare const _default: import("vue").DefineComponent<{
167
164
  modelValue: {
168
165
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
169
166
  };
170
- filterApiConfig: {
171
- type: ObjectConstructor;
172
- };
173
167
  }>> & {
174
168
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
175
169
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as i,watch as l,openBlock as a,createElementBlock as n,createElementVNode as r,createCommentVNode as o,renderSlot as s,unref as u,createVNode as c,withCtx as f,createTextVNode as d,toDisplayString as h,Fragment as m,renderList as p}from"vue";import v from"../../table-filter/src/components/render-widget/index.vue.js";import g from"../../table-filter/src/hooks/useMixins.js";import b from"../../table-filter/src/hooks/useAdvanced.js";import C from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as y,NIcon as k}from"naive-ui";import{Search as S}from"@vicons/ionicons5";import{cloneDeep as j}from"lodash-es";import x from"../../../_virtual/plugin-vue_export-helper.js";const q={class:"base-search-block"},R={class:"base-container"},_={class:"bease-left"},A={class:"base-ul"},O={key:0,class:"baseli showQuickBtn"},F=r("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),I={key:0,class:"qqConObjCount"},Q={key:1,class:"baseli"},V={key:2,class:"baseli"},w=r("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var B=x(e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{expose:x,emit:B}){const E=e,{outQuickSearchFn:D}=g(),{isRender:L,getRenderSearchConObj:N,isExistDefValByRenderWidget:P,resetRenderWidgetValue:W}=C(),{transformData:U,transformParams:$}=b(),z=t([]),M=t(!1),T=t([]),G=i((()=>J("hideQuickSearch"))),H=i((()=>J("hideResetBtn")));function J(e){return 0==E.showSettings[e]}function K(){B("foldQuickSearch",!0)}function X(e={}){const t=Z()||[];!function(e,t,i=!1,l={}){let a=[];T.value.length>0&&(a=j(T.value));B("onFilterSearch",e,t,i,a,l)}(t,$(t),!0,e)}function Y(e,t){T.value.forEach((i=>{i._frontId===e&&(i.widgetCfg.isInit=t)}))}function Z(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let i=0;i<e.length;i++){let l=e[i];const a=N(l);a&&t.push(a)}return t.filter((e=>e.value))}(T.value)}function ee(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{W(e)})),D.handlerInitSearchItem(e)}(T.value),B("handleReset",{targetType:"outQuickSearchReset"})}return l((()=>E.searchFieldList),(e=>{e&&e.length>0&&function(){T.value=[];let e=j(U(E.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));T.value=e,D.handlerInitSearchItem(T.value),T.value.some((e=>L(e)?P(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),l((()=>E.qqConObjCount),(e=>{const t=z.value.length||0;M.value=t+Number(e)>0&&H.value}),{immediate:!0}),l((()=>T),(()=>{z.value=Z()||[];const e=$(z.value);M.value=z.value.length+Number(E.qqConObjCount)>0&&H.value,B("getFilterParam",z.value,e)}),{immediate:!0,deep:!0}),x({handleReset:ee}),(t,i)=>(a(),n("div",q,[r("div",R,[r("div",_,[r("ul",A,[o(" 筛选分类插槽 "),s(t.$slots,"classification"),u(G)?(a(),n("li",O,[c(u(y),{class:"search-default",type:"default",onClick:K},{default:f((()=>[F,d(" 筛选"),e.qqConObjCount?(a(),n("span",I,"("+h(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(a(!0),n(m,null,p(T.value,(t=>(a(),n(m,null,[t.isRender?(a(),n("li",{class:"baseli outQuickSearch-li",key:t._frontId},[c(v,{cfg:t,modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,filterApiConfig:e.filterApiConfig,onOutFilterChange:X,onChangeInit:Y},null,8,["cfg","modelValue","onUpdate:modelValue","filterApiConfig"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),T.value&&T.value.length>0?(a(),n("li",Q,[c(u(y),{type:"primary",onClick:X},{default:f((()=>[c(u(k),{component:u(S),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),d(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),M.value?(a(),n("li",V,[c(u(y),{onClick:ee},{default:f((()=>[w,d(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),s(t.$slots,"buttons")])])])]))}}),[["__file","index.vue"]]);export{B as default};
1
+ import e from"./index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,provide as l,computed as i,watch as a,openBlock as n,createElementBlock as r,createElementVNode as s,createCommentVNode as o,renderSlot as u,unref as c,createVNode as f,withCtx as d,createTextVNode as h,toDisplayString as m,Fragment as v,renderList as p}from"vue";import b from"../../table-filter/src/components/render-widget/index.vue.js";import g from"../../table-filter/src/hooks/useMixins.js";import y from"../../table-filter/src/hooks/useAdvanced.js";import C from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as k,NIcon as S}from"naive-ui";import{Search as j}from"@vicons/ionicons5";import{cloneDeep as x}from"lodash-es";import{InjectionFilterApiConfig as q}from"../../table-filter/src/constants/index.js";const R={class:"base-search-block"},O={class:"base-container"},F={class:"bease-left"},A={class:"base-ul"},I={key:0,class:"baseli showQuickBtn"},Q=s("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),V={key:0,class:"qqConObjCount"},_={key:1,class:"baseli"},w={key:2,class:"baseli"},B=s("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var E=e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{expose:E,emit:D}){const L=e,{outQuickSearchFn:N}=g(),{isRender:P,getRenderSearchConObj:W,isExistDefValByRenderWidget:U,resetRenderWidgetValue:$}=C(),{transformData:z,transformParams:M}=y(),T=t([]),G=t(!1),H=t([]);l(q,L.filterApiConfig);const J=i((()=>X("hideQuickSearch"))),K=i((()=>X("hideResetBtn")));function X(e){return 0==L.showSettings[e]}function Y(){D("foldQuickSearch",!0)}function Z(e={}){const t=te()||[];!function(e,t,l=!1,i={}){let a=[];H.value.length>0&&(a=x(H.value));D("onFilterSearch",e,t,l,a,i)}(t,M(t),!0,e)}function ee(e,t){H.value.forEach((l=>{l._frontId===e&&(l.widgetCfg.isInit=t)}))}function te(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let l=0;l<e.length;l++){let i=e[l];const a=W(i);a&&t.push(a)}return t.filter((e=>e.value))}(H.value)}function le(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{$(e)})),N.handlerInitSearchItem(e)}(H.value),D("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>L.searchFieldList),(e=>{e&&e.length>0&&function(){H.value=[];let e=x(z(L.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));H.value=e,N.handlerInitSearchItem(H.value),H.value.some((e=>P(e)?U(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),a((()=>L.qqConObjCount),(e=>{const t=T.value.length||0;G.value=t+Number(e)>0&&K.value}),{immediate:!0}),a((()=>H),(()=>{T.value=te()||[];const e=M(T.value);G.value=T.value.length+Number(L.qqConObjCount)>0&&K.value,D("getFilterParam",T.value,e)}),{immediate:!0,deep:!0}),E({handleReset:le}),(t,l)=>(n(),r("div",R,[s("div",O,[s("div",F,[s("ul",A,[o(" 筛选分类插槽 "),u(t.$slots,"classification"),c(J)?(n(),r("li",I,[f(c(k),{class:"search-default",type:"default",onClick:Y},{default:d((()=>[Q,h(" 筛选"),e.qqConObjCount?(n(),r("span",V,"("+m(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(n(!0),r(v,null,p(H.value,(e=>(n(),r(v,null,[e.isRender?(n(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(b,{cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:Z,onChangeInit:ee},null,8,["cfg","modelValue","onUpdate:modelValue"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),H.value&&H.value.length>0?(n(),r("li",_,[f(c(k),{type:"primary",onClick:Z},{default:d((()=>[f(c(S),{component:c(j),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),h(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),G.value?(n(),r("li",w,[f(c(k),{onClick:le},{default:d((()=>[B,h(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),u(t.$slots,"buttons")])])])]))}});export{E as default};
@@ -1 +1 @@
1
- import e from"./BigTable.vue2.js";import r from"../../../_virtual/plugin-vue_export-helper.js";var i=r(e,[["__file","BigTable.vue"]]);export{i as default};
1
+ import e from"./BigTable.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","BigTable.vue"]]);export{i as default};
@@ -1 +1 @@
1
- import{defineComponent as a,computed as e,openBlock as t,createElementBlock as s,unref as r,createCommentVNode as o,createElementVNode as n,toDisplayString as i}from"vue";import p from"../../../../shared/assets/img/nodata.png.js";import m from"../../../../shared/assets/img/no-permission.png.js";import l from"../../../../shared/assets/img/failure.png.js";import u from"../../../../shared/assets/img/notfound.png.js";import f from"../../../../_virtual/plugin-vue_export-helper.js";const g={class:"no-data-tip NoData-page"},d=["src"],c={key:1};var h=f(a({__name:"NoData",props:{noDataTip:{type:String,default:"暂无数据"},noDataImg:{type:String,default:"nodata"},showImg:{type:Boolean,default:!0}},setup(a){const f=a,h=e((()=>{let a=null;switch(f.noDataImg){case"no-permission":a=m;break;case"failure":a=l;break;case"nodata":a=p;break;default:a=u}return a})),v=e((()=>{let a="";switch(f.noDataImg){case"no-permission":a="请联系管理员";break;case"failure":a="请稍后再试"}return a}));return(e,p)=>(t(),s("div",g,[a.showImg?(t(),s("img",{key:0,src:r(h),alt:""},null,8,d)):o("v-if",!0),n("p",null,i(a.noDataTip),1),r(v)?(t(),s("span",c,i(r(v)),1)):o("v-if",!0)]))}}),[["__file","NoData.vue"]]);export{h as default};
1
+ import e from"./NoData.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var a=r(e,[["__file","NoData.vue"]]);export{a as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as a,computed as s,openBlock as e,createElementBlock as t,unref as o,createCommentVNode as r,createElementVNode as n,toDisplayString as i}from"vue";import p from"../../../../shared/assets/img/nodata.png.js";import m from"../../../../shared/assets/img/no-permission.png.js";import l from"../../../../shared/assets/img/failure.png.js";import g from"../../../../shared/assets/img/notfound.png.js";const u={class:"no-data-tip NoData-page"},f=["src"],d={key:1};var c=a({__name:"NoData",props:{noDataTip:{type:String,default:"暂无数据"},noDataImg:{type:String,default:"nodata"},showImg:{type:Boolean,default:!0}},setup(a){const c=a,h=s((()=>{let a=null;switch(c.noDataImg){case"no-permission":a=m;break;case"failure":a=l;break;case"nodata":a=p;break;default:a=g}return a})),D=s((()=>{let a="";switch(c.noDataImg){case"no-permission":a="请联系管理员";break;case"failure":a="请稍后再试"}return a}));return(s,p)=>(e(),t("div",u,[a.showImg?(e(),t("img",{key:0,src:o(h),alt:""},null,8,f)):r("v-if",!0),n("p",null,i(a.noDataTip),1),o(D)?(e(),t("span",d,i(o(D)),1)):r("v-if",!0)]))}});export{c as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as o,watch as r,onDeactivated as a,openBlock as t,createBlock as l,unref as u,withCtx as n,createVNode as i,withModifiers as p}from"vue";import s from"../../../../../shared/components/SlotRender/SlotRender.js";import{cloneDeep as v,isObject as c,isArray as d}from"lodash-es";import{NPopover as f,NInput as m}from"naive-ui";import{useSeparateMap as w}from"../../hooks/useSeparateRow.js";import h from"../separate.vue.js";import x from"../../../../../_virtual/plugin-vue_export-helper.js";var y=x(e({__name:"edit-separate",props:{col:{type:Object,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0}},emits:["formChange"],setup(e,{emit:x}){const y=e,g=o(),_=o(!1);function b(e){_.value=e}r(_,(function(e){e?async function(e){var o;if(!e)return;j.value=v(e.row[y.col.field]),await new Promise((e=>setTimeout(e))),null==(o=g.value)||o.syncPosition()}(k(y.row)):R(k(y.row))}));const j=o(),{getRowData:k}=w();async function R(e){if(!e)return;const o=e.row[y.col.field];(c(j.value)||d(j.value)||o!==j.value)&&x("formChange",{value:j.value,row:y.row,column:y.col,index:e.index})}const S={border:"1px solid #f5f5f5",padding:"4px 0 4px 4px",background:"white","border-radius":"4px"};return a((()=>{R(k(y.row))})),(o,r)=>(t(),l(u(f),{ref_key:"popoverRef",ref:g,trigger:"manual",show:_.value,"onUpdate:show":r[3]||(r[3]=e=>_.value=e),"show-arrow":!1},{trigger:n((()=>[i(h,{onClick:r[0]||(r[0]=p((e=>_.value=!_.value),["stop"])),style:S,col:e.col,row:e.row},null,8,["col","row"])])),default:n((()=>[e.col.separateSlot?(t(),l(u(s),{key:0,renderer:e.col.separateSlot,value:j.value,"onUpdate:value":r[1]||(r[1]=e=>j.value=e),"onUpdate:show":b,col:e.col,row:e.row},null,8,["renderer","value","col","row"])):(t(),l(u(m),{key:1,value:j.value,"onUpdate:value":r[2]||(r[2]=e=>j.value=e),type:"textarea"},null,8,["value"]))])),_:1},8,["show"]))}}),[["__file","edit-separate.vue"]]);export{y as default};
1
+ import e from"./edit-separate.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","edit-separate.vue"]]);export{t as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as o,watch as r,onDeactivated as a,openBlock as t,createBlock as l,unref as u,withCtx as n,createVNode as i,withModifiers as s}from"vue";import p from"../../../../../shared/components/SlotRender/SlotRender.js";import{cloneDeep as c,isObject as d,isArray as v}from"lodash-es";import{NPopover as w,NInput as f}from"naive-ui";import{useSeparateMap as m}from"../../hooks/useSeparateRow.js";import h from"../separate.vue.js";var y=e({__name:"edit-separate",props:{col:{type:Object,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0}},emits:["formChange"],setup(e,{emit:y}){const x=e,g=o(),b=o(!1);function k(e){b.value=e}r(b,(function(e){e?async function(e){var o;if(!e)return;j.value=c(e.row[x.col.field]),await new Promise((e=>setTimeout(e))),null==(o=g.value)||o.syncPosition()}(R(x.row)):S(R(x.row))}));const j=o(),{getRowData:R}=m();async function S(e){if(!e)return;const o=e.row[x.col.field];(d(j.value)||v(j.value)||o!==j.value)&&y("formChange",{value:j.value,row:x.row,column:x.col,index:e.index})}const U={border:"1px solid #f5f5f5",padding:"4px 0 4px 4px",background:"white","border-radius":"4px"};return a((()=>{S(R(x.row))})),(o,r)=>(t(),l(u(w),{ref_key:"popoverRef",ref:g,trigger:"manual",show:b.value,"onUpdate:show":r[3]||(r[3]=e=>b.value=e),"show-arrow":!1},{trigger:n((()=>[i(h,{onClick:r[0]||(r[0]=s((e=>b.value=!b.value),["stop"])),style:U,col:e.col,row:e.row},null,8,["col","row"])])),default:n((()=>[e.col.separateSlot?(t(),l(u(p),{key:0,renderer:e.col.separateSlot,value:j.value,"onUpdate:value":r[1]||(r[1]=e=>j.value=e),"onUpdate:show":k,col:e.col,row:e.row},null,8,["renderer","value","col","row"])):(t(),l(u(f),{key:1,value:j.value,"onUpdate:value":r[2]||(r[2]=e=>j.value=e),type:"textarea"},null,8,["value"]))])),_:1},8,["show"]))}});export{y as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,openBlock as u,createBlock as r,unref as i,withKeys as a,withCtx as n,createVNode as o,createTextVNode as l}from"vue";import{NInput as p,NButton as v}from"naive-ui";import f from"../../../../_virtual/plugin-vue_export-helper.js";var m=f(e({__name:"input-button",emits:["trigger"],setup(e,{emit:f}){const m=t("");function s(){f("trigger",m.value)}return(e,t)=>(u(),r(i(p),{value:m.value,"onUpdate:value":t[0]||(t[0]=e=>m.value=e),placeholder:"字段搜索",class:"check-seach-input",onKeyup:a(s,["enter"])},{suffix:n((()=>[o(i(v),{text:"",onClick:s},{default:n((()=>[l("搜索")])),_:1})])),_:1},8,["value","onKeyup"]))}}),[["__file","input-button.vue"]]);export{m as default};
1
+ import t from"./input-button.vue2.js";import u from"../../../../_virtual/_plugin-vue_export-helper.js";var e=u(t,[["__file","input-button.vue"]]);export{e as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,openBlock as u,createBlock as a,unref as n,withKeys as r,withCtx as i,createVNode as o,createTextVNode as l}from"vue";import{NInput as p,NButton as v}from"naive-ui";var c=e({__name:"input-button",emits:["trigger"],setup(e,{emit:c}){const s=t("");function f(){c("trigger",s.value)}return(e,t)=>(u(),a(n(p),{value:s.value,"onUpdate:value":t[0]||(t[0]=e=>s.value=e),placeholder:"字段搜索",class:"check-seach-input",onKeyup:r(f,["enter"])},{suffix:i((()=>[o(n(v),{text:"",onClick:f},{default:i((()=>[l("搜索")])),_:1})])),_:1},8,["value","onKeyup"]))}});export{c as default};
@@ -1 +1 @@
1
- import{defineComponent as e,computed as a,openBlock as r,createElementBlock as t,createTextVNode as p,toDisplayString as s,unref as o,createElementVNode as l}from"vue";import{useSeparateMap as u}from"../hooks/useSeparateRow.js";import i from"../../../../_virtual/plugin-vue_export-helper.js";const c={class:"big-table__separate"},_=l("span",{class:"big-table__separatePlaceholder"},s(" "),-1);var n=i(e({__name:"separate",props:{col:{type:Object,required:!0},row:{type:Object,required:!0}},setup(e){const l=e,{separateDataMap:i}=u(),n=a((()=>{const e=i.value.get(l.row);return e?e.separateData[l.col.field]:""}));return(e,a)=>(r(),t("div",c,[p(s(o(n))+" ",1),_]))}}),[["__file","separate.vue"]]);export{n as default};
1
+ import e from"./separate.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var a=r(e,[["__file","separate.vue"]]);export{a as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as a,openBlock as t,createElementBlock as r,createTextVNode as s,toDisplayString as o,unref as p,createElementVNode as l}from"vue";import{useSeparateMap as c}from"../hooks/useSeparateRow.js";const u={class:"big-table__separate"},i=l("span",{class:"big-table__separatePlaceholder"},o(" "),-1);var n=e({__name:"separate",props:{col:{type:Object,required:!0},row:{type:Object,required:!0}},setup(e){const l=e,{separateDataMap:n}=c(),b=a((()=>{const e=n.value.get(l.row);return e?e.separateData[l.col.field]:""}));return(e,a)=>(t(),r("div",u,[s(o(p(b))+" ",1),i]))}});export{n as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,reactive as n,onMounted as o,openBlock as r,createElementBlock as i,createCommentVNode as s,createElementVNode as l}from"vue";import"bpmn-js/dist/assets/diagram-js.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";import{attr as a}from"tiny-svg";import{useMessage as d}from"naive-ui";import p from"axios";import m from"moment";import c from"bpmn-js/lib/Viewer";import u from"./custom/customOtherModule/zoomScroll.js";import v from"bpmn-js/lib/features/modeling";import f from"diagram-js/lib/navigation/movecanvas";import b from"./custom/customOtherModule/customViewerRenderer.js";import y from"../../../_virtual/plugin-vue_export-helper.js";const g={class:"containers"};var h=y(e({__name:"BpmnWorkflow",props:{flowType:{type:String,default:"workflow"},processId:String,instanceId:String,token:String,getBpmnXml:{type:Function,default:()=>Promise.resolve({})},getInstanceHistory:{type:Function,default:()=>Promise.resolve({})},getNodeApprovaler:{type:Function,default:()=>Promise.resolve({})}},setup(e){const y=e;d();const h=t(null),w=n({nodeMenu:[],currentCanvasXml:null,eventType:["element.click","element.hover","element.out"]});p.create({withCredentials:!0,timeout:5e3,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"bearer "+y.token},baseURL:"/"}),o((()=>{console.log("生成bpmnModeler,展示画布"),x(y.processId,y.instanceId)}));const x=async(e,t)=>{"function"==typeof y.getBpmnXml&&(w.currentCanvasXml=await y.getBpmnXml(e),k(e,t))},k=async(e,t)=>{w.bpmnModeler&&w.bpmnModeler.destroy(),w.bpmnModeler=new c({container:h.value,additionalModules:[v,f,u,b,{bendpoints:["value",{}]}]});try{const{err:n}=await w.bpmnModeler.importXML(w.currentCanvasXml);if(n&&n.length)return console.error(n);w.bpmnModeler.get("canvas").zoom("fit-viewport","auto"),I(),j(e,t)}catch(e){console.error(`[Process Designer Warn]: ${(null==e?void 0:e.message)||e}`)}},I=()=>{let e=w.bpmnModeler.get("eventBus"),t=w.bpmnModeler.get("overlays"),n=w.bpmnModeler.get("selection");w.eventType.forEach((o=>{e.on(o,(e=>{let{element:r}=e;if(r.parent){if(!e||"bpmn:Process"===r.type)return!1;switch(o){case"element.hover":(async(e,t)=>{var n;let o="",{id:r,type:i}=e;if(!["label","bpmn:SequenceFlow"].includes(e.type)){const t=w.bpmnModeler.get("selection");t.select(null),t.select(e,!0)}if("bpmn:UserTask"==i){let e=w.nodeMenu.find((e=>e.key==r));(null==(n=null==e?void 0:e.auditor)?void 0:n.length)&&(o=`审核人:${e.auditor.map((e=>e.name)).join("、")}`,t.add(r,"tip",{position:{top:0,right:-12},html:`<div style="position: absolute;\n top: calc(50% - 5px);\n left: -10px;\n width: 0px;\n height: 0px;\n border:5px solid rgba(0, 0, 0, 0.75);\n border-top: 5px solid transparent;\n border-left: 5px solid transparent;\n border-bottom: 5px solid transparent;">\n </div>\n <div class="diagram-note"\n style="background-color: rgba(0, 0, 0, 0.75);\n color: #fff;\n font-size: 14px;\n text-align:left;\n width: 200px;\n max-height: 71px;\n padding: 5px;\n border-radius: 4px;\n word-break: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;">\n ${o}\n </div>`}))}})(r,t);break;case"element.out":n.select(null),t.clear()}}}))}))},M=(e,t)=>{const n=w.bpmnModeler.get("modeling");e.renderPathColor=t,n.setColor(e,{stroke:t})},j=async(e,t)=>{if("function"!=typeof y.getInstanceHistory)return;const n=w.bpmnModeler.get("elementRegistry");let o=n.filter((e=>!["label","bpmn:Process","bpmn:SequenceFlow"].includes(e.type))),r=await y.getInstanceHistory(e,t),i={},s=[],l=[];var d,p,c;r.historyActivity.map((e=>{-1!=e.activityId.indexOf("#multiInstanceBody")&&(s.push(e.activityId.replace("#multiInstanceBody","")),l.push(e))})),(d=r.historyActivity,p="activityId",c={},d.reduce((function(e,t){return!c[t[p]]&&(c[t[p]]=e.push(t)),e}),[])).filter((e=>![...new Set(s)].includes(e.activityId)&&"StartEvent_1"!=e.activityId&&!e.activityId.startsWith("Event_"))).map((e=>{let t=e.activityId.replace("#multiInstanceBody",""),n=e,o=l.filter((t=>e.activityId==t.activityId));(null==o?void 0:o.length)&&(n=o.reduce(((e,t)=>m(e.endTime).isBefore(t.endTime)?t:e))),i[t]=n.activityState}));let u=[];await Promise.all(o.map((async t=>{var o;if(Object.keys(i).includes(t.id)){let r=n.getGraphics(t.id).childNodes[2];a(r,{rx:10,ry:10,strokeWidth:3,strokeDasharray:0});let s=n.get(t.id);4==i[t.id]&&M(s,"#5aa36a"),2==i[t.id]&&M(s,"#d14141");let l={};if("bpmn:UserTask"==t.type){if("function"!=typeof y.getNodeApprovaler)return;l=await y.getNodeApprovaler(e,t.id),u.push({key:t.id,value:null==(o=null==t?void 0:t.businessObject)?void 0:o.name,auditor:null==l?void 0:l.auditor})}}}))),w.nodeMenu=u};return(e,t)=>(r(),i("div",g,[s(" 流程画布部分 "),l("div",{class:"canvas",ref_key:"canva",ref:h},null,512)]))}}),[["__file","BpmnWorkflow.vue"]]);export{h as default};
1
+ import r from"./BpmnWorkflow.vue2.js";import o from"../../../_virtual/_plugin-vue_export-helper.js";var e=o(r,[["__file","BpmnWorkflow.vue"]]);export{e as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,reactive as n,onMounted as o,openBlock as r,createElementBlock as i,createCommentVNode as s,createElementVNode as a}from"vue";import"bpmn-js/dist/assets/diagram-js.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";import{attr as l}from"tiny-svg";import{useMessage as d}from"naive-ui";import p from"axios";import c from"moment";import m from"bpmn-js/lib/Viewer";import u from"./custom/customOtherModule/zoomScroll.js";import v from"bpmn-js/lib/features/modeling";import b from"diagram-js/lib/navigation/movecanvas";import f from"./custom/customOtherModule/customViewerRenderer.js";const y={class:"containers"};var g=e({__name:"BpmnWorkflow",props:{flowType:{type:String,default:"workflow"},processId:String,instanceId:String,token:String,getBpmnXml:{type:Function,default:()=>Promise.resolve({})},getInstanceHistory:{type:Function,default:()=>Promise.resolve({})},getNodeApprovaler:{type:Function,default:()=>Promise.resolve({})}},setup(e){const g=e;d();const h=t(null),w=n({nodeMenu:[],currentCanvasXml:null,eventType:["element.click","element.hover","element.out"]});p.create({withCredentials:!0,timeout:5e3,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"bearer "+g.token},baseURL:"/"}),o((()=>{console.log("生成bpmnModeler,展示画布"),x(g.processId,g.instanceId)}));const x=async(e,t)=>{"function"==typeof g.getBpmnXml&&(w.currentCanvasXml=await g.getBpmnXml(e),k(e,t))},k=async(e,t)=>{w.bpmnModeler&&w.bpmnModeler.destroy(),w.bpmnModeler=new m({container:h.value,additionalModules:[v,b,u,f,{bendpoints:["value",{}]}]});try{const{err:n}=await w.bpmnModeler.importXML(w.currentCanvasXml);if(n&&n.length)return console.error(n);w.bpmnModeler.get("canvas").zoom("fit-viewport","auto"),I(),j(e,t)}catch(e){console.error(`[Process Designer Warn]: ${(null==e?void 0:e.message)||e}`)}},I=()=>{let e=w.bpmnModeler.get("eventBus"),t=w.bpmnModeler.get("overlays"),n=w.bpmnModeler.get("selection");w.eventType.forEach((o=>{e.on(o,(e=>{let{element:r}=e;if(r.parent){if(!e||"bpmn:Process"===r.type)return!1;switch(o){case"element.hover":(async(e,t)=>{var n;let o="",{id:r,type:i}=e;if(!["label","bpmn:SequenceFlow"].includes(e.type)){const t=w.bpmnModeler.get("selection");t.select(null),t.select(e,!0)}if("bpmn:UserTask"==i){let e=w.nodeMenu.find((e=>e.key==r));(null==(n=null==e?void 0:e.auditor)?void 0:n.length)&&(o=`审核人:${e.auditor.map((e=>e.name)).join("、")}`,t.add(r,"tip",{position:{top:0,right:-12},html:`<div style="position: absolute;\n top: calc(50% - 5px);\n left: -10px;\n width: 0px;\n height: 0px;\n border:5px solid rgba(0, 0, 0, 0.75);\n border-top: 5px solid transparent;\n border-left: 5px solid transparent;\n border-bottom: 5px solid transparent;">\n </div>\n <div class="diagram-note"\n style="background-color: rgba(0, 0, 0, 0.75);\n color: #fff;\n font-size: 14px;\n text-align:left;\n width: 200px;\n max-height: 71px;\n padding: 5px;\n border-radius: 4px;\n word-break: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;">\n ${o}\n </div>`}))}})(r,t);break;case"element.out":n.select(null),t.clear()}}}))}))},M=(e,t)=>{const n=w.bpmnModeler.get("modeling");e.renderPathColor=t,n.setColor(e,{stroke:t})},j=async(e,t)=>{if("function"!=typeof g.getInstanceHistory)return;const n=w.bpmnModeler.get("elementRegistry");let o=n.filter((e=>!["label","bpmn:Process","bpmn:SequenceFlow"].includes(e.type))),r=await g.getInstanceHistory(e,t),i={},s=[],a=[];var d,p,m;r.historyActivity.map((e=>{-1!=e.activityId.indexOf("#multiInstanceBody")&&(s.push(e.activityId.replace("#multiInstanceBody","")),a.push(e))})),(d=r.historyActivity,p="activityId",m={},d.reduce((function(e,t){return!m[t[p]]&&(m[t[p]]=e.push(t)),e}),[])).filter((e=>![...new Set(s)].includes(e.activityId)&&"StartEvent_1"!=e.activityId&&!e.activityId.startsWith("Event_"))).map((e=>{let t=e.activityId.replace("#multiInstanceBody",""),n=e,o=a.filter((t=>e.activityId==t.activityId));(null==o?void 0:o.length)&&(n=o.reduce(((e,t)=>c(e.endTime).isBefore(t.endTime)?t:e))),i[t]=n.activityState}));let u=[];await Promise.all(o.map((async t=>{var o;if(Object.keys(i).includes(t.id)){let r=n.getGraphics(t.id).childNodes[2];l(r,{rx:10,ry:10,strokeWidth:3,strokeDasharray:0});let s=n.get(t.id);4==i[t.id]&&M(s,"#5aa36a"),2==i[t.id]&&M(s,"#d14141");let a={};if("bpmn:UserTask"==t.type){if("function"!=typeof g.getNodeApprovaler)return;a=await g.getNodeApprovaler(e,t.id),u.push({key:t.id,value:null==(o=null==t?void 0:t.businessObject)?void 0:o.name,auditor:null==a?void 0:a.auditor})}}}))),w.nodeMenu=u};return(e,t)=>(r(),i("div",y,[s(" 流程画布部分 "),a("div",{class:"canvas",ref_key:"canva",ref:h},null,512)]))}});export{g as default};
@@ -1 +1 @@
1
- import t from"./ButtonPrint.vue2.js";import r from"../../../_virtual/plugin-vue_export-helper.js";var e=r(t,[["__file","ButtonPrint.vue"]]);export{e as default};
1
+ import t from"./ButtonPrint.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var e=r(t,[["__file","ButtonPrint.vue"]]);export{e as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,openBlock as o,createBlock as l,unref as n,withCtx as r,createVNode as i,createElementVNode as a,createTextVNode as u}from"vue";import{useMessage as s,NForm as p,NFormItem as d,NSpace as f,NUpload as m,NUploadDragger as c,NIcon as v,NText as h,NP as w}from"naive-ui";import{Archive as _}from"@vicons/ionicons5";import g from"axios";import x from"../../../../_virtual/plugin-vue_export-helper.js";const $={style:{"margin-bottom":"12px"}};var S=x(e({__name:"EditFormat",props:{formatId:null,token:null},setup(e,{expose:x}){const S=e,E=`${window.location.protocol}//${window.location.host}/bi-api`,C=`${E}/reprot/print/open/client/saveIReportFormat`,j=`${E}/reprot/print/open/client/getIReportFiles`,y=`${E}/reprot/print/open/client/delIReportFiles`,I=g.create({}),b=s(),F=t([]);var z;function R(e){return new Promise(((t,o)=>{var l;I.get(`${y}?formatId=${null==(l=S.formatId)?void 0:l.split("_")[1]}&authorizationKey=${S.token}&fileName=${e.file.name}`).then((({data:e})=>{"SUCCESS"!==(null==e?void 0:e.result)?(b.error((null==e?void 0:e.resultMsg)||"删除文件失败,请重试!"),o()):(b.success("删除文件成功!"),t("SUCCESS"))}))}))}return I.get(`${j}?formatId=${null==(z=S.formatId)?void 0:z.split("_")[1]}&authorizationKey=${S.token}`).then((({data:e})=>{(e.list||[]).forEach((e=>{F.value.push({id:Date.now().toString(),name:e,status:"finished"})}))})),x({submit:function(e){return new Promise(((t,o)=>{if(!function(){if(F.value.length<2)return!1;let e=!1,t=!1;const o=/\.([^.]+)$/;return F.value.forEach((l=>{var n;const r=(null==(n=l.file)?void 0:n.name)||l.name||"",i=o.exec(r)?RegExp.$1.toLowerCase():"";i&&".jrxml".includes(i)&&(e=!0),i&&".jasper".includes(i)&&(t=!0)})),!(!e||!t)}())return void b.warning("请至少上传一个jrxml文件和一个jasper文件!");if(0===F.value.filter((e=>e.file)).length)return void b.warning("本次无新文件增加,请先添加新文件!");const l=new FormData;Object.keys(e).forEach((t=>{l.append(t,e[t])})),F.value.forEach((e=>{e.file&&l.append("files",e.file)})),I.post(C,l,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((({data:e})=>{"SUCCESS"!==(null==e?void 0:e.result)?(b.error((null==e?void 0:e.resultMsg)||"上传文件失败,请重试!"),o()):t("SUCCESS")}))}))}}),(e,t)=>(o(),l(n(p),{"label-placement":"left","label-width":75},{default:r((()=>[i(n(d),{label:"格式文件:",path:"file"},{default:r((()=>[i(n(f),{vertical:""},{default:r((()=>[i(n(m),{multiple:"","directory-dnd":"","file-list":F.value,"onUpdate:file-list":t[0]||(t[0]=e=>F.value=e),onRemove:R},{default:r((()=>[i(n(c),null,{default:r((()=>[a("div",$,[i(n(v),{size:"36",depth:3,component:n(_)},null,8,["component"])]),i(n(h),{style:{"font-size":"12px"}},{default:r((()=>[u("点击或者拖动文件到该区域来上传")])),_:1}),i(n(w),{depth:"3",style:{margin:"5px 0 0 0","font-size":"13px"}},{default:r((()=>[u("至少包含一个jxml文件和一个jasper文件")])),_:1})])),_:1})])),_:1},8,["file-list"])])),_:1})])),_:1})])),_:1}))}}),[["__file","EditFormat.vue"]]);export{S as default};
1
+ import r from"./EditFormat.vue2.js";import t from"../../../../_virtual/_plugin-vue_export-helper.js";var e=t(r,[["__file","EditFormat.vue"]]);export{e as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,openBlock as o,createBlock as l,unref as n,withCtx as r,createVNode as i,createElementVNode as a,createTextVNode as s}from"vue";import{useMessage as u,NForm as p,NFormItem as d,NSpace as f,NUpload as m,NUploadDragger as c,NIcon as v,NText as h,NP as w}from"naive-ui";import{Archive as $}from"@vicons/ionicons5";import g from"axios";const x={style:{"margin-bottom":"12px"}};var S=e({__name:"EditFormat",props:{formatId:null,token:null},setup(e,{expose:S}){const _=e,C=`${window.location.protocol}//${window.location.host}/bi-api`,E=`${C}/reprot/print/open/client/saveIReportFormat`,y=`${C}/reprot/print/open/client/getIReportFiles`,I=`${C}/reprot/print/open/client/delIReportFiles`,b=g.create({}),j=u(),z=t([]);var F;function R(e){return new Promise(((t,o)=>{var l;b.get(`${I}?formatId=${null==(l=_.formatId)?void 0:l.split("_")[1]}&authorizationKey=${_.token}&fileName=${e.file.name}`).then((({data:e})=>{"SUCCESS"!==(null==e?void 0:e.result)?(j.error((null==e?void 0:e.resultMsg)||"删除文件失败,请重试!"),o()):(j.success("删除文件成功!"),t("SUCCESS"))}))}))}return b.get(`${y}?formatId=${null==(F=_.formatId)?void 0:F.split("_")[1]}&authorizationKey=${_.token}`).then((({data:e})=>{(e.list||[]).forEach((e=>{z.value.push({id:Date.now().toString(),name:e,status:"finished"})}))})),S({submit:function(e){return new Promise(((t,o)=>{if(!function(){if(z.value.length<2)return!1;let e=!1,t=!1;const o=/\.([^.]+)$/;return z.value.forEach((l=>{var n;const r=(null==(n=l.file)?void 0:n.name)||l.name||"",i=o.exec(r)?RegExp.$1.toLowerCase():"";i&&".jrxml".includes(i)&&(e=!0),i&&".jasper".includes(i)&&(t=!0)})),!(!e||!t)}())return void j.warning("请至少上传一个jrxml文件和一个jasper文件!");if(0===z.value.filter((e=>e.file)).length)return void j.warning("本次无新文件增加,请先添加新文件!");const l=new FormData;Object.keys(e).forEach((t=>{l.append(t,e[t])})),z.value.forEach((e=>{e.file&&l.append("files",e.file)})),b.post(E,l,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((({data:e})=>{"SUCCESS"!==(null==e?void 0:e.result)?(j.error((null==e?void 0:e.resultMsg)||"上传文件失败,请重试!"),o()):t("SUCCESS")}))}))}}),(e,t)=>(o(),l(n(p),{"label-placement":"left","label-width":75},{default:r((()=>[i(n(d),{label:"格式文件:",path:"file"},{default:r((()=>[i(n(f),{vertical:""},{default:r((()=>[i(n(m),{multiple:"","directory-dnd":"","file-list":z.value,"onUpdate:file-list":t[0]||(t[0]=e=>z.value=e),onRemove:R},{default:r((()=>[i(n(c),null,{default:r((()=>[a("div",x,[i(n(v),{size:"36",depth:3,component:n($)},null,8,["component"])]),i(n(h),{style:{"font-size":"12px"}},{default:r((()=>[s("点击或者拖动文件到该区域来上传")])),_:1}),i(n(w),{depth:"3",style:{margin:"5px 0 0 0","font-size":"13px"}},{default:r((()=>[s("至少包含一个jxml文件和一个jasper文件")])),_:1})])),_:1})])),_:1},8,["file-list"])])),_:1})])),_:1})])),_:1}))}});export{S as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,reactive as a,watch as l,openBlock as o,createBlock as i,unref as u,normalizeStyle as r,withCtx as s,createElementVNode as n,mergeProps as d,createVNode as p,createTextVNode as c}from"vue";import{useMessage as m,NModal as v,NForm as f,NFormItem as y,NInput as w,NButton as _}from"naive-ui";import g from"./EditFormat.vue.js";import"../utils/print.js";import{isIReport as h}from"../utils/browserPrint.js";import I from"../../../../_virtual/plugin-vue_export-helper.js";const k={class:"content"};var V=I(e({__name:"IdentityVerification",props:{verifyUser:{type:Function,default:()=>Promise.resolve()},identityVerificationTitle:{default:"打印服务身份校验"},modelValue:{type:Boolean},formatId:null,templateId:null},emits:["update:modelValue","success","close"],setup(e,{emit:I}){const V=e,x=m(),b={account:"",password:""},C=t(null),j=t(!1),U=t("");let S=a({...b});const F={account:{required:!0,message:"请输入账号"},password:{required:!0,message:"请输入密码"}},P="416px",q=t(null),E=()=>{I("update:modelValue",!1),I("close")},N=t(!1),R=()=>{var e;null==(e=q.value)||e.validate((e=>{if(e)return console.log(e),!1;(async()=>{var e,t;try{N.value=!0;const{data:a={}}=await V.verifyUser(S)||{};if("SUCCESS"!==a.result)return x.error(a.resultMsg||"身份校验失败,请重试!"),!1;h(V.formatId||"")?(j.value=!0,U.value=null==(e=a.map)?void 0:e.token):I("success",null==(t=a.map)?void 0:t.token)}finally{N.value=!1}})()}))},T=async()=>{var e,t;try{N.value=!0;if(!await(null==(t=C.value)?void 0:t.submit({authorizationKey:U.value,id:null==(e=V.formatId)?void 0:e.split("_")[1],templateId:V.templateId,datasourceName:null,dataSourceId:null})))return!1;I("success",U.value)}finally{N.value=!1}};return l((()=>V.modelValue),(e=>{e||Object.assign(S,b)})),(t,a)=>(o(),i(u(v),{preset:"dialog",title:j.value?"编辑":e.identityVerificationTitle,class:"standard-modal standard-modal-white authentication-modal c-button-print-modal",show:e.modelValue,"close-on-esc":!1,"show-icon":!1,style:r({width:P,overflowY:"auto"}),"positive-text":j.value?"确认":"","negative-text":j.value?"取消":"",onClose:E,onNegativeClick:E,onPositiveClick:T},{default:s((()=>[n("div",k,[j.value?(o(),i(g,d({key:0,ref_key:"editFormRef",ref:C},t.$attrs,{formatId:e.formatId,token:U.value}),null,16,["formatId","token"])):(o(),i(u(f),{key:1,class:"login-form-button-print",ref_key:"formRef",ref:q,model:u(S),rules:F},{default:s((()=>[p(u(y),{path:"account"},{default:s((()=>[p(u(w),{value:u(S).account,"onUpdate:value":a[0]||(a[0]=e=>u(S).account=e),placeholder:"请输入账号"},null,8,["value"])])),_:1}),p(u(y),{path:"password"},{default:s((()=>[p(u(w),{type:"password","input-props":{autocomplete:"on",name:"password"},value:u(S).password,"onUpdate:value":a[1]||(a[1]=e=>u(S).password=e),placeholder:"请输入密码"},null,8,["value"])])),_:1}),p(u(y),null,{default:s((()=>[p(u(_),{loading:N.value,type:"primary",class:"login-form-button",onClick:R},{default:s((()=>[c("登录")])),_:1},8,["loading"])])),_:1})])),_:1},8,["model"]))])])),_:1},8,["title","show","style","positive-text","negative-text"]))}}),[["__file","IdentityVerification.vue"]]);export{V as default};
1
+ import e from"./IdentityVerification.vue2.js";import i from"../../../../_virtual/_plugin-vue_export-helper.js";var t=i(e,[["__file","IdentityVerification.vue"]]);export{t as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,reactive as a,watch as l,openBlock as o,createBlock as u,unref as r,normalizeStyle as i,withCtx as s,createElementVNode as n,mergeProps as d,createVNode as c,createTextVNode as m}from"vue";import{useMessage as p,NModal as v,NForm as f,NFormItem as y,NInput as w,NButton as g}from"naive-ui";import h from"./EditFormat.vue.js";import"../utils/print.js";import{isIReport as k}from"../utils/browserPrint.js";const I={class:"content"};var _=e({__name:"IdentityVerification",props:{verifyUser:{type:Function,default:()=>Promise.resolve()},identityVerificationTitle:{default:"打印服务身份校验"},modelValue:{type:Boolean},formatId:null,templateId:null},emits:["update:modelValue","success","close"],setup(e,{emit:_}){const V=e,b=p(),x={account:"",password:""},C=t(null),U=t(!1),j=t("");let S=a({...x});const F={account:{required:!0,message:"请输入账号"},password:{required:!0,message:"请输入密码"}},P="416px",q=t(null),E=()=>{_("update:modelValue",!1),_("close")},N=t(!1),R=()=>{var e;null==(e=q.value)||e.validate((e=>{if(e)return console.log(e),!1;(async()=>{var e,t;try{N.value=!0;const{data:a={}}=await V.verifyUser(S)||{};if("SUCCESS"!==a.result)return b.error(a.resultMsg||"身份校验失败,请重试!"),!1;k(V.formatId||"")?(U.value=!0,j.value=null==(e=a.map)?void 0:e.token):_("success",null==(t=a.map)?void 0:t.token)}finally{N.value=!1}})()}))},T=async()=>{var e,t;try{N.value=!0;if(!await(null==(t=C.value)?void 0:t.submit({authorizationKey:j.value,id:null==(e=V.formatId)?void 0:e.split("_")[1],templateId:V.templateId,datasourceName:null,dataSourceId:null})))return!1;_("success",j.value)}finally{N.value=!1}};return l((()=>V.modelValue),(e=>{e||Object.assign(S,x)})),(t,a)=>(o(),u(r(v),{preset:"dialog",title:U.value?"编辑":e.identityVerificationTitle,class:"standard-modal standard-modal-white authentication-modal c-button-print-modal",show:e.modelValue,"close-on-esc":!1,"show-icon":!1,style:i({width:P,overflowY:"auto"}),"positive-text":U.value?"确认":"","negative-text":U.value?"取消":"",onClose:E,onNegativeClick:E,onPositiveClick:T},{default:s((()=>[n("div",I,[U.value?(o(),u(h,d({key:0,ref_key:"editFormRef",ref:C},t.$attrs,{formatId:e.formatId,token:j.value}),null,16,["formatId","token"])):(o(),u(r(f),{key:1,class:"login-form-button-print",ref_key:"formRef",ref:q,model:r(S),rules:F},{default:s((()=>[c(r(y),{path:"account"},{default:s((()=>[c(r(w),{value:r(S).account,"onUpdate:value":a[0]||(a[0]=e=>r(S).account=e),placeholder:"请输入账号"},null,8,["value"])])),_:1}),c(r(y),{path:"password"},{default:s((()=>[c(r(w),{type:"password","input-props":{autocomplete:"on",name:"password"},value:r(S).password,"onUpdate:value":a[1]||(a[1]=e=>r(S).password=e),placeholder:"请输入密码"},null,8,["value"])])),_:1}),c(r(y),null,{default:s((()=>[c(r(g),{loading:N.value,type:"primary",class:"login-form-button",onClick:R},{default:s((()=>[m("登录")])),_:1},8,["loading"])])),_:1})])),_:1},8,["model"]))])])),_:1},8,["title","show","style","positive-text","negative-text"]))}});export{_ as default};
@@ -1 +1 @@
1
- import e from"./Preview.vue2.js";import r from"../../../../_virtual/plugin-vue_export-helper.js";var i=r(e,[["__file","Preview.vue"]]);export{i as default};
1
+ import e from"./Preview.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","Preview.vue"]]);export{i as default};