cnhis-design-vue 0.2.63-beta → 0.3.1-beta

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 (768) hide show
  1. package/README.md +23 -81
  2. package/env.d.ts +20 -0
  3. package/es/big-table/index.css +5 -0
  4. package/es/big-table/index.js +8 -19705
  5. package/es/button-print/index.css +7 -0
  6. package/es/button-print/index.js +3 -0
  7. package/es/drag-layout/index.css +10 -0
  8. package/es/drag-layout/index.js +9 -4822
  9. package/es/grid/index.css +10 -0
  10. package/es/grid/index.js +1 -3800
  11. package/es/index.css +10 -0
  12. package/es/index.js +14 -0
  13. package/package.json +45 -87
  14. package/tsconfig.node.json +8 -0
  15. package/.prettierrc.js +0 -27
  16. package/commitlint.config.js +0 -1
  17. package/es/affix/index.js +0 -3008
  18. package/es/affix/style.css +0 -0
  19. package/es/age/index.js +0 -3767
  20. package/es/age/style.css +0 -1
  21. package/es/alert/index.js +0 -3008
  22. package/es/alert/style.css +0 -0
  23. package/es/anchor/index.js +0 -3021
  24. package/es/anchor/style.css +0 -0
  25. package/es/auto-complete/index.js +0 -3008
  26. package/es/auto-complete/style.css +0 -0
  27. package/es/avatar/index.js +0 -3008
  28. package/es/avatar/style.css +0 -0
  29. package/es/back-top/index.js +0 -3008
  30. package/es/back-top/style.css +0 -0
  31. package/es/badge/index.js +0 -3008
  32. package/es/badge/style.css +0 -0
  33. package/es/base/index.js +0 -2896
  34. package/es/base/style.css +0 -0
  35. package/es/big-table/style.css +0 -1
  36. package/es/breadcrumb/index.js +0 -3032
  37. package/es/breadcrumb/style.css +0 -0
  38. package/es/button/index.js +0 -9156
  39. package/es/button/style.css +0 -1
  40. package/es/calendar/index.js +0 -3008
  41. package/es/calendar/style.css +0 -0
  42. package/es/captcha/index.js +0 -3618
  43. package/es/captcha/style.css +0 -1
  44. package/es/card/index.js +0 -3032
  45. package/es/card/style.css +0 -0
  46. package/es/carousel/index.js +0 -3008
  47. package/es/carousel/style.css +0 -0
  48. package/es/cascader/index.js +0 -3008
  49. package/es/cascader/style.css +0 -0
  50. package/es/checkbox/index.js +0 -3343
  51. package/es/checkbox/style.css +0 -1
  52. package/es/col/index.js +0 -3009
  53. package/es/col/style.css +0 -0
  54. package/es/collapse/index.js +0 -3021
  55. package/es/collapse/style.css +0 -0
  56. package/es/color-picker/index.js +0 -3532
  57. package/es/color-picker/style.css +0 -1
  58. package/es/comment/index.js +0 -3008
  59. package/es/comment/style.css +0 -0
  60. package/es/config-provider/index.js +0 -3008
  61. package/es/config-provider/style.css +0 -0
  62. package/es/date-picker/index.js +0 -3043
  63. package/es/date-picker/style.css +0 -0
  64. package/es/descriptions/index.js +0 -3021
  65. package/es/descriptions/style.css +0 -0
  66. package/es/divider/index.js +0 -3008
  67. package/es/divider/style.css +0 -0
  68. package/es/drag-layout/style.css +0 -1
  69. package/es/drawer/index.js +0 -3008
  70. package/es/drawer/style.css +0 -0
  71. package/es/dropdown/index.js +0 -3008
  72. package/es/dropdown/style.css +0 -0
  73. package/es/editor/index.js +0 -3565
  74. package/es/editor/style.css +0 -1
  75. package/es/empty/index.js +0 -3008
  76. package/es/empty/style.css +0 -0
  77. package/es/fabric-chart/index.js +0 -10094
  78. package/es/fabric-chart/style.css +0 -1
  79. package/es/form/index.js +0 -3019
  80. package/es/form/style.css +0 -0
  81. package/es/form-model/index.js +0 -3018
  82. package/es/form-model/style.css +0 -0
  83. package/es/form-table/index.js +0 -12035
  84. package/es/form-table/style.css +0 -1
  85. package/es/grid/style.css +0 -0
  86. package/es/icon/index.js +0 -2962
  87. package/es/icon/style.css +0 -0
  88. package/es/img/calling.ba1a517f.png +0 -0
  89. package/es/img/failure.96c6f004.png +0 -0
  90. package/es/img/no-permission.3aa0dddb.png +0 -0
  91. package/es/img/nodata.bbccf960.png +0 -0
  92. package/es/index/index.js +0 -120162
  93. package/es/index/style.css +0 -1
  94. package/es/input/index.js +0 -4384
  95. package/es/input/style.css +0 -1
  96. package/es/input-number/index.js +0 -3008
  97. package/es/input-number/style.css +0 -0
  98. package/es/keep-cache/index.js +0 -3299
  99. package/es/keep-cache/style.css +0 -1
  100. package/es/layout/index.js +0 -3054
  101. package/es/layout/style.css +0 -0
  102. package/es/list/index.js +0 -3032
  103. package/es/list/style.css +0 -0
  104. package/es/locale-provider/index.js +0 -3008
  105. package/es/locale-provider/style.css +0 -0
  106. package/es/map/index.js +0 -3677
  107. package/es/map/style.css +0 -1
  108. package/es/media/msgTip.6865f0c7.mp3 +0 -0
  109. package/es/mentions/index.js +0 -3021
  110. package/es/mentions/style.css +0 -0
  111. package/es/menu/index.js +0 -3054
  112. package/es/menu/style.css +0 -0
  113. package/es/message/index.js +0 -2896
  114. package/es/message/style.css +0 -0
  115. package/es/modal/index.js +0 -2962
  116. package/es/modal/style.css +0 -0
  117. package/es/multi-chat/index.js +0 -24374
  118. package/es/multi-chat/style.css +0 -1
  119. package/es/multi-chat-client/index.js +0 -18383
  120. package/es/multi-chat-client/style.css +0 -1
  121. package/es/multi-chat-history/index.js +0 -4600
  122. package/es/multi-chat-history/style.css +0 -1
  123. package/es/multi-chat-record/index.js +0 -4864
  124. package/es/multi-chat-record/style.css +0 -1
  125. package/es/multi-chat-setting/index.js +0 -13540
  126. package/es/multi-chat-setting/style.css +0 -1
  127. package/es/multi-chat-sip/index.js +0 -3313
  128. package/es/multi-chat-sip/style.css +0 -1
  129. package/es/notification/index.js +0 -2896
  130. package/es/notification/style.css +0 -0
  131. package/es/page-header/index.js +0 -3008
  132. package/es/page-header/style.css +0 -0
  133. package/es/pagination/index.js +0 -3008
  134. package/es/pagination/style.css +0 -0
  135. package/es/popconfirm/index.js +0 -3008
  136. package/es/popconfirm/style.css +0 -0
  137. package/es/popover/index.js +0 -3008
  138. package/es/popover/style.css +0 -0
  139. package/es/progress/index.js +0 -3008
  140. package/es/progress/style.css +0 -0
  141. package/es/radio/index.js +0 -3334
  142. package/es/radio/style.css +0 -1
  143. package/es/rate/index.js +0 -3008
  144. package/es/rate/style.css +0 -0
  145. package/es/result/index.js +0 -3008
  146. package/es/result/style.css +0 -0
  147. package/es/row/index.js +0 -3008
  148. package/es/row/style.css +0 -0
  149. package/es/scale-view/index.js +0 -18420
  150. package/es/scale-view/style.css +0 -1
  151. package/es/select/index.js +0 -4783
  152. package/es/select/style.css +0 -1
  153. package/es/select-label/index.js +0 -5647
  154. package/es/select-label/style.css +0 -1
  155. package/es/select-person/index.js +0 -5427
  156. package/es/select-person/style.css +0 -1
  157. package/es/skeleton/index.js +0 -3008
  158. package/es/skeleton/style.css +0 -0
  159. package/es/slider/index.js +0 -3008
  160. package/es/slider/style.css +0 -0
  161. package/es/space/index.js +0 -3008
  162. package/es/space/style.css +0 -0
  163. package/es/spin/index.js +0 -3008
  164. package/es/spin/style.css +0 -0
  165. package/es/statistic/index.js +0 -3021
  166. package/es/statistic/style.css +0 -0
  167. package/es/steps/index.js +0 -3021
  168. package/es/steps/style.css +0 -0
  169. package/es/switch/index.js +0 -3008
  170. package/es/switch/style.css +0 -0
  171. package/es/table-filter/index.js +0 -24332
  172. package/es/table-filter/style.css +0 -1
  173. package/es/tabs/index.js +0 -3021
  174. package/es/tabs/style.css +0 -0
  175. package/es/tag/index.js +0 -3912
  176. package/es/tag/style.css +0 -1
  177. package/es/time-picker/index.js +0 -3008
  178. package/es/time-picker/style.css +0 -0
  179. package/es/timeline/index.js +0 -3018
  180. package/es/timeline/style.css +0 -0
  181. package/es/tooltip/index.js +0 -3008
  182. package/es/tooltip/style.css +0 -0
  183. package/es/transfer/index.js +0 -3008
  184. package/es/transfer/style.css +0 -0
  185. package/es/tree/index.js +0 -3021
  186. package/es/tree/style.css +0 -0
  187. package/es/tree-select/index.js +0 -3021
  188. package/es/tree-select/style.css +0 -0
  189. package/es/upload/index.js +0 -3008
  190. package/es/upload/style.css +0 -0
  191. package/es/utils/UniRTCv2.js +0 -586
  192. package/es/utils/chatFetch.js +0 -85
  193. package/es/utils/clickoutside.js +0 -76
  194. package/es/utils/crypto.js +0 -40
  195. package/es/utils/kty-sdk.js +0 -1030
  196. package/es/utils/kty.min-1.0.0.js +0 -6
  197. package/es/utils/sip-device.js +0 -112
  198. package/es/utils/time-domain.js +0 -195
  199. package/es/utils/utils-map.js +0 -547
  200. package/es/utils/vexutils.js +0 -977
  201. package/es/verification-code/index.js +0 -3487
  202. package/es/verification-code/style.css +0 -1
  203. package/packages/affix/index.js +0 -12
  204. package/packages/affix/src/Affix.jsx +0 -12
  205. package/packages/age/index.js +0 -27
  206. package/packages/age/src/age/index.vue +0 -140
  207. package/packages/age/src/age-com/index.vue +0 -210
  208. package/packages/alert/index.js +0 -12
  209. package/packages/alert/src/Alert.jsx +0 -11
  210. package/packages/anchor/index.js +0 -18
  211. package/packages/anchor/src/Anchor.jsx +0 -11
  212. package/packages/anchor/src/Link.jsx +0 -11
  213. package/packages/auto-complete/index.js +0 -12
  214. package/packages/auto-complete/src/AutoComplete.jsx +0 -12
  215. package/packages/avatar/index.js +0 -12
  216. package/packages/avatar/src/Avatar.jsx +0 -11
  217. package/packages/back-top/index.js +0 -12
  218. package/packages/back-top/src/BackTop.jsx +0 -11
  219. package/packages/badge/index.js +0 -12
  220. package/packages/badge/src/Badge.jsx +0 -11
  221. package/packages/base/index.js +0 -3
  222. package/packages/big-table/index.js +0 -16
  223. package/packages/big-table/src/BigTable.vue +0 -3051
  224. package/packages/big-table/src/Fieldset.vue +0 -2067
  225. package/packages/big-table/src/assets/iconfont/iconfont.css +0 -21
  226. package/packages/big-table/src/assets/iconfont/iconfont.ttf +0 -0
  227. package/packages/big-table/src/assets/img/failure.png +0 -0
  228. package/packages/big-table/src/assets/img/icon-asc.png +0 -0
  229. package/packages/big-table/src/assets/img/icon-desc.png +0 -0
  230. package/packages/big-table/src/assets/img/no-permission.png +0 -0
  231. package/packages/big-table/src/assets/img/nodata.png +0 -0
  232. package/packages/big-table/src/assets/img/notfound.png +0 -0
  233. package/packages/big-table/src/assets/img/qr.png +0 -0
  234. package/packages/big-table/src/assets/img/video_default_cover.png +0 -0
  235. package/packages/big-table/src/assets/img/xb_big.png +0 -0
  236. package/packages/big-table/src/assets/img/xb_small.png +0 -0
  237. package/packages/big-table/src/assets/style/table-base.less +0 -345
  238. package/packages/big-table/src/assets/style/table-global.less +0 -175
  239. package/packages/big-table/src/components/NoData.vue +0 -81
  240. package/packages/big-table/src/components/TextOverTooltip.vue +0 -120
  241. package/packages/big-table/src/components/edit-form/EditForm.vue +0 -491
  242. package/packages/big-table/src/components/edit-form/edit-component/config-data/index.js +0 -67
  243. package/packages/big-table/src/components/edit-form/edit-component/edit-date-picker/edit-date-picker.vue +0 -60
  244. package/packages/big-table/src/components/edit-form/edit-component/edit-digital/edit-digital.vue +0 -54
  245. package/packages/big-table/src/components/edit-form/edit-component/edit-input/edit-input.vue +0 -39
  246. package/packages/big-table/src/components/edit-form/edit-component/edit-input-password/edit-input-password.vue +0 -79
  247. package/packages/big-table/src/components/edit-form/edit-component/edit-month-picker/edit-month-picker.vue +0 -37
  248. package/packages/big-table/src/components/edit-form/edit-component/edit-search/edit-search.vue +0 -83
  249. package/packages/big-table/src/components/edit-form/edit-component/edit-search-more/edit-search-more.vue +0 -95
  250. package/packages/big-table/src/components/edit-form/edit-component/edit-select/edit-select.vue +0 -40
  251. package/packages/big-table/src/components/edit-form/edit-component/edit-select-multiple/edit-select-multiple.vue +0 -55
  252. package/packages/big-table/src/components/edit-form/edit-component/edit-textarea/edit-textarea.vue +0 -41
  253. package/packages/big-table/src/components/edit-form/edit-component/edit-time-picker/edit-time-picker.vue +0 -40
  254. package/packages/big-table/src/components/edit-form/edit-component/global-props.js +0 -33
  255. package/packages/big-table/src/components/edit-form/edit-component/index.js +0 -8
  256. package/packages/big-table/src/components/edit-form/edit-component/mixins/bound-date.js +0 -3
  257. package/packages/big-table/src/components/edit-form/edit-component/mixins/dateType.js +0 -216
  258. package/packages/big-table/src/components/edit-form/edit-component/mixins/item-default.js +0 -594
  259. package/packages/big-table/src/components/edit-form/edit-component/mixins/search.js +0 -1198
  260. package/packages/big-table/src/components/edit-form/edit-component/register-com.js +0 -26
  261. package/packages/big-table/src/components/edit-form/edit-item/form-event.js +0 -79
  262. package/packages/big-table/src/components/edit-form/edit-item/global-props.js +0 -33
  263. package/packages/big-table/src/components/edit-form/edit-item/index.js +0 -4
  264. package/packages/big-table/src/components/edit-form/edit-item/render-methods.js +0 -28
  265. package/packages/big-table/src/components/edit-form/edit-item/validate-rules.js +0 -463
  266. package/packages/big-table/src/components/edit-form/edit-mixins/form-commom.js +0 -668
  267. package/packages/big-table/src/components/edit-form/edit-mixins/index.js +0 -3
  268. package/packages/big-table/src/components/edit-form/edit-utils/index.js +0 -112
  269. package/packages/big-table/src/components/password-com.vue +0 -58
  270. package/packages/big-table/src/components/player-vod/index.vue +0 -57
  271. package/packages/big-table/src/components/player-vod/player.vue +0 -189
  272. package/packages/big-table/src/components/player-vod/video-list.vue +0 -264
  273. package/packages/big-table/src/components/player-vod/video-modal.vue +0 -126
  274. package/packages/big-table/src/utils/CustomPagination.vue +0 -86
  275. package/packages/big-table/src/utils/batchEditing.js +0 -534
  276. package/packages/big-table/src/utils/bigTableProps.js +0 -94
  277. package/packages/big-table/src/utils/format.js +0 -557
  278. package/packages/big-table/src/utils/nestTable.js +0 -109
  279. package/packages/big-table/src/utils/tableParse.js +0 -153
  280. package/packages/breadcrumb/index.js +0 -21
  281. package/packages/breadcrumb/src/Breadcrumb.jsx +0 -11
  282. package/packages/breadcrumb/src/BreadcrumbItem.jsx +0 -11
  283. package/packages/breadcrumb/src/BreadcrumbSeparator.jsx +0 -11
  284. package/packages/button/index.js +0 -21
  285. package/packages/button/src/Button.jsx +0 -11
  286. package/packages/button/src/ButtonGroup.jsx +0 -11
  287. package/packages/button/src/ButtonPrint/components/IdentityVerification.vue +0 -176
  288. package/packages/button/src/ButtonPrint/index.vue +0 -687
  289. package/packages/button/src/ButtonPrint/js/print.es.min.js +0 -1
  290. package/packages/button/src/ButtonPrint/mixin/his-print.js +0 -95
  291. package/packages/calendar/index.js +0 -12
  292. package/packages/calendar/src/Calendar.jsx +0 -11
  293. package/packages/captcha/index.js +0 -10
  294. package/packages/captcha/src/Captcha.vue +0 -164
  295. package/packages/captcha/src/Index.vue +0 -47
  296. package/packages/captcha/src/SlideVerify.vue +0 -285
  297. package/packages/card/index.js +0 -21
  298. package/packages/card/src/Card.jsx +0 -12
  299. package/packages/card/src/CardGrid.js +0 -7
  300. package/packages/card/src/CardMeta.js +0 -7
  301. package/packages/carousel/index.js +0 -12
  302. package/packages/carousel/src/Carousel.jsx +0 -12
  303. package/packages/cascader/index.js +0 -12
  304. package/packages/cascader/src/Cascader.jsx +0 -11
  305. package/packages/checkbox/index.js +0 -30
  306. package/packages/checkbox/src/Checkbox.jsx +0 -11
  307. package/packages/checkbox/src/CheckboxImg/index.vue +0 -142
  308. package/packages/checkbox/src/Group.jsx +0 -11
  309. package/packages/col/index.js +0 -13
  310. package/packages/col/src/Col.jsx +0 -11
  311. package/packages/collapse/index.js +0 -18
  312. package/packages/collapse/src/Collapse.jsx +0 -11
  313. package/packages/collapse/src/Panel.jsx +0 -11
  314. package/packages/color-picker/index.js +0 -10
  315. package/packages/color-picker/src/color-picker.vue +0 -191
  316. package/packages/color-picker/src/style.less +0 -109
  317. package/packages/comment/index.js +0 -12
  318. package/packages/comment/src/Comment.jsx +0 -11
  319. package/packages/config-provider/index.js +0 -12
  320. package/packages/config-provider/src/ConfigProvider.jsx +0 -11
  321. package/packages/date-picker/index.js +0 -24
  322. package/packages/date-picker/src/DatePicker.jsx +0 -12
  323. package/packages/date-picker/src/MonthPicker.jsx +0 -11
  324. package/packages/date-picker/src/RangePicker.jsx +0 -11
  325. package/packages/date-picker/src/WeekPicker.jsx +0 -11
  326. package/packages/descriptions/index.js +0 -18
  327. package/packages/descriptions/src/Descriptions.jsx +0 -11
  328. package/packages/descriptions/src/Item.jsx +0 -11
  329. package/packages/divider/index.js +0 -12
  330. package/packages/divider/src/Divider.jsx +0 -11
  331. package/packages/drag-layout/DragFormLeftItem.vue +0 -173
  332. package/packages/drag-layout/DragFormRightItem.vue +0 -284
  333. package/packages/drag-layout/I18n-mixins.js +0 -10
  334. package/packages/drag-layout/drag-layout.vue +0 -778
  335. package/packages/drag-layout/index.js +0 -12
  336. package/packages/drawer/index.js +0 -12
  337. package/packages/drawer/src/Drawer.jsx +0 -11
  338. package/packages/dropdown/index.js +0 -12
  339. package/packages/dropdown/src/Dropdown.jsx +0 -11
  340. package/packages/editor/index.js +0 -10
  341. package/packages/editor/src/Editor.vue +0 -180
  342. package/packages/empty/index.js +0 -12
  343. package/packages/empty/src/Empty.jsx +0 -11
  344. package/packages/fabric-chart/index.js +0 -10
  345. package/packages/fabric-chart/src/FabricChart.vue +0 -179
  346. package/packages/fabric-chart/src/FabricGrid.vue +0 -73
  347. package/packages/fabric-chart/src/components/DropPopup.vue +0 -90
  348. package/packages/fabric-chart/src/components/MouseRightClick.vue +0 -168
  349. package/packages/fabric-chart/src/const/defaultVaule.js +0 -58
  350. package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +0 -296
  351. package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +0 -546
  352. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +0 -933
  353. package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +0 -120
  354. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +0 -526
  355. package/packages/fabric-chart/src/fabric-chart2/FabricBottom.vue +0 -108
  356. package/packages/fabric-chart/src/fabric-chart2/FabricCanvas.vue +0 -181
  357. package/packages/fabric-chart/src/fabric-chart2/FabricCenter.vue +0 -612
  358. package/packages/fabric-chart/src/fabric-chart2/FabricLeft.vue +0 -104
  359. package/packages/fabric-chart/src/fabric-chart2/FabricRight.vue +0 -112
  360. package/packages/fabric-chart/src/fabric-chart2/FabricTop.vue +0 -172
  361. package/packages/fabric-chart/src/mixins/draw.js +0 -290
  362. package/packages/fabric-chart/src/mixins/eventCommon.js +0 -74
  363. package/packages/fabric-chart/src/mixins/fabricCommon.js +0 -85
  364. package/packages/fabric-chart/src/mixins/fabricObject.js +0 -193
  365. package/packages/fabric-chart/src/mixins/type.js +0 -6
  366. package/packages/form/index.js +0 -16
  367. package/packages/form/src/Form.jsx +0 -11
  368. package/packages/form/src/Item.jsx +0 -11
  369. package/packages/form-model/index.js +0 -14
  370. package/packages/form-model/src/FormModel.jsx +0 -11
  371. package/packages/form-model/src/Item.jsx +0 -11
  372. package/packages/form-table/index.js +0 -10
  373. package/packages/form-table/src/FormTable.vue +0 -1103
  374. package/packages/form-table/src/components/table-component/config-data/index.js +0 -80
  375. package/packages/form-table/src/components/table-component/global-props.js +0 -22
  376. package/packages/form-table/src/components/table-component/index.js +0 -8
  377. package/packages/form-table/src/components/table-component/mixins/bound-date.js +0 -455
  378. package/packages/form-table/src/components/table-component/mixins/dateType.js +0 -217
  379. package/packages/form-table/src/components/table-component/mixins/item-default.js +0 -257
  380. package/packages/form-table/src/components/table-component/mixins/search.js +0 -1228
  381. package/packages/form-table/src/components/table-component/register-com.js +0 -30
  382. package/packages/form-table/src/components/table-component/table-age/table-age.vue +0 -175
  383. package/packages/form-table/src/components/table-component/table-date-picker/table-date-picker.vue +0 -87
  384. package/packages/form-table/src/components/table-component/table-digital/table-digital.vue +0 -93
  385. package/packages/form-table/src/components/table-component/table-input/table-input.vue +0 -81
  386. package/packages/form-table/src/components/table-component/table-input-password/table-input-password.vue +0 -126
  387. package/packages/form-table/src/components/table-component/table-month-picker/table-month-picker.vue +0 -53
  388. package/packages/form-table/src/components/table-component/table-search/table-search.vue +0 -128
  389. package/packages/form-table/src/components/table-component/table-search-more/table-search-more.vue +0 -144
  390. package/packages/form-table/src/components/table-component/table-select/table-select.vue +0 -64
  391. package/packages/form-table/src/components/table-component/table-select-multiple/table-select-multiple.vue +0 -81
  392. package/packages/form-table/src/components/table-component/table-textarea/table-textarea.vue +0 -76
  393. package/packages/form-table/src/components/table-component/table-time-picker/table-time-picker.vue +0 -55
  394. package/packages/form-table/src/components/table-component/table-tree-select/table-tree-select.vue +0 -135
  395. package/packages/form-table/src/components/table-component/text-over-tooltip/TextOverTooltip.vue +0 -97
  396. package/packages/form-table/src/components/table-item/form-event.js +0 -81
  397. package/packages/form-table/src/components/table-item/global-props.js +0 -27
  398. package/packages/form-table/src/components/table-item/index.js +0 -4
  399. package/packages/form-table/src/components/table-item/render-methods.js +0 -28
  400. package/packages/form-table/src/components/table-item/validate-rules.js +0 -520
  401. package/packages/form-table/src/components/table-mixins/form-commom.js +0 -98
  402. package/packages/form-table/src/components/table-mixins/index.js +0 -3
  403. package/packages/form-table/src/components/table-utils/index.js +0 -112
  404. package/packages/form-table/src/disabledDetail.less +0 -46
  405. package/packages/grid/index.js +0 -10
  406. package/packages/grid/src/grid.js +0 -28
  407. package/packages/icon/index.js +0 -10
  408. package/packages/icon/src/icon.js +0 -13
  409. package/packages/index.js +0 -304
  410. package/packages/input/index.js +0 -30
  411. package/packages/input/src/Group.jsx +0 -11
  412. package/packages/input/src/Input.jsx +0 -11
  413. package/packages/input/src/Password.jsx +0 -11
  414. package/packages/input/src/Search.jsx +0 -11
  415. package/packages/input/src/TextArea.jsx +0 -11
  416. package/packages/input/src/input-quick/components/quick-item.vue +0 -284
  417. package/packages/input/src/input-quick/components/quick-popover.vue +0 -596
  418. package/packages/input/src/input-quick/index.vue +0 -137
  419. package/packages/input-number/index.js +0 -12
  420. package/packages/input-number/src/InputNumber.jsx +0 -11
  421. package/packages/keep-cache/KeepCache.js +0 -236
  422. package/packages/keep-cache/index.css +0 -3
  423. package/packages/keep-cache/index.js +0 -8
  424. package/packages/layout/index.js +0 -27
  425. package/packages/layout/src/Content.jsx +0 -11
  426. package/packages/layout/src/Footer.jsx +0 -11
  427. package/packages/layout/src/Header.jsx +0 -11
  428. package/packages/layout/src/Layout.jsx +0 -11
  429. package/packages/layout/src/Sider.jsx +0 -11
  430. package/packages/list/index.js +0 -21
  431. package/packages/list/src/Item.jsx +0 -11
  432. package/packages/list/src/ItemMeta.jsx +0 -11
  433. package/packages/list/src/List.jsx +0 -11
  434. package/packages/locale-provider/index.js +0 -12
  435. package/packages/locale-provider/src/LocaleProvider.jsx +0 -11
  436. package/packages/map/index.js +0 -10
  437. package/packages/map/src/Map.vue +0 -480
  438. package/packages/map/src/popup-map.vue +0 -53
  439. package/packages/mentions/index.js +0 -18
  440. package/packages/mentions/src/Mentions.jsx +0 -11
  441. package/packages/mentions/src/Option.jsx +0 -11
  442. package/packages/menu/index.js +0 -27
  443. package/packages/menu/src/Divider.jsx +0 -11
  444. package/packages/menu/src/Item.jsx +0 -11
  445. package/packages/menu/src/ItemGroup.jsx +0 -11
  446. package/packages/menu/src/Menu.jsx +0 -11
  447. package/packages/menu/src/SubMenu.jsx +0 -11
  448. package/packages/message/index.js +0 -8
  449. package/packages/modal/index.js +0 -10
  450. package/packages/modal/src/Modal.js +0 -7
  451. package/packages/multi-chat/chat/addConference.vue +0 -200
  452. package/packages/multi-chat/chat/addMembers.vue +0 -411
  453. package/packages/multi-chat/chat/advancedFilter.vue +0 -372
  454. package/packages/multi-chat/chat/audio.vue +0 -511
  455. package/packages/multi-chat/chat/calling.vue +0 -246
  456. package/packages/multi-chat/chat/chatFooter.vue +0 -1590
  457. package/packages/multi-chat/chat/chatHeader.vue +0 -473
  458. package/packages/multi-chat/chat/chatHistory.vue +0 -601
  459. package/packages/multi-chat/chat/chatMain.vue +0 -1446
  460. package/packages/multi-chat/chat/client/clientChat.vue +0 -716
  461. package/packages/multi-chat/chat/client/index.vue +0 -149
  462. package/packages/multi-chat/chat/delay.vue +0 -177
  463. package/packages/multi-chat/chat/evaluate.vue +0 -343
  464. package/packages/multi-chat/chat/index.vue +0 -2341
  465. package/packages/multi-chat/chat/messageRecord.vue +0 -333
  466. package/packages/multi-chat/chat/mixins/NoData.js +0 -20
  467. package/packages/multi-chat/chat/mixins/base.js +0 -92
  468. package/packages/multi-chat/chat/mixins/uniRTCAPI.js +0 -77
  469. package/packages/multi-chat/chat/multiVideo.vue +0 -1409
  470. package/packages/multi-chat/chat/quickReply.vue +0 -361
  471. package/packages/multi-chat/chat/robot/index.vue +0 -312
  472. package/packages/multi-chat/chat/scrollList.vue +0 -1229
  473. package/packages/multi-chat/chat/video.vue +0 -399
  474. package/packages/multi-chat/chat/videoVoiceList.vue +0 -348
  475. package/packages/multi-chat/chat/voice.vue +0 -431
  476. package/packages/multi-chat/components/avatar.vue +0 -76
  477. package/packages/multi-chat/components/chat-tabs-header.vue +0 -251
  478. package/packages/multi-chat/components/classify-tabs.vue +0 -185
  479. package/packages/multi-chat/components/empty.vue +0 -24
  480. package/packages/multi-chat/components/modal-refuse-reason.vue +0 -112
  481. package/packages/multi-chat/components/modal-sip.vue +0 -160
  482. package/packages/multi-chat/components/modal-user-transfer.vue +0 -98
  483. package/packages/multi-chat/components/msg-describe.vue +0 -138
  484. package/packages/multi-chat/components/msg-picture.vue +0 -68
  485. package/packages/multi-chat/components/msg-prescription.vue +0 -205
  486. package/packages/multi-chat/components/read-record.vue +0 -133
  487. package/packages/multi-chat/components/read-status.vue +0 -34
  488. package/packages/multi-chat/components/user-status.vue +0 -198
  489. package/packages/multi-chat/img/OFF-LINE.png +0 -0
  490. package/packages/multi-chat/img/ON-LINE.png +0 -0
  491. package/packages/multi-chat/img/accept.png +0 -0
  492. package/packages/multi-chat/img/add-person.png +0 -0
  493. package/packages/multi-chat/img/add_prescription.png +0 -0
  494. package/packages/multi-chat/img/all-voice.png +0 -0
  495. package/packages/multi-chat/img/audio-new.png +0 -0
  496. package/packages/multi-chat/img/audio-play.gif +0 -0
  497. package/packages/multi-chat/img/audio.png +0 -0
  498. package/packages/multi-chat/img/base-info-active.png +0 -0
  499. package/packages/multi-chat/img/base-info.png +0 -0
  500. package/packages/multi-chat/img/busy_line.png +0 -0
  501. package/packages/multi-chat/img/call.png +0 -0
  502. package/packages/multi-chat/img/callin.png +0 -0
  503. package/packages/multi-chat/img/callin_cancel.png +0 -0
  504. package/packages/multi-chat/img/calling.png +0 -0
  505. package/packages/multi-chat/img/callout.png +0 -0
  506. package/packages/multi-chat/img/callout_cancel.png +0 -0
  507. package/packages/multi-chat/img/close.png +0 -0
  508. package/packages/multi-chat/img/close_video.png +0 -0
  509. package/packages/multi-chat/img/customer-service-active.png +0 -0
  510. package/packages/multi-chat/img/customer-service.png +0 -0
  511. package/packages/multi-chat/img/customer.png +0 -0
  512. package/packages/multi-chat/img/customer_staff.png +0 -0
  513. package/packages/multi-chat/img/default.png +0 -0
  514. package/packages/multi-chat/img/ellipsis.png +0 -0
  515. package/packages/multi-chat/img/end-voice.png +0 -0
  516. package/packages/multi-chat/img/event-active.png +0 -0
  517. package/packages/multi-chat/img/event.png +0 -0
  518. package/packages/multi-chat/img/exp.png +0 -0
  519. package/packages/multi-chat/img/full-sceen-close.png +0 -0
  520. package/packages/multi-chat/img/full-sceen.png +0 -0
  521. package/packages/multi-chat/img/icon_list.png +0 -0
  522. package/packages/multi-chat/img/icon_list_active.png +0 -0
  523. package/packages/multi-chat/img/icon_table.png +0 -0
  524. package/packages/multi-chat/img/icon_table_active.png +0 -0
  525. package/packages/multi-chat/img/join-video.png +0 -0
  526. package/packages/multi-chat/img/large.png +0 -0
  527. package/packages/multi-chat/img/left-wrapper.png +0 -0
  528. package/packages/multi-chat/img/left.png +0 -0
  529. package/packages/multi-chat/img/medical_record.png +0 -0
  530. package/packages/multi-chat/img/middle.png +0 -0
  531. package/packages/multi-chat/img/msgTip.mp3 +0 -0
  532. package/packages/multi-chat/img/multi-video.png +0 -0
  533. package/packages/multi-chat/img/multi-voice.png +0 -0
  534. package/packages/multi-chat/img/mute-audio.png +0 -0
  535. package/packages/multi-chat/img/muted-audio.png +0 -0
  536. package/packages/multi-chat/img/muted-screen.png +0 -0
  537. package/packages/multi-chat/img/muted-video.png +0 -0
  538. package/packages/multi-chat/img/no-all-voice.png +0 -0
  539. package/packages/multi-chat/img/no-data.png +0 -0
  540. package/packages/multi-chat/img/no-data2.png +0 -0
  541. package/packages/multi-chat/img/no-screen.png +0 -0
  542. package/packages/multi-chat/img/no-video.png +0 -0
  543. package/packages/multi-chat/img/no-voice.png +0 -0
  544. package/packages/multi-chat/img/no-voiced.png +0 -0
  545. package/packages/multi-chat/img/normal-screen.png +0 -0
  546. package/packages/multi-chat/img/normal-video.png +0 -0
  547. package/packages/multi-chat/img/over.png +0 -0
  548. package/packages/multi-chat/img/portrait.png +0 -0
  549. package/packages/multi-chat/img/prescription.png +0 -0
  550. package/packages/multi-chat/img/receive.png +0 -0
  551. package/packages/multi-chat/img/reject.png +0 -0
  552. package/packages/multi-chat/img/remove.png +0 -0
  553. package/packages/multi-chat/img/required.png +0 -0
  554. package/packages/multi-chat/img/screen.png +0 -0
  555. package/packages/multi-chat/img/send_prescription.png +0 -0
  556. package/packages/multi-chat/img/setting.png +0 -0
  557. package/packages/multi-chat/img/small.png +0 -0
  558. package/packages/multi-chat/img/sound.png +0 -0
  559. package/packages/multi-chat/img/sound_forbid.png +0 -0
  560. package/packages/multi-chat/img/start_video.png +0 -0
  561. package/packages/multi-chat/img/system_message.png +0 -0
  562. package/packages/multi-chat/img/to-session.png +0 -0
  563. package/packages/multi-chat/img/transfer.png +0 -0
  564. package/packages/multi-chat/img/transfer2.png +0 -0
  565. package/packages/multi-chat/img/video-accept.png +0 -0
  566. package/packages/multi-chat/img/video.png +0 -0
  567. package/packages/multi-chat/img/video_consult.png +0 -0
  568. package/packages/multi-chat/img/voice.png +0 -0
  569. package/packages/multi-chat/img/worktime-active.png +0 -0
  570. package/packages/multi-chat/img/worktime.png +0 -0
  571. package/packages/multi-chat/index.js +0 -7
  572. package/packages/multi-chat/setting/authority/index.vue +0 -156
  573. package/packages/multi-chat/setting/authority/roleSetting.vue +0 -204
  574. package/packages/multi-chat/setting/baseInfo/index.vue +0 -1241
  575. package/packages/multi-chat/setting/configuration/index.vue +0 -277
  576. package/packages/multi-chat/setting/customerService/batchSelect.vue +0 -403
  577. package/packages/multi-chat/setting/customerService/index.vue +0 -273
  578. package/packages/multi-chat/setting/event/edit/condition.vue +0 -128
  579. package/packages/multi-chat/setting/event/edit/index.vue +0 -437
  580. package/packages/multi-chat/setting/event/edit/notice.vue +0 -129
  581. package/packages/multi-chat/setting/event/edit/strategy.vue +0 -98
  582. package/packages/multi-chat/setting/event/index.vue +0 -249
  583. package/packages/multi-chat/setting/index.vue +0 -269
  584. package/packages/multi-chat/setting/page.vue +0 -14
  585. package/packages/multi-chat/setting/sessionList/index.vue +0 -412
  586. package/packages/multi-chat/setting/sessionList/messageRecord.vue +0 -372
  587. package/packages/multi-chat/setting/userConfig/index.vue +0 -124
  588. package/packages/multi-chat/setting/worktime/index.vue +0 -274
  589. package/packages/multi-chat/store/actions.js +0 -448
  590. package/packages/multi-chat/store/getters.js +0 -353
  591. package/packages/multi-chat/store/helper.js +0 -66
  592. package/packages/multi-chat/store/index.js +0 -50
  593. package/packages/multi-chat/store/mutation.js +0 -278
  594. package/packages/multi-chat/store/state.js +0 -111
  595. package/packages/multi-chat/style/emoji.css +0 -315
  596. package/packages/multi-chat/style/message.mixin.less +0 -38
  597. package/packages/multi-chat/utils/chatSock.js +0 -93
  598. package/packages/multi-chat/utils/compressImage.js +0 -115
  599. package/packages/multi-chat/utils/emoji.json +0 -68
  600. package/packages/multi-chat/utils/index.js +0 -181
  601. package/packages/multi-chat/utils/observer-scroll.js +0 -49
  602. package/packages/multi-chat/utils/panelsetting.js +0 -48
  603. package/packages/multi-chat/utils/rtc-client-multi.js +0 -376
  604. package/packages/multi-chat/utils/rtc-client.js +0 -381
  605. package/packages/multi-chat-client/index.js +0 -7
  606. package/packages/multi-chat-history/index.js +0 -7
  607. package/packages/multi-chat-record/index.js +0 -7
  608. package/packages/multi-chat-setting/index.js +0 -7
  609. package/packages/multi-chat-sip/index.js +0 -6
  610. package/packages/notification/index.js +0 -8
  611. package/packages/page-header/index.js +0 -12
  612. package/packages/page-header/src/PageHeader.jsx +0 -11
  613. package/packages/pagination/index.js +0 -12
  614. package/packages/pagination/src/Pagination.jsx +0 -11
  615. package/packages/popconfirm/index.js +0 -12
  616. package/packages/popconfirm/src/Popconfirm.jsx +0 -11
  617. package/packages/popover/index.js +0 -12
  618. package/packages/popover/src/Popover.jsx +0 -11
  619. package/packages/progress/index.js +0 -12
  620. package/packages/progress/src/Progress.jsx +0 -11
  621. package/packages/radio/index.js +0 -33
  622. package/packages/radio/src/Group.jsx +0 -11
  623. package/packages/radio/src/Radio.jsx +0 -11
  624. package/packages/radio/src/RadioButton.jsx +0 -11
  625. package/packages/radio/src/RadioImg/index.vue +0 -125
  626. package/packages/rate/index.js +0 -12
  627. package/packages/rate/src/Rate.jsx +0 -11
  628. package/packages/result/index.js +0 -12
  629. package/packages/result/src/Result.jsx +0 -11
  630. package/packages/row/index.js +0 -12
  631. package/packages/row/src/Row.jsx +0 -11
  632. package/packages/scale-view/answerParse.vue +0 -124
  633. package/packages/scale-view/customList.vue +0 -801
  634. package/packages/scale-view/data.js +0 -80
  635. package/packages/scale-view/evaluateCountdown.vue +0 -155
  636. package/packages/scale-view/evaluatePage.vue +0 -202
  637. package/packages/scale-view/formitem/data.js +0 -3991
  638. package/packages/scale-view/formitem/index.js +0 -6
  639. package/packages/scale-view/formitem/r-address.vue +0 -238
  640. package/packages/scale-view/formitem/r-choice.vue +0 -534
  641. package/packages/scale-view/formitem/r-input.vue +0 -96
  642. package/packages/scale-view/formitem/r-prompt.vue +0 -52
  643. package/packages/scale-view/formitem/r-time.vue +0 -285
  644. package/packages/scale-view/formitem/r-upload-custom-list.vue +0 -242
  645. package/packages/scale-view/formitem/r-upload.vue +0 -287
  646. package/packages/scale-view/formitem/text-over-tooltip/TextOverTooltip.vue +0 -98
  647. package/packages/scale-view/index.js +0 -17
  648. package/packages/scale-view/mixin/NoData.js +0 -24
  649. package/packages/scale-view/mixin/evaluate.js +0 -146
  650. package/packages/scale-view/mixin/index.js +0 -337
  651. package/packages/scale-view/mixin/judgeTypes.js +0 -267
  652. package/packages/scale-view/scaleView.vue +0 -1836
  653. package/packages/select/index.js +0 -27
  654. package/packages/select/src/CustomSelect/index.vue +0 -130
  655. package/packages/select/src/OptGroup.jsx +0 -11
  656. package/packages/select/src/Option.jsx +0 -11
  657. package/packages/select/src/Select.jsx +0 -11
  658. package/packages/select/src/TableSelect/index.vue +0 -497
  659. package/packages/select-label/index.js +0 -14
  660. package/packages/select-label/label-classify.vue +0 -129
  661. package/packages/select-label/labelFormContent.vue +0 -787
  662. package/packages/select-label/select-label.vue +0 -581
  663. package/packages/select-person/index.js +0 -10
  664. package/packages/select-person/search-tree.vue +0 -373
  665. package/packages/select-person/select-person.vue +0 -1302
  666. package/packages/skeleton/index.js +0 -12
  667. package/packages/skeleton/src/Skeleton.jsx +0 -11
  668. package/packages/slider/index.js +0 -12
  669. package/packages/slider/src/Slider.jsx +0 -11
  670. package/packages/space/index.js +0 -12
  671. package/packages/space/src/Space.jsx +0 -11
  672. package/packages/spin/index.js +0 -12
  673. package/packages/spin/src/Spin.jsx +0 -11
  674. package/packages/statistic/index.js +0 -18
  675. package/packages/statistic/src/Countdown.jsx +0 -11
  676. package/packages/statistic/src/Statistic.jsx +0 -11
  677. package/packages/steps/index.js +0 -18
  678. package/packages/steps/src/Step.jsx +0 -11
  679. package/packages/steps/src/Steps.jsx +0 -11
  680. package/packages/switch/index.js +0 -12
  681. package/packages/switch/src/Switch.jsx +0 -11
  682. package/packages/table-filter/index.js +0 -27
  683. package/packages/table-filter/src/base-search-com/BaseSearch.vue +0 -2442
  684. package/packages/table-filter/src/classification/Classification-com.vue +0 -1756
  685. package/packages/table-filter/src/classification/search-class-name.vue +0 -266
  686. package/packages/table-filter/src/classification/search-professional-model.vue +0 -680
  687. package/packages/table-filter/src/components/TextOverTooltip.vue +0 -107
  688. package/packages/table-filter/src/components/age-com/index.vue +0 -205
  689. package/packages/table-filter/src/components/button-group/ButtonGroup.vue +0 -162
  690. package/packages/table-filter/src/components/button-icon/button-icon.js +0 -33
  691. package/packages/table-filter/src/components/button-icon/getBtnIcon.js +0 -34
  692. package/packages/table-filter/src/components/c-tree-select/tree-select.vue +0 -336
  693. package/packages/table-filter/src/components/drop-button/drop-button.vue +0 -224
  694. package/packages/table-filter/src/components/drop-button/head-btn-icon.js +0 -33
  695. package/packages/table-filter/src/components/drop-view/drop-view.vue +0 -89
  696. package/packages/table-filter/src/components/multi-select/multi-select.vue +0 -215
  697. package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +0 -337
  698. package/packages/table-filter/src/components/range-age/index.vue +0 -172
  699. package/packages/table-filter/src/components/search-condition/SearchCondition.vue +0 -1819
  700. package/packages/table-filter/src/components/search-condition/fieldTypeList.js +0 -169
  701. package/packages/table-filter/src/components/search-filter/SearchFilter.vue +0 -270
  702. package/packages/table-filter/src/components/search-modal/set-classification.vue +0 -310
  703. package/packages/table-filter/src/components/table-modal/TableModal.vue +0 -463
  704. package/packages/table-filter/src/const/index.js +0 -1
  705. package/packages/table-filter/src/index.vue +0 -584
  706. package/packages/table-filter/src/mixins/mixins.js +0 -682
  707. package/packages/table-filter/src/mixins/tableSearchCon.js +0 -128
  708. package/packages/table-filter/src/mixins/wordBookutils.js +0 -99
  709. package/packages/table-filter/src/quick-search/QuickSearch.vue +0 -2003
  710. package/packages/tabs/index.js +0 -18
  711. package/packages/tabs/src/TabPane.jsx +0 -11
  712. package/packages/tabs/src/Tabs.jsx +0 -11
  713. package/packages/tag/index.js +0 -21
  714. package/packages/tag/src/CheckableTag.jsx +0 -11
  715. package/packages/tag/src/Tag.jsx +0 -11
  716. package/packages/tag/src/TagGroup.vue +0 -622
  717. package/packages/time-picker/index.js +0 -12
  718. package/packages/time-picker/src/TimePicker.jsx +0 -11
  719. package/packages/timeline/index.js +0 -14
  720. package/packages/timeline/src/Item.jsx +0 -11
  721. package/packages/timeline/src/Timeline.jsx +0 -11
  722. package/packages/tooltip/index.js +0 -12
  723. package/packages/tooltip/src/Tooltip.jsx +0 -11
  724. package/packages/transfer/index.js +0 -12
  725. package/packages/transfer/src/Transfer.jsx +0 -11
  726. package/packages/tree/index.js +0 -18
  727. package/packages/tree/src/Tree.jsx +0 -11
  728. package/packages/tree/src/TreeNode.jsx +0 -11
  729. package/packages/tree-select/index.js +0 -18
  730. package/packages/tree-select/src/TreeNode.jsx +0 -11
  731. package/packages/tree-select/src/TreeSelect.jsx +0 -11
  732. package/packages/upload/chunk-upload/chunk-upload-new.vue +0 -1001
  733. package/packages/upload/chunk-upload/vod-chunk-upload.vue +0 -749
  734. package/packages/upload/chunk-upload/vod-upload-modal.vue +0 -100
  735. package/packages/upload/index.js +0 -12
  736. package/packages/upload/src/Upload.jsx +0 -11
  737. package/packages/verification-code/SlideVerify.vue +0 -306
  738. package/packages/verification-code/index.js +0 -17
  739. package/packages/verification-code/verification-code.vue +0 -147
  740. package/src/assets/img/success.png +0 -0
  741. package/src/assets/img/video.png +0 -0
  742. package/src/assets/img/video_default_cover.png +0 -0
  743. package/src/assets/img/video_hover.png +0 -0
  744. package/src/assets/img/video_play_hover.png +0 -0
  745. package/src/component/player-vod/index.vue +0 -57
  746. package/src/component/player-vod/player.vue +0 -188
  747. package/src/component/player-vod/video-list.vue +0 -262
  748. package/src/component/player-vod/video-modal.vue +0 -128
  749. package/src/component/select-pages/index.vue +0 -72
  750. package/src/component/svg/index.vue +0 -59
  751. package/src/core/create.js +0 -6
  752. package/src/core/event.js +0 -23
  753. package/src/core/table-methods.js +0 -444
  754. package/src/directive/flexibleResize.js +0 -151
  755. package/src/directive/scroll.js +0 -230
  756. package/src/global/variable.js +0 -2
  757. package/src/style/normalize.css +0 -424
  758. package/src/style/style.less +0 -49
  759. package/src/utils/UniRTCv2.js +0 -561
  760. package/src/utils/chatFetch.js +0 -61
  761. package/src/utils/clickoutside.js +0 -75
  762. package/src/utils/crypto.js +0 -25
  763. package/src/utils/kty-sdk.js +0 -582
  764. package/src/utils/kty.min-1.0.0.js +0 -14378
  765. package/src/utils/sip-device.js +0 -79
  766. package/src/utils/time-domain.js +0 -193
  767. package/src/utils/utils-map.js +0 -450
  768. package/src/utils/vexutils.js +0 -811
@@ -1,2003 +0,0 @@
1
-
2
- <template>
3
- <div>
4
- <div class="form-box" :class="{ 'quick-search-table': source === 'editTable' }">
5
- <p class="module-title" v-if="source === 'editTable' && hasRelationQuickSearch">高级筛选</p>
6
- <div
7
- class="quick-item"
8
- v-for="item in quickSearch"
9
- :key="item.sid"
10
- :class="{
11
- 'quick-block':
12
- item.con == 'DATE' || item.con == 'BIRTHDAY' || item.con == 'CONVERT' || item.LABELAttr
13
- }"
14
- >
15
- <div class="quick-row">
16
- <!-- title -->
17
- <div
18
- class="quick-item-title"
19
- :class="{ 'quick-item-title-default': source !== 'editTable' }"
20
- >
21
- <span>{{ handleName(item, "title") }}&nbsp;&nbsp;</span>
22
- <a-tooltip
23
- v-if="searchFieldLimit[item.columnName] && searchFieldLimit[item.columnName].tips"
24
- :title="searchFieldLimit[item.columnName].tips"
25
- >
26
- <svg-icon icon-class="xitongtubiaodaohangtubiaowenti" />
27
- &nbsp;&nbsp;
28
- </a-tooltip>
29
- </div>
30
- <div class="quick-item-col" :class="{ 'quick-item-col-default': source !== 'editTable' }">
31
- <!-- age -->
32
- <!-- TODO: 清除,跨表 -->
33
- <div v-if="item.AGEAttr" class="age-container">
34
- <range-age
35
- :ref="`${item.columnName}_AGEAttr`"
36
- :format="item.format"
37
- @change="ageRangeOnChange($event, item)"
38
- ></range-age>
39
- </div>
40
- <!-- age -->
41
- <!-- label -->
42
- <div v-else-if="item.LABELAttr" class="label-attr-container">
43
- <slot v-if="item.labelObj && Object.keys(item.labelObj || {}).length > 0">
44
- <div v-for="(v, k) in item.labelObj" :key="k" class="edit-label-content">
45
- <div class="edit-label">{{ k }}:</div>
46
-
47
- <div
48
- class="edit-content quickSearch_label-container"
49
- :class="{
50
- 'label-container-height': !v.isUnfold && v.itemList && v.isShowBtn
51
- }"
52
- >
53
- <div class="label-content" v-resize="el => onResize(el, v)">
54
- <a-checkable-tag
55
- v-for="(v, i) in v.itemList"
56
- v-model="v.isSelect"
57
- @change="handleLabelChange($event, v, item)"
58
- :key="i"
59
- :style="handleLabelColor(v)"
60
- >
61
- <a-tooltip placement="topLeft">
62
- <template slot="title">
63
- <span>{{ v.labelName }}</span>
64
- </template>
65
- {{ v.labelName }}
66
- </a-tooltip>
67
- </a-checkable-tag>
68
- </div>
69
- </div>
70
- <div class="label-unfold-btn" v-if="v.itemList && v.isShowBtn">
71
- <!-- {{ v.isUnfold }} -->
72
- <span @click.stop="handleLabelUpfold(v)">
73
- <template v-if="v.isUnfold">
74
- <span>收起</span>
75
- <a-icon
76
- type="up-square"
77
-
78
- />
79
- </template>
80
- <template v-else>
81
- <span>展开</span>
82
- <a-icon
83
- type="down-square"
84
- />
85
- </template>
86
- </span>
87
- </div>
88
- </div>
89
- </slot>
90
- <a-input v-else style="width: 200px" v-model="item.inputVal" allowClear></a-input>
91
- </div>
92
- <!-- label -->
93
-
94
- <!-- EVALUATE -->
95
- <div v-else-if="item.EVALUATEAttr">
96
- <template v-for="tag in EVALUATEList">
97
- <a-checkable-tag
98
- :key="tag.value"
99
- :checked="item.selecteds.indexOf(tag.value) > -1"
100
- @change="checked => handleEvaluateOnChange(tag, checked, item)"
101
- >
102
- {{ tag.label }}
103
- </a-checkable-tag>
104
- </template>
105
- <!-- <a-icon v-if="item.CL" type="close" @click="item.CL = ''" /> -->
106
- </div>
107
- <!-- EVALUATE -->
108
-
109
- <!-- NUMBERFiled -->
110
- <div v-else-if="item.NUMBERFiled" class="ant-calendar-picker" style="width: 300px">
111
- <span
112
- class="ant-calendar-picker-input ant-input num-picker"
113
- :class="{ 'num-picker-unit': item.inputUnit }"
114
- >
115
- <input
116
- v-model="item.lessValue"
117
- @keyup.enter="() => changeFilterNumber(item)"
118
- :title="`起始${item.alias || item.title}`"
119
- :placeholder="`起始${item.alias || item.title}`"
120
- class="ant-calendar-range-picker-input"/>
121
- <span class="ant-calendar-range-picker-separator"> ~ &nbsp;</span>
122
- <input
123
- v-model="item.bigValue"
124
- :title="`截止${item.alias || item.title}`"
125
- @keyup.enter="() => changeFilterNumber(item)"
126
- :placeholder="`截止${item.alias || item.title}`"
127
- class="ant-calendar-range-picker-input"/>
128
- <template v-if="item.inputUnit">&nbsp;{{ item.inputUnit }}</template>
129
- <span
130
- class="ant-input-suffix clear-number-icon"
131
- v-if="item.lessValue || item.bigValue"
132
- @click="clearFilterNumber(item)"
133
- ><i
134
- aria-label="图标: close-circle"
135
- tabindex="-1"
136
- class="anticon anticon-close-circle ant-input-clear-icon"
137
- ><svg
138
- viewBox="64 64 896 896"
139
- data-icon="close-circle"
140
- width="1em"
141
- height="1em"
142
- fill="currentColor"
143
- aria-hidden="true"
144
- focusable="false"
145
- class=""
146
- >
147
- <path
148
- d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"
149
- ></path></svg></i></span
150
- ></span>
151
- </div>
152
- <!-- NUMBERFiled -->
153
-
154
- <!-- other -->
155
- <slot v-else>
156
- <template v-if="item.con == 'CL'">
157
- <template v-if="showPercent(item)">
158
- <a-input-number
159
- class="CL-input"
160
- style="width: 200px"
161
- v-model="item.CL"
162
- :min="0"
163
- :max="100"
164
- allowClear
165
- />
166
- </template>
167
- <template v-else>
168
- <a-input
169
- class="CL-input"
170
- :style="{
171
- width: '200px',
172
- 'font-family': item.PASSWORDTYPE ? 'text-security-disc' : 'inherit'
173
- }"
174
- v-model="item.CL"
175
- :class="{ 'psw-icon': item.comAttr == 'PASSWORD' }"
176
- allowClear
177
- >
178
- <template slot="suffix" v-if="item.comAttr == 'PASSWORD'">
179
- <svg-icon
180
- class="psw-icon"
181
- @click="item.PASSWORDTYPE = !item.PASSWORDTYPE"
182
- :icon-class="item.PASSWORDTYPE ? 'anniuyincang' : 'chakan'"
183
- style="font-size: 1em;"
184
- />
185
- </template>
186
- </a-input>
187
- </template>
188
- </template>
189
- <template v-if="item.con == 'EQ'">
190
- <template v-if="showPercent(item)">
191
- <a-input-number
192
- class="EQ-input"
193
- style="width: 200px"
194
- v-model="item.EQ"
195
- :min="0"
196
- :max="100"
197
- allowClear
198
- />
199
- </template>
200
- <template v-else>
201
- <a-input
202
- :class="{ 'psw-icon': item.comAttr == 'PASSWORD' }"
203
- class="EQ-input"
204
- :style="{
205
- width: '200px',
206
- 'font-family': item.PASSWORDTYPE ? 'text-security-disc' : 'inherit'
207
- }"
208
- v-model="item.EQ"
209
- :placeholder="item.isPreciseSearch || item.fieldType == 'JSONB' ? '' : getI18nText('1.9.6', '区间搜素用~分割')"
210
- allowClear
211
- >
212
- <template slot="suffix" v-if="item.comAttr == 'PASSWORD'">
213
- <svg-icon
214
- class="psw-icon"
215
- @click="item.PASSWORDTYPE = !item.PASSWORDTYPE"
216
- :icon-class="item.PASSWORDTYPE ? 'anniuyincang' : 'chakan'"
217
- style="font-size: 1em;"
218
- />
219
- </template>
220
- </a-input>
221
- </template>
222
- </template>
223
- <template v-if="showPercent(item)">&nbsp;%</template>
224
- <!-- date -->
225
- <div v-if="item.con == 'DATE'">
226
- <a-radio-group v-model="item.DATE.con" buttonStyle="solid">
227
- <a-radio-button
228
- v-for="date in dateTeam"
229
- v-show="!item.showDate"
230
- @click="clickRadioGroup(item.DATE, date.con)"
231
- :key="date.con"
232
- :value="date.con"
233
- >{{ getI18nText(date.title, date.name) }}
234
- </a-radio-button>
235
- <span :class="['check-date-btn', item.marginx]" @click="checkDate(item)">{{
236
- getI18nText('1.1.4.52', '选择时间')
237
- }}</span>
238
- <div class="check-date" v-show="item.showDate">
239
- <a-date-picker
240
- format="YYYY-MM-DD HH:mm:ss"
241
- v-model="item.DATE.start_val"
242
- :show-time="{
243
- defaultValue: $moment('00:00:00', 'HH:mm:ss')
244
- }"
245
- :placeholder="getI18nText('1.1.4.53', '开始时间')"
246
- style="width: 120px"
247
- allowClear
248
- />
249
- &nbsp;
250
- <a-date-picker
251
- format="YYYY-MM-DD HH:mm:ss"
252
- :show-time="{
253
- defaultValue: $moment('23:59:59', 'HH:mm:ss')
254
- }"
255
- :placeholder="getI18nText('1.9.147', '结束时间')"
256
- v-model="item.DATE.end_val"
257
- style="width: 120px"
258
- allowClear
259
- />
260
- </div>
261
- </a-radio-group>
262
- </div>
263
- <!-- BIRTHDAY -->
264
- <div v-if="item.con == 'BIRTHDAY'" :class="{ 'birthday-item': item.showDate }">
265
- <a-radio-group v-model="item.BIRTHDAY.con" buttonStyle="solid">
266
- <template v-if="!item.showDate">
267
- <a-radio-button
268
- v-for="date in birthdayTeam"
269
- @click="clickBirthdayRadioGroup(item.BIRTHDAY, date.con)"
270
- :key="date.con"
271
- :value="date.con"
272
- >{{ getI18nText(date.title, date.name) }}
273
- </a-radio-button>
274
- </template>
275
- <template v-else>
276
- <div>
277
- <a-range-picker
278
- v-model="item.BIRTHDAY.limit_date"
279
- :disabledDate="disabledDate"
280
- @change="changeRange"
281
- format="MM-DD"
282
- />
283
- </div>
284
- <div class="age-wrap">
285
- <p>{{ getI18nText('1.2.5.34', '年龄') }}</p>
286
- <a-input
287
- style="width: 60px; margin-right: 10px"
288
- v-model="item.BIRTHDAY.start_val"
289
- allowClear
290
- />
291
- <a-input
292
- style="width: 60px; margin-right: 10px"
293
- v-model="item.BIRTHDAY.end_val"
294
- allowClear
295
- />
296
- <a-select
297
- v-model="item.BIRTHDAY.unit"
298
- defaultValue="YEAR"
299
- showSearch
300
- :filterOption="filterOption"
301
- allowClear
302
- >
303
- <a-select-option
304
- v-for="v in item.BIRTHDAY.units"
305
- :key="v.con"
306
- :value="v.con"
307
- >
308
- {{ getI18nText(v.title, v.name) }}
309
- </a-select-option>
310
- </a-select>
311
- </div>
312
- </template>
313
- <span :class="['check-date-btn', item.marginx]" @click="checkBirthDay(item)">{{
314
- getI18nText('1.1.5.2', '切换')
315
- }}</span>
316
- </a-radio-group>
317
- </div>
318
- <!-- <a-select
319
- v-if="item.con == 'QUOTE'"
320
- v-model="item.QUOTE"
321
- mode="multiple"
322
- :placeholder="$t('1.1.6.7')"
323
- :tokenSeparators="['|#|']"
324
- style="width: 200px"
325
- :filter-option="false"
326
- @dropdownVisibleChange="dropdownVisibleChange($event, item)"
327
- @search="handleSearch($event, item)"
328
- showSearch
329
- allowClear
330
- >
331
- <a-select-option
332
- v-for="sea in item.dataSource"
333
- :key="item.sid + sea.myName"
334
- :value="sea.myName"
335
- >
336
- {{ sea.showKeys || sea.myName }}
337
- </a-select-option>
338
- </a-select> -->
339
- <template v-if="item.con == 'QUOTE'">
340
- <c-tree-select
341
- v-if="item.comType === 'treeSelect'"
342
- :item="item"
343
- :handleGetConfigApi="handleGetConfigApi"
344
- style="margin: 0 8px 8px 0"
345
- />
346
- <multiSelect
347
- v-else
348
- :item="item"
349
- source="quickSearch"
350
- :maxTagPlaceholder="maxTagPlaceholder"
351
- :outFilterChange="filterChange"
352
- :handleWordBookSearch="handleSearch"
353
- :dropdownVisibleChange="dropdownVisibleChange"
354
- :fetchingWordbook="fetchingWordbook"
355
- ></multiSelect>
356
- </template>
357
-
358
- <a-checkbox-group
359
- class="check-box"
360
- v-if="item.con == 'CONVERT'"
361
- :options="item.setting.showSetting"
362
- v-model="item.CONVERT"
363
- />
364
- </slot>
365
- </div>
366
- </div>
367
- </div>
368
- <!-- 跨表 -->
369
- <template v-for="(relationItem, i) in relationQuickSearch">
370
- <div :key="i" v-if="relationItem.fieldList && relationItem.fieldList.length">
371
- <p class="module-title">{{ relationItem.tableName }}</p>
372
- <div
373
- class="quick-item"
374
- v-for="item in relationItem.fieldList"
375
- :key="item.sid"
376
- :class="{
377
- 'quick-block':
378
- item.con == 'DATE' ||
379
- item.con == 'BIRTHDAY' ||
380
- item.con == 'CONVERT' ||
381
- item.LABELAttr
382
- }"
383
- >
384
- <div class="quick-row">
385
- <!-- title -->
386
- <div
387
- class="quick-item-title"
388
- :class="{ 'quick-item-title-default': source !== 'editTable' }"
389
- >
390
- <span>{{ handleName(item, "title") }}&nbsp;&nbsp;</span>
391
- </div>
392
- <div
393
- class="quick-item-col"
394
- :class="{ 'quick-item-col-default': source !== 'editTable' }"
395
- >
396
- <div v-if="item.LABELAttr">
397
- <slot v-if="item.labelObj && Object.keys(item.labelObj || {}).length > 0">
398
- <div v-for="(v, k) in item.labelObj" :key="k" class="edit-label-content">
399
- <div class="edit-label">{{ k }}:</div>
400
- <div class="edit-content">
401
- <div class="label-content">
402
- <a-checkable-tag
403
- v-for="(v, i) in v.itemList"
404
- v-model="v.isSelect"
405
- @change="handleLabelChange($event, v, item)"
406
- :key="i"
407
- :class="['label-tag-' + handleLabelColorClass(v)]"
408
- >
409
- <a-tooltip placement="topLeft">
410
- <template slot="title">
411
- <span>{{ v.labelName }}</span>
412
- </template>
413
- {{ v.labelName }}
414
- </a-tooltip>
415
- </a-checkable-tag>
416
- </div>
417
- </div>
418
- </div>
419
- </slot>
420
- <a-input v-else style="width: 200px" v-model="item.inputVal"> </a-input>
421
- </div>
422
-
423
- <!-- EVALUATE -->
424
- <div v-else-if="item.EVALUATEAttr">
425
- <template v-for="tag in EVALUATEList">
426
- <a-checkable-tag
427
- :key="tag.value"
428
- :checked="item.selecteds.indexOf(tag.value) > -1"
429
- @change="checked => handleEvaluateOnChange(tag, checked, item)"
430
- >
431
- {{ tag.label }}
432
- </a-checkable-tag>
433
- </template>
434
- <!-- <a-icon v-if="item.CL" type="close" @click="item.CL = ''" /> -->
435
- </div>
436
- <!-- EVALUATE -->
437
-
438
- <!-- NUMBERFiled -->
439
- <div v-else-if="item.NUMBERFiled" class="ant-calendar-picker" style="width: 300px">
440
- <span
441
- class="ant-calendar-picker-input ant-input num-picker"
442
- :class="{ 'num-picker-unit': item.inputUnit }"
443
- >
444
- <input
445
- v-model="item.lessValue"
446
- @keyup.enter="() => changeFilterNumber(item)"
447
- :title="`起始${item.alias || item.title}`"
448
- :placeholder="`起始${item.alias || item.title}`"
449
- class="ant-calendar-range-picker-input"/>
450
- <span class="ant-calendar-range-picker-separator"> ~ &nbsp;</span>
451
- <input
452
- v-model="item.bigValue"
453
- :title="`截止${item.alias || item.title}`"
454
- @keyup.enter="() => changeFilterNumber(item)"
455
- :placeholder="`截止${item.alias || item.title}`"
456
- class="ant-calendar-range-picker-input"/>
457
- <template v-if="item.inputUnit">&nbsp;{{ item.inputUnit }}</template>
458
- <span
459
- class="ant-input-suffix clear-number-icon"
460
- v-if="item.lessValue || item.bigValue"
461
- @click="clearFilterNumber(item)"
462
- ><i
463
- aria-label="图标: close-circle"
464
- tabindex="-1"
465
- class="anticon anticon-close-circle ant-input-clear-icon"
466
- ><svg
467
- viewBox="64 64 896 896"
468
- data-icon="close-circle"
469
- width="1em"
470
- height="1em"
471
- fill="currentColor"
472
- aria-hidden="true"
473
- focusable="false"
474
- class=""
475
- >
476
- <path
477
- d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"
478
- ></path></svg></i
479
- ></span>
480
- <span class="ant-calendar-picker-icon"></span
481
- ></span>
482
- </div>
483
- <!-- NUMBERFiled -->
484
-
485
- <slot v-else>
486
- <template v-if="item.con == 'CL'">
487
- <template v-if="showPercent(item)">
488
- <a-input-number
489
- class="CL-input"
490
- style="width: 200px"
491
- v-model="item.CL"
492
- :min="0"
493
- :max="100"
494
- allowClear
495
- />
496
- </template>
497
- <template v-else>
498
- <a-input class="CL-input" style="width: 200px" v-model="item.CL" allowClear>
499
- </a-input>
500
- </template>
501
- </template>
502
- <template v-if="item.con == 'EQ'">
503
- <template v-if="showPercent(item)">
504
- <a-input-number
505
- class="EQ-input"
506
- style="width: 200px"
507
- v-model="item.EQ"
508
- :min="0"
509
- :max="100"
510
- allowClear
511
- />
512
- </template>
513
- <template v-else>
514
- <a-input
515
- class="EQ-input"
516
- style="width: 200px"
517
- v-model="item.EQ"
518
- :placeholder="item.isPreciseSearch || item.fieldType == 'JSONB' ? '' : getI18nText('1.9.6', '区间搜素用~分割')"
519
- allowClear
520
- >
521
- </a-input>
522
- </template>
523
- </template>
524
- <template v-if="showPercent(item)">&nbsp;%</template>
525
- <!-- date -->
526
- <div v-if="item.con == 'DATE'">
527
- <a-radio-group v-model="item.DATE.con" buttonStyle="solid">
528
- <a-radio-button
529
- v-for="date in dateTeam"
530
- v-show="!item.showDate"
531
- @click="clickRadioGroup(item.DATE, date.con)"
532
- :key="date.con"
533
- :value="date.con"
534
- >{{ getI18nText(date.title, date.name) }}
535
- </a-radio-button>
536
- <span :class="['check-date-btn', item.marginx]" @click="checkDate(item)">{{
537
- getI18nText('1.1.4.53', '开始时间')
538
- }}</span>
539
- <div class="check-date" v-show="item.showDate">
540
- <a-date-picker
541
- format="YYYY-MM-DD HH:mm:ss"
542
- v-model="item.DATE.start_val"
543
- :show-time="{
544
- defaultValue: $moment('00:00:00', 'HH:mm:ss')
545
- }"
546
- :placeholder="'起始日期'"
547
- style="width: 120px"
548
- allowClear
549
- />
550
- &nbsp;
551
- <a-date-picker
552
- format="YYYY-MM-DD HH:mm:ss"
553
- v-model="item.DATE.end_val"
554
- :placeholder="'截止日期'"
555
- :show-time="{
556
- defaultValue: $moment('23:59:59', 'HH:mm:ss')
557
- }"
558
- style="width: 120px"
559
- allowClear
560
- />
561
- </div>
562
- </a-radio-group>
563
- </div>
564
- <!-- <a-select
565
- v-if="item.con == 'QUOTE'"
566
- v-model="item.QUOTE"
567
- mode="multiple"
568
- :placeholder="$t('1.1.6.7')"
569
- :tokenSeparators="['|#|']"
570
- style="width: 200px"
571
- :filter-option="false"
572
- @dropdownVisibleChange="dropdownVisibleChange($event, item)"
573
- @search="handleSearch($event, item)"
574
- showSearch
575
- allowClear
576
- >
577
- <a-select-option
578
- v-for="sea in item.dataSource"
579
- :key="item.sid + sea.myName"
580
- :value="sea.myName"
581
- >
582
- {{ sea.myName }}
583
- </a-select-option>
584
- </a-select> -->
585
- <multiSelect
586
- v-if="item.con == 'QUOTE'"
587
- :item="item"
588
- source="quickSearch"
589
- :maxTagPlaceholder="maxTagPlaceholder"
590
- :outFilterChange="filterChange"
591
- :handleWordBookSearch="handleSearch"
592
- :dropdownVisibleChange="dropdownVisibleChange"
593
- :fetchingWordbook="fetchingWordbook"
594
- ></multiSelect>
595
- <a-checkbox-group
596
- class="check-box"
597
- v-if="item.con == 'CONVERT'"
598
- :options="item.setting.showSetting"
599
- v-model="item.CONVERT"
600
- />
601
- </slot>
602
- </div>
603
- </div>
604
- </div>
605
- </div>
606
- </template>
607
- </div>
608
-
609
- <a-modal
610
- :title="'设置筛选分类'"
611
- :visible="showInner"
612
- @ok="saveToCalss"
613
- @cancel="cancelSaveToCalss"
614
- wrapClassName="quickSearch-saveToClass-modal"
615
- >
616
- <a-form :form="formInner" :label-col="{ span: 5 }" :wrapper-col="{ span: 18 }">
617
- <a-form-item :label="'筛选集名称'">
618
- <a-input
619
- v-decorator="[
620
- 'classname',
621
- {
622
- rules: [{ required: true, message: getI18nText('1.1.6.6', '请输入分类名称') }]
623
- }
624
- ]"
625
- />
626
- </a-form-item>
627
- </a-form>
628
- <a-row>
629
- <a-col :span="5" style="text-align: right; color: rgba(0, 0, 0, 0.85)"> 父类名称: </a-col>
630
- <a-col :span="18">
631
- <div
632
- class="edit-tag"
633
- v-for="(item, index) in parentNames"
634
- :key="index"
635
- @dblclick="e => editParentName(e, item)"
636
- @click="handleParentNameSelect(item, index)"
637
- :class="{ 'edit-tag-select': item.selected && item.disabled }"
638
- >
639
- <a-input
640
- style="width: 100px"
641
- :value="item"
642
- :disabled="item.disabled"
643
- @blur="() => (item.disabled = true)"
644
- v-model="item.value"
645
- />
646
- <a-icon slot="suffix" type="close" @click="handleParentNamesRemove(index, item)" />
647
- </div>
648
- <template v-if="!parentNamesHasAdd">
649
- <a-button
650
- v-show="!showAdd"
651
- icon="plus"
652
- type="dashed"
653
- class="add-parent"
654
- @click="handleParentNamesAdd"
655
- >
656
- {{ getI18nText('1.9.363', '添加分类') }}
657
- </a-button>
658
- <a-input
659
- class="edit-tag"
660
- v-model.trim="addVal"
661
- v-show="showAdd"
662
- style="width: 100px"
663
- @blur="hanldeBlur"
664
- />
665
- </template>
666
- </a-col>
667
- </a-row>
668
- </a-modal>
669
- </div>
670
- <!-- </a-modal> -->
671
- </template>
672
-
673
- <script>
674
- const EVALUATEList = [
675
- {
676
- label: "一星",
677
- value: "1",
678
- isSelect: false
679
- },
680
- {
681
- label: "二星",
682
- value: "2",
683
- isSelect: false
684
- },
685
- {
686
- label: "三星",
687
- value: "3",
688
- isSelect: false
689
- },
690
- {
691
- label: "四星",
692
- value: "4",
693
- isSelect: false
694
- },
695
- {
696
- label: "五星",
697
- value: "5",
698
- isSelect: false
699
- }
700
- ];
701
-
702
- const AGEOPTIONS = [
703
- {
704
- label: "岁",
705
- value: "YY"
706
- },
707
- {
708
- label: "月",
709
- value: "MM"
710
- },
711
- {
712
- label: "日",
713
- value: "DD"
714
- }
715
- ];
716
- import tableSearchCon from "../mixins/tableSearchCon";
717
- import moment from 'moment';
718
- import 'moment/locale/zh-cn';
719
- // antd
720
- import _ from 'lodash';
721
- import { Button, Icon, Dropdown, Select, Upload, DatePicker, Input, Menu, Radio, Checkbox, Row, Tag, InputNumber, Col, Form, Modal, Tooltip } from 'ant-design-vue';
722
- import rangeAge from '../components/range-age/index';
723
- import multiSelect from '../components/multi-select/multi-select';
724
- import resize from 'vue-resize-directive';
725
- import { durationMixin, $utils, filterApiFn } from '../mixins/mixins';
726
- import vexutils from '@/utils/vexutils';
727
- import wordBookutils from '../mixins/wordBookutils';
728
- import cTreeSelect from '../components/c-tree-select/tree-select';
729
- import create from '@/core/create';
730
- import utils from '@/utils/utils-map';
731
- export default create({
732
- name: "quick-search",
733
- mixins: [durationMixin, $utils, filterApiFn, tableSearchCon],
734
- props: {
735
- visible: Boolean,
736
- searchFieldList: {
737
- type: Array,
738
- default: () => []
739
- },
740
- searchFieldLimit: {
741
- type: Object,
742
- default: () => ({})
743
- },
744
- quickSearchConfig: Array,
745
- source: String,
746
- quickSearchListObj: Object,
747
- originConditionList: Array,
748
- isOrgAdmin: Boolean,
749
- lastQuickSearchData: Array,
750
- show: Boolean,
751
- getFilterData: Function
752
- },
753
- components: {
754
- rangeAge,
755
- [Button.name]: Button,
756
- [Icon.name]: Icon,
757
- [Dropdown.name]: Dropdown,
758
- [Select.name]: Select,
759
- [Select.Option.name]: Select.Option,
760
- [Upload.name]: Upload,
761
- [DatePicker.name]: DatePicker,
762
- [DatePicker.RangePicker.name]: DatePicker.RangePicker,
763
- [Input.name]: Input,
764
- [Input.Group.name]: Input.Group,
765
- [InputNumber.name]: InputNumber,
766
- [Input.Search.name]: Input.Search,
767
- [Menu.name]: Menu,
768
- [Menu.Item.name]: Menu.Item,
769
- [Menu.ItemGroup.name]: Menu.ItemGroup,
770
- [Radio.name]: Radio,
771
- [Radio.Button.name]: Radio.Button,
772
- [Radio.Group.name]: Radio.Group,
773
- [Checkbox.name]: Checkbox,
774
- [Checkbox.Group.name]: Checkbox.Group,
775
- [Row.name]: Row,
776
- [Col.name]: Col,
777
- [Tag.name]: Tag,
778
- AModal: Modal,
779
- [Form.name]: Form,
780
- [Tooltip.name]: Tooltip,
781
- [Form.Item.name]: Form.Item,
782
- [Tag.CheckableTag.name]: Tag.CheckableTag,
783
- multiSelect,
784
- cTreeSelect
785
- },
786
- computed: {
787
- showPercent() {
788
- return function(item) {
789
- return item.settingObj?.attr === "PERCENTAGE" || false;
790
- };
791
- },
792
- hasRelationQuickSearch() {
793
- return this.relationQuickSearch.findIndex(i => i.fieldList && i.fieldList.length) != -1;
794
- },
795
- parentNamesHasAdd() {
796
- if (!this.parentNames.length) return false;
797
- return this.parentNames.some(v => v.isAdd);
798
- },
799
- handleName() {
800
- return function(item, key = "name") {
801
- return item.alias || item[key];
802
- };
803
- },
804
-
805
- $moment() {
806
- return moment;
807
- }
808
- },
809
- data() {
810
- return {
811
- modalVisible: this.visible,
812
- showInner: false,
813
- quickSearch: [],
814
- relationTableList: [], // 跨表查询
815
- relationQuickSearch: [], // 跨表查询检索条件
816
- formData: {},
817
- searchItem: {},
818
- curWordbookData: undefined,
819
- curAutograph: "",
820
- dateTeam: [
821
- { con: 'TODAY', title: '1.1.4.37', name: '今天' },
822
- { con: 'TOMORROW', title: '1.1.4.38', name: '明天' },
823
- { con: 'YESTERDAY', title: '1.1.4.39', name: '昨天' },
824
- { con: 'THIS_WEEK', title: '1.1.4.40', name: '本周' },
825
- { con: 'NEXT_WEEK', title: '1.1.4.41', name: '下周' },
826
- { con: 'UP_WEEK', title: '1.1.4.42', name: '上周' },
827
- { con: 'THIS_MONTH', title: '1.1.4.43', name: '本月' },
828
- { con: 'NEXT_MONTH', title: '1.1.4.44', name: '下月' },
829
- { con: 'UP_MONTH', title: '1.1.4.45', name: '上月' },
830
- { con: 'THIS_SEASON', title: '1.1.4.46', name: '本季度' },
831
- { con: 'NEXT_SEASON', title: '1.1.4.47', name: '下季度' },
832
- { con: 'UP_SEASON', title: '1.1.4.48', name: '上季度' },
833
- { con: 'THIS_YEAR', title: '1.1.4.49', name: '本年' },
834
- { con: 'NEXT_YEAR', title: '1.1.4.50', name: '下年' },
835
- { con: 'UP_YEAR', title: '1.1.4.51', name: '上年' }
836
- ],
837
- birthdayTeam: [],
838
- limit_date: "",
839
- birthdayUnits: [
840
- { title: '1.2.5.58', units: 1, con: 'DAY', name: '天' },
841
- { title: '1.2.5.59', units: 2, con: 'WEEK', name: '周' },
842
- { title: '1.2.1.11.18', units: 1, con: 'MONTH', name: '月' },
843
- { title: '1.9.273', units: 1, con: 'YEAR', name: '岁' }
844
- ],
845
- isChangeWindow: false,
846
- modalWidth: "700px",
847
- modalHeight: "60vh",
848
- EVALUATEList,
849
- AGEOPTIONS,
850
- label_max_count: 8,
851
- parentNames: [],
852
- showAdd: false,
853
- addVal: "",
854
- fetchingWordbook: false
855
- };
856
- },
857
- watch: {
858
- visible(value) {
859
- this.modalVisible = value;
860
- // this.init();
861
- this.setDefaultCon(this.quickSearchConfig);
862
- },
863
- searchFieldList: {
864
- immediate: true,
865
- deep: true,
866
- handler(val) {
867
- if (val && val.length > 0) {
868
- let { relationTableList = [] } = this.$attrs;
869
- this.relationTableList = relationTableList;
870
- this.init();
871
- }
872
- }
873
- },
874
- quickSearchConfig: {
875
- handler(val) {
876
- this.setDefaultCon(val);
877
- },
878
- deep: true
879
- },
880
- quickSearchListObj: {
881
- immediate: true,
882
- deep: true,
883
- handler(val) {
884
- if (!val || !Object.keys(val).length) {
885
- this.parentNames = [];
886
- return;
887
- }
888
- this.handleParentName();
889
- }
890
- },
891
- quickSearch: {
892
- deep: true,
893
- handler() {
894
- const conObj = this.getConObjParams() || [];
895
- this.$emit("filterCountChange", conObj.length);
896
- }
897
- },
898
- show: {
899
- deep: true,
900
- handler(newVal) {
901
- if (newVal && this.lastQuickSearchData.length > 0) {
902
- this.quickSearch = _.cloneDeep(this.lastQuickSearchData);
903
- }
904
- }
905
- }
906
- },
907
- beforeCreate() {
908
- this.formInner = this.$form.createForm(this);
909
- },
910
- created() {},
911
- methods: {
912
- filterOption(...arg) {
913
- return utils.filterOption(...arg);
914
- },
915
- handleLabelColor(...arg) {
916
- return utils.handleLabelColor(...arg);
917
- },
918
- init() {
919
- this.quickSearch = [];
920
- this.relationQuickSearch = [];
921
- this.birthdayTeam = this.dateTeam.filter(
922
- item => item.con != "THIS_YEAR" && item.con != "NEXT_YEAR" && item.con != "UP_YEAR"
923
- );
924
- let copyList = _.cloneDeep(this.searchFieldList);
925
- let mySearchFieldList = copyList.filter(i => i.isShowSearch == 1 && i.filterExplicit != 1) || [];
926
- // let relationTableList = JSON.parse(JSON.stringify(this.relationTableList));
927
- let relationTableList = _.cloneDeep(this.relationTableList);
928
-
929
- // 跨表
930
- let relationQuickSearch = relationTableList.map(item => {
931
- return {
932
- fieldList: item.fieldList.fieldList.filter(item => item.isShowSearch == 1 && item.filterExplicit != 1),
933
- tableName: item.tableName,
934
- primaryField: item.primaryField,
935
- parameterConversionId: item.parameterConversionId,
936
- tableId: item.tableId,
937
- relationField: item.relationField,
938
- converFun: item.converFun,
939
- relationOrgId: item.relationOrgId,
940
- preConObj: item.preConObj,
941
- preSqlExpression: item.preSqlExpression
942
- };
943
- });
944
-
945
- this.$set(this, "relationQuickSearch", relationQuickSearch);
946
- // 过滤获取 快速检索的字段
947
- this.quickSearch = mySearchFieldList || [];
948
- this.handlerInitSearchItem(this.quickSearch);
949
- this.relationQuickSearch.forEach(item => {
950
- this.handlerInitSearchItem(item.fieldList);
951
- });
952
- },
953
- handleParentName() {
954
- let parentNames = [];
955
- let { displayCategoryList = [] } = this.quickSearchListObj;
956
- if (!displayCategoryList || !displayCategoryList.length) {
957
- this.parentNames = [];
958
- return;
959
- }
960
- displayCategoryList.forEach(item => {
961
- if (item !== "未分类") {
962
- parentNames.push({
963
- disabled: true,
964
- selected: false,
965
- value: item
966
- });
967
- }
968
- });
969
- this.parentNames = parentNames;
970
- },
971
- setDefaultCon(val) {
972
- if (!val.length) {
973
- this.quickSearch.forEach((item, index) => {
974
- if (item.CONVERT && Array.isArray(item.CONVERT)) {
975
- this.$set(this.quickSearch[index], "CONVERT", []);
976
- }
977
- });
978
- return false;
979
- }
980
-
981
- this.quickSearch.forEach((item, index) => {
982
- let find = val.find(valItem => valItem.field_key === item.columnName);
983
- if (find) {
984
- let value = find.value.map(item => JSON.stringify(item));
985
- this.$set(this.quickSearch[index], "CONVERT", value);
986
- } else {
987
- this.$set(this.quickSearch[index], "CONVERT", []);
988
- }
989
- });
990
- },
991
- handlerInitSearchItem(arr) {
992
- if (!Array.isArray(arr)) return;
993
- arr.forEach(el => {
994
- const isPreciseSearch = el?.settingObj?.isPreciseSearch || "";
995
-
996
- if (el.setting) {
997
- // el.seting 可能是 string / object
998
- el.setting = typeof el.setting == "string" ? JSON.parse(el.setting) : el.setting;
999
- if (!vexutils.isEmpty(el.setting.wordbook)) {
1000
- let isTree = "tree" === el?.setting?.wordbook?.showType;
1001
- let comType = isTree ? 'treeSelect' : 'SelectMuiWordBook';
1002
- let defVal = isTree ? [] : [];
1003
-
1004
- this.$set(el, "con", "QUOTE");
1005
- this.$set(el, "dataSource", []);
1006
- this.$set(el, "QUOTE", []);
1007
- this.$set(el, "value", defVal);
1008
- this.$set(el, "com", "SelectMui");
1009
- this.$set(el, "comType", comType);
1010
- this.$set(el, "searchPageConfig", {
1011
- keyword: undefined,
1012
- isRequest: false, // 是否已请求
1013
- page: 1, // 当前页
1014
- total: 1, // 总页数
1015
- hasNextPage: false
1016
- });
1017
- return;
1018
- } else if (el.setting.showSetting && el.setting.showSetting.length > 0) {
1019
- this.$set(el, "con", "CONVERT");
1020
- let showSetting = el.setting.showSetting;
1021
-
1022
- // 字典推荐值
1023
- let dictionItem = this.handleDictionDef(el);
1024
- if (dictionItem) {
1025
- showSetting.unshift(dictionItem);
1026
- }
1027
- showSetting.forEach(set => {
1028
- set.label = set.change_text;
1029
- set.value = JSON.stringify(set.filter);
1030
- });
1031
- // el.setting.showSetting.forEach(set => {
1032
- // this.$set(set, "label", set.change_text);
1033
- // this.$set(set, "value", JSON.stringify(set.filter));
1034
- // });
1035
- this.$set(el.setting, "showSetting", showSetting);
1036
- this.$set(el, "CONVERT", []);
1037
- return;
1038
- }
1039
- }
1040
- if (el.setting.attr === "LABEL") {
1041
- this.$set(el, "con", "CL"); // 2020-09-04 朱亚徽 EQ => CL
1042
- this.$set(el, "LABELAttr", true);
1043
- this.$set(el, "labelSelectList", []);
1044
- this.$set(el, "inputVal", "");
1045
- this.handleSetLabelOptions(el.setting.labelType, el);
1046
- } else if (el.setting.attr === "EVALUATE") {
1047
- this.$set(el, "con", "CL");
1048
- this.$set(el, "selecteds", []);
1049
- this.$set(el, "EVALUATEAttr", true);
1050
- } else if (el.setting.attr === "AGE" && el.fieldType != "NUMBER") {
1051
- // 年龄组件
1052
- let format = el.setting.format || "YYYY-MM-DD";
1053
- format = format.toUpperCase();
1054
- this.$set(el, "con", "IN");
1055
- this.$set(el, "ageObj", {});
1056
- this.$set(el, "format", format);
1057
- this.$set(el, "AGEAttr", true);
1058
- } else if (el.setting.attr === "PASSWORD") {
1059
- this.$set(el, "comAttr", "PASSWORD");
1060
- this.$set(el, "PASSWORDTYPE", true);
1061
- } else if (el.fieldType == "NUMBER") {
1062
- this.$set(el, "con", "EQ");
1063
- this.$set(el, "EQ", "");
1064
- this.$set(el, "NUMBERFiled", true);
1065
- this.$set(el, "lessValue", "");
1066
- this.$set(el, "bigValue", "");
1067
- if (el.setting.attr == "PERCENTAGE") {
1068
- this.$set(el, "inputUnit", "%");
1069
- }
1070
- } else if (el.fieldType.includes("DATE")) {
1071
- if (el.settingObj && el.settingObj.attr == "BIRTHDAY") {
1072
- this.$set(el, "con", "BIRTHDAY");
1073
- this.$set(el, "showDate", false);
1074
- this.$set(el, "marginx", "ml");
1075
- this.$set(el, "BIRTHDAY", this.initBirthdayParams());
1076
- } else {
1077
- // 判断是否有默认值
1078
- const value = this.getSearchDefValueByLimit(el, this.searchFieldLimit);
1079
- const hasValue = Array.isArray(value);
1080
- this.$set(el, "con", "DATE");
1081
- this.$set(el, "showDate", hasValue);
1082
- this.$set(el, "marginx", hasValue ? "mr" : "ml");
1083
- this.$set(el, "DATE", {
1084
- con: hasValue ? "IN" : null,
1085
- start_val: hasValue ? value[0] : null,
1086
- end_val: hasValue ? value[1] : null
1087
- });
1088
- }
1089
- } else if (el.fieldType == "TEXT") {
1090
- /**
1091
- * NUMBER和TEXT属性字段
1092
- * 如果 开启了精准搜索,则传条件的时候 要传 EQ
1093
- * isPreciseSearch: 0/1
1094
- */
1095
- let con = isPreciseSearch == 1 ? 'EQ': 'CL';
1096
- this.$set(el, "con", con);
1097
- this.$set(el, "isPreciseSearch", isPreciseSearch == 1);
1098
- this.$set(el, con, "");
1099
- } else if (el.fieldType == "JSONB") {
1100
- this.$set(el, "con", "EQ");
1101
- this.$set(el, "EQ", "");
1102
- }
1103
- });
1104
- },
1105
- // 字典推荐值 item处理
1106
- handleDictionDef(el) {
1107
- let { defaultValue, defaultValueTitle } = el?.dictionarieObj || {};
1108
- let dictionItem = null;
1109
- if (defaultValue && defaultValueTitle) {
1110
- dictionItem = {
1111
- change_text: defaultValueTitle,
1112
- filter: [
1113
- {
1114
- con: "EQ",
1115
- field_key: el.columnName,
1116
- value: defaultValue
1117
- }
1118
- ]
1119
- };
1120
- }
1121
- return dictionItem;
1122
- },
1123
- checkDate(item) {
1124
- item.showDate = !item.showDate;
1125
- item.showDate ? (item.marginx = "mr") : (item.marginx = "ml");
1126
- },
1127
- checkBirthDay(item) {
1128
- item.showDate = !item.showDate;
1129
- },
1130
- getWordbookData(o, obj) {
1131
- let { id, filterKeys, wordbookType } = o;
1132
- this.fetchingWordbook = true;
1133
- let resFieldKeys = Array.isArray(filterKeys) ? JSON.stringify(filterKeys) : filterKeys;
1134
- let url = `/tableReader/getWordbookData`;
1135
- let params = {
1136
- wordbookId: id,
1137
- fieldKeys: resFieldKeys,
1138
- wordbookType: wordbookType || "WORDBOOK",
1139
- asyncCount: 1, // 开启性能模式
1140
- ...obj
1141
- };
1142
- return this.handleGetConfigApi(params, 'requestGetWordbookData', { fields: o }).then(res => {
1143
- this.fetchingWordbook = false;
1144
- return res;
1145
- }).catch(() => {
1146
- this.fetchingWordbook = false;
1147
- });
1148
- },
1149
- handleWordbookData(item, data, params) {
1150
- this.$set(item, "hasFieldList", false);
1151
- const {rows,hasFieldList,searchPageConfig} = wordBookutils.handleWordbookData(item,data,params);
1152
- this.$set(item, "hasFieldList", hasFieldList);
1153
- this.$set(item, "dataSource", rows);
1154
- item.searchPageConfig = Object.assign(item.searchPageConfig, searchPageConfig);
1155
- },
1156
- filterChange() {},
1157
- maxTagPlaceholder(item) {
1158
- if (Array.isArray(item.value)) {
1159
- return item.value.length;
1160
- } else {
1161
- return 1;
1162
- }
1163
- },
1164
- dropdownVisibleChange(open, item) {
1165
- if (open) {
1166
- let obj = {};
1167
- if (item.setting.wordbook.params) {
1168
- item.setting.wordbook.params.forEach(item => {
1169
- obj[item.p_name] = item.p_value;
1170
- });
1171
- }
1172
- if (item.settingObj.wordbook) {
1173
- obj.autograph = item.settingObj.wordbook.autograph;
1174
- }
1175
- this.curWordbookData = item.setting.wordbook;
1176
- this.curAutograph = item.settingObj.wordbook && item.settingObj.wordbook.autograph;
1177
- this.searchItem = item;
1178
- this.getWordbookData(item.setting.wordbook, obj).then(({ data }) => {
1179
- this.handleWordbookData(item, data, obj);
1180
- });
1181
- }
1182
- },
1183
- /**
1184
- * 输入自动联想
1185
- */
1186
- handleSearch(value, item, config={}) {
1187
- let params = {
1188
- keyword: value,
1189
- autograph: this.curAutograph
1190
- };
1191
- let obj = {};
1192
- let p = item?.setting?.wordbook?.params || undefined;
1193
- if (p) {
1194
- item.setting.wordbook.params.forEach(item => {
1195
- obj[item.p_name] = item.p_value;
1196
- });
1197
- }
1198
- let rp = { ...params, ...obj, ...config };
1199
- this.getWordbookData(this.curWordbookData, rp).then(({ data }) => {
1200
- this.handleWordbookData(this.searchItem, data, rp);
1201
- });
1202
- },
1203
- onSave() {
1204
- let mergeConObj = this.getMergeConObj();
1205
- this.resetChangeWindow();
1206
-
1207
- if (!this.validConObj(mergeConObj, this.searchFieldList, this.searchFieldLimit)) return false;
1208
- this.$emit("onSave", mergeConObj);
1209
- return this.quickSearch;
1210
- },
1211
- // 方便外部调用
1212
- getMergeConObj() {
1213
- let conObj = this.getConObjParams() || [];
1214
- let mergeConObj = [...conObj];
1215
- // 合并表格表头未设置高级筛选的筛选项
1216
- this.quickSearchConfig.forEach(i => {
1217
- let find = mergeConObj.find(j => {
1218
- return i.field_key === j.field_key;
1219
- });
1220
- if (
1221
- !find &&
1222
- !this.quickSearch.find(item => {
1223
- return item.columnName === i.field_key;
1224
- })
1225
- ) {
1226
- mergeConObj.push(i);
1227
- }
1228
- });
1229
- return mergeConObj || [];
1230
- },
1231
- getConObjParams() {
1232
- let conObj = this.getConObj(this.quickSearch) || [];
1233
- let realation = [];
1234
- this.relationQuickSearch.forEach(item => {
1235
- let curQuote = this.getConObj(item.fieldList);
1236
- if (curQuote && curQuote.length) {
1237
- realation.push({
1238
- field_key: item.primaryField,
1239
- valueField: item.relationField,
1240
- con: "QUOTE_IN",
1241
- tableId: item.tableId,
1242
- parameterConversionId: item.parameterConversionId,
1243
- converFun: item.converFun,
1244
- preConObj: item.preConObj,
1245
- relationOrgId: item.relationOrgId,
1246
- preSqlExpression: item.preSqlExpression,
1247
- quote_con: {
1248
- conObj: this.getConObj(item.fieldList),
1249
- sqlExpression: ""
1250
- }
1251
- });
1252
- }
1253
- });
1254
- conObj.push(...realation);
1255
- return conObj || [];
1256
- },
1257
- closeModal() {
1258
- this.resetChangeWindow();
1259
- this.$emit("closeModal");
1260
- },
1261
- resetChangeWindow() {
1262
- this.modalWidth = "700px";
1263
- this.modalHeight = "60vh";
1264
- this.isChangeWindow = false;
1265
- },
1266
- // 填写搜索设置条件后打开新增搜索分类名称弹框
1267
- openSaveToCalss() {
1268
- let conObj = this.getConObjParams();
1269
- if (!conObj) return;
1270
- if (conObj.length > 0) {
1271
- if (!this.validConObj(conObj, this.searchFieldList, this.searchFieldLimit)) return;
1272
- this.showInner = true;
1273
- } else {
1274
- this.$message.warning(this.getI18nText('1.1.6.18', '请设置搜索条件'), 2);
1275
- }
1276
- },
1277
- // 格式化设置搜索条件参数
1278
- getConObj(arr) {
1279
- // this.quickSearch
1280
- if (!Array.isArray(arr)) {
1281
- return [];
1282
- }
1283
- let conObj = [];
1284
- for (let i = 0; i < arr.length; i++) {
1285
- let item = arr[i];
1286
- let value = "";
1287
- let limit_date = "";
1288
- if (item.EQ || item.CL) {
1289
- value = item.EQ || item.CL;
1290
- if (item.settingObj?.attr === "PERCENTAGE") {
1291
- value = Number(value) / 100;
1292
- }
1293
- if (item.EVALUATEAttr) {
1294
- value = item.selecteds.join("|#|");
1295
- }
1296
- } else if (item.con == "QUOTE" && !vexutils.isEmpty(item.value)) {
1297
- // value = item.QUOTE.join("|#|");
1298
- if(item.comType == "treeSelect"){
1299
- let cval = item.value;
1300
- if(typeof cval === 'string'){
1301
- [cval] = cval.split('<&=&>');
1302
- value = cval;
1303
- } else if(Array.isArray(cval)) {
1304
- cval = cval.map((v)=>{
1305
- let [k] = typeof v === 'string' ? v.split('<&=&>'): [];
1306
- return k;
1307
- })
1308
- value = cval.join("|#|");
1309
- }
1310
- } else {
1311
- value = item.value.join("|#|");
1312
- }
1313
- } else if (!vexutils.isEmpty(item.CONVERT)) {
1314
- value = item.CONVERT.map(item => {
1315
- if (item && vexutils.isJSON(item)) {
1316
- return JSON.parse(item);
1317
- }
1318
- return item;
1319
- });
1320
- } else if (item.DATE && !item.AGEAttr) {
1321
- // 年龄组件的不按照 date 类型处理
1322
- if (item.DATE.start_val || item.DATE.end_val) {
1323
- item.DATE.con = "IN";
1324
- }
1325
- item.tempCon = item.DATE.con;
1326
- item.start_val = item.DATE.start_val
1327
- ? item.DATE.start_val.format("YYYY-MM-DD HH:mm:ss")
1328
- : "";
1329
- item.end_val = item.DATE.end_val ? item.DATE.end_val.format("YYYY-MM-DD HH:mm:ss") : "";
1330
- } else if (item.BIRTHDAY) {
1331
- // 生日
1332
- let isChange = false;
1333
- if (
1334
- item.BIRTHDAY.limit_date.length > 0 ||
1335
- item.BIRTHDAY.start_val ||
1336
- item.BIRTHDAY.end_val
1337
- ) {
1338
- item.BIRTHDAY.con = "IN";
1339
- }
1340
- item.tempCon = item.BIRTHDAY.con;
1341
- // 因为年龄下拉有个默认值, 当输入框中有值时才取下拉值
1342
- if (item.BIRTHDAY.start_val || item.BIRTHDAY.end_val) {
1343
- isChange = true;
1344
- } else {
1345
- isChange = false;
1346
- }
1347
-
1348
- // 校验
1349
- if (item.BIRTHDAY.start_val) {
1350
- let res = vexutils.validateBirthday(
1351
- item.BIRTHDAY.start_val,
1352
- item.title,
1353
- item.BIRTHDAY.unit
1354
- );
1355
- if (!res) return;
1356
- }
1357
- if (item.BIRTHDAY.end_val) {
1358
- let res = vexutils.validateBirthday(
1359
- item.BIRTHDAY.end_val,
1360
- item.title,
1361
- item.BIRTHDAY.unit
1362
- );
1363
- if (!res) return;
1364
- }
1365
- if (+item.BIRTHDAY.start_val > +item.BIRTHDAY.end_val) {
1366
- this.$message.warning(this.getI18nText(['1.9.47', { title: item.title }], `${item.title}请输入有效范围`), 2);
1367
- return;
1368
- }
1369
-
1370
- limit_date = this.limit_date || "";
1371
- item.unit = isChange ? item.BIRTHDAY.unit || "" : "";
1372
- item.start_val = item.BIRTHDAY.start_val || "";
1373
- item.end_val = item.BIRTHDAY.end_val || "";
1374
- }
1375
- // 根据属性判断取值
1376
- if (item.LABELAttr) {
1377
- if (Object.keys(item.labelObj || {}).length > 0) {
1378
- let valList = [];
1379
- item.labelSelectList.forEach(v => {
1380
- valList.push(v.labelName);
1381
- });
1382
- value = valList.join("|#|");
1383
- } else {
1384
- value = item.inputVal;
1385
- }
1386
- } else if (item.EVALUATEAttr) {
1387
- value = item.selecteds.join("|#|");
1388
- } else if (item.AGEAttr) {
1389
- value = "";
1390
- } else if (item.NUMBERFiled && item.lessValue && item.bigValue) {
1391
- if (item.setting?.attr === "PERCENTAGE") {
1392
- value = Number(item.lessValue) / 100 + "~" + Number(item.bigValue) / 100;
1393
- } else {
1394
- value = item.lessValue + "~" + item.bigValue;
1395
- }
1396
- }
1397
- // 删除字符串前后空格
1398
- if (value && vexutils.isString(value)) {
1399
- value = value.trim();
1400
- }
1401
- let temp = {
1402
- field_key: item.columnName, // 一级value
1403
- con: item.DATE || item.BIRTHDAY ? item.tempCon : item.con, // 二级选择项value
1404
- value: value, // input输入值
1405
- limit_date: limit_date || "", // 生日
1406
- start_val: item.start_val || "", // 开始时间
1407
- end_val: item.end_val || "", // 结束时间
1408
- unit: item.unit || "", // 年龄
1409
- id: item.id
1410
- };
1411
- conObj.push(temp);
1412
- }
1413
- let dateCons = this.dateTeam.map(item => item.con);
1414
- let res = conObj.filter(
1415
- item =>
1416
- item.value ||
1417
- item.limit_date ||
1418
- item.start_val ||
1419
- item.end_val ||
1420
- dateCons.includes(item.con)
1421
- );
1422
- return res;
1423
- },
1424
- range(start, end) {
1425
- const result = [];
1426
- for (let i = start; i < end; i++) {
1427
- result.push(i);
1428
- }
1429
- return result;
1430
- },
1431
- // 日期选择范围
1432
- disabledDate(current) {
1433
- return (
1434
- (current && current < moment().startOf("year")) ||
1435
- current > moment().endOf("year")
1436
- );
1437
- },
1438
- changeRange(date, dateString) {
1439
- // 这里没有使用item中的limit_date, 而是用全局的变量limit_date储存
1440
- // 原因是因为range-picker 要求是个[] 并且v-model中的数据是个moment对象 即item.BIRRHDAY.limit_date = [moment, moment]
1441
- if (dateString[0]) {
1442
- this.limit_date = dateString.join("~");
1443
- } else {
1444
- this.limit_date = "";
1445
- }
1446
- },
1447
- // 填写新增搜索分类名称后保存按钮
1448
- saveToCalss() {
1449
- this.formInner.validateFields((err, values) => {
1450
- if (err) return;
1451
- let conObj = this.getConObjParams();
1452
- if (!conObj.length) {
1453
- conObj = [];
1454
- }
1455
- let displayCategory = this.parentNames.filter(item => item.selected)[0]?.value;
1456
- let params = {
1457
- tableId: this.$attrs.tableId || "",
1458
- setting: JSON.stringify({
1459
- displayCategory,
1460
- name: values.classname,
1461
- conObj: conObj
1462
- }),
1463
- conditionList: JSON.stringify(this.originConditionList)
1464
- };
1465
- this.saveTableCondiTion(params);
1466
-
1467
- });
1468
- },
1469
- handleParentNamesAdd(e) {
1470
- const nextInput = e?.target?.nextElementSibling;
1471
- setTimeout(() => {
1472
- nextInput && nextInput.focus();
1473
- });
1474
- this.showAdd = true;
1475
- },
1476
- hanldeBlur() {
1477
- this.showAdd = false;
1478
- if (!this.addVal) return;
1479
- this.parentNames.forEach(v => (v.selected = false));
1480
- this.parentNames.push({
1481
- disabled: true,
1482
- value: this.addVal,
1483
- selected: true,
1484
- isAdd: true
1485
- });
1486
- this.addVal = "";
1487
- },
1488
- editParentName(e, item) {
1489
- item.disabled = false;
1490
- setTimeout(() => {
1491
- e.target.focus();
1492
- }, 0);
1493
- },
1494
- handleParentNameSelect(item, index) {
1495
- if (!item.disabled) return;
1496
- this.parentNames.forEach((pItem, pIndex) => {
1497
- if (pIndex !== index) {
1498
- pItem.selected = false;
1499
- }
1500
- });
1501
- item.selected = !item.selected;
1502
- },
1503
- handleParentNamesRemove(index, item) {
1504
- this.handleParent(index, item);
1505
- },
1506
- handleParent(index, item) {
1507
- let { conditionList = [] } = this.quickSearchListObj;
1508
- if (!conditionList || !conditionList.length) {
1509
- this.parentNames.splice(index, 1);
1510
- return;
1511
- }
1512
- let hasItem = conditionList.filter(v => v.displayCategory === item.value);
1513
- if (!hasItem || !hasItem.length) {
1514
- this.parentNames.splice(index, 1);
1515
- return;
1516
- }
1517
- this.$message.error("该分类下有已有数据,请删除该分类下的筛选集后重试!");
1518
- },
1519
- // 7.12保存列表搜索分类
1520
- async saveTableCondiTion(params) {
1521
- // let url = `/tableList/saveTableCondiTion`;
1522
- // this.axios.post(url, this.$qs.stringify(params)).then(({ data }) => {
1523
- // if (data.result == "SUCCESS") {
1524
- // this.showInner = false;
1525
- // this.formInner.resetFields();
1526
- // this.$emit("updateTableCondiTion");
1527
- // this.clearData();
1528
- // this.closeModal();
1529
- // } else {
1530
- // this.$message.error(data.resultMsg);
1531
- // }
1532
- // });
1533
- try {
1534
- let res = await this.handleGetConfigApi(params, 'requestSaveTableCondiTion');
1535
- if (!res) return;
1536
- this.showInner = false;
1537
- this.formInner.resetFields();
1538
- this.$emit("updateTableCondiTion");
1539
- this.clearData();
1540
- this.closeModal();
1541
- } catch (error) {
1542
- console.log(error)
1543
- }
1544
- },
1545
- cancelSaveToCalss() {
1546
- this.showInner = false;
1547
- },
1548
- // 清空快速搜索设置条件
1549
- clearData() {
1550
- this.handlerReset(this.quickSearch);
1551
- this.relationQuickSearch.forEach(item => {
1552
- this.handlerReset(item.fieldList);
1553
- });
1554
- if (this.source === "editTable") {
1555
- this.$emit("clearQuickSearchConfig");
1556
- return;
1557
- }
1558
- this.$listeners?.clearQuickSearchConfig();
1559
- },
1560
- handlerReset(arr) {
1561
- if (!Array.isArray(arr)) {
1562
- return;
1563
- }
1564
- arr.forEach(item => {
1565
- if (item.EQ || item.CL) {
1566
- item.EQ = "";
1567
- item.CL = "";
1568
- } else if (item.con == "QUOTE" && !vexutils.isEmpty(item.value)) {
1569
- item.QUOTE = [];
1570
- item.value = [];
1571
- } else if (!vexutils.isEmpty(item.CONVERT)) {
1572
- item.CONVERT = [];
1573
- } else if (item.DATE) {
1574
- item.showDate = false;
1575
- item.marginx = "ml";
1576
- item.DATE = {
1577
- con: null,
1578
- start_val: null,
1579
- end_val: null
1580
- };
1581
- } else if (item.BIRTHDAY) {
1582
- item.showDate = false;
1583
- item.marginx = "ml";
1584
- item.BIRTHDAY = this.initBirthdayParams();
1585
- } else if (item.LABELAttr) {
1586
- this.handleClearLabel(item);
1587
- } else if (item.EVALUATEAttr) {
1588
- item.selecteds = [];
1589
- } else if (item.AGEAttr) {
1590
- this.handleResetAge(item);
1591
- } else if (item.NUMBERFiled) {
1592
- this.clearFilterNumber(item);
1593
- }
1594
- });
1595
- },
1596
- initBirthdayParams() {
1597
- this.limit_date = "";
1598
- return {
1599
- con: null,
1600
- limit_date: [],
1601
- start_val: null,
1602
- end_val: null,
1603
- unit: "YEAR",
1604
- units: this.birthdayUnits.filter(i => i.units === 1)
1605
- };
1606
- },
1607
- // 单选按钮组合点击取消选中状态
1608
- clickRadioGroup(item, con) {
1609
- if (item.con == con) {
1610
- item.con = null;
1611
- } else {
1612
- if (item.con === "IN") {
1613
- item.start_val = null;
1614
- item.end_val = null;
1615
- }
1616
- item.con = con;
1617
- }
1618
- },
1619
- clickBirthdayRadioGroup(item, con) {
1620
- this.limit_date = "";
1621
- Object.assign(item, this.initBirthdayParams());
1622
- this.clickRadioGroup(item, con);
1623
- },
1624
- changeModalWindow() {
1625
- this.isChangeWindow = !this.isChangeWindow;
1626
- let docHeight = document.body.clientHeight;
1627
- this.modalWidth = this.modalWidth === "700px" ? `100%` : "700px";
1628
- this.modalHeight = this.modalHeight === "60vh" ? `${docHeight - 108}px` : "60vh";
1629
-
1630
- if (this.modalWidth === "700px") {
1631
- this.label_max_count = 8;
1632
- } else {
1633
- this.$nextTick(() => {
1634
- let ele = document.querySelector(".quickSearch_label-container");
1635
- ele && (this.label_max_count = parseInt((ele.clientWidth - 20) / 112) * 2);
1636
- });
1637
- }
1638
- },
1639
-
1640
- /* 获取 label */
1641
- handleRequestedLabel(v) {
1642
- let params = { type: v, pageSize: 10000 };
1643
- return this.axios.get("/label/list", { params: params });
1644
- },
1645
-
1646
- async handleSetLabelOptions(labelType, el) {
1647
- let labelObj = {};
1648
- let labelList = await this.handleGetConfigApi(labelType, 'requestedLabel');
1649
- labelList.forEach(n => {
1650
- this.$set(n, 'isSelect', false);
1651
- if (labelObj[n.typeName]) {
1652
- labelObj[n.typeName].itemList.push({ ...n });
1653
- } else {
1654
- labelObj[n.typeName] = {
1655
- itemList: [{ ...n }],
1656
- showAdd: false,
1657
- addVal: '',
1658
- typeName: n.typeName,
1659
- typeId: n.typeId,
1660
- isUnfold: false,
1661
- isShowBtn: false
1662
- };
1663
- }
1664
- });
1665
- this.$set(el, 'labelObj', labelObj);
1666
- this.$set(el, 'labelList', labelList);
1667
- },
1668
-
1669
- handleLabelColorClass(item) {
1670
- return item?.color?.split("-")[1] || "yellow";
1671
- },
1672
-
1673
- handleLabelChange() {
1674
- const args = arguments;
1675
- if (args.length === 3) {
1676
- let [flag, item, options] = [...arguments];
1677
- let selectedList = options.labelSelectList || [];
1678
- if (flag) {
1679
- if (selectedList.some(n => n.labelId == item.labelId)) {
1680
- return;
1681
- }
1682
- selectedList.push(item);
1683
- } else {
1684
- let fdIndex = selectedList.findIndex(n => n.labelId == item.labelId);
1685
- if (fdIndex != -1) {
1686
- selectedList.splice(fdIndex, 1);
1687
- }
1688
- }
1689
- options.labelSelectList = selectedList;
1690
- }
1691
- },
1692
-
1693
- handleClearLabel(v) {
1694
- v.labelSelectList.length = 0;
1695
- v.inputVal = "";
1696
- Object.entries(v.labelObj || {}).forEach(h => {
1697
- let [, item] = h;
1698
- item.itemList.forEach(l => {
1699
- l.isSelect = false;
1700
- });
1701
- });
1702
- },
1703
-
1704
- handleLabelUpfold(v) {
1705
- console.log('触发---isUnfold');
1706
- v.isUnfold = !v.isUnfold;
1707
- },
1708
-
1709
- handleEvaluateOnChange(tag, checked, item) {
1710
- if (checked) {
1711
- item.selecteds.push(tag.value);
1712
- } else {
1713
- let i = item.selecteds.findIndex(v => v === tag.value);
1714
- item.selecteds.splice(i, 1);
1715
- }
1716
- },
1717
-
1718
- // 年龄组件变化
1719
- ageRangeOnChange(obj, item) {
1720
- let s = obj.star_val;
1721
- let e = obj.end_val;
1722
- this.$set(item, "start_val", isNaN(s) ? undefined : s);
1723
- this.$set(item, "end_val", isNaN(e) ? undefined : e);
1724
- },
1725
-
1726
- // 清空年龄组件
1727
- handleResetAge(item) {
1728
- this.$set(item, "start_val", "");
1729
- this.$set(item, "end_val", "");
1730
- let key = `${item.columnName}_AGEAttr`;
1731
- let curRef = this.$refs[key];
1732
- if (Array.isArray(curRef)) {
1733
- curRef = curRef[0] || false;
1734
- }
1735
- curRef?.reset();
1736
- },
1737
-
1738
- onResize(el, v) {
1739
- let height = el.offsetHeight || 0;
1740
- // let ch = el?.firstElementChild?.offsetHeight || 0;
1741
- if (!height) {
1742
- return;
1743
- }
1744
- if (height > 80) {
1745
- v.isShowBtn = true;
1746
- } else {
1747
- v.isShowBtn = false;
1748
- v.isUnfold = false;
1749
- }
1750
- },
1751
- changeFilterNumber(item) {
1752
- if (item.lessValue && item.bigValue) {
1753
- const lessValue = item.lessValue;
1754
- const bigValue = item.bigValue;
1755
- if (bigValue < lessValue) {
1756
- this.$set(item, "lessValue", bigValue);
1757
- this.$set(item, "bigValue", lessValue);
1758
- }
1759
- return;
1760
- }
1761
- },
1762
- clearFilterNumber(item) {
1763
- this.$set(item, "lessValue", "");
1764
- this.$set(item, "bigValue", "");
1765
- },
1766
-
1767
- getI18nText(i, d) {
1768
- if (Array.isArray(i)) {
1769
- return this.$t ? this.$t.apply(this, i) : d;
1770
- }
1771
- return this.$t ? this.$t(i) : d;
1772
- }
1773
- },
1774
- directives: { resize }
1775
- });
1776
- </script>
1777
-
1778
- <style lang="less" scoped>
1779
- .form-box {
1780
- .quick-item {
1781
- margin-bottom: 10px;
1782
- min-width: 32px;
1783
-
1784
- .quick-row {
1785
- display: flex;
1786
- > div {
1787
- display: inline-block;
1788
- box-sizing: border-box;
1789
- }
1790
- .quick-item-title {
1791
- min-width: 80px;
1792
- line-height: 32px;
1793
- text-align: right;
1794
- padding-left: 12px;
1795
- color: #000;
1796
- }
1797
- .quick-item-col {
1798
- padding: 0 12px;
1799
- }
1800
- .quick-item-title-default {
1801
- width: 25%;
1802
- }
1803
- .quick-item-col-default {
1804
- width: 75%;
1805
- }
1806
- }
1807
- .check-box {
1808
- line-height: 32px;
1809
- }
1810
- .check-date-btn {
1811
- display: inline-block;
1812
- line-height: 32px;
1813
- height: 32px;
1814
- padding: 0 10px;
1815
- background-color: #ddd;
1816
- cursor: pointer;
1817
- &.ml {
1818
- margin-left: 20px;
1819
- }
1820
- &.mr {
1821
- margin-right: 20px;
1822
- }
1823
- }
1824
- .check-date {
1825
- display: inline-block;
1826
- line-height: 33px;
1827
- }
1828
- .birthday-item {
1829
- > div {
1830
- margin-top: 5px;
1831
- p {
1832
- display: inline-block;
1833
- margin: 0 20px;
1834
- }
1835
- > span {
1836
- margin-top: 5px;
1837
- }
1838
- }
1839
- .age-wrap {
1840
- display: inline-block;
1841
- }
1842
- }
1843
- /deep/ .ant-input-wrapper {
1844
- .ant-input-group-addon {
1845
- border: 1px solid #d9d9d9 !important;
1846
- border-left: 0 !important;
1847
- }
1848
- }
1849
-
1850
- /deep/ .num-picker {
1851
- position: relative;
1852
- display: flex;
1853
- &.num-picker-unit {
1854
- padding-right: 20px;
1855
- }
1856
- input {
1857
- text-align: left !important;
1858
- }
1859
- &:hover {
1860
- .clear-number-icon {
1861
- display: block;
1862
- }
1863
- }
1864
- /deep/ .ant-calendar-range-picker-input {
1865
- text-align: left;
1866
- }
1867
- .clear-number-icon {
1868
- position: absolute;
1869
- right: 5px;
1870
- top: 6px;
1871
- display: none;
1872
- cursor: pointer;
1873
- z-index: 1000;
1874
- }
1875
- }
1876
- }
1877
- .ant-radio-button-wrapper {
1878
- padding: 0 8px;
1879
- height: 30px;
1880
- line-height: 30px;
1881
- margin-top: 5px;
1882
- }
1883
-
1884
- // 标签
1885
- .label-attr-container {
1886
- .edit-label {
1887
- color: #000000;
1888
- font-size: 14px;
1889
- line-height: 32px;
1890
- padding-left: 0;;
1891
- }
1892
- .label-container-height {
1893
- overflow: hidden;
1894
- // width: 380px;
1895
- height: 74px;
1896
- flex: none;
1897
- }
1898
- .edit-content {
1899
- padding: 0;
1900
- }
1901
- .label-unfold-btn {
1902
- margin: 8px 0;
1903
- color: rgba(0, 0, 0, 0.6);
1904
- cursor: pointer;
1905
- >span {
1906
- display: flex;
1907
- align-items: center;
1908
- line-height: 1;
1909
- }
1910
- .anticon {
1911
- font-size: 16px;
1912
- margin-left: 8px;
1913
- }
1914
- &:hover {
1915
- color: #2d7aff;
1916
- }
1917
- &:active {
1918
- color: #2d7aff;
1919
- }
1920
- }
1921
- }
1922
- &.quick-search-table {
1923
- .module-title {
1924
- color: #506493;
1925
- line-height: 20px;
1926
- padding-left: 12px;
1927
- border-left: 4px solid #2d7aff;
1928
- }
1929
- .quick-item {
1930
- display: inline-block;
1931
- &.quick-block {
1932
- display: block;
1933
- }
1934
- }
1935
- }
1936
-
1937
- .psw-icon {
1938
- cursor: pointer;
1939
- &:active {
1940
- color: #5585f5;
1941
- // #2474ff
1942
- }
1943
- color: #969696;
1944
- }
1945
-
1946
- ::-webkit-input-placeholder {
1947
- /* WebKit browsers */
1948
- font-family: "Avenir", Helvetica, Arial, sans-serif;
1949
- }
1950
-
1951
- ::-moz-placeholder {
1952
- /* Mozilla Firefox 19+ */
1953
- font-family: "Avenir", Helvetica, Arial, sans-serif;
1954
- }
1955
-
1956
- :-ms-input-placeholder {
1957
- /* Internet Explorer 10+ */
1958
- font-family: "Avenir", Helvetica, Arial, sans-serif;
1959
- }
1960
- }
1961
- // .age-container {
1962
- // }
1963
- </style>
1964
- <style lang="less">
1965
- .quickSearch-saveToClass-modal {
1966
- .edit-tag {
1967
- position: relative;
1968
- display: inline-block;
1969
- margin-right: 10px;
1970
- margin-bottom: 10px;
1971
- .add-parent {
1972
- border-color: #d9d9d9;
1973
- }
1974
- .anticon-close {
1975
- position: absolute;
1976
- right: 5px;
1977
- line-height: 36px;
1978
- color: #2d7aff;
1979
- }
1980
- .ant-input-disabled {
1981
- color: #2d7aff;
1982
- background-color: rgba(45, 122, 255, 0.1);
1983
- opacity: 1;
1984
- border-color: #2d7aff;
1985
- cursor: pointer;
1986
- }
1987
- .ant-input-group-addon,
1988
- .ant-input:not(:hover),
1989
- .ant-input-number:not(:hover) {
1990
- border-color: #2d7aff !important;
1991
- }
1992
- &.edit-tag-select {
1993
- .ant-input-disabled {
1994
- color: #fff;
1995
- background-color: #2d7aff;
1996
- }
1997
- .anticon-close {
1998
- color: #fff;
1999
- }
2000
- }
2001
- }
2002
- }
2003
- </style>