cnhis-design-vue 0.2.64-beta → 0.3.2-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 +40448 -18673
  5. package/es/button-print/index.css +7 -0
  6. package/es/button-print/index.js +12820 -0
  7. package/es/drag-layout/index.css +10 -0
  8. package/es/drag-layout/index.js +12533 -4157
  9. package/es/grid/index.css +10 -0
  10. package/es/grid/index.js +30638 -3609
  11. package/es/index.css +10 -0
  12. package/es/index.js +43283 -0
  13. package/package.json +48 -85
  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 -12037
  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 -120175
  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 -4785
  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 -24345
  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 -102
  709. package/packages/table-filter/src/quick-search/QuickSearch.vue +0 -2006
  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 -74
  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,2006 +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
- if(typeof res.data === 'object'){
1145
- res.data.reqParams = params;
1146
- }
1147
- return res;
1148
- }).catch(() => {
1149
- this.fetchingWordbook = false;
1150
- });
1151
- },
1152
- handleWordbookData(item, data, params) {
1153
- this.$set(item, "hasFieldList", false);
1154
- const {rows,hasFieldList,searchPageConfig} = wordBookutils.handleWordbookData(item,data,params);
1155
- this.$set(item, "hasFieldList", hasFieldList);
1156
- this.$set(item, "dataSource", rows);
1157
- item.searchPageConfig = Object.assign(item.searchPageConfig, searchPageConfig);
1158
- },
1159
- filterChange() {},
1160
- maxTagPlaceholder(item) {
1161
- if (Array.isArray(item.value)) {
1162
- return item.value.length;
1163
- } else {
1164
- return 1;
1165
- }
1166
- },
1167
- dropdownVisibleChange(open, item) {
1168
- if (open) {
1169
- let obj = {};
1170
- if (item.setting.wordbook.params) {
1171
- item.setting.wordbook.params.forEach(item => {
1172
- obj[item.p_name] = item.p_value;
1173
- });
1174
- }
1175
- if (item.settingObj.wordbook) {
1176
- obj.autograph = item.settingObj.wordbook.autograph;
1177
- }
1178
- this.curWordbookData = item.setting.wordbook;
1179
- this.curAutograph = item.settingObj.wordbook && item.settingObj.wordbook.autograph;
1180
- this.searchItem = item;
1181
- this.getWordbookData(item.setting.wordbook, obj).then(({ data }) => {
1182
- this.handleWordbookData(item, data, obj);
1183
- });
1184
- }
1185
- },
1186
- /**
1187
- * 输入自动联想
1188
- */
1189
- handleSearch(value, item, config={}) {
1190
- let params = {
1191
- keyword: value,
1192
- autograph: this.curAutograph
1193
- };
1194
- let obj = {};
1195
- let p = item?.setting?.wordbook?.params || undefined;
1196
- if (p) {
1197
- item.setting.wordbook.params.forEach(item => {
1198
- obj[item.p_name] = item.p_value;
1199
- });
1200
- }
1201
- let rp = { ...params, ...obj, ...config };
1202
- this.getWordbookData(this.curWordbookData, rp).then(({ data }) => {
1203
- this.handleWordbookData(this.searchItem, data, rp);
1204
- });
1205
- },
1206
- onSave() {
1207
- let mergeConObj = this.getMergeConObj();
1208
- this.resetChangeWindow();
1209
-
1210
- if (!this.validConObj(mergeConObj, this.searchFieldList, this.searchFieldLimit)) return false;
1211
- this.$emit("onSave", mergeConObj);
1212
- return this.quickSearch;
1213
- },
1214
- // 方便外部调用
1215
- getMergeConObj() {
1216
- let conObj = this.getConObjParams() || [];
1217
- let mergeConObj = [...conObj];
1218
- // 合并表格表头未设置高级筛选的筛选项
1219
- this.quickSearchConfig.forEach(i => {
1220
- let find = mergeConObj.find(j => {
1221
- return i.field_key === j.field_key;
1222
- });
1223
- if (
1224
- !find &&
1225
- !this.quickSearch.find(item => {
1226
- return item.columnName === i.field_key;
1227
- })
1228
- ) {
1229
- mergeConObj.push(i);
1230
- }
1231
- });
1232
- return mergeConObj || [];
1233
- },
1234
- getConObjParams() {
1235
- let conObj = this.getConObj(this.quickSearch) || [];
1236
- let realation = [];
1237
- this.relationQuickSearch.forEach(item => {
1238
- let curQuote = this.getConObj(item.fieldList);
1239
- if (curQuote && curQuote.length) {
1240
- realation.push({
1241
- field_key: item.primaryField,
1242
- valueField: item.relationField,
1243
- con: "QUOTE_IN",
1244
- tableId: item.tableId,
1245
- parameterConversionId: item.parameterConversionId,
1246
- converFun: item.converFun,
1247
- preConObj: item.preConObj,
1248
- relationOrgId: item.relationOrgId,
1249
- preSqlExpression: item.preSqlExpression,
1250
- quote_con: {
1251
- conObj: this.getConObj(item.fieldList),
1252
- sqlExpression: ""
1253
- }
1254
- });
1255
- }
1256
- });
1257
- conObj.push(...realation);
1258
- return conObj || [];
1259
- },
1260
- closeModal() {
1261
- this.resetChangeWindow();
1262
- this.$emit("closeModal");
1263
- },
1264
- resetChangeWindow() {
1265
- this.modalWidth = "700px";
1266
- this.modalHeight = "60vh";
1267
- this.isChangeWindow = false;
1268
- },
1269
- // 填写搜索设置条件后打开新增搜索分类名称弹框
1270
- openSaveToCalss() {
1271
- let conObj = this.getConObjParams();
1272
- if (!conObj) return;
1273
- if (conObj.length > 0) {
1274
- if (!this.validConObj(conObj, this.searchFieldList, this.searchFieldLimit)) return;
1275
- this.showInner = true;
1276
- } else {
1277
- this.$message.warning(this.getI18nText('1.1.6.18', '请设置搜索条件'), 2);
1278
- }
1279
- },
1280
- // 格式化设置搜索条件参数
1281
- getConObj(arr) {
1282
- // this.quickSearch
1283
- if (!Array.isArray(arr)) {
1284
- return [];
1285
- }
1286
- let conObj = [];
1287
- for (let i = 0; i < arr.length; i++) {
1288
- let item = arr[i];
1289
- let value = "";
1290
- let limit_date = "";
1291
- if (item.EQ || item.CL) {
1292
- value = item.EQ || item.CL;
1293
- if (item.settingObj?.attr === "PERCENTAGE") {
1294
- value = Number(value) / 100;
1295
- }
1296
- if (item.EVALUATEAttr) {
1297
- value = item.selecteds.join("|#|");
1298
- }
1299
- } else if (item.con == "QUOTE" && !vexutils.isEmpty(item.value)) {
1300
- // value = item.QUOTE.join("|#|");
1301
- if(item.comType == "treeSelect"){
1302
- let cval = item.value;
1303
- if(typeof cval === 'string'){
1304
- [cval] = cval.split('<&=&>');
1305
- value = cval;
1306
- } else if(Array.isArray(cval)) {
1307
- cval = cval.map((v)=>{
1308
- let [k] = typeof v === 'string' ? v.split('<&=&>'): [];
1309
- return k;
1310
- })
1311
- value = cval.join("|#|");
1312
- }
1313
- } else {
1314
- value = item.value.join("|#|");
1315
- }
1316
- } else if (!vexutils.isEmpty(item.CONVERT)) {
1317
- value = item.CONVERT.map(item => {
1318
- if (item && vexutils.isJSON(item)) {
1319
- return JSON.parse(item);
1320
- }
1321
- return item;
1322
- });
1323
- } else if (item.DATE && !item.AGEAttr) {
1324
- // 年龄组件的不按照 date 类型处理
1325
- if (item.DATE.start_val || item.DATE.end_val) {
1326
- item.DATE.con = "IN";
1327
- }
1328
- item.tempCon = item.DATE.con;
1329
- item.start_val = item.DATE.start_val
1330
- ? item.DATE.start_val.format("YYYY-MM-DD HH:mm:ss")
1331
- : "";
1332
- item.end_val = item.DATE.end_val ? item.DATE.end_val.format("YYYY-MM-DD HH:mm:ss") : "";
1333
- } else if (item.BIRTHDAY) {
1334
- // 生日
1335
- let isChange = false;
1336
- if (
1337
- item.BIRTHDAY.limit_date.length > 0 ||
1338
- item.BIRTHDAY.start_val ||
1339
- item.BIRTHDAY.end_val
1340
- ) {
1341
- item.BIRTHDAY.con = "IN";
1342
- }
1343
- item.tempCon = item.BIRTHDAY.con;
1344
- // 因为年龄下拉有个默认值, 当输入框中有值时才取下拉值
1345
- if (item.BIRTHDAY.start_val || item.BIRTHDAY.end_val) {
1346
- isChange = true;
1347
- } else {
1348
- isChange = false;
1349
- }
1350
-
1351
- // 校验
1352
- if (item.BIRTHDAY.start_val) {
1353
- let res = vexutils.validateBirthday(
1354
- item.BIRTHDAY.start_val,
1355
- item.title,
1356
- item.BIRTHDAY.unit
1357
- );
1358
- if (!res) return;
1359
- }
1360
- if (item.BIRTHDAY.end_val) {
1361
- let res = vexutils.validateBirthday(
1362
- item.BIRTHDAY.end_val,
1363
- item.title,
1364
- item.BIRTHDAY.unit
1365
- );
1366
- if (!res) return;
1367
- }
1368
- if (+item.BIRTHDAY.start_val > +item.BIRTHDAY.end_val) {
1369
- this.$message.warning(this.getI18nText(['1.9.47', { title: item.title }], `${item.title}请输入有效范围`), 2);
1370
- return;
1371
- }
1372
-
1373
- limit_date = this.limit_date || "";
1374
- item.unit = isChange ? item.BIRTHDAY.unit || "" : "";
1375
- item.start_val = item.BIRTHDAY.start_val || "";
1376
- item.end_val = item.BIRTHDAY.end_val || "";
1377
- }
1378
- // 根据属性判断取值
1379
- if (item.LABELAttr) {
1380
- if (Object.keys(item.labelObj || {}).length > 0) {
1381
- let valList = [];
1382
- item.labelSelectList.forEach(v => {
1383
- valList.push(v.labelName);
1384
- });
1385
- value = valList.join("|#|");
1386
- } else {
1387
- value = item.inputVal;
1388
- }
1389
- } else if (item.EVALUATEAttr) {
1390
- value = item.selecteds.join("|#|");
1391
- } else if (item.AGEAttr) {
1392
- value = "";
1393
- } else if (item.NUMBERFiled && item.lessValue && item.bigValue) {
1394
- if (item.setting?.attr === "PERCENTAGE") {
1395
- value = Number(item.lessValue) / 100 + "~" + Number(item.bigValue) / 100;
1396
- } else {
1397
- value = item.lessValue + "~" + item.bigValue;
1398
- }
1399
- }
1400
- // 删除字符串前后空格
1401
- if (value && vexutils.isString(value)) {
1402
- value = value.trim();
1403
- }
1404
- let temp = {
1405
- field_key: item.columnName, // 一级value
1406
- con: item.DATE || item.BIRTHDAY ? item.tempCon : item.con, // 二级选择项value
1407
- value: value, // input输入值
1408
- limit_date: limit_date || "", // 生日
1409
- start_val: item.start_val || "", // 开始时间
1410
- end_val: item.end_val || "", // 结束时间
1411
- unit: item.unit || "", // 年龄
1412
- id: item.id
1413
- };
1414
- conObj.push(temp);
1415
- }
1416
- let dateCons = this.dateTeam.map(item => item.con);
1417
- let res = conObj.filter(
1418
- item =>
1419
- item.value ||
1420
- item.limit_date ||
1421
- item.start_val ||
1422
- item.end_val ||
1423
- dateCons.includes(item.con)
1424
- );
1425
- return res;
1426
- },
1427
- range(start, end) {
1428
- const result = [];
1429
- for (let i = start; i < end; i++) {
1430
- result.push(i);
1431
- }
1432
- return result;
1433
- },
1434
- // 日期选择范围
1435
- disabledDate(current) {
1436
- return (
1437
- (current && current < moment().startOf("year")) ||
1438
- current > moment().endOf("year")
1439
- );
1440
- },
1441
- changeRange(date, dateString) {
1442
- // 这里没有使用item中的limit_date, 而是用全局的变量limit_date储存
1443
- // 原因是因为range-picker 要求是个[] 并且v-model中的数据是个moment对象 即item.BIRRHDAY.limit_date = [moment, moment]
1444
- if (dateString[0]) {
1445
- this.limit_date = dateString.join("~");
1446
- } else {
1447
- this.limit_date = "";
1448
- }
1449
- },
1450
- // 填写新增搜索分类名称后保存按钮
1451
- saveToCalss() {
1452
- this.formInner.validateFields((err, values) => {
1453
- if (err) return;
1454
- let conObj = this.getConObjParams();
1455
- if (!conObj.length) {
1456
- conObj = [];
1457
- }
1458
- let displayCategory = this.parentNames.filter(item => item.selected)[0]?.value;
1459
- let params = {
1460
- tableId: this.$attrs.tableId || "",
1461
- setting: JSON.stringify({
1462
- displayCategory,
1463
- name: values.classname,
1464
- conObj: conObj
1465
- }),
1466
- conditionList: JSON.stringify(this.originConditionList)
1467
- };
1468
- this.saveTableCondiTion(params);
1469
-
1470
- });
1471
- },
1472
- handleParentNamesAdd(e) {
1473
- const nextInput = e?.target?.nextElementSibling;
1474
- setTimeout(() => {
1475
- nextInput && nextInput.focus();
1476
- });
1477
- this.showAdd = true;
1478
- },
1479
- hanldeBlur() {
1480
- this.showAdd = false;
1481
- if (!this.addVal) return;
1482
- this.parentNames.forEach(v => (v.selected = false));
1483
- this.parentNames.push({
1484
- disabled: true,
1485
- value: this.addVal,
1486
- selected: true,
1487
- isAdd: true
1488
- });
1489
- this.addVal = "";
1490
- },
1491
- editParentName(e, item) {
1492
- item.disabled = false;
1493
- setTimeout(() => {
1494
- e.target.focus();
1495
- }, 0);
1496
- },
1497
- handleParentNameSelect(item, index) {
1498
- if (!item.disabled) return;
1499
- this.parentNames.forEach((pItem, pIndex) => {
1500
- if (pIndex !== index) {
1501
- pItem.selected = false;
1502
- }
1503
- });
1504
- item.selected = !item.selected;
1505
- },
1506
- handleParentNamesRemove(index, item) {
1507
- this.handleParent(index, item);
1508
- },
1509
- handleParent(index, item) {
1510
- let { conditionList = [] } = this.quickSearchListObj;
1511
- if (!conditionList || !conditionList.length) {
1512
- this.parentNames.splice(index, 1);
1513
- return;
1514
- }
1515
- let hasItem = conditionList.filter(v => v.displayCategory === item.value);
1516
- if (!hasItem || !hasItem.length) {
1517
- this.parentNames.splice(index, 1);
1518
- return;
1519
- }
1520
- this.$message.error("该分类下有已有数据,请删除该分类下的筛选集后重试!");
1521
- },
1522
- // 7.12保存列表搜索分类
1523
- async saveTableCondiTion(params) {
1524
- // let url = `/tableList/saveTableCondiTion`;
1525
- // this.axios.post(url, this.$qs.stringify(params)).then(({ data }) => {
1526
- // if (data.result == "SUCCESS") {
1527
- // this.showInner = false;
1528
- // this.formInner.resetFields();
1529
- // this.$emit("updateTableCondiTion");
1530
- // this.clearData();
1531
- // this.closeModal();
1532
- // } else {
1533
- // this.$message.error(data.resultMsg);
1534
- // }
1535
- // });
1536
- try {
1537
- let res = await this.handleGetConfigApi(params, 'requestSaveTableCondiTion');
1538
- if (!res) return;
1539
- this.showInner = false;
1540
- this.formInner.resetFields();
1541
- this.$emit("updateTableCondiTion");
1542
- this.clearData();
1543
- this.closeModal();
1544
- } catch (error) {
1545
- console.log(error)
1546
- }
1547
- },
1548
- cancelSaveToCalss() {
1549
- this.showInner = false;
1550
- },
1551
- // 清空快速搜索设置条件
1552
- clearData() {
1553
- this.handlerReset(this.quickSearch);
1554
- this.relationQuickSearch.forEach(item => {
1555
- this.handlerReset(item.fieldList);
1556
- });
1557
- if (this.source === "editTable") {
1558
- this.$emit("clearQuickSearchConfig");
1559
- return;
1560
- }
1561
- this.$listeners?.clearQuickSearchConfig();
1562
- },
1563
- handlerReset(arr) {
1564
- if (!Array.isArray(arr)) {
1565
- return;
1566
- }
1567
- arr.forEach(item => {
1568
- if (item.EQ || item.CL) {
1569
- item.EQ = "";
1570
- item.CL = "";
1571
- } else if (item.con == "QUOTE" && !vexutils.isEmpty(item.value)) {
1572
- item.QUOTE = [];
1573
- item.value = [];
1574
- } else if (!vexutils.isEmpty(item.CONVERT)) {
1575
- item.CONVERT = [];
1576
- } else if (item.DATE) {
1577
- item.showDate = false;
1578
- item.marginx = "ml";
1579
- item.DATE = {
1580
- con: null,
1581
- start_val: null,
1582
- end_val: null
1583
- };
1584
- } else if (item.BIRTHDAY) {
1585
- item.showDate = false;
1586
- item.marginx = "ml";
1587
- item.BIRTHDAY = this.initBirthdayParams();
1588
- } else if (item.LABELAttr) {
1589
- this.handleClearLabel(item);
1590
- } else if (item.EVALUATEAttr) {
1591
- item.selecteds = [];
1592
- } else if (item.AGEAttr) {
1593
- this.handleResetAge(item);
1594
- } else if (item.NUMBERFiled) {
1595
- this.clearFilterNumber(item);
1596
- }
1597
- });
1598
- },
1599
- initBirthdayParams() {
1600
- this.limit_date = "";
1601
- return {
1602
- con: null,
1603
- limit_date: [],
1604
- start_val: null,
1605
- end_val: null,
1606
- unit: "YEAR",
1607
- units: this.birthdayUnits.filter(i => i.units === 1)
1608
- };
1609
- },
1610
- // 单选按钮组合点击取消选中状态
1611
- clickRadioGroup(item, con) {
1612
- if (item.con == con) {
1613
- item.con = null;
1614
- } else {
1615
- if (item.con === "IN") {
1616
- item.start_val = null;
1617
- item.end_val = null;
1618
- }
1619
- item.con = con;
1620
- }
1621
- },
1622
- clickBirthdayRadioGroup(item, con) {
1623
- this.limit_date = "";
1624
- Object.assign(item, this.initBirthdayParams());
1625
- this.clickRadioGroup(item, con);
1626
- },
1627
- changeModalWindow() {
1628
- this.isChangeWindow = !this.isChangeWindow;
1629
- let docHeight = document.body.clientHeight;
1630
- this.modalWidth = this.modalWidth === "700px" ? `100%` : "700px";
1631
- this.modalHeight = this.modalHeight === "60vh" ? `${docHeight - 108}px` : "60vh";
1632
-
1633
- if (this.modalWidth === "700px") {
1634
- this.label_max_count = 8;
1635
- } else {
1636
- this.$nextTick(() => {
1637
- let ele = document.querySelector(".quickSearch_label-container");
1638
- ele && (this.label_max_count = parseInt((ele.clientWidth - 20) / 112) * 2);
1639
- });
1640
- }
1641
- },
1642
-
1643
- /* 获取 label */
1644
- handleRequestedLabel(v) {
1645
- let params = { type: v, pageSize: 10000 };
1646
- return this.axios.get("/label/list", { params: params });
1647
- },
1648
-
1649
- async handleSetLabelOptions(labelType, el) {
1650
- let labelObj = {};
1651
- let labelList = await this.handleGetConfigApi(labelType, 'requestedLabel');
1652
- labelList.forEach(n => {
1653
- this.$set(n, 'isSelect', false);
1654
- if (labelObj[n.typeName]) {
1655
- labelObj[n.typeName].itemList.push({ ...n });
1656
- } else {
1657
- labelObj[n.typeName] = {
1658
- itemList: [{ ...n }],
1659
- showAdd: false,
1660
- addVal: '',
1661
- typeName: n.typeName,
1662
- typeId: n.typeId,
1663
- isUnfold: false,
1664
- isShowBtn: false
1665
- };
1666
- }
1667
- });
1668
- this.$set(el, 'labelObj', labelObj);
1669
- this.$set(el, 'labelList', labelList);
1670
- },
1671
-
1672
- handleLabelColorClass(item) {
1673
- return item?.color?.split("-")[1] || "yellow";
1674
- },
1675
-
1676
- handleLabelChange() {
1677
- const args = arguments;
1678
- if (args.length === 3) {
1679
- let [flag, item, options] = [...arguments];
1680
- let selectedList = options.labelSelectList || [];
1681
- if (flag) {
1682
- if (selectedList.some(n => n.labelId == item.labelId)) {
1683
- return;
1684
- }
1685
- selectedList.push(item);
1686
- } else {
1687
- let fdIndex = selectedList.findIndex(n => n.labelId == item.labelId);
1688
- if (fdIndex != -1) {
1689
- selectedList.splice(fdIndex, 1);
1690
- }
1691
- }
1692
- options.labelSelectList = selectedList;
1693
- }
1694
- },
1695
-
1696
- handleClearLabel(v) {
1697
- v.labelSelectList.length = 0;
1698
- v.inputVal = "";
1699
- Object.entries(v.labelObj || {}).forEach(h => {
1700
- let [, item] = h;
1701
- item.itemList.forEach(l => {
1702
- l.isSelect = false;
1703
- });
1704
- });
1705
- },
1706
-
1707
- handleLabelUpfold(v) {
1708
- console.log('触发---isUnfold');
1709
- v.isUnfold = !v.isUnfold;
1710
- },
1711
-
1712
- handleEvaluateOnChange(tag, checked, item) {
1713
- if (checked) {
1714
- item.selecteds.push(tag.value);
1715
- } else {
1716
- let i = item.selecteds.findIndex(v => v === tag.value);
1717
- item.selecteds.splice(i, 1);
1718
- }
1719
- },
1720
-
1721
- // 年龄组件变化
1722
- ageRangeOnChange(obj, item) {
1723
- let s = obj.star_val;
1724
- let e = obj.end_val;
1725
- this.$set(item, "start_val", isNaN(s) ? undefined : s);
1726
- this.$set(item, "end_val", isNaN(e) ? undefined : e);
1727
- },
1728
-
1729
- // 清空年龄组件
1730
- handleResetAge(item) {
1731
- this.$set(item, "start_val", "");
1732
- this.$set(item, "end_val", "");
1733
- let key = `${item.columnName}_AGEAttr`;
1734
- let curRef = this.$refs[key];
1735
- if (Array.isArray(curRef)) {
1736
- curRef = curRef[0] || false;
1737
- }
1738
- curRef?.reset();
1739
- },
1740
-
1741
- onResize(el, v) {
1742
- let height = el.offsetHeight || 0;
1743
- // let ch = el?.firstElementChild?.offsetHeight || 0;
1744
- if (!height) {
1745
- return;
1746
- }
1747
- if (height > 80) {
1748
- v.isShowBtn = true;
1749
- } else {
1750
- v.isShowBtn = false;
1751
- v.isUnfold = false;
1752
- }
1753
- },
1754
- changeFilterNumber(item) {
1755
- if (item.lessValue && item.bigValue) {
1756
- const lessValue = item.lessValue;
1757
- const bigValue = item.bigValue;
1758
- if (bigValue < lessValue) {
1759
- this.$set(item, "lessValue", bigValue);
1760
- this.$set(item, "bigValue", lessValue);
1761
- }
1762
- return;
1763
- }
1764
- },
1765
- clearFilterNumber(item) {
1766
- this.$set(item, "lessValue", "");
1767
- this.$set(item, "bigValue", "");
1768
- },
1769
-
1770
- getI18nText(i, d) {
1771
- if (Array.isArray(i)) {
1772
- return this.$t ? this.$t.apply(this, i) : d;
1773
- }
1774
- return this.$t ? this.$t(i) : d;
1775
- }
1776
- },
1777
- directives: { resize }
1778
- });
1779
- </script>
1780
-
1781
- <style lang="less" scoped>
1782
- .form-box {
1783
- .quick-item {
1784
- margin-bottom: 10px;
1785
- min-width: 32px;
1786
-
1787
- .quick-row {
1788
- display: flex;
1789
- > div {
1790
- display: inline-block;
1791
- box-sizing: border-box;
1792
- }
1793
- .quick-item-title {
1794
- min-width: 80px;
1795
- line-height: 32px;
1796
- text-align: right;
1797
- padding-left: 12px;
1798
- color: #000;
1799
- }
1800
- .quick-item-col {
1801
- padding: 0 12px;
1802
- }
1803
- .quick-item-title-default {
1804
- width: 25%;
1805
- }
1806
- .quick-item-col-default {
1807
- width: 75%;
1808
- }
1809
- }
1810
- .check-box {
1811
- line-height: 32px;
1812
- }
1813
- .check-date-btn {
1814
- display: inline-block;
1815
- line-height: 32px;
1816
- height: 32px;
1817
- padding: 0 10px;
1818
- background-color: #ddd;
1819
- cursor: pointer;
1820
- &.ml {
1821
- margin-left: 20px;
1822
- }
1823
- &.mr {
1824
- margin-right: 20px;
1825
- }
1826
- }
1827
- .check-date {
1828
- display: inline-block;
1829
- line-height: 33px;
1830
- }
1831
- .birthday-item {
1832
- > div {
1833
- margin-top: 5px;
1834
- p {
1835
- display: inline-block;
1836
- margin: 0 20px;
1837
- }
1838
- > span {
1839
- margin-top: 5px;
1840
- }
1841
- }
1842
- .age-wrap {
1843
- display: inline-block;
1844
- }
1845
- }
1846
- /deep/ .ant-input-wrapper {
1847
- .ant-input-group-addon {
1848
- border: 1px solid #d9d9d9 !important;
1849
- border-left: 0 !important;
1850
- }
1851
- }
1852
-
1853
- /deep/ .num-picker {
1854
- position: relative;
1855
- display: flex;
1856
- &.num-picker-unit {
1857
- padding-right: 20px;
1858
- }
1859
- input {
1860
- text-align: left !important;
1861
- }
1862
- &:hover {
1863
- .clear-number-icon {
1864
- display: block;
1865
- }
1866
- }
1867
- /deep/ .ant-calendar-range-picker-input {
1868
- text-align: left;
1869
- }
1870
- .clear-number-icon {
1871
- position: absolute;
1872
- right: 5px;
1873
- top: 6px;
1874
- display: none;
1875
- cursor: pointer;
1876
- z-index: 1000;
1877
- }
1878
- }
1879
- }
1880
- .ant-radio-button-wrapper {
1881
- padding: 0 8px;
1882
- height: 30px;
1883
- line-height: 30px;
1884
- margin-top: 5px;
1885
- }
1886
-
1887
- // 标签
1888
- .label-attr-container {
1889
- .edit-label {
1890
- color: #000000;
1891
- font-size: 14px;
1892
- line-height: 32px;
1893
- padding-left: 0;;
1894
- }
1895
- .label-container-height {
1896
- overflow: hidden;
1897
- // width: 380px;
1898
- height: 74px;
1899
- flex: none;
1900
- }
1901
- .edit-content {
1902
- padding: 0;
1903
- }
1904
- .label-unfold-btn {
1905
- margin: 8px 0;
1906
- color: rgba(0, 0, 0, 0.6);
1907
- cursor: pointer;
1908
- >span {
1909
- display: flex;
1910
- align-items: center;
1911
- line-height: 1;
1912
- }
1913
- .anticon {
1914
- font-size: 16px;
1915
- margin-left: 8px;
1916
- }
1917
- &:hover {
1918
- color: #2d7aff;
1919
- }
1920
- &:active {
1921
- color: #2d7aff;
1922
- }
1923
- }
1924
- }
1925
- &.quick-search-table {
1926
- .module-title {
1927
- color: #506493;
1928
- line-height: 20px;
1929
- padding-left: 12px;
1930
- border-left: 4px solid #2d7aff;
1931
- }
1932
- .quick-item {
1933
- display: inline-block;
1934
- &.quick-block {
1935
- display: block;
1936
- }
1937
- }
1938
- }
1939
-
1940
- .psw-icon {
1941
- cursor: pointer;
1942
- &:active {
1943
- color: #5585f5;
1944
- // #2474ff
1945
- }
1946
- color: #969696;
1947
- }
1948
-
1949
- ::-webkit-input-placeholder {
1950
- /* WebKit browsers */
1951
- font-family: "Avenir", Helvetica, Arial, sans-serif;
1952
- }
1953
-
1954
- ::-moz-placeholder {
1955
- /* Mozilla Firefox 19+ */
1956
- font-family: "Avenir", Helvetica, Arial, sans-serif;
1957
- }
1958
-
1959
- :-ms-input-placeholder {
1960
- /* Internet Explorer 10+ */
1961
- font-family: "Avenir", Helvetica, Arial, sans-serif;
1962
- }
1963
- }
1964
- // .age-container {
1965
- // }
1966
- </style>
1967
- <style lang="less">
1968
- .quickSearch-saveToClass-modal {
1969
- .edit-tag {
1970
- position: relative;
1971
- display: inline-block;
1972
- margin-right: 10px;
1973
- margin-bottom: 10px;
1974
- .add-parent {
1975
- border-color: #d9d9d9;
1976
- }
1977
- .anticon-close {
1978
- position: absolute;
1979
- right: 5px;
1980
- line-height: 36px;
1981
- color: #2d7aff;
1982
- }
1983
- .ant-input-disabled {
1984
- color: #2d7aff;
1985
- background-color: rgba(45, 122, 255, 0.1);
1986
- opacity: 1;
1987
- border-color: #2d7aff;
1988
- cursor: pointer;
1989
- }
1990
- .ant-input-group-addon,
1991
- .ant-input:not(:hover),
1992
- .ant-input-number:not(:hover) {
1993
- border-color: #2d7aff !important;
1994
- }
1995
- &.edit-tag-select {
1996
- .ant-input-disabled {
1997
- color: #fff;
1998
- background-color: #2d7aff;
1999
- }
2000
- .anticon-close {
2001
- color: #fff;
2002
- }
2003
- }
2004
- }
2005
- }
2006
- </style>