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,1819 +0,0 @@
1
- <template>
2
- <div :class="['SearchCondition-page', is_search_professional ? '_c_com-search-professional' : '']">
3
- <div class="inner-content">
4
- <div class="item-name" v-if="showItemName">
5
- <span class="label">筛选分类名称:</span>
6
- <!-- 1.1.6.6请输入分类名称 -->
7
- <a-input v-model="className" :placeholder="'请输入分类名称'" style="width: 250px" :maxLength="10" />
8
- </div>
9
- <div class="parent-names" v-if="showItemName">
10
- <!-- 1.9.362父类名称 -->
11
- <span class="label">{{ '父类名称' }}:</span>
12
- <div
13
- class="edit-tag"
14
- v-for="(item, index) in parentNames"
15
- :key="index"
16
- @dblclick="e => editParentName(e, item)"
17
- @click="handleParentNameSelect(item, index)"
18
- :class="{ 'edit-tag-select': item.selected && item.disabled }"
19
- >
20
- <a-input style="width: 100px" :value="item" :disabled="item.disabled" @blur="() => (item.disabled = true)" v-model="item.value" :maxLength="10" />
21
- <a-icon slot="suffix" type="close" @click="handleParentNamesRemove(index, item)" />
22
- </div>
23
- <template v-if="!parentNamesHasAdd">
24
- <a-button v-show="!showAdd" icon="plus" type="dashed" @click="handleParentNamesAdd">
25
- <!-- 1.9.363添加父类 -->
26
- {{ '添加父类' }}
27
- </a-button>
28
- <a-input class="edit-tag" v-model.trim="addVal" v-show="showAdd" style="width: 100px" @blur="hanldeBlur" :maxLength="10" />
29
- </template>
30
- </div>
31
- <div class="item-name" v-if="classify === 'custom' && !homeManage && !hideAddBtn">
32
- <span class="label" v-if="!isOnlyCondition"> 过滤条件: </span>
33
- <span @click="addAction" style="cursor: pointer">
34
- <a-icon type="plus-circle" class="blue" theme="filled" />
35
- <span>{{ isOnlyCondition ? '添加操作' : '添加' }}</span>
36
- </span>
37
- </div>
38
- <!-- 首页管理过滤条件支持选择分类 -->
39
- <div class="item-name" v-if="homeManage">
40
- <span class="label">选择筛选分类:</span>
41
- <a-select v-model="classify" style="width: 250px">
42
- <a-select-option :value="item.sid" v-for="item in classifyList" :key="item.sid">
43
- {{ item.name }}
44
- </a-select-option>
45
- <a-select-option value="custom"> 自定义 </a-select-option>
46
- </a-select>
47
- </div>
48
- <div class="item-name" v-if="classify === 'custom' && homeManage">
49
- <span class="label"> 过滤条件: </span>
50
- <span @click="addAction" style="cursor: pointer">
51
- <a-icon type="plus-circle" class="blue" theme="filled" />
52
- <span>添加</span>
53
- </span>
54
- </div>
55
- <ul class="item-list" v-if="classify === 'custom'" :class="{ 'list-onlyCondition': isOnlyCondition }">
56
- <li v-for="(item, index) in actionList" :key="index">
57
- <span class="index-span">{{ index + 1 }}&nbsp;&nbsp;&nbsp;</span>
58
- <!-- 选择 field_key -->
59
- <a-select
60
- class="form-item select-front-item"
61
- placeholder="请选择"
62
- allowClear
63
- v-model="item.field_key"
64
- :disabled="item.isIllegalField"
65
- showSearch
66
- :filterOption="filterOption"
67
- @select="changeColumnName($event, item)"
68
- @change="(...arg) => fieldselectONchange(item, 'changeColumnName', ...arg)"
69
- :dropdownMatchSelectWidth="false"
70
- >
71
- <a-select-option v-for="sea in item.searchList" :key="isBI ? sea.fieldId : sea.sid" :value="isBI ? sea.fieldId : sea.columnName" :title="sea.title || sea.columnName">{{
72
- handleName(sea)
73
- }}</a-select-option>
74
- </a-select>
75
- <!-- 选择 关系 -->
76
- <!-- 1.1.6.7请选择 -->
77
- <!-- 1.1.6.11暂无数据 -->
78
- <a-select
79
- v-model="item.con"
80
- showSearch
81
- :dropdownMatchSelectWidth="false"
82
- :filterOption="filterOption"
83
- :placeholder="'请选择'"
84
- class="form-item select-front-item"
85
- allowClear
86
- @select="selectChild($event, item)"
87
- @change="(...arg) => fieldselectONchange(item, 'selectChild', ...arg)"
88
- :disabled="item.isIllegalField"
89
- :notFoundContent="fetching ? undefined : '暂无数据'"
90
- >
91
- <a-select-option v-for="child in item.searchChildList" :key="child.name" :value="child.name" :title="child.desc">{{ child.desc }}</a-select-option>
92
- </a-select>
93
-
94
- <!-- 下拉框展示本列表相同数据类型 -->
95
- <a-select
96
- class="form-item"
97
- @select="compare_fieldOnChange($event, item)"
98
- v-show="visibleCompareField(item)"
99
- v-model="item.compare_field"
100
- showSearch
101
- :filterOption="filterOption"
102
- style="width: 120px"
103
- >
104
- <a-select-option v-for="date in item.selectList" :key="date.value" :value="date.value" :title="date.name">{{ date.name }}</a-select-option>
105
- </a-select>
106
-
107
- <div class="in-block def_item_input" :class="[item.showSelect ? 'show-small-select' : '']" v-show="visibleDefaultField(item)">
108
- <!-- 展示 -->
109
- <span v-show="item.showInput" class="val-input-wrap">
110
- <!-- 增加 showInput 插槽 支持自定义showInput 内容 -->
111
- <slot name="showInput" :item="item">
112
- <a-input-number :disabled="item.isIllegalField" v-if="showPercent(item)" class="CL-input" style="width: 200px" v-model="item.value" :min="0" :max="100" />
113
- <a-input v-else v-model="item.value" :disabled="item.isIllegalField" class="form-item" />
114
- </slot>
115
- </span>
116
- <a-select
117
- class="val-select-wrap"
118
- v-if="item.showSearch"
119
- v-model="item.wordValue"
120
- :disabled="item.isIllegalField"
121
- mode="multiple"
122
- :tokenSeparators="['|#|']"
123
- style="width: 160px"
124
- :filter-option="false"
125
- @dropdownVisibleChange="dropdownVisibleChange($event, item)"
126
- @search="e => handleSearch(e, item)"
127
- @select="handleSelect($event, item)"
128
- @deselect="handleDeSelect($event, item)"
129
- >
130
- <a-select-option v-for="sea in item.wordbookData" :key="item.sid + sea.myName" :value="sea.myName">
131
- {{ sea.showKeys || sea.myName }}
132
- </a-select-option>
133
- </a-select>
134
-
135
- <a-select v-show="item.showSelect" class="val-small-select-wrap" v-model="item.unit" showSearch :filterOption="filterOption" :disabled="item.isIllegalField" style="width: 66px">
136
- <a-select-option v-for="date in item.dateList" :key="date.value" :value="date.value" :title="date.name">{{ date.name }}</a-select-option>
137
- </a-select>
138
-
139
- <div class="date-item val-date-wrap" v-if="item.showDate">
140
- <a-date-picker
141
- :disabledDate="disabledStartDate || item.isIllegalField"
142
- format="YYYY-MM-DD"
143
- v-model="item.start_val"
144
- :placeholder="'请选择'"
145
- @openChange="handleStartOpenChange($event, item)"
146
- style="width: 120px"
147
- />
148
- <a-date-picker
149
- :disabledDate="disabledEndDate || item.isIllegalField"
150
- format="YYYY-MM-DD"
151
- :placeholder="'请选择'"
152
- v-model="item.end_val"
153
- :open="item.endOpen"
154
- @openChange="handleEndOpenChange($event, item)"
155
- style="width: 120px"
156
- />
157
- </div>
158
- <!-- 生日 -->
159
- <div class="date-item birthday-item val-birthday-wrap" v-if="item.showBirthdayDate">
160
- <div>
161
- <a-range-picker v-model="item.limit_date" :disabledDate="disabledDate || item.isIllegalField" @change="changeRange($event, item)" format="MM-DD" style="width: 180px" />
162
- <div class="age-wrap">
163
- <!-- 1.2.5.34年龄 -->
164
- <p>{{ '年龄' }}</p>
165
- <a-input :disabled="item.isIllegalField" style="width: 60px; margin-right: 10px" v-model="item.start_val" />
166
- <a-input :disabled="item.isIllegalField" style="width: 60px; margin-right: 10px" v-model="item.end_val" />
167
- <a-select :disabled="item.isIllegalField" v-model="item.unit" showSearch :filterOption="filterOption" defaultValue="YEAR" style="width: 60px">
168
- <a-select-option v-for="v in item.units" :key="v.con" :value="v.con">{{ v.title }}</a-select-option>
169
- </a-select>
170
- </div>
171
- </div>
172
- </div>
173
- <!-- 跨表 -->
174
-
175
- <div class="relation-item" v-show="item.showRelation">
176
- <a-select :disabled="item.isIllegalField" v-model="item.wordValue" showSearch :filterOption="filterOption" @select="handlerSelectRelation($event, item)" class="relation-width">
177
- <a-select-option v-for="word in item.relationData" :key="word.id" :value="word.tableId">{{ word.tableName }}</a-select-option>
178
- </a-select>
179
- <!-- 关联值 -->
180
- <a-input class="relation-width" disabled v-model="item.relationField" />
181
- <span class="relation-width blue relation-btn" @click="openRelationFilter(item, index)">
182
- <!-- 1.1.1.1.6点击设置过滤条件 -->
183
- {{ '点击设置过滤条件' }}</span
184
- >
185
- </div>
186
-
187
- <!-- 年龄 -->
188
- <!-- TODO:样式 -->
189
- <div v-if="item.showRangeAge" class="range-container val-range-wrap">
190
- <rangeAge
191
- :disabled="item.isIllegalField"
192
- :format="item.format"
193
- :defaultValue="{
194
- start_val: item.start_val,
195
- end_val: item.end_val
196
- }"
197
- @change="ageRangeOnChange($event, item)"
198
- ></rangeAge>
199
- </div>
200
- <div v-if="item.showAgeCom" class="range-container val-age-wrap">
201
- <age-com :disabled="item.isIllegalField" :format="item.format" @change="agecomOnChange($event, item)" :value="item.ageValue"></age-com>
202
- </div>
203
- </div>
204
- <!-- -->
205
- <span class="item-error" v-if="item.field_key && !searchListKey.includes(item.field_key)">检测到该筛选字段是非法无效的,请移除!</span>
206
- <!-- 1.1.1.3.3删除 -->
207
- <a-tooltip :title="'删除'" destroyTooltipOnHide>
208
- <svg-icon v-if="!isSee" v-show="noShowListDelIcon" @click="softDel(index)" class-name="svg-icon-btn is-danger form-action" icon-class="xitongtubiaoliebiaocaozuoanniushanchushixin" />
209
- </a-tooltip>
210
- </li>
211
- </ul>
212
- <div v-if="classify === 'custom' && !isOnlyCondition">
213
- <div style="margin-bottom: 6px" v-show="!is_search_professional">
214
- <!-- 筛选器逻辑编辑,不设置默认为AND1.2.4.9 -->
215
- {{ '筛选器逻辑编辑,不设置默认为AND' }} <br />
216
- 例子 (1 AND 2) OR 3
217
- </div>
218
- <div>
219
- <!-- 没啥用撑布局而已 -->
220
- <span v-if="is_search_professional" style="visibility: hidden;" class="index-span">{{ 1 }}&nbsp;&nbsp;&nbsp;</span>
221
-
222
- <a-input
223
- class="teavalue-wrap"
224
- v-model="teaValue"
225
- type="textarea"
226
- :placeholder="is_search_professional ? '筛选条件表达式,不设置默认为AND,例子(1 AND 2) OR 3' : ''"
227
- :rows="is_search_professional ? 1 : 3"
228
- />
229
- </div>
230
- </div>
231
- </div>
232
- <SearchFilter
233
- v-bind="$attrs"
234
- :visible="relationVisible"
235
- openType="relationTable"
236
- @saveAdd="relationSave"
237
- @cancelSaveAdd="relationCancel"
238
- :actionList_prop="relationAction"
239
- :searchFieldList="relationSearchFieldList"
240
- />
241
- </div>
242
- </template>
243
-
244
- <script>
245
- import moment from 'moment';
246
- import 'moment/locale/zh-cn';
247
- moment.locale('zh-cn');
248
- import rangeAge from '~/table-filter/src/components/range-age/index';
249
- import ageCom from '~/table-filter/src/components/age-com/index';
250
- import { Icon, Input, Button, InputNumber, Tooltip, Select, DatePicker, message } from 'ant-design-vue';
251
- import utils from '@/utils/utils-map';
252
- import FIELDTYPELIST from './fieldTypeList';
253
- import svgIcon from '@/component/svg/index.vue';
254
- import create from '@/core/create';
255
- import { filterApiFn } from '~/table-filter/src/mixins/mixins';
256
- export default create({
257
- name: 'search-condition',
258
- mixins: [filterApiFn],
259
- props: {
260
- isSee: Boolean,
261
- visible: Boolean,
262
- actionList_prop: Object,
263
- searchFieldList: {
264
- type: Array,
265
- default: () => []
266
- },
267
- showItemName: {
268
- default: true
269
- },
270
- saveEmpty: {
271
- default: false
272
- },
273
- // 首页管理
274
- homeManage: {
275
- default: false
276
- },
277
- tableId: {
278
- default: ''
279
- },
280
- isPersonalizedHome: {
281
- default: false
282
- },
283
- conditionList: {
284
- type: Array
285
- },
286
- source: {
287
- type: String
288
- },
289
- isBI: {
290
- default: false
291
- },
292
- // 自定义格式化 actionList 里的数据 (可搭配 slot插槽:showInput使用 )
293
- formatActionData: {
294
- type: Function,
295
- default: v => v
296
- },
297
- isOnlyCondition: Boolean,
298
- isCnHis: {
299
- // 2021/5/25 257针对云his做修改 只过滤搜索为禁用的条件 fjj需求
300
- type: Boolean,
301
- default: false
302
- },
303
- isAdmin: {
304
- type: Boolean,
305
- default: false
306
- },
307
-
308
- // 是否展示 CompareField
309
- showCompareField: {
310
- type: Boolean,
311
- default: false
312
- },
313
-
314
- hideAddBtn: {
315
- type: Boolean,
316
- default: false
317
- },
318
- openType: {
319
- type: String,
320
- default: ''
321
- }
322
- },
323
- data() {
324
- return {
325
- checkedItem: null,
326
- actionList: [],
327
- searchList: [],
328
- searchChildList: [],
329
- relationTableList: [], // 跨表
330
- isRelationList: [], // 跨表字段
331
- fieldTypeList: FIELDTYPELIST,
332
- dateList: [
333
- { name: '天', value: 'DAY' },
334
- { name: '周', value: 'WEEK' },
335
- { name: '月', value: 'MONTH' },
336
- { name: '季度', value: 'QUARTER' },
337
- { name: '年', value: 'YEAR' }
338
- ],
339
- dateTimeList: { name: '小时', value: 'HOUR' },
340
- relationSelect: [
341
- { desc: '存在跨表', name: 'QUOTE_IN' },
342
- { desc: '不存在跨表', name: 'QUOTE_NOTIN' }
343
- ],
344
- rangeAgeOptions: [
345
- { desc: '等于', name: 'IN' },
346
- { desc: '大于', name: 'BIG' },
347
- { desc: '大于等于', name: 'BIGEQ' },
348
- { desc: '小于', name: 'LESS' },
349
- { desc: '小于等于', name: 'LESSEQ' }
350
- ],
351
- start_val: null,
352
- end_val: null,
353
- className: '',
354
- teaValue: '',
355
- classifyId: '',
356
- // 跨表过滤
357
- relationVisible: false,
358
- relationAction: {},
359
- relationSearchFieldList: [],
360
- clcikRelationIndex: undefined,
361
- fetching: false,
362
- birthdayUnits: [
363
- { title: '天', units: 1, con: 'DAY' },
364
- { title: '周', units: 2, con: 'WEEK' },
365
- { title: '月', units: 1, con: 'MONTH' },
366
- { title: '岁', units: 1, con: 'YEAR' }
367
- ],
368
- limit_date: '',
369
- parentNames: [],
370
- // searchSelect
371
- searchItem: {},
372
- curWordbookData: undefined,
373
- curAutograph: '',
374
- classify: 'custom',
375
- classifyList: [],
376
- addVal: '',
377
- showAdd: false
378
- };
379
- },
380
- computed: {
381
- parentNamesHasAdd() {
382
- return this.parentNames.some(v => v.isAdd);
383
- },
384
- showPercent() {
385
- return function(item) {
386
- return item.settingObj?.attr === 'PERCENTAGE' || false;
387
- };
388
- },
389
-
390
- searchListKey() {
391
- let res = [];
392
- this.searchList.forEach(v => {
393
- v.fieldId && res.push(v.fieldId);
394
- v.columnName && res.push(v.columnName);
395
- });
396
- return res;
397
- },
398
- // TODO:
399
- isOrgAdmin() {
400
- return this.isAdmin;
401
- },
402
- handleName() {
403
- return function(item, key = 'title') {
404
- let useKey = key;
405
- if (this.isBI) {
406
- useKey = 'remark';
407
- }
408
- return item.alias || item[useKey];
409
- };
410
- },
411
-
412
- is_search_professional() {
413
- return this.source == 'search-professional';
414
- },
415
-
416
- // 筛选分类“专业模式” 只有一条筛选数据,不可以删除。
417
- noShowListDelIcon() {
418
- let len = this?.actionList?.length || 0;
419
- return !(len === 1 && this.source == 'search-professional');
420
- }
421
- },
422
- // created() {
423
- // this.init();
424
- // },
425
- beforeCreate() {
426
- this.$options.components.SearchFilter = require('../search-filter/SearchFilter.vue').default;
427
- },
428
- components: {
429
- rangeAge,
430
- ageCom,
431
- [Icon.name]: Icon,
432
- [Input.name]: Input,
433
- [InputNumber.name]: InputNumber,
434
- [Button.name]: Button,
435
- [Select.name]: Select,
436
- [Select.Option.name]: Select.Option,
437
- [Tooltip.name]: Tooltip,
438
- [DatePicker.name]: DatePicker,
439
- [DatePicker.RangePicker.name]: DatePicker.RangePicker,
440
- svgIcon
441
- },
442
- watch: {
443
- searchFieldList: {
444
- immediate: true,
445
- deep: true,
446
- handler(val) {
447
- if (val && val.length > 0) {
448
- // 专业模式,刷新字段,不刷新设置的条件
449
- if (this.is_search_professional && this.initConditionsed) {
450
- return;
451
- }
452
- this.handleInitConditions();
453
- }
454
- }
455
- }
456
- },
457
- methods: {
458
- handleInitConditions() {
459
- if (this.homeManage) {
460
- this.getClassifyList();
461
- this.classify = this.actionList_prop.displayCategory || 'custom';
462
- if (this.actionList_prop.displayCategory) {
463
- this.actionList_prop.conObj = [];
464
- this.actionList_prop.preSqlExpression = '';
465
- }
466
- }
467
- let { relationTableList = [] } = this.$attrs;
468
- this.relationTableList = this.openType === 'relationTable' ? [] : relationTableList;
469
- this.init();
470
- this.backShow(this.actionList_prop);
471
- this.showItemName && this.getParentNames();
472
- this.initConditionsed = true;
473
- },
474
- async getClassifyList() {
475
- let params = { tableId: this.tableId };
476
- let res = await this.handleGetConfigApi(params, 'requestGetTableCondiTionList');
477
- if (res.status) {
478
- this.$emit('setConditionMap', res.data);
479
- this.classifyList = res?.data?.conditionList || [];
480
- }
481
- },
482
- getParentNames() {
483
- let parentNames = [];
484
- let displayCategoryList = this?.$attrs?.displayCategoryList || [];
485
- displayCategoryList.forEach(item => {
486
- if (item !== '未分类') {
487
- parentNames.push({
488
- disabled: true,
489
- selected: item === this.actionList_prop.displayCategory,
490
- value: item
491
- });
492
- }
493
- });
494
- this.parentNames = parentNames;
495
- },
496
- init(config = {}) {
497
- let mySearchFieldList = JSON.parse(JSON.stringify(this.searchFieldList)).filter(i => i.columnName !== 'operatorColumn' && i.isMerge != 1);
498
- if (mySearchFieldList && mySearchFieldList.length > 0) {
499
- if (this.isPersonalizedHome) {
500
- this.searchList = mySearchFieldList;
501
- } else {
502
- let searchList = mySearchFieldList
503
- .map(item => {
504
- let { settingObj = {} } = item;
505
- let notParticipatingSearch = false;
506
- if ('notParticipatingSearch' in settingObj) {
507
- notParticipatingSearch = settingObj.notParticipatingSearch != 1;
508
- } else {
509
- notParticipatingSearch = true;
510
- }
511
- const flag = this.isCnHis ? true : item.isSearch == 1 || item.isShowSearch == 1;
512
- if (flag && notParticipatingSearch) {
513
- return item;
514
- }
515
- return null;
516
- })
517
- .filter(Boolean);
518
- this.searchList = searchList;
519
- }
520
-
521
- if (this.searchList.length === 0) {
522
- return;
523
- }
524
-
525
- this.fieldTypeList.some(item => {
526
- if (this.searchList[0].fieldType == item.name) {
527
- this.$set(this, 'searchChildList', item.conList);
528
- return true;
529
- }
530
- });
531
- this.isRelationList = this.relationTableList.map(item => item.primaryField);
532
- this.actionList = [];
533
- this.className = '';
534
- this.teaValue = '';
535
-
536
- let isInitNoAdd = 'initNoAdd' == config?.type || '';
537
-
538
- if (isInitNoAdd) return;
539
-
540
- this.addAction();
541
- }
542
- },
543
- // 回显
544
- backShow(val) {
545
- if (!val || !Object.keys(val || {}).length) return;
546
- let obj = val;
547
- // 自定义菜单中 过滤 条件回显
548
- if (this.source === 'customMenuForm' && val.setting && utils.isJSON(val.setting)) {
549
- obj = JSON.parse(val.setting) || {};
550
- }
551
- if (!Object.keys(obj || {}).length) return;
552
- let relationFieldList = [];
553
- // this.className = obj.from == "edit" ? obj.name : "";
554
- this.className = obj.name;
555
- this.classifyId = obj.from == 'edit' ? obj.sid : '';
556
- this.teaValue = obj.sqlExpression;
557
- if (obj.conObj && !utils.isArray(obj.conObj)) {
558
- obj.conObj = JSON.parse(obj.conObj);
559
- }
560
- if (!obj.conObj || !obj.conObj.length) return;
561
- this.actionList = obj.conObj.map(item => {
562
- let curSet = this.searchList.find(v => (this.isBI ? v.fieldId : v.columnName) == item.field_key);
563
- if (curSet) {
564
- item.settingObj = curSet.settingObj;
565
- }
566
- if (item.con == 'CONVERT') {
567
- item.wordValue = item.value;
568
- } else if (item.con == 'QUOTE' || item.con == 'QUOTE_NOT') {
569
- item.wordValue = item.value.split('|#|');
570
- } else if (this.isRelationList.includes(item.field_key)) {
571
- item.wordValue = item.tableId;
572
- let curItem = this.relationTableList.find(v => v.tableId === item.tableId);
573
- if (curItem) {
574
- item.relationField = curItem.relationField;
575
- relationFieldList = JSON.parse(JSON.stringify(curItem.fieldList.fieldList) || []);
576
- }
577
- }
578
- let start_val = '';
579
- let end_val = '';
580
- let limit_date = [];
581
- let ageValue = {};
582
- if (item?.settingObj?.attr === 'PERCENTAGE') {
583
- if (item.value) {
584
- item.value = Number(item.value) * 100;
585
- }
586
- } else if (item && item.settingObj && item.settingObj.attr == 'BIRTHDAY') {
587
- start_val = item.start_val ? item.start_val : '';
588
- end_val = item.end_val ? item.end_val : '';
589
- if (item.limit_date) {
590
- let limitString = item.limit_date;
591
- if (Array.isArray(item.limit_date)) {
592
- let res = [];
593
- if (item.limit_date.length > 0) {
594
- item.limit_date.forEach(v => {
595
- v._d && res.push(utils.formatTime('MOUTH', v._d));
596
- });
597
- }
598
- if (res.length > 0) {
599
- item.curlimit_date = res.join('~');
600
- }
601
- } else if (utils.isString(limitString)) {
602
- let temp = [];
603
- item.curlimit_date = limitString;
604
- if (utils.isString(limitString)) {
605
- let res = limitString.split('~');
606
- if (res.length > 0) {
607
- for (let i = 0; i < res.length; i++) {
608
- temp.push(moment(res[i], 'MM-DD'));
609
- }
610
- limit_date = temp;
611
- }
612
- }
613
- }
614
- }
615
- } else if (item && item.settingObj && item.settingObj.attr == 'AGE') {
616
- this.$set(item, 'AGEAttr', true);
617
- start_val = item.start_val;
618
- end_val = item.end_val;
619
- ageValue = this.diffTime(item.value);
620
- // searchChildList
621
- // 大于(BIG),小于 LESS,大于等于BIGEQ,小于等于LESSEQ,等于(IN)
622
- } else {
623
- start_val = item.start_val ? moment(item.start_val, 'YYYY-MM-DD') : '';
624
- end_val = item.end_val ? moment(item.end_val, 'YYYY-MM-DD') : '';
625
- item.curlimit_date = '';
626
- }
627
-
628
- item.fieldType = item.fieldType || curSet?.fieldType;
629
-
630
- // 是否是自定义输入
631
- if (item.is_compare_field && this.showCompareField) {
632
- this.handleSetSelectList(item);
633
- }
634
- return {
635
- field_key: item.field_key,
636
- fieldId: item.field_key,
637
- fieldType: item.fieldType, // 字段类型
638
- con: item.con,
639
- unit: item.unit,
640
- start_val: start_val,
641
- end_val: end_val,
642
- limit_date: limit_date,
643
- curlimit_date: item.curlimit_date ? item.curlimit_date : '',
644
- searchList: this.searchList,
645
- searchChildList: this.searchChildList,
646
- dateList: this.dateList,
647
- wordValue: item.wordValue,
648
- word: item.wordValue,
649
- value: utils.isString(item.value) ? item.value : JSON.stringify(item.value),
650
- relationData: this.isRelationList.includes(item.field_key) ? [...this.relationTableList] : [],
651
- relationField: item.valueField || '',
652
- relationFieldList: relationFieldList || [],
653
- quote_con: item.quote_con || {},
654
- ageValue: ageValue || {},
655
-
656
- converFun: item.converFun || undefined,
657
- parameterConversionId: item.parameterConversionId || undefined,
658
- relationOrgId: item.relationOrgId || undefined,
659
- preConObj: item.preConObj || undefined,
660
- preSqlExpression: item.preSqlExpression || undefined,
661
- isIllegalField: this.isSee || (item.field_key && !this.searchListKey.includes(item.field_key)), // 非法字段
662
- wordbookValueList: item.wordbookValueList || [],
663
- wordbookData: [],
664
-
665
- is_compare_field: item.is_compare_field || false,
666
- selectList: item.selectList || [],
667
- customInput: false, // 自定义输入
668
- compare_field: item.compare_field // 选择的值
669
- };
670
- });
671
- this.actionList.forEach(item => {
672
- this.formatData(item.field_key, item);
673
- this.selectChild(item.con, item, true, { is_compare_field: item.is_compare_field });
674
- });
675
- },
676
- // 保存列表搜索分类
677
- saveAdd() {
678
- // 首页配置支持筛选分类
679
- if (this.homeManage && this.classify !== 'custom') {
680
- let classify = this.classifyList.find(item => item.sid === this.classify);
681
- let setting = {
682
- displayCategory: classify.sid,
683
- name: classify.name,
684
- sqlExpression: classify.sqlExpression,
685
- conObj: classify.conObj
686
- };
687
- let params = {
688
- id: classify.sid,
689
- tableId: this.tableId,
690
- setting: JSON.stringify(setting)
691
- };
692
- this.$emit('saveAdd', params);
693
- return;
694
- }
695
- if (this.homeManage && this.classify == 'custom') {
696
- this.actionList_prop.displayCategory = '';
697
- this.actionList_prop.name = '';
698
- }
699
- if (!this.className && this.showItemName) {
700
- // 1.1.7.3请输入搜索分类名称
701
- this.$message.warn(`请输入搜索分类名称!`, 2);
702
- return;
703
- }
704
- if (this.actionList && this.actionList.length > 0) {
705
- let conObj = this.getConditions();
706
-
707
- if (!conObj) {
708
- return;
709
- }
710
-
711
- if (this.isOnlyCondition) {
712
- this.$emit('saveAdd', conObj);
713
- return;
714
- }
715
- let displayCategory = this.parentNames.filter(item => item.selected)[0]?.value;
716
- let setting = {
717
- displayCategory,
718
- name: this.className, // 自定义名称
719
- sqlExpression: this.teaValue, // 文本域
720
- conObj
721
- };
722
- let params = {
723
- id: this.classifyId,
724
- tableId: this.tableId,
725
- setting: JSON.stringify(setting)
726
- };
727
- if (conObj.some(v => !v.con)) {
728
- return this.$message.warn('请完善筛选条件');
729
- }
730
- this.$emit('saveAdd', params);
731
- const { isInSearch } = this?.$attrs || {};
732
- // isInSearch = true,等待接口 /tableList/saveTableCondiTion 请求完成 再关闭弹窗。
733
- if (!isInSearch) {
734
- this.cancelSaveAdd(false);
735
- }
736
- } else {
737
- if (!this.saveEmpty) {
738
- // 1.1.6.18请设置搜索条件
739
- return this.$message.warn(`请设置搜索条件`, 2);
740
- }
741
- this.$emit('saveAdd', {
742
- setting: '{}'
743
- });
744
- this.cancelSaveAdd();
745
- }
746
- },
747
- getSqlExpression() {
748
- return this.teaValue;
749
- },
750
- getConditions() {
751
- let condition = [];
752
- for (let i = 0; i < this.actionList.length; i++) {
753
- let item = this.actionList[i];
754
- if (item.field_key && !this.searchListKey.includes(item.field_key)) {
755
- this.$message.error('检测到该筛选字段含有非法无效的,请移除!');
756
- return;
757
- }
758
- let attrType = item?.settingObj?.attr || '';
759
- let value = '';
760
- if (item.con == 'CONVERT') {
761
- value = item.wordValue.map(word => {
762
- return JSON.parse(word);
763
- });
764
- } else if (item.con == 'QUOTE' || item.con == 'QUOTE_NOT') {
765
- value = item.wordValue.join('|#|');
766
- } else {
767
- value = item.value;
768
- }
769
- let start_val = '';
770
- let end_val = '';
771
- let limit_date = [];
772
- if (item.settingObj && item.settingObj.attr == 'PERCENTAGE') {
773
- value = Number(value) / 100;
774
- } else if (item.settingObj && item.settingObj.attr == 'BIRTHDAY') {
775
- if (item.start_val) {
776
- let res = utils.validateBirthday(item.start_val, item.title, item.unit);
777
- if (!res) return;
778
- }
779
- if (item.end_val) {
780
- let res = utils.validateBirthday(item.end_val, item.title, item.unit);
781
- if (!res) return;
782
- }
783
- if (+item.start_val > +item.end_val) {
784
- // 1.9.47请输入有效范围
785
- this.$message.warning(`${item.title}请输入有效范围`, 2);
786
- return;
787
- }
788
- start_val = item.start_val ? item.start_val : '';
789
- end_val = item.end_val ? item.end_val : '';
790
-
791
- limit_date = item.curlimit_date ? item.curlimit_date : '';
792
- } else if (attrType == 'AGE') {
793
- start_val = item.start_val;
794
- end_val = item.end_val;
795
- value = item.value;
796
- } else {
797
- start_val = item.start_val ? item.start_val.format('YYYY-MM-DD') : '';
798
- end_val = item.end_val ? item.end_val.format('YYYY-MM-DD') : '';
799
- }
800
-
801
- let is_custom = this.showCompareField ? item.compare_field == '_custom__input_' : false;
802
-
803
- let temp = {
804
- field_key: item.field_key, // 一级value
805
- fieldId: item.field_key, // BI需要拿fieldId
806
- fieldType: item.fieldType, // 字段类型
807
- con: item.con, // 二级选择项value
808
- value: value, // input输入值
809
- start_val: start_val, // 开始时间
810
- end_val: end_val, // 结束时间
811
- unit: item.unit, // 选择时间单位
812
- limit_date: limit_date,
813
- tableId: (item.showRelation && item.wordValue) || undefined, // 关联表格ID
814
- valueField: item.relationField || undefined, // 关联字段
815
- quote_con: Object.keys(item.quote_con || {}).length ? item.quote_con : null, // 关联表格过滤项
816
- converFun: item.converFun || undefined,
817
- parameterConversionId: item.parameterConversionId || undefined,
818
- relationOrgId: item.relationOrgId || undefined,
819
- preConObj: item.preConObj || undefined,
820
- preSqlExpression: item.preSqlExpression || undefined,
821
- wordbookValueList: item.wordbookValueList,
822
- is_compare_field: is_custom ? false : item.is_compare_field, // 自定义输入的设为false
823
- compare_field: is_custom ? undefined : item.compare_field
824
- };
825
- condition.push(temp);
826
- }
827
- return [...condition];
828
- },
829
- // 第二层弹框添加分类按钮
830
- addAction(config = {}) {
831
- if (this.searchList.length === 0) {
832
- return message.warning('暂无字段可设置!');
833
- }
834
-
835
- // noDefault 不需要设置默认选中第一条数据
836
- // is_search_professional 专业模式 不需要默认选中第一条
837
- let noDefault = config?.noDefault || this.is_search_professional || false;
838
-
839
- let searchListDefaultItem = this.searchList[0];
840
- let searchListDefault = '',
841
- setting = {},
842
- settingObj = {};
843
-
844
- if (searchListDefaultItem) {
845
- searchListDefault = this.isBI ? searchListDefaultItem.fieldId : searchListDefaultItem.columnName;
846
- setting = searchListDefaultItem.setting;
847
- settingObj = searchListDefaultItem.settingObj;
848
- }
849
-
850
- if (noDefault) {
851
- searchListDefaultItem = {};
852
- searchListDefault = undefined;
853
- }
854
-
855
- this.actionList.push({
856
- field_key: searchListDefault,
857
- fieldId: searchListDefaultItem.fieldId,
858
- fieldType: searchListDefaultItem.fieldType, // 字段类型
859
- con: undefined,
860
- searchList: this.searchList,
861
- searchChildList: this.searchChildList,
862
- dateList: this.dateList,
863
- wordbookData: [],
864
- relationData: [...this.relationTableList],
865
- relationField: '',
866
- relationFieldList: [],
867
- quote_con: {},
868
- title: '',
869
- unit: 'YEAR',
870
- setting: setting,
871
- settingObj: settingObj,
872
- wordbookValueList: [],
873
- isIllegalField: this.isSee,
874
-
875
- is_compare_field: false,
876
- selectList: [],
877
- customInput: false, // 自定义输入
878
- compare_field: '' // 选择的值
879
- });
880
-
881
- if (noDefault) {
882
- return;
883
- }
884
-
885
- let actionInex = this.actionList.length - 1;
886
- this.changeColumnName(this.actionList[actionInex].field_key, this.actionList[actionInex]);
887
- },
888
- // 软删除
889
- softDel(index) {
890
- if (this.isSee) return;
891
- this.actionList.splice(index, 1);
892
- },
893
- cancelSaveAdd() {
894
- this.$emit('cancelSaveAdd');
895
- this.actionList = [];
896
- this.addVisible = false;
897
- this.showAdd = false;
898
- this.addVal = '';
899
- this.className = '';
900
- this.classifyId = '';
901
- this.teaValue = '';
902
- },
903
- // 第一个下拉框(1)根据不同类型,分别展示input select date
904
- changeColumnName(value, action) {
905
- action.con = undefined;
906
- let f = action.searchList.find(v => v.columnName == value);
907
- action.fieldType = f?.fieldType || undefined;
908
- this.$set(action, 'wordValue', []);
909
- this.$set(action, 'wordbookData', []);
910
- this.formatData(value, action);
911
- this.handleHideItem(action);
912
- this.handleHideCompareField(action);
913
- this.$set(action, 'isIllegalField', value && !this.searchListKey.includes(value));
914
- },
915
- // 数据处理
916
- formatData(value, action) {
917
- action.searchList.some(sea => {
918
- if ((this.isBI ? sea.fieldId : sea.columnName) == value) {
919
- action.fieldType = sea.fieldType;
920
-
921
- action.settingObj = sea.settingObj;
922
- let attrType = sea?.settingObj?.attr || '';
923
- let format = sea?.settingObj?.format || '';
924
- action.title = sea.title || '';
925
- if (sea.setting) {
926
- utils.isPlainObject(sea.setting) ? '' : (sea.setting = JSON.parse(sea.setting));
927
- if (!utils.isEmpty(sea.setting.wordbook)) {
928
- // 1.1.4.26引用
929
- // 1.2.5.52不引用
930
- action.searchChildList = [
931
- { desc: '引用', name: 'QUOTE' },
932
- { desc: '不引用', name: 'QUOTE_NOT' }
933
- ];
934
- let obj = {};
935
- if (sea.setting.wordbook.params) {
936
- sea.setting.wordbook.params.forEach(item => {
937
- obj[item.p_name] = item.p_value;
938
- });
939
- }
940
- this.$set(action, 'settingWordbook', {
941
- params: obj,
942
- id: sea.setting.wordbook.id
943
- });
944
- // this.getWordbookData(sea.setting.wordbook.id, obj).then(list => {
945
- // this.$set(action, "wordbookData", list);
946
- // });
947
- return true;
948
- } else if (sea.setting.showSetting && sea.setting.showSetting.length > 0) {
949
- // 1.1.4.27下拉选项
950
- action.searchChildList = [{ desc: '下拉选项', name: 'CONVERT' }];
951
- this.$set(action, 'wordValue', []);
952
- let showSetting = sea.setting.showSetting;
953
-
954
- // 字典推荐值
955
- let dictionItem = this.handleDictionDef(sea);
956
- if (dictionItem) {
957
- let { defaultValueTitle } = sea?.dictionarieObj || {};
958
- let hasDef = showSetting.find(item => item.change_text === defaultValueTitle);
959
- !hasDef && showSetting.unshift(dictionItem);
960
- }
961
- let wordbookData = showSetting.map((set, index) => {
962
- // 回显逻辑
963
- if (action.word) {
964
- utils.isString(action.word) ? (action.word = JSON.parse(action.word)) : '';
965
- let words = action.word.map(w => JSON.stringify(w));
966
- let filter = JSON.stringify(set.filter);
967
- if (words.includes(filter)) {
968
- action.wordValue.push(filter);
969
- }
970
- }
971
- return {
972
- name: set.change_text,
973
- showKeys: set.change_text,
974
- value: JSON.stringify(set.filter),
975
- myName: JSON.stringify(set.filter),
976
- id: (index + 9).toString(36) + index,
977
- sid: (index + 9).toString(36) + index
978
- };
979
- });
980
- action.wordbookData = wordbookData;
981
- return true;
982
- } else {
983
- let matchItem = this.fieldTypeList.find(item => sea.fieldType.toUpperCase() == item.name);
984
- if (matchItem) {
985
- // 关系 选项
986
- action.searchChildList = matchItem.conList;
987
- } else {
988
- action.searchChildList = this.searchChildList;
989
- }
990
- }
991
- // 通过 attr 判断类型,searchChildList
992
- if (attrType == 'AGE') {
993
- action.searchChildList = this.rangeAgeOptions;
994
- action.format = format.toUpperCase();
995
- // action.ageValue = this.diffTime(action.value);
996
- }
997
- } else {
998
- this.fieldTypeList.some(item => {
999
- if (sea.fieldType == item.name) {
1000
- action.searchChildList = item.conList.filter(con => con.name != 'QUOTE' && con.name != 'CONVERT' && con.name != 'QUOTE_NOT');
1001
- return true;
1002
- }
1003
- });
1004
- }
1005
- // 跨表字段
1006
- if (this.isRelationList.includes(value) && !action.searchChildList.some(v => v.name == 'QUOTE_IN')) {
1007
- action.searchChildList.push(...this.relationSelect);
1008
- }
1009
- return true;
1010
- }
1011
- });
1012
- this.formatActionData(action);
1013
- },
1014
- // 字典推荐值 item处理
1015
- handleDictionDef(el) {
1016
- let { defaultValue, defaultValueTitle } = el?.dictionarieObj || {};
1017
- let dictionItem = null;
1018
- if (defaultValue && defaultValueTitle) {
1019
- dictionItem = {
1020
- change_text: defaultValueTitle,
1021
- filter: [
1022
- {
1023
- con: 'EQ',
1024
- field_key: el.columnName,
1025
- value: defaultValue
1026
- }
1027
- ]
1028
- };
1029
- }
1030
- return dictionItem;
1031
- },
1032
- getWordbookData(o, obj) {
1033
- let { id, filterKeys, wordbookType } = o;
1034
- let resFieldKeys = filterKeys && Array.isArray(filterKeys) ? JSON.stringify(filterKeys) : filterKeys;
1035
- let url = `/tableReader/getWordbookData`;
1036
- let params = {
1037
- wordbookId: id,
1038
- fieldKeys: resFieldKeys,
1039
- wordbookType: wordbookType || 'WORDBOOK',
1040
- ...obj
1041
- };
1042
- return this.handleGetConfigApi(params, 'requestGetWordbookData', { fields: o }).then(res => {
1043
- return res;
1044
- });
1045
- },
1046
- handleWordbookData(item, data) {
1047
- let { settingObj = {} } = item;
1048
- let { showKeys = [], defaultValue, defaultValueTitle } = settingObj.wordbook || {};
1049
- let defaultItem = null;
1050
- if (defaultValue && defaultValueTitle) {
1051
- defaultItem = {
1052
- myName: defaultValue,
1053
- showKeys: defaultValueTitle
1054
- };
1055
- }
1056
- if (data && data.result) {
1057
- // 数组赋值并添加唯一name
1058
- let wordbookData = data.map.rows.map(row => {
1059
- let showKeysStr = [];
1060
- showKeys.forEach(ren => {
1061
- showKeysStr.push(row[ren]);
1062
- });
1063
- return Object.assign(row, {
1064
- myName: String(row[item.settingObj.wordbook.field_key]),
1065
- showKeys: showKeysStr.join('')
1066
- });
1067
- });
1068
- // 数组对象去重
1069
- let obj = {};
1070
- wordbookData = wordbookData.reduce((cur, next) => {
1071
- obj[next.myName] ? '' : (obj[next.myName] = true && cur.push(next));
1072
- return cur;
1073
- }, []);
1074
- if (defaultItem) {
1075
- wordbookData.unshift(defaultItem);
1076
- }
1077
- this.$set(item, 'wordbookData', wordbookData);
1078
- }
1079
- },
1080
- dropdownVisibleChange(open, item) {
1081
- if (open) {
1082
- let obj = {};
1083
- if (item.settingObj?.wordbook?.params) {
1084
- item.settingObj.wordbook.params.forEach(item => {
1085
- obj[item.p_name] = item.p_value;
1086
- });
1087
- }
1088
- if (item.settingObj?.wordbook) {
1089
- obj.autograph = item.settingObj.wordbook.autograph;
1090
- }
1091
- this.curWordbookData = item.settingObj.wordbook;
1092
- this.curAutograph = item.settingObj.wordbook && item.settingObj.wordbook.autograph;
1093
- this.searchItem = item;
1094
- if (item.settingObj.showSetting && item.settingObj.showSetting.length) {
1095
- return;
1096
- }
1097
- this.getWordbookData(item.settingObj.wordbook, obj).then(({ data }) => {
1098
- this.handleWordbookData(item, data);
1099
- });
1100
- }
1101
- },
1102
- /**
1103
- * 输入自动联想
1104
- */
1105
- handleSearch(value, item) {
1106
- let params = {
1107
- keyword: value,
1108
- autograph: this.curAutograph
1109
- };
1110
- let obj = {};
1111
- if (item.settingObj?.wordbook?.params) {
1112
- item.settingObj.wordbook.params.forEach(item => {
1113
- obj[item.p_name] = item.p_value;
1114
- });
1115
- }
1116
- Object.assign(params, obj);
1117
-
1118
- this.getWordbookData(this.curWordbookData, params).then(({ data }) => {
1119
- this.handleWordbookData(this.searchItem, data);
1120
- });
1121
- },
1122
- handleSelect(value, item) {
1123
- let { wordbookData = [], wordbookValueList = [] } = item;
1124
- if (!wordbookData.length) return;
1125
- let matchItem = wordbookData.find(v => v.myName === value);
1126
- let hasItem = wordbookValueList.some(v => v.myName === value);
1127
- if (hasItem) return;
1128
- wordbookValueList.push(matchItem);
1129
- },
1130
- handleDeSelect(value, item) {
1131
- let { wordbookValueList = [] } = item;
1132
- let matchIndex = wordbookValueList.findIndex(v => v.myName === value);
1133
- if (matchIndex < 0) return;
1134
- wordbookValueList.splice(matchIndex, 1);
1135
- },
1136
-
1137
- selectChild(value, item, isInitSet, config = {}) {
1138
- let attr = item?.settingObj?.attr || '';
1139
- let arr = [
1140
- 'TODAY',
1141
- 'THIS_WEEK',
1142
- 'THIS_MONTH',
1143
- 'THIS_SEASON',
1144
- 'THIS_YEAR',
1145
- 'NULL',
1146
- 'NOT_NULL',
1147
- 'TOMORROW',
1148
- 'YESTERDAY',
1149
- 'NEXT_WEEK',
1150
- 'UP_WEEK',
1151
- 'NEXT_MONTH',
1152
- 'UP_MONTH',
1153
- 'NEXT_SEASON',
1154
- 'UP_SEASON',
1155
- 'NEXT_YEAR',
1156
- 'UP_YEAR'
1157
- ];
1158
- let ageList = ['BIG', 'BIGEQ', 'LESS', 'LESSEQ'];
1159
- // 自定义输入关系的“key”
1160
- const customTypes = ['EQ', 'IN', 'NEQ'];
1161
- const numbercustoms = ['EQ', 'NEQ', 'BIG', 'LESS', 'BIGEQ', 'LESSEQ'];
1162
-
1163
- item.showRangeAge = false; // 年龄范围
1164
- item.showAgeCom = false; // 年龄范围
1165
- let inRelation = ['QUOTE_IN', 'QUOTE_NOTIN'];
1166
- if (arr.includes(value)) {
1167
- item.showInput = false;
1168
- item.showSelect = false;
1169
- item.showDate = false;
1170
- item.showSearch = false;
1171
- item.showRelation = false;
1172
- this.initBirthdayParams(item);
1173
- } else if (['IN_THE_PAST', 'IN_THE_FUTURE', 'N_', 'L_', 'IN_THE_PAST_DI', 'IN_THE_FUTURE_DI'].includes(value)) {
1174
- // 以前、以后、过去内、未来内
1175
- // L_ N_ IN_THE_PAST IN_THE_FUTURE 添加小时
1176
- // 过去第 未来第
1177
- // IN_THE_PAST_DI IN_THE_FUTURE_DI
1178
- item.showSelect = true;
1179
- item.showInput = true;
1180
- item.showDate = false;
1181
- item.showSearch = false;
1182
- item.showRelation = false;
1183
- if (value == 'IN_THE_PAST_DI' || value == 'IN_THE_FUTURE_DI') {
1184
- this.$set(item, 'dateList', this.dateList);
1185
- } else {
1186
- let dateList = this.dateList.concat(this.dateTimeList);
1187
- this.$set(item, 'dateList', dateList);
1188
- }
1189
- if (!isInitSet) {
1190
- this.$set(item, 'unit', 'DAY');
1191
- }
1192
- this.initBirthdayParams(item);
1193
- } else if (value == 'IN') {
1194
- // field_key: "birthday"
1195
- if (attr == 'BIRTHDAY') {
1196
- item.showBirthdayDate = true;
1197
- item.showDate = false;
1198
- item.units = this.birthdayUnits.filter(i => i.units === 1);
1199
- } else if (attr == 'AGE') {
1200
- item.showRangeAge = true;
1201
- } else {
1202
- item.showDate = true;
1203
- this.initBirthdayParams(item);
1204
- }
1205
- item.showSelect = false;
1206
- item.showInput = false;
1207
- item.showSearch = false;
1208
- item.showRelation = false;
1209
- } else if (value == 'CONVERT' || value == 'QUOTE' || value == 'QUOTE_NOT') {
1210
- item.showDate = false;
1211
- item.showSelect = false;
1212
- item.showInput = false;
1213
- item.showSearch = true;
1214
- item.showRelation = false;
1215
- this.initBirthdayParams(item);
1216
- let showSetting = false;
1217
- if (item.settingObj?.showSetting?.length) {
1218
- showSetting = true;
1219
- }
1220
- // 这里wordbookValueList替换wordbookData 还是有点问题 需要根据具体场景再修改
1221
- if (!showSetting && item.wordbookValueList?.length) {
1222
- this.$set(item, 'wordbookData', item.wordbookValueList);
1223
- }
1224
- } else if (inRelation.includes(value)) {
1225
- // 跨表查询
1226
- item.showRelation = true;
1227
- item.showInput = false;
1228
- item.showSelect = false;
1229
- item.showDate = false;
1230
- item.showSearch = false;
1231
- this.initBirthdayParams(item);
1232
- } else if (attr == 'AGE') {
1233
- if (ageList.includes(value)) {
1234
- item.showAgeCom = true;
1235
- }
1236
- } else {
1237
- item.showSelect = false;
1238
- item.showDate = false;
1239
- if (item.settingObj && item.settingObj.attr == 'BIRTHDAY') {
1240
- item.showInput = false;
1241
- } else {
1242
- item.showInput = true;
1243
- }
1244
- item.showSearch = false;
1245
- item.showRelation = false;
1246
- this.initBirthdayParams(item);
1247
- }
1248
-
1249
- if (!this.showCompareField) return;
1250
-
1251
- let s_type = config?.type;
1252
- if (s_type === '_custom__input_') return;
1253
-
1254
- if (customTypes.includes(value) || (['NUMBER', 'DATE', 'DATETIME', 'TIME'].includes(item.fieldType) && numbercustoms.includes(value))) {
1255
- this.$set(item, 'is_compare_field', true);
1256
- this.$set(item, 'customInput', false);
1257
- this.handleSetSelectList(item);
1258
- if (Array.isArray(item.selectList)) {
1259
- // 默认选中第一
1260
- if (item.selectList.length > 1) {
1261
- let [a] = item.selectList;
1262
- this.$set(item, 'compare_field', a.value);
1263
- setTimeout(() => {
1264
- // 里面递归调用 selectChild ,异步等待,第一个方法执行完成
1265
- this.compare_fieldOnChange(a.value, item);
1266
- }, 100);
1267
- } else {
1268
- let selectList = item?.selectList || [];
1269
- let len = selectList?.length || 0;
1270
- let onlyCustomInput = len === 1 ? selectList[0].value === '_custom__input_' : false;
1271
- // selectList 只有一个选项并且 是 _custom__input_ ,隐藏 select ,展示 customInput
1272
- if (onlyCustomInput) {
1273
- this.$set(item, 'customInput', true);
1274
- item.compare_field = '_custom__input_';
1275
- return;
1276
- }
1277
- }
1278
- }
1279
-
1280
- if (isInitSet) {
1281
- // 如果是 is_compare_field 字段 并有值compare_field
1282
- if (config.is_compare_field && item.compare_field) {
1283
- this.$set(item, 'is_compare_field', true);
1284
- } else if (item.start_val || item.end_val || item.value || item.wordValue || item.showSelect) {
1285
- // 自定义输入回填
1286
- this.$set(item, 'customInput', true);
1287
- item.compare_field = '_custom__input_';
1288
- return;
1289
- }
1290
- }
1291
- this.handleHideItem(item, false);
1292
- } else {
1293
- item.customInput = true;
1294
- item.is_compare_field = false;
1295
- item['compare_field'] && (item['compare_field'] = undefined);
1296
- }
1297
- },
1298
- handleHideItem(item, reset = true) {
1299
- item.showRangeAge = false; // 年龄范围
1300
- item.showAgeCom = false; // 年龄范围
1301
- item.showInput = false;
1302
- item.showSelect = false;
1303
- item.showDate = false;
1304
- item.showSearch = false;
1305
- item.showRelation = false;
1306
-
1307
- // item.value = "";
1308
- // this.$set(item, 'value', '');
1309
- reset && this.$set(item, 'value', '');
1310
- },
1311
- disabledStartDate(start_val) {
1312
- const end_val = this.end_val;
1313
- if (!start_val || !end_val) {
1314
- return false;
1315
- }
1316
- return start_val.valueOf() > end_val.valueOf();
1317
- },
1318
- disabledEndDate(end_val) {
1319
- const start_val = this.start_val;
1320
- if (!end_val || !start_val) {
1321
- return false;
1322
- }
1323
- return start_val.valueOf() >= end_val.valueOf();
1324
- },
1325
- handleStartOpenChange(open, item) {
1326
- if (!open) {
1327
- this.$set(item, 'endOpen', true);
1328
- }
1329
- },
1330
- handleEndOpenChange(open, item) {
1331
- this.$set(item, 'endOpen', open);
1332
- },
1333
- // 日期选择范围
1334
- disabledDate(current) {
1335
- return (current && current < moment().startOf('year')) || current > moment().endOf('year');
1336
- },
1337
- changeRange(value, item) {
1338
- let res = [];
1339
- if (value.length > 0) {
1340
- value.forEach(item => {
1341
- item._d && res.push(utils.formatTime('MOUTH', item._d));
1342
- });
1343
- }
1344
- if (res.length > 0) {
1345
- item.curlimit_date = res.join('~');
1346
- }
1347
- },
1348
- // 选择关联表
1349
- handlerSelectRelation(e, item) {
1350
- let curItem = this.relationTableList.find(v => v.tableId === e);
1351
- curItem && (item.relationField = curItem.relationField);
1352
- item.relationFieldList = JSON.parse(JSON.stringify(curItem?.fieldList?.fieldList || []));
1353
- item.converFun = curItem.converFun || undefined;
1354
- item.parameterConversionId = curItem.parameterConversionId || undefined;
1355
- item.relationOrgId = curItem.relationOrgId || undefined;
1356
- item.preConObj = curItem.preConObj || undefined;
1357
- item.preSqlExpression = curItem.preSqlExpression || undefined;
1358
- },
1359
- openRelationFilter(data, i) {
1360
- this.clcikRelationIndex = i;
1361
- this.relationAction = data.quote_con;
1362
- this.relationSearchFieldList = data.relationFieldList;
1363
- this.relationVisible = true;
1364
- // sqlExpression
1365
- },
1366
- relationCancel() {
1367
- this.relationVisible = false;
1368
- this.relationAction = {};
1369
- this.relationSearchFieldList = [];
1370
- },
1371
- relationSave(data) {
1372
- let { setting = '' } = data;
1373
- let settingObj = JSON.parse(setting);
1374
- this.actionList[this.clcikRelationIndex].quote_con = {
1375
- conObj: settingObj.conObj,
1376
- sqlExpression: settingObj.sqlExpression
1377
- };
1378
- this.relationCancel();
1379
- },
1380
- initBirthdayParams(item) {
1381
- item.showBirthdayDate = false;
1382
- item.unit = item.unit || 'YEAR';
1383
- item.units = this.birthdayUnits.filter(i => i.units === 1);
1384
- },
1385
- handleParentNamesAdd(e) {
1386
- const nextInput = e?.target?.nextElementSibling;
1387
- setTimeout(() => {
1388
- nextInput && nextInput.focus();
1389
- });
1390
- this.showAdd = true;
1391
- },
1392
- hanldeBlur() {
1393
- this.showAdd = false;
1394
- if (!this.addVal) return;
1395
- this.parentNames.forEach(v => (v.selected = false));
1396
- this.parentNames.push({
1397
- disabled: true,
1398
- value: this.addVal,
1399
- selected: true,
1400
- isAdd: true
1401
- });
1402
- this.addVal = '';
1403
- },
1404
- editParentName(e, item) {
1405
- item.disabled = false;
1406
- setTimeout(() => {
1407
- e.target.focus();
1408
- }, 0);
1409
- },
1410
- handleParentNameSelect(item, index) {
1411
- if (!item.disabled) return;
1412
- this.parentNames.forEach((pItem, pIndex) => {
1413
- if (pIndex !== index) {
1414
- pItem.selected = false;
1415
- }
1416
- });
1417
- item.selected = !item.selected;
1418
- },
1419
- handleParentNamesRemove(index, item) {
1420
- // this.parentNames.splice(index, 1);
1421
- this.handleParent(index, item);
1422
- },
1423
- handleParent(index, item) {
1424
- let { conditionList } = this;
1425
- if (!conditionList || !conditionList.length) {
1426
- this.parentNames.splice(index, 1);
1427
- return;
1428
- }
1429
- let hasItem = conditionList.filter(v => v.displayCategory === item.value);
1430
- if (!hasItem || !hasItem.length) {
1431
- this.parentNames.splice(index, 1);
1432
- return;
1433
- }
1434
- this.$message.error('该分类下有已有数据,请删除该分类下的筛选集后重试!');
1435
- },
1436
- getParentSelectedStyle(item) {
1437
- if (item.selected && item.disabled) {
1438
- return {
1439
- backgroundColor: '#2D7AFF',
1440
- color: '#fff'
1441
- };
1442
- }
1443
- return null;
1444
- },
1445
-
1446
- // 年龄组件变化
1447
- ageRangeOnChange(obj, item) {
1448
- let s = obj.star_val;
1449
- let e = obj.end_val;
1450
- this.$set(item, 'start_val', isNaN(s) ? undefined : s);
1451
- this.$set(item, 'end_val', isNaN(e) ? undefined : e);
1452
- },
1453
-
1454
- agecomOnChange(obj, item) {
1455
- this.$set(item, 'value', isNaN(obj.days) ? undefined : obj.days);
1456
- },
1457
-
1458
- diffTime(days) {
1459
- let d = +days;
1460
- if (isNaN(d)) return {};
1461
- if (typeof d == 'number') {
1462
- let next = 0;
1463
- let year = Math.floor(d / 365);
1464
- next = d % 365;
1465
- let month = Math.floor(next / 30);
1466
- next = next % 30;
1467
- let day = next;
1468
-
1469
- return { year, month, day, d };
1470
- }
1471
- return {};
1472
- },
1473
-
1474
- filterOption(...arg) {
1475
- return utils.filterOption(...arg);
1476
- },
1477
-
1478
- /**
1479
- * 选中字段
1480
- */
1481
- handleSetSelectList(item) {
1482
- let list = this.searchList
1483
- .filter(v => v.fieldType == item.fieldType && (this.isBI ? v.fieldId : v.columnName) != item.field_key)
1484
- .map(v => {
1485
- return {
1486
- value: this.isBI ? v.fieldId : v.columnName,
1487
- name: v.alias || v.title
1488
- };
1489
- });
1490
-
1491
- list.unshift({
1492
- value: '_custom__input_',
1493
- name: '自定义输入'
1494
- });
1495
-
1496
- this.$set(item, 'selectList', list);
1497
- },
1498
-
1499
- /**
1500
- * 切换字段选项
1501
- */
1502
- compare_fieldOnChange(e, item) {
1503
- if (e === '_custom__input_') {
1504
- item.customInput = true;
1505
- this.selectChild(item.con, item, false, { type: '_custom__input_' });
1506
- } else {
1507
- item.customInput = false;
1508
- this.$set(item, 'value', '');
1509
- }
1510
- },
1511
-
1512
- checkCustomInput(item) {
1513
- /**
1514
- * 判断可选的 是否 只有 “_custom__input_”
1515
- */
1516
- let selectList = item?.selectList || [];
1517
- let len = selectList?.length || 0;
1518
- let onlyCustomInput = len === 1 ? selectList[0].value === '_custom__input_' : false;
1519
- return onlyCustomInput;
1520
- },
1521
-
1522
- visibleCompareField(item) {
1523
- if (!this.showCompareField) return false;
1524
- let onlyCustomInput = this.checkCustomInput(item);
1525
- /**
1526
- * 展示 compare_field 条件
1527
- * 1. 是is_compare_field 字段 并且有字段可选
1528
- */
1529
- return item.is_compare_field && !onlyCustomInput;
1530
- },
1531
-
1532
- visibleDefaultField(item) {
1533
- /**
1534
- * 展示默认字段的条件
1535
- * 1. 非 is_compare_field 字段
1536
- * 2. 是 is_compare_field 字段,选中 自定义输入 is_compare_field
1537
- * 3. 是 is_compare_field 字段 ,没有可选的 onlyCustomInput
1538
- */
1539
- if (!this.showCompareField) return true;
1540
- let onlyCustomInput = this.checkCustomInput(item);
1541
- return item.customInput || !item.is_compare_field || onlyCustomInput;
1542
- },
1543
-
1544
- handleHideCompareField(item) {
1545
- if (!this.showCompareField) return;
1546
- item.customInput = false;
1547
- item.is_compare_field = false;
1548
- item.compare_field = undefined;
1549
- },
1550
-
1551
- checkActionList() {
1552
- let f = this.actionList.every(v => !v.field_key);
1553
- return f;
1554
- },
1555
-
1556
- /**
1557
- * select 变化
1558
- */
1559
- fieldselectONchange(item, eventName, value, vnode) {
1560
- // 清空操作
1561
- if (value === undefined) {
1562
- eventName === 'changeColumnName' && this.handleResetColumnName(item);
1563
- eventName === 'selectChild' && this.handleResetSelectChild(item);
1564
- }
1565
- },
1566
-
1567
- handleResetColumnName(item) {
1568
- item.con = undefined;
1569
- this.$set(item, 'wordValue', []);
1570
- this.$set(item, 'wordbookData', []);
1571
- this.handleHideItem(item);
1572
- },
1573
-
1574
- handleResetSelectChild(item) {
1575
- this.$set(item, 'wordValue', []);
1576
- this.$set(item, 'wordbookData', []);
1577
- this.$set(item, 'value', undefined);
1578
- this.$set(item, 'showSelect', undefined);
1579
- this.$set(item, 'start_val', null);
1580
- this.$set(item, 'end_val', null);
1581
- this.handleHideItem(item);
1582
- }
1583
- }
1584
- });
1585
- </script>
1586
-
1587
- <style lang="less" scoped>
1588
- .inner-content {
1589
- color: #000;
1590
- & > p > span {
1591
- cursor: pointer;
1592
- }
1593
- .item-name {
1594
- display: flex;
1595
- height: 32px;
1596
- line-height: 32px;
1597
- margin-bottom: 10px;
1598
- .label {
1599
- width: 120px;
1600
- text-align: right;
1601
- }
1602
- }
1603
- .parent-names {
1604
- display: flex;
1605
- align-items: center;
1606
- flex-wrap: wrap;
1607
- line-height: 32px;
1608
- .label {
1609
- display: inline-block;
1610
- height: 32px;
1611
- line-height: 32px;
1612
- margin-bottom: 10px;
1613
- width: 120px;
1614
- text-align: right;
1615
- }
1616
- /deep/ .ant-btn-dashed {
1617
- border-color: #a6a6a6;
1618
- color: #a6a6a6;
1619
- }
1620
-
1621
- .edit-tag {
1622
- position: relative;
1623
- margin-right: 10px;
1624
- margin-bottom: 10px;
1625
- /deep/ .anticon-close {
1626
- position: absolute;
1627
- right: 5px;
1628
- line-height: 36px;
1629
- color: #2d7aff;
1630
- }
1631
- /deep/ .ant-input-disabled {
1632
- color: #2d7aff;
1633
- background-color: rgba(45, 122, 255, 0.1);
1634
- opacity: 1;
1635
- border-color: #2d7aff;
1636
- cursor: pointer;
1637
- }
1638
- /deep/.ant-input-group-addon,
1639
- /deep/.ant-input:not(:hover),
1640
- /deep/.ant-input-number:not(:hover) {
1641
- border-color: #2d7aff !important;
1642
- }
1643
- &.edit-tag-select {
1644
- /deep/ .ant-input-disabled {
1645
- color: #fff;
1646
- background-color: #2d7aff;
1647
- }
1648
- /deep/ .anticon-close {
1649
- color: #fff;
1650
- }
1651
- }
1652
- }
1653
- /deep/ .ant-btn {
1654
- margin-bottom: 10px;
1655
- }
1656
- }
1657
- .item-list {
1658
- padding-top: 12px;
1659
- margin-top: 16px;
1660
- margin-bottom: 6px;
1661
- border-top: 1px solid #e6e6e6;
1662
- &.list-onlyCondition {
1663
- padding-top: 0;
1664
- border-top: 0px;
1665
- }
1666
- li {
1667
- margin-bottom: 10px;
1668
- }
1669
- .form-item {
1670
- width: 120px;
1671
- margin-right: 10px;
1672
- }
1673
- .form-action {
1674
- font-size: 16px;
1675
- float: right;
1676
- margin-top: 6px;
1677
- cursor: pointer;
1678
- }
1679
- .date-item {
1680
- display: inline-block;
1681
- }
1682
- .birthday-item {
1683
- > div {
1684
- display: inline-block;
1685
- margin-top: 5px;
1686
- p {
1687
- display: inline-block;
1688
- margin: 0 10px 0 15px;
1689
- }
1690
- > span {
1691
- margin-top: 5px;
1692
- }
1693
- }
1694
- .age-wrap {
1695
- display: inline-block;
1696
- }
1697
- }
1698
- .relation-item {
1699
- display: inline-block;
1700
- .relation-width {
1701
- width: 150px;
1702
- margin-right: 10px;
1703
- }
1704
- .relation-btn {
1705
- cursor: pointer;
1706
- }
1707
- }
1708
- .range-container {
1709
- display: inline-block;
1710
- width: 442px;
1711
- /* line-height: 1.5; */
1712
- vertical-align: bottom;
1713
- }
1714
- .item-error {
1715
- color: red;
1716
- display: inline-block;
1717
- }
1718
- }
1719
- .index-span {
1720
- width: 30px;
1721
- display: inline-block;
1722
- }
1723
- }
1724
- .blue {
1725
- color: #2d7aff;
1726
- margin-right: 8px;
1727
- }
1728
- .red {
1729
- color: #e02020;
1730
- }
1731
-
1732
- .in-block {
1733
- display: inline-block;
1734
- }
1735
- </style>
1736
-
1737
- <style lang="less">
1738
- // 专业模式下的样式修改
1739
- ._c_com-search-professional {
1740
- .inner-content {
1741
- .item-list {
1742
- > li {
1743
- position: relative;
1744
- .def_item_input {
1745
- position: absolute;
1746
- width: 100%;
1747
- }
1748
- .show-small-select {
1749
- .val-small-select-wrap {
1750
- width: 66px !important;
1751
- }
1752
- .val-input-wrap {
1753
- width: 34% !important;
1754
- }
1755
- }
1756
- }
1757
- }
1758
-
1759
- .item-error {
1760
- display: block;
1761
- padding-left: 29px;
1762
- }
1763
- .form-action {
1764
- position: absolute;
1765
- right: 0px;
1766
- top: 0;
1767
- }
1768
- }
1769
-
1770
- .select-front-item {
1771
- width: 23% !important;
1772
- }
1773
- .val-input-wrap {
1774
- width: 42%;
1775
- display: inline-block;
1776
- .ant-input {
1777
- width: 100% !important;
1778
- }
1779
- }
1780
- .val-select-wrap,
1781
- .val-age-wrap,
1782
- .val-date-wrap {
1783
- width: 42% !important;
1784
-
1785
- .ant-calendar-picker {
1786
- width: 50% !important;
1787
- }
1788
- }
1789
-
1790
- .val-range-wrap {
1791
- width: 42% !important;
1792
- .ant-input-group {
1793
- .age-com {
1794
- // 年龄组件 单位
1795
- .age-com-suffix {
1796
- padding: 0 1px;
1797
- }
1798
- .ant-input-number {
1799
- // 修改宽度
1800
- width: 100%;
1801
- // 隐藏数字操作项
1802
- .ant-input-number-handler-wrap {
1803
- display: none;
1804
- }
1805
- // 修改inputpadding
1806
- .ant-input-number-input-wrap {
1807
- input {
1808
- padding: 0 2px;
1809
- }
1810
- }
1811
- }
1812
- }
1813
- }
1814
- }
1815
- .teavalue-wrap {
1816
- width: calc(88% + 20px);
1817
- }
1818
- }
1819
- </style>