cnhis-design-vue 2.2.3 → 2.2.6

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 (751) hide show
  1. package/CHANGELOG.md +41 -6
  2. package/es/affix/index.js +8 -8
  3. package/es/age/index.js +10 -10
  4. package/es/alert/index.js +8 -8
  5. package/es/anchor/index.js +8 -8
  6. package/es/auto-complete/index.js +8 -8
  7. package/es/avatar/index.js +8 -8
  8. package/es/back-top/index.js +8 -8
  9. package/es/badge/index.js +8 -8
  10. package/es/base/index.js +8 -8
  11. package/es/big-table/index.js +107 -109
  12. package/es/big-table/style.css +1 -1
  13. package/es/breadcrumb/index.js +8 -8
  14. package/es/button/index.js +33 -33
  15. package/es/calendar/index.js +8 -8
  16. package/es/captcha/index.js +3 -3
  17. package/es/card/index.js +8 -8
  18. package/es/card-reader-sdk/index.js +1 -1
  19. package/es/carousel/index.js +8 -8
  20. package/es/cascader/index.js +8 -8
  21. package/es/checkbox/index.js +9 -9
  22. package/es/col/index.js +8 -8
  23. package/es/collapse/index.js +8 -8
  24. package/es/color-picker/index.js +1 -1
  25. package/es/comment/index.js +8 -8
  26. package/es/config-provider/index.js +8 -8
  27. package/es/date-picker/index.js +8 -8
  28. package/es/descriptions/index.js +8 -8
  29. package/es/direct/index.js +16 -16
  30. package/es/divider/index.js +8 -8
  31. package/es/drag-layout/index.js +3 -3
  32. package/es/drawer/index.js +8 -8
  33. package/es/dropdown/index.js +8 -8
  34. package/es/editor/index.js +1 -1
  35. package/es/ellipsis/index.js +1 -1
  36. package/es/empty/index.js +8 -8
  37. package/es/fabric-chart/index.js +262 -183
  38. package/es/form/index.js +8 -8
  39. package/es/form-model/index.js +8 -8
  40. package/es/form-table/index.js +74 -74
  41. package/es/full-calendar/index.js +4 -4
  42. package/es/index/index.js +1095 -855
  43. package/es/index/style.css +1 -1
  44. package/es/input/index.js +9 -9
  45. package/es/input-number/index.js +8 -8
  46. package/es/layout/index.js +8 -8
  47. package/es/list/index.js +8 -8
  48. package/es/locale-provider/index.js +8 -8
  49. package/es/map/index.js +9 -9
  50. package/es/mentions/index.js +8 -8
  51. package/es/menu/index.js +8 -8
  52. package/es/message/index.js +8 -8
  53. package/es/multi-chat/index.js +76 -76
  54. package/es/multi-chat-client/index.js +70 -70
  55. package/es/multi-chat-history/index.js +4 -4
  56. package/es/multi-chat-record/index.js +14 -14
  57. package/es/multi-chat-setting/index.js +22 -22
  58. package/es/multi-chat-sip/index.js +1 -1
  59. package/es/notification/index.js +8 -8
  60. package/es/page-header/index.js +8 -8
  61. package/es/pagination/index.js +8 -8
  62. package/es/popconfirm/index.js +8 -8
  63. package/es/popover/index.js +8 -8
  64. package/es/progress/index.js +8 -8
  65. package/es/radio/index.js +9 -9
  66. package/es/rate/index.js +8 -8
  67. package/es/result/index.js +8 -8
  68. package/es/row/index.js +8 -8
  69. package/es/scale-container/index.js +9 -9
  70. package/es/scale-view/index.js +27 -27
  71. package/es/select/index.js +36 -21
  72. package/es/select-label/index.js +11 -11
  73. package/es/select-person/index.js +2 -2
  74. package/es/select-tag/index.js +144 -81
  75. package/es/select-tag/style.css +1 -1
  76. package/es/shortcut-setter/index.js +10 -10
  77. package/es/skeleton/index.js +8 -8
  78. package/es/slider/index.js +8 -8
  79. package/es/slider-tree/index.js +9 -9
  80. package/es/space/index.js +8 -8
  81. package/es/spin/index.js +8 -8
  82. package/es/statistic/index.js +8 -8
  83. package/es/steps/index.js +8 -8
  84. package/es/switch/index.js +8 -8
  85. package/es/table-filter/index.js +280 -195
  86. package/es/table-filter/style.css +1 -1
  87. package/es/tabs/index.js +8 -8
  88. package/es/tag/index.js +9 -9
  89. package/es/time-picker/index.js +8 -8
  90. package/es/timeline/index.js +8 -8
  91. package/es/tooltip/index.js +8 -8
  92. package/es/transfer/index.js +8 -8
  93. package/es/tree/index.js +8 -8
  94. package/es/tree-select/index.js +8 -8
  95. package/es/upload/index.js +8 -8
  96. package/es/verification-code/index.js +2 -2
  97. package/lib/cui.common.js +1122 -893
  98. package/lib/cui.umd.js +1122 -893
  99. package/lib/cui.umd.min.js +36 -36
  100. package/package.json +1 -1
  101. package/.prettierrc.js +0 -27
  102. package/packages/affix/index.js +0 -12
  103. package/packages/affix/src/Affix.jsx +0 -12
  104. package/packages/age/index.js +0 -27
  105. package/packages/age/src/age/index.vue +0 -140
  106. package/packages/age/src/age-com/index.vue +0 -210
  107. package/packages/alert/index.js +0 -12
  108. package/packages/alert/src/Alert.jsx +0 -11
  109. package/packages/anchor/index.js +0 -18
  110. package/packages/anchor/src/Anchor.jsx +0 -11
  111. package/packages/anchor/src/Link.jsx +0 -11
  112. package/packages/auto-complete/index.js +0 -12
  113. package/packages/auto-complete/src/AutoComplete.jsx +0 -12
  114. package/packages/avatar/index.js +0 -12
  115. package/packages/avatar/src/Avatar.jsx +0 -11
  116. package/packages/back-top/index.js +0 -12
  117. package/packages/back-top/src/BackTop.jsx +0 -11
  118. package/packages/badge/index.js +0 -12
  119. package/packages/badge/src/Badge.jsx +0 -11
  120. package/packages/base/index.js +0 -3
  121. package/packages/big-table/index.js +0 -20
  122. package/packages/big-table/src/BigTable.vue +0 -2977
  123. package/packages/big-table/src/Fieldset.vue +0 -2067
  124. package/packages/big-table/src/assets/iconfont/iconfont.css +0 -25
  125. package/packages/big-table/src/assets/iconfont/iconfont.ttf +0 -0
  126. package/packages/big-table/src/assets/img/failure.png +0 -0
  127. package/packages/big-table/src/assets/img/icon-asc.png +0 -0
  128. package/packages/big-table/src/assets/img/icon-desc.png +0 -0
  129. package/packages/big-table/src/assets/img/no-permission.png +0 -0
  130. package/packages/big-table/src/assets/img/nodata.png +0 -0
  131. package/packages/big-table/src/assets/img/notfound.png +0 -0
  132. package/packages/big-table/src/assets/img/qr.png +0 -0
  133. package/packages/big-table/src/assets/img/video_default_cover.png +0 -0
  134. package/packages/big-table/src/assets/img/xb_big.png +0 -0
  135. package/packages/big-table/src/assets/img/xb_small.png +0 -0
  136. package/packages/big-table/src/assets/style/table-base.less +0 -425
  137. package/packages/big-table/src/assets/style/table-global.less +0 -20
  138. package/packages/big-table/src/components/AutoLayoutButton.vue +0 -285
  139. package/packages/big-table/src/components/HeaderFilter.vue +0 -371
  140. package/packages/big-table/src/components/NoData.vue +0 -81
  141. package/packages/big-table/src/components/TextOverTooltip.vue +0 -120
  142. package/packages/big-table/src/components/edit-form/EditForm.vue +0 -518
  143. package/packages/big-table/src/components/edit-form/edit-component/config-data/index.js +0 -68
  144. package/packages/big-table/src/components/edit-form/edit-component/edit-date-picker/edit-date-picker.vue +0 -60
  145. package/packages/big-table/src/components/edit-form/edit-component/edit-digital/edit-digital.vue +0 -54
  146. package/packages/big-table/src/components/edit-form/edit-component/edit-input/edit-input.vue +0 -39
  147. package/packages/big-table/src/components/edit-form/edit-component/edit-input-password/edit-input-password.vue +0 -79
  148. package/packages/big-table/src/components/edit-form/edit-component/edit-month-picker/edit-month-picker.vue +0 -37
  149. package/packages/big-table/src/components/edit-form/edit-component/edit-search/edit-search.vue +0 -156
  150. package/packages/big-table/src/components/edit-form/edit-component/edit-search-more/edit-search-more.vue +0 -151
  151. package/packages/big-table/src/components/edit-form/edit-component/edit-select/edit-select.vue +0 -40
  152. package/packages/big-table/src/components/edit-form/edit-component/edit-select-multiple/edit-select-multiple.vue +0 -55
  153. package/packages/big-table/src/components/edit-form/edit-component/edit-switch/edit-switch.vue +0 -43
  154. package/packages/big-table/src/components/edit-form/edit-component/edit-textarea/edit-textarea.vue +0 -41
  155. package/packages/big-table/src/components/edit-form/edit-component/edit-time-picker/edit-time-picker.vue +0 -40
  156. package/packages/big-table/src/components/edit-form/edit-component/mixins/bound-date.js +0 -3
  157. package/packages/big-table/src/components/edit-form/edit-component/mixins/dateType.js +0 -217
  158. package/packages/big-table/src/components/edit-form/edit-component/mixins/item-default.js +0 -639
  159. package/packages/big-table/src/components/edit-form/edit-component/mixins/search.js +0 -1223
  160. package/packages/big-table/src/components/edit-form/edit-component/register-com.js +0 -26
  161. package/packages/big-table/src/components/edit-form/edit-item/form-event.js +0 -80
  162. package/packages/big-table/src/components/edit-form/edit-item/global-props.js +0 -33
  163. package/packages/big-table/src/components/edit-form/edit-item/index.js +0 -4
  164. package/packages/big-table/src/components/edit-form/edit-item/render-methods.js +0 -28
  165. package/packages/big-table/src/components/edit-form/edit-item/validate-rules.js +0 -463
  166. package/packages/big-table/src/components/edit-form/edit-mixins/form-commom.js +0 -673
  167. package/packages/big-table/src/components/edit-form/edit-mixins/index.js +0 -3
  168. package/packages/big-table/src/components/edit-form/edit-utils/index.js +0 -112
  169. package/packages/big-table/src/components/password-com.vue +0 -58
  170. package/packages/big-table/src/components/player-vod/index.vue +0 -57
  171. package/packages/big-table/src/components/player-vod/player.vue +0 -193
  172. package/packages/big-table/src/components/player-vod/video-list.vue +0 -265
  173. package/packages/big-table/src/components/player-vod/video-modal.vue +0 -131
  174. package/packages/big-table/src/utils/CustomPagination.vue +0 -86
  175. package/packages/big-table/src/utils/batchEditing.js +0 -613
  176. package/packages/big-table/src/utils/bigTableProps.js +0 -112
  177. package/packages/big-table/src/utils/checkStrictly.js +0 -58
  178. package/packages/big-table/src/utils/eventBroadcast.js +0 -24
  179. package/packages/big-table/src/utils/format.js +0 -577
  180. package/packages/big-table/src/utils/headerFilter.js +0 -691
  181. package/packages/big-table/src/utils/nestTable.js +0 -109
  182. package/packages/big-table/src/utils/tableParse.js +0 -234
  183. package/packages/breadcrumb/index.js +0 -21
  184. package/packages/breadcrumb/src/Breadcrumb.jsx +0 -11
  185. package/packages/breadcrumb/src/BreadcrumbItem.jsx +0 -11
  186. package/packages/breadcrumb/src/BreadcrumbSeparator.jsx +0 -11
  187. package/packages/button/index.js +0 -21
  188. package/packages/button/src/Button.jsx +0 -11
  189. package/packages/button/src/ButtonGroup.jsx +0 -11
  190. package/packages/button/src/ButtonPrint/components/IdentityVerification.vue +0 -181
  191. package/packages/button/src/ButtonPrint/index.vue +0 -165
  192. package/packages/button/src/ButtonPrint/js/print.es.min.js +0 -1
  193. package/packages/button/src/ButtonPrint/js/print.es.min1.js +0 -1
  194. package/packages/button/src/ButtonPrint/mixin/his-print.js +0 -95
  195. package/packages/button/src/ButtonPrint/new.vue +0 -1476
  196. package/packages/button/src/ButtonPrint/old.vue +0 -870
  197. package/packages/calendar/index.js +0 -12
  198. package/packages/calendar/src/Calendar.jsx +0 -11
  199. package/packages/captcha/index.js +0 -10
  200. package/packages/captcha/src/Captcha.vue +0 -164
  201. package/packages/captcha/src/Index.vue +0 -47
  202. package/packages/captcha/src/SlideVerify.vue +0 -285
  203. package/packages/card/index.js +0 -21
  204. package/packages/card/src/Card.jsx +0 -12
  205. package/packages/card/src/CardGrid.js +0 -7
  206. package/packages/card/src/CardMeta.js +0 -7
  207. package/packages/card-reader-sdk/index.js +0 -4
  208. package/packages/card-reader-sdk/src/cardReaderSDK.js +0 -149
  209. package/packages/card-reader-sdk/src/components/readCardDialog.vue +0 -48
  210. package/packages/card-reader-sdk/src/constants/index.js +0 -76
  211. package/packages/card-reader-sdk/src/insuranceSDK.js +0 -111
  212. package/packages/card-reader-sdk/src/utils/index.js +0 -84
  213. package/packages/card-reader-sdk/src/utils/readHealthCard.jsx +0 -57
  214. package/packages/carousel/index.js +0 -12
  215. package/packages/carousel/src/Carousel.jsx +0 -12
  216. package/packages/cascader/index.js +0 -12
  217. package/packages/cascader/src/Cascader.jsx +0 -11
  218. package/packages/checkbox/index.js +0 -30
  219. package/packages/checkbox/src/Checkbox.jsx +0 -11
  220. package/packages/checkbox/src/CheckboxImg/index.vue +0 -142
  221. package/packages/checkbox/src/Group.jsx +0 -11
  222. package/packages/col/index.js +0 -13
  223. package/packages/col/src/Col.jsx +0 -11
  224. package/packages/collapse/index.js +0 -18
  225. package/packages/collapse/src/Collapse.jsx +0 -11
  226. package/packages/collapse/src/Panel.jsx +0 -11
  227. package/packages/color-picker/index.js +0 -10
  228. package/packages/color-picker/src/color-picker.vue +0 -191
  229. package/packages/color-picker/src/style.less +0 -109
  230. package/packages/comment/index.js +0 -12
  231. package/packages/comment/src/Comment.jsx +0 -11
  232. package/packages/config-provider/index.js +0 -12
  233. package/packages/config-provider/src/ConfigProvider.jsx +0 -11
  234. package/packages/date-picker/index.js +0 -26
  235. package/packages/date-picker/src/DatePicker.jsx +0 -12
  236. package/packages/date-picker/src/MonthPicker.jsx +0 -11
  237. package/packages/date-picker/src/RangePicker.jsx +0 -11
  238. package/packages/date-picker/src/WeekPicker.jsx +0 -11
  239. package/packages/date-picker/src/utils/index.js +0 -374
  240. package/packages/descriptions/index.js +0 -18
  241. package/packages/descriptions/src/Descriptions.jsx +0 -11
  242. package/packages/descriptions/src/Item.jsx +0 -11
  243. package/packages/direct/index.js +0 -3
  244. package/packages/divider/index.js +0 -12
  245. package/packages/divider/src/Divider.jsx +0 -11
  246. package/packages/drag-layout/DragFormLeftItem.vue +0 -173
  247. package/packages/drag-layout/DragFormRightItem.vue +0 -284
  248. package/packages/drag-layout/I18n-mixins.js +0 -10
  249. package/packages/drag-layout/drag-layout.vue +0 -778
  250. package/packages/drag-layout/index.js +0 -12
  251. package/packages/drawer/index.js +0 -12
  252. package/packages/drawer/src/Drawer.jsx +0 -11
  253. package/packages/dropdown/index.js +0 -12
  254. package/packages/dropdown/src/Dropdown.jsx +0 -11
  255. package/packages/editor/index.js +0 -10
  256. package/packages/editor/src/Editor.vue +0 -201
  257. package/packages/editor/src/utils.js +0 -65
  258. package/packages/ellipsis/index.js +0 -9
  259. package/packages/ellipsis/src/Ellipsis.vue +0 -65
  260. package/packages/empty/index.js +0 -12
  261. package/packages/empty/src/Empty.jsx +0 -11
  262. package/packages/fabric-chart/index.js +0 -10
  263. package/packages/fabric-chart/src/FabricChart.vue +0 -153
  264. package/packages/fabric-chart/src/FabricGrid.vue +0 -67
  265. package/packages/fabric-chart/src/components/DropPopup.vue +0 -90
  266. package/packages/fabric-chart/src/components/MouseRightClick.vue +0 -168
  267. package/packages/fabric-chart/src/components/TimeScaleValue.vue +0 -125
  268. package/packages/fabric-chart/src/const/defaultVaule.js +0 -61
  269. package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +0 -396
  270. package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +0 -641
  271. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +0 -1447
  272. package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +0 -142
  273. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +0 -928
  274. package/packages/fabric-chart/src/mixins/draw.js +0 -444
  275. package/packages/fabric-chart/src/mixins/drawExtracorporealCirculation.js +0 -222
  276. package/packages/fabric-chart/src/mixins/eventCommon.js +0 -107
  277. package/packages/fabric-chart/src/mixins/fabricCommon.js +0 -77
  278. package/packages/fabric-chart/src/mixins/fabricObject.js +0 -193
  279. package/packages/fabric-chart/src/utils/bus.js +0 -2
  280. package/packages/fabric-chart/src/utils/index.js +0 -104
  281. package/packages/form/index.js +0 -16
  282. package/packages/form/src/Form.jsx +0 -11
  283. package/packages/form/src/Item.jsx +0 -11
  284. package/packages/form-model/index.js +0 -14
  285. package/packages/form-model/src/FormModel.jsx +0 -11
  286. package/packages/form-model/src/Item.jsx +0 -11
  287. package/packages/form-table/index.js +0 -16
  288. package/packages/form-table/src/FormTable.vue +0 -1110
  289. package/packages/form-table/src/components/table-component/config-data/index.js +0 -80
  290. package/packages/form-table/src/components/table-component/global-props.js +0 -22
  291. package/packages/form-table/src/components/table-component/index.js +0 -8
  292. package/packages/form-table/src/components/table-component/mixins/bound-date.js +0 -455
  293. package/packages/form-table/src/components/table-component/mixins/dateType.js +0 -217
  294. package/packages/form-table/src/components/table-component/mixins/item-default.js +0 -257
  295. package/packages/form-table/src/components/table-component/mixins/search.js +0 -1242
  296. package/packages/form-table/src/components/table-component/register-com.js +0 -30
  297. package/packages/form-table/src/components/table-component/table-age/table-age.vue +0 -175
  298. package/packages/form-table/src/components/table-component/table-date-picker/table-date-picker.vue +0 -87
  299. package/packages/form-table/src/components/table-component/table-digital/table-digital.vue +0 -93
  300. package/packages/form-table/src/components/table-component/table-input/table-input.vue +0 -81
  301. package/packages/form-table/src/components/table-component/table-input-password/table-input-password.vue +0 -126
  302. package/packages/form-table/src/components/table-component/table-month-picker/table-month-picker.vue +0 -55
  303. package/packages/form-table/src/components/table-component/table-search/table-search.vue +0 -174
  304. package/packages/form-table/src/components/table-component/table-search-more/table-search-more.vue +0 -191
  305. package/packages/form-table/src/components/table-component/table-select/table-select.vue +0 -64
  306. package/packages/form-table/src/components/table-component/table-select-multiple/table-select-multiple.vue +0 -81
  307. package/packages/form-table/src/components/table-component/table-textarea/table-textarea.vue +0 -76
  308. package/packages/form-table/src/components/table-component/table-time-picker/table-time-picker.vue +0 -55
  309. package/packages/form-table/src/components/table-component/table-tree-select/table-tree-select.vue +0 -135
  310. package/packages/form-table/src/components/table-component/text-over-tooltip/TextOverTooltip.vue +0 -97
  311. package/packages/form-table/src/components/table-item/form-event.js +0 -81
  312. package/packages/form-table/src/components/table-item/global-props.js +0 -27
  313. package/packages/form-table/src/components/table-item/index.js +0 -4
  314. package/packages/form-table/src/components/table-item/render-methods.js +0 -28
  315. package/packages/form-table/src/components/table-item/validate-rules.js +0 -520
  316. package/packages/form-table/src/components/table-mixins/form-commom.js +0 -98
  317. package/packages/form-table/src/components/table-mixins/index.js +0 -3
  318. package/packages/form-table/src/components/table-utils/index.js +0 -112
  319. package/packages/form-table/src/disabledDetail.less +0 -46
  320. package/packages/full-calendar/index.js +0 -10
  321. package/packages/full-calendar/src/FullCalendar.vue +0 -775
  322. package/packages/full-calendar/src/api/index.js +0 -71
  323. package/packages/full-calendar/src/components/ListTag.vue +0 -184
  324. package/packages/full-calendar/src/components/Tag.vue +0 -300
  325. package/packages/full-calendar/src/components/TagDetail.vue +0 -288
  326. package/packages/full-calendar/src/utils/index.js +0 -217
  327. package/packages/grid/index.js +0 -10
  328. package/packages/grid/src/grid.js +0 -27
  329. package/packages/icon/index.js +0 -10
  330. package/packages/icon/src/icon.js +0 -13
  331. package/packages/index.js +0 -325
  332. package/packages/input/index.js +0 -30
  333. package/packages/input/src/Group.jsx +0 -11
  334. package/packages/input/src/Input.jsx +0 -11
  335. package/packages/input/src/Password.jsx +0 -11
  336. package/packages/input/src/Search.jsx +0 -11
  337. package/packages/input/src/TextArea.jsx +0 -11
  338. package/packages/input/src/input-quick/components/quick-item.vue +0 -284
  339. package/packages/input/src/input-quick/components/quick-popover.vue +0 -596
  340. package/packages/input/src/input-quick/index.vue +0 -137
  341. package/packages/input-number/index.js +0 -12
  342. package/packages/input-number/src/InputNumber.jsx +0 -11
  343. package/packages/keep-cache/KeepCache.js +0 -236
  344. package/packages/keep-cache/index.css +0 -3
  345. package/packages/keep-cache/index.js +0 -8
  346. package/packages/layout/index.js +0 -27
  347. package/packages/layout/src/Content.jsx +0 -11
  348. package/packages/layout/src/Footer.jsx +0 -11
  349. package/packages/layout/src/Header.jsx +0 -11
  350. package/packages/layout/src/Layout.jsx +0 -11
  351. package/packages/layout/src/Sider.jsx +0 -11
  352. package/packages/list/index.js +0 -21
  353. package/packages/list/src/Item.jsx +0 -11
  354. package/packages/list/src/ItemMeta.jsx +0 -11
  355. package/packages/list/src/List.jsx +0 -11
  356. package/packages/locale-provider/index.js +0 -12
  357. package/packages/locale-provider/src/LocaleProvider.jsx +0 -11
  358. package/packages/map/index.js +0 -10
  359. package/packages/map/src/Map.vue +0 -484
  360. package/packages/map/src/popup-map.vue +0 -53
  361. package/packages/mentions/index.js +0 -18
  362. package/packages/mentions/src/Mentions.jsx +0 -11
  363. package/packages/mentions/src/Option.jsx +0 -11
  364. package/packages/menu/index.js +0 -27
  365. package/packages/menu/src/Divider.jsx +0 -11
  366. package/packages/menu/src/Item.jsx +0 -11
  367. package/packages/menu/src/ItemGroup.jsx +0 -11
  368. package/packages/menu/src/Menu.jsx +0 -11
  369. package/packages/menu/src/SubMenu.jsx +0 -11
  370. package/packages/message/index.js +0 -8
  371. package/packages/modal/index.js +0 -10
  372. package/packages/modal/src/Modal.js +0 -7
  373. package/packages/multi-chat/chat/addConference.vue +0 -200
  374. package/packages/multi-chat/chat/addMembers.vue +0 -411
  375. package/packages/multi-chat/chat/advancedFilter.vue +0 -372
  376. package/packages/multi-chat/chat/audio.vue +0 -599
  377. package/packages/multi-chat/chat/calling.vue +0 -246
  378. package/packages/multi-chat/chat/chatFooter.vue +0 -1647
  379. package/packages/multi-chat/chat/chatHeader.vue +0 -493
  380. package/packages/multi-chat/chat/chatHistory.vue +0 -605
  381. package/packages/multi-chat/chat/chatMain.vue +0 -1490
  382. package/packages/multi-chat/chat/client/clientChat.vue +0 -731
  383. package/packages/multi-chat/chat/client/index.vue +0 -149
  384. package/packages/multi-chat/chat/delay.vue +0 -177
  385. package/packages/multi-chat/chat/evaluate.vue +0 -343
  386. package/packages/multi-chat/chat/index.vue +0 -2419
  387. package/packages/multi-chat/chat/messageRecord.vue +0 -324
  388. package/packages/multi-chat/chat/mixins/NoData.js +0 -20
  389. package/packages/multi-chat/chat/mixins/base.js +0 -97
  390. package/packages/multi-chat/chat/mixins/uniRTCAPI.js +0 -80
  391. package/packages/multi-chat/chat/mixins/viewerOptions.js +0 -67
  392. package/packages/multi-chat/chat/multiVideo.vue +0 -1426
  393. package/packages/multi-chat/chat/quickReply.vue +0 -439
  394. package/packages/multi-chat/chat/robot/index.vue +0 -312
  395. package/packages/multi-chat/chat/scrollList.vue +0 -1259
  396. package/packages/multi-chat/chat/video.vue +0 -404
  397. package/packages/multi-chat/chat/videoVoiceList.vue +0 -348
  398. package/packages/multi-chat/chat/voice.vue +0 -431
  399. package/packages/multi-chat/components/avatar.vue +0 -113
  400. package/packages/multi-chat/components/chat-tabs-header.vue +0 -251
  401. package/packages/multi-chat/components/classify-tabs.vue +0 -185
  402. package/packages/multi-chat/components/empty.vue +0 -24
  403. package/packages/multi-chat/components/modal-refuse-reason.vue +0 -112
  404. package/packages/multi-chat/components/modal-sip.vue +0 -160
  405. package/packages/multi-chat/components/modal-user-transfer.vue +0 -98
  406. package/packages/multi-chat/components/msg-describe.vue +0 -138
  407. package/packages/multi-chat/components/msg-picture.vue +0 -68
  408. package/packages/multi-chat/components/msg-prescription.vue +0 -205
  409. package/packages/multi-chat/components/read-record.vue +0 -133
  410. package/packages/multi-chat/components/read-status.vue +0 -34
  411. package/packages/multi-chat/components/user-status.vue +0 -198
  412. package/packages/multi-chat/components/vuecmf-dialog.vue +0 -323
  413. package/packages/multi-chat/img/OFF-LINE.png +0 -0
  414. package/packages/multi-chat/img/ON-LINE.png +0 -0
  415. package/packages/multi-chat/img/accept.png +0 -0
  416. package/packages/multi-chat/img/add-person.png +0 -0
  417. package/packages/multi-chat/img/add_prescription.png +0 -0
  418. package/packages/multi-chat/img/all-voice.png +0 -0
  419. package/packages/multi-chat/img/audio-new.png +0 -0
  420. package/packages/multi-chat/img/audio-play.gif +0 -0
  421. package/packages/multi-chat/img/audio.png +0 -0
  422. package/packages/multi-chat/img/base-info-active.png +0 -0
  423. package/packages/multi-chat/img/base-info.png +0 -0
  424. package/packages/multi-chat/img/busy_line.png +0 -0
  425. package/packages/multi-chat/img/call.png +0 -0
  426. package/packages/multi-chat/img/callin.png +0 -0
  427. package/packages/multi-chat/img/callin_cancel.png +0 -0
  428. package/packages/multi-chat/img/calling.png +0 -0
  429. package/packages/multi-chat/img/callout.png +0 -0
  430. package/packages/multi-chat/img/callout_cancel.png +0 -0
  431. package/packages/multi-chat/img/close.png +0 -0
  432. package/packages/multi-chat/img/close_video.png +0 -0
  433. package/packages/multi-chat/img/customer-service-active.png +0 -0
  434. package/packages/multi-chat/img/customer-service.png +0 -0
  435. package/packages/multi-chat/img/customer.png +0 -0
  436. package/packages/multi-chat/img/customer_staff.png +0 -0
  437. package/packages/multi-chat/img/default.png +0 -0
  438. package/packages/multi-chat/img/ellipsis.png +0 -0
  439. package/packages/multi-chat/img/end-voice.png +0 -0
  440. package/packages/multi-chat/img/event-active.png +0 -0
  441. package/packages/multi-chat/img/event.png +0 -0
  442. package/packages/multi-chat/img/exp.png +0 -0
  443. package/packages/multi-chat/img/full-sceen-close.png +0 -0
  444. package/packages/multi-chat/img/full-sceen.png +0 -0
  445. package/packages/multi-chat/img/icon_list.png +0 -0
  446. package/packages/multi-chat/img/icon_list_active.png +0 -0
  447. package/packages/multi-chat/img/icon_table.png +0 -0
  448. package/packages/multi-chat/img/icon_table_active.png +0 -0
  449. package/packages/multi-chat/img/join-video.png +0 -0
  450. package/packages/multi-chat/img/large.png +0 -0
  451. package/packages/multi-chat/img/left-wrapper.png +0 -0
  452. package/packages/multi-chat/img/left.png +0 -0
  453. package/packages/multi-chat/img/medical_record.png +0 -0
  454. package/packages/multi-chat/img/middle.png +0 -0
  455. package/packages/multi-chat/img/msgTip.mp3 +0 -0
  456. package/packages/multi-chat/img/multi-video.png +0 -0
  457. package/packages/multi-chat/img/multi-voice.png +0 -0
  458. package/packages/multi-chat/img/mute-audio.png +0 -0
  459. package/packages/multi-chat/img/muted-audio.png +0 -0
  460. package/packages/multi-chat/img/muted-screen.png +0 -0
  461. package/packages/multi-chat/img/muted-video.png +0 -0
  462. package/packages/multi-chat/img/no-all-voice.png +0 -0
  463. package/packages/multi-chat/img/no-data.png +0 -0
  464. package/packages/multi-chat/img/no-data2.png +0 -0
  465. package/packages/multi-chat/img/no-screen.png +0 -0
  466. package/packages/multi-chat/img/no-video.png +0 -0
  467. package/packages/multi-chat/img/no-voice.png +0 -0
  468. package/packages/multi-chat/img/no-voiced.png +0 -0
  469. package/packages/multi-chat/img/normal-screen.png +0 -0
  470. package/packages/multi-chat/img/normal-video.png +0 -0
  471. package/packages/multi-chat/img/over.png +0 -0
  472. package/packages/multi-chat/img/portrait.png +0 -0
  473. package/packages/multi-chat/img/prescription.png +0 -0
  474. package/packages/multi-chat/img/receive.png +0 -0
  475. package/packages/multi-chat/img/reject.png +0 -0
  476. package/packages/multi-chat/img/remove.png +0 -0
  477. package/packages/multi-chat/img/replay.png +0 -0
  478. package/packages/multi-chat/img/required.png +0 -0
  479. package/packages/multi-chat/img/screen.png +0 -0
  480. package/packages/multi-chat/img/send_prescription.png +0 -0
  481. package/packages/multi-chat/img/setting.png +0 -0
  482. package/packages/multi-chat/img/small.png +0 -0
  483. package/packages/multi-chat/img/sound.png +0 -0
  484. package/packages/multi-chat/img/sound_forbid.png +0 -0
  485. package/packages/multi-chat/img/start_video.png +0 -0
  486. package/packages/multi-chat/img/system_message.png +0 -0
  487. package/packages/multi-chat/img/to-session.png +0 -0
  488. package/packages/multi-chat/img/transfer.png +0 -0
  489. package/packages/multi-chat/img/transfer2.png +0 -0
  490. package/packages/multi-chat/img/video-accept.png +0 -0
  491. package/packages/multi-chat/img/video.png +0 -0
  492. package/packages/multi-chat/img/video_consult.png +0 -0
  493. package/packages/multi-chat/img/voice.png +0 -0
  494. package/packages/multi-chat/img/worktime-active.png +0 -0
  495. package/packages/multi-chat/img/worktime.png +0 -0
  496. package/packages/multi-chat/index.js +0 -7
  497. package/packages/multi-chat/setting/authority/index.vue +0 -156
  498. package/packages/multi-chat/setting/authority/roleSetting.vue +0 -204
  499. package/packages/multi-chat/setting/baseInfo/index.vue +0 -1343
  500. package/packages/multi-chat/setting/configuration/index.vue +0 -334
  501. package/packages/multi-chat/setting/customerService/batchSelect.vue +0 -403
  502. package/packages/multi-chat/setting/customerService/index.vue +0 -273
  503. package/packages/multi-chat/setting/event/edit/condition.vue +0 -128
  504. package/packages/multi-chat/setting/event/edit/index.vue +0 -437
  505. package/packages/multi-chat/setting/event/edit/notice.vue +0 -129
  506. package/packages/multi-chat/setting/event/edit/strategy.vue +0 -98
  507. package/packages/multi-chat/setting/event/index.vue +0 -249
  508. package/packages/multi-chat/setting/index.vue +0 -281
  509. package/packages/multi-chat/setting/page.vue +0 -14
  510. package/packages/multi-chat/setting/sessionList/index.vue +0 -412
  511. package/packages/multi-chat/setting/sessionList/messageRecord.vue +0 -372
  512. package/packages/multi-chat/setting/userConfig/index.vue +0 -124
  513. package/packages/multi-chat/setting/worktime/index.vue +0 -274
  514. package/packages/multi-chat/store/actions.js +0 -452
  515. package/packages/multi-chat/store/getters.js +0 -380
  516. package/packages/multi-chat/store/helper.js +0 -66
  517. package/packages/multi-chat/store/index.js +0 -50
  518. package/packages/multi-chat/store/mutation.js +0 -305
  519. package/packages/multi-chat/store/state.js +0 -120
  520. package/packages/multi-chat/style/emoji.css +0 -315
  521. package/packages/multi-chat/style/message.mixin.less +0 -38
  522. package/packages/multi-chat/utils/chatSock.js +0 -93
  523. package/packages/multi-chat/utils/compressImage.js +0 -115
  524. package/packages/multi-chat/utils/emoji.json +0 -68
  525. package/packages/multi-chat/utils/index.js +0 -259
  526. package/packages/multi-chat/utils/observer-scroll.js +0 -49
  527. package/packages/multi-chat/utils/panelsetting.js +0 -48
  528. package/packages/multi-chat/utils/rtc-client-multi.js +0 -397
  529. package/packages/multi-chat/utils/rtc-client.js +0 -469
  530. package/packages/multi-chat-client/index.js +0 -7
  531. package/packages/multi-chat-history/index.js +0 -7
  532. package/packages/multi-chat-record/index.js +0 -7
  533. package/packages/multi-chat-setting/index.js +0 -7
  534. package/packages/multi-chat-sip/index.js +0 -6
  535. package/packages/notification/index.js +0 -8
  536. package/packages/page-header/index.js +0 -12
  537. package/packages/page-header/src/PageHeader.jsx +0 -11
  538. package/packages/pagination/index.js +0 -12
  539. package/packages/pagination/src/Pagination.jsx +0 -11
  540. package/packages/popconfirm/index.js +0 -12
  541. package/packages/popconfirm/src/Popconfirm.jsx +0 -11
  542. package/packages/popover/index.js +0 -12
  543. package/packages/popover/src/Popover.jsx +0 -11
  544. package/packages/progress/index.js +0 -12
  545. package/packages/progress/src/Progress.jsx +0 -11
  546. package/packages/radio/index.js +0 -33
  547. package/packages/radio/src/Group.jsx +0 -11
  548. package/packages/radio/src/Radio.jsx +0 -11
  549. package/packages/radio/src/RadioButton.jsx +0 -11
  550. package/packages/radio/src/RadioImg/index.vue +0 -125
  551. package/packages/rate/index.js +0 -12
  552. package/packages/rate/src/Rate.jsx +0 -11
  553. package/packages/result/index.js +0 -12
  554. package/packages/result/src/Result.jsx +0 -11
  555. package/packages/row/index.js +0 -12
  556. package/packages/row/src/Row.jsx +0 -11
  557. package/packages/scale-container/index.js +0 -9
  558. package/packages/scale-container/src/ScaleContainer.vue +0 -202
  559. package/packages/scale-container/src/scale.png +0 -0
  560. package/packages/scale-view/NoData.vue +0 -81
  561. package/packages/scale-view/answerParse.vue +0 -133
  562. package/packages/scale-view/assets/img/failure.png +0 -0
  563. package/packages/scale-view/assets/img/no-permission.png +0 -0
  564. package/packages/scale-view/assets/img/nodata.png +0 -0
  565. package/packages/scale-view/assets/img/notfound.png +0 -0
  566. package/packages/scale-view/customList.vue +0 -801
  567. package/packages/scale-view/data.js +0 -80
  568. package/packages/scale-view/directive/drag-move.js +0 -132
  569. package/packages/scale-view/evaluateCountdown.vue +0 -157
  570. package/packages/scale-view/evaluatePage.vue +0 -203
  571. package/packages/scale-view/formitem/data.js +0 -3991
  572. package/packages/scale-view/formitem/index.js +0 -7
  573. package/packages/scale-view/formitem/r-address.vue +0 -245
  574. package/packages/scale-view/formitem/r-choice.vue +0 -755
  575. package/packages/scale-view/formitem/r-input.vue +0 -93
  576. package/packages/scale-view/formitem/r-prompt.vue +0 -52
  577. package/packages/scale-view/formitem/r-sign.vue +0 -218
  578. package/packages/scale-view/formitem/r-time.vue +0 -285
  579. package/packages/scale-view/formitem/r-upload-custom-list.vue +0 -242
  580. package/packages/scale-view/formitem/r-upload.vue +0 -321
  581. package/packages/scale-view/formitem/sign-com.vue +0 -316
  582. package/packages/scale-view/formitem/text-over-tooltip/TextOverTooltip.vue +0 -98
  583. package/packages/scale-view/index.js +0 -17
  584. package/packages/scale-view/mixin/NoData.js +0 -38
  585. package/packages/scale-view/mixin/addressVal.js +0 -156
  586. package/packages/scale-view/mixin/evaluate.js +0 -146
  587. package/packages/scale-view/mixin/index.js +0 -337
  588. package/packages/scale-view/mixin/judgeTypes.js +0 -267
  589. package/packages/scale-view/scaleView.vue +0 -2086
  590. package/packages/select/index.js +0 -30
  591. package/packages/select/src/CustomSelect/index.vue +0 -130
  592. package/packages/select/src/OptGroup.jsx +0 -11
  593. package/packages/select/src/Option.jsx +0 -11
  594. package/packages/select/src/PagerSelect/index.vue +0 -92
  595. package/packages/select/src/Select/Select.vue +0 -231
  596. package/packages/select/src/Select/index.js +0 -12
  597. package/packages/select/src/TableSelect/index.vue +0 -514
  598. package/packages/select-label/index.js +0 -14
  599. package/packages/select-label/label-classify.vue +0 -129
  600. package/packages/select-label/labelFormContent.vue +0 -787
  601. package/packages/select-label/select-label.vue +0 -597
  602. package/packages/select-person/index.js +0 -10
  603. package/packages/select-person/search-tree.vue +0 -373
  604. package/packages/select-person/select-person.vue +0 -1736
  605. package/packages/select-tag/index.js +0 -14
  606. package/packages/select-tag/label-classify.vue +0 -133
  607. package/packages/select-tag/labelFormContent.vue +0 -295
  608. package/packages/select-tag/select-label.vue +0 -274
  609. package/packages/shortcut-provider/index.js +0 -10
  610. package/packages/shortcut-provider/src/ShortcutProvider.vue +0 -33
  611. package/packages/shortcut-provider/src/constants/index.js +0 -4
  612. package/packages/shortcut-provider/src/hooks/index.js +0 -1
  613. package/packages/shortcut-provider/src/hooks/useShortcuts.js +0 -129
  614. package/packages/shortcut-provider/src/utils/index.js +0 -107
  615. package/packages/shortcut-setter/index.js +0 -12
  616. package/packages/shortcut-setter/src/ShortcutSetter.vue +0 -55
  617. package/packages/shortcut-setter/src/ShortcutSetterItem.vue +0 -97
  618. package/packages/shortcut-setter/src/utils/index.js +0 -63
  619. package/packages/skeleton/index.js +0 -12
  620. package/packages/skeleton/src/Skeleton.jsx +0 -11
  621. package/packages/slider/index.js +0 -12
  622. package/packages/slider/src/Slider.jsx +0 -11
  623. package/packages/slider-tree/hooks/useAsyncData.js +0 -53
  624. package/packages/slider-tree/index.js +0 -7
  625. package/packages/slider-tree/index.vue +0 -391
  626. package/packages/slider-tree/utils/index.js +0 -10
  627. package/packages/space/index.js +0 -12
  628. package/packages/space/src/Space.jsx +0 -11
  629. package/packages/spin/index.js +0 -12
  630. package/packages/spin/src/Spin.jsx +0 -11
  631. package/packages/statistic/index.js +0 -18
  632. package/packages/statistic/src/Countdown.jsx +0 -11
  633. package/packages/statistic/src/Statistic.jsx +0 -11
  634. package/packages/steps/index.js +0 -18
  635. package/packages/steps/src/Step.jsx +0 -11
  636. package/packages/steps/src/Steps.jsx +0 -11
  637. package/packages/switch/index.js +0 -12
  638. package/packages/switch/src/Switch.jsx +0 -11
  639. package/packages/table-filter/index.js +0 -27
  640. package/packages/table-filter/src/base-search-com/BaseSearch.vue +0 -2690
  641. package/packages/table-filter/src/classification/Classification-com.vue +0 -1765
  642. package/packages/table-filter/src/classification/search-class-name.vue +0 -266
  643. package/packages/table-filter/src/classification/search-professional-model.vue +0 -680
  644. package/packages/table-filter/src/components/TextOverTooltip.vue +0 -120
  645. package/packages/table-filter/src/components/age-com/index.vue +0 -205
  646. package/packages/table-filter/src/components/button-group/ButtonGroup.vue +0 -162
  647. package/packages/table-filter/src/components/button-icon/button-icon.js +0 -33
  648. package/packages/table-filter/src/components/button-icon/getBtnIcon.js +0 -34
  649. package/packages/table-filter/src/components/c-tree-select/tree-select.vue +0 -336
  650. package/packages/table-filter/src/components/checkbox-group/CheckboxGroup.vue +0 -53
  651. package/packages/table-filter/src/components/drop-button/drop-button.vue +0 -224
  652. package/packages/table-filter/src/components/drop-button/head-btn-icon.js +0 -33
  653. package/packages/table-filter/src/components/drop-view/drop-view.vue +0 -89
  654. package/packages/table-filter/src/components/multi-select/multi-select.vue +0 -242
  655. package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +0 -232
  656. package/packages/table-filter/src/components/range-age/index.vue +0 -171
  657. package/packages/table-filter/src/components/render-widget/components/CheckboxGroup.vue +0 -68
  658. package/packages/table-filter/src/components/render-widget/components/DateRangeQuick.vue +0 -216
  659. package/packages/table-filter/src/components/render-widget/components/Label.vue +0 -209
  660. package/packages/table-filter/src/components/render-widget/components/NumberRange.vue +0 -157
  661. package/packages/table-filter/src/components/render-widget/components/Select.vue +0 -62
  662. package/packages/table-filter/src/components/render-widget/components/SelectDynamic.vue +0 -287
  663. package/packages/table-filter/src/components/render-widget/components/SelectLabel.vue +0 -80
  664. package/packages/table-filter/src/components/render-widget/components/SelectTree.vue +0 -145
  665. package/packages/table-filter/src/components/render-widget/components/Text.vue +0 -58
  666. package/packages/table-filter/src/components/render-widget/components/index.js +0 -11
  667. package/packages/table-filter/src/components/render-widget/enums.js +0 -60
  668. package/packages/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +0 -282
  669. package/packages/table-filter/src/components/render-widget/index.vue +0 -150
  670. package/packages/table-filter/src/components/render-widget/mixins/dynamic-method.js +0 -185
  671. package/packages/table-filter/src/components/render-widget/mixins/label-method.js +0 -23
  672. package/packages/table-filter/src/components/render-widget/widgetCfgMaps.js +0 -354
  673. package/packages/table-filter/src/components/search-condition/SearchCondition.vue +0 -2016
  674. package/packages/table-filter/src/components/search-condition/fieldTypeList.js +0 -169
  675. package/packages/table-filter/src/components/search-filter/SearchFilter.vue +0 -280
  676. package/packages/table-filter/src/components/search-modal/set-classification.vue +0 -340
  677. package/packages/table-filter/src/components/table-modal/TableModal.vue +0 -477
  678. package/packages/table-filter/src/const/dataOptions.js +0 -43
  679. package/packages/table-filter/src/const/index.js +0 -1
  680. package/packages/table-filter/src/index.vue +0 -584
  681. package/packages/table-filter/src/mixins/mixins.js +0 -870
  682. package/packages/table-filter/src/mixins/out-quick-method.js +0 -123
  683. package/packages/table-filter/src/mixins/printNew.js +0 -190
  684. package/packages/table-filter/src/mixins/renderWidget.js +0 -122
  685. package/packages/table-filter/src/mixins/tableSearchCon.js +0 -128
  686. package/packages/table-filter/src/mixins/wordBookutils.js +0 -130
  687. package/packages/table-filter/src/quick-search/QuickSearch.vue +0 -2272
  688. package/packages/tabs/index.js +0 -18
  689. package/packages/tabs/src/TabPane.jsx +0 -11
  690. package/packages/tabs/src/Tabs.jsx +0 -11
  691. package/packages/tag/index.js +0 -21
  692. package/packages/tag/src/CheckableTag.jsx +0 -11
  693. package/packages/tag/src/Tag.jsx +0 -11
  694. package/packages/tag/src/TagGroup.vue +0 -622
  695. package/packages/time-picker/index.js +0 -12
  696. package/packages/time-picker/src/TimePicker.jsx +0 -11
  697. package/packages/timeline/index.js +0 -14
  698. package/packages/timeline/src/Item.jsx +0 -11
  699. package/packages/timeline/src/Timeline.jsx +0 -11
  700. package/packages/tooltip/index.js +0 -12
  701. package/packages/tooltip/src/Tooltip.jsx +0 -11
  702. package/packages/transfer/index.js +0 -12
  703. package/packages/transfer/src/Transfer.jsx +0 -11
  704. package/packages/tree/index.js +0 -18
  705. package/packages/tree/src/Tree.jsx +0 -11
  706. package/packages/tree/src/TreeNode.jsx +0 -11
  707. package/packages/tree-select/index.js +0 -18
  708. package/packages/tree-select/src/TreeNode.jsx +0 -11
  709. package/packages/tree-select/src/TreeSelect.jsx +0 -11
  710. package/packages/upload/chunk-upload/chunk-upload-new.vue +0 -1006
  711. package/packages/upload/chunk-upload/vod-chunk-upload.vue +0 -757
  712. package/packages/upload/chunk-upload/vod-upload-modal.vue +0 -100
  713. package/packages/upload/index.js +0 -12
  714. package/packages/upload/src/Upload.jsx +0 -11
  715. package/packages/verification-code/SlideVerify.vue +0 -306
  716. package/packages/verification-code/index.js +0 -17
  717. package/packages/verification-code/verification-code.vue +0 -147
  718. package/src/assets/img/nodata.png +0 -0
  719. package/src/assets/img/success.png +0 -0
  720. package/src/assets/img/video.png +0 -0
  721. package/src/assets/img/video_default_cover.png +0 -0
  722. package/src/assets/img/video_hover.png +0 -0
  723. package/src/assets/img/video_play_hover.png +0 -0
  724. package/src/component/player-vod/index.vue +0 -57
  725. package/src/component/player-vod/player.vue +0 -192
  726. package/src/component/player-vod/video-list.vue +0 -262
  727. package/src/component/player-vod/video-modal.vue +0 -128
  728. package/src/component/select-options/index.vue +0 -430
  729. package/src/component/select-pages/index.vue +0 -95
  730. package/src/component/svg/index.vue +0 -59
  731. package/src/core/create.js +0 -6
  732. package/src/core/event.js +0 -23
  733. package/src/core/table-methods.js +0 -447
  734. package/src/directive/flexibleResize.js +0 -162
  735. package/src/directive/preventReClick.js +0 -12
  736. package/src/directive/scroll.js +0 -230
  737. package/src/global/variable.js +0 -2
  738. package/src/style/normalize.css +0 -424
  739. package/src/style/style.less +0 -49
  740. package/src/utils/UniRTCv2.js +0 -627
  741. package/src/utils/chatFetch.js +0 -61
  742. package/src/utils/clickoutside.js +0 -75
  743. package/src/utils/crypto.js +0 -25
  744. package/src/utils/index.js +0 -103
  745. package/src/utils/kty-sdk.js +0 -582
  746. package/src/utils/kty.min-1.0.0.js +0 -14378
  747. package/src/utils/sip-device.js +0 -79
  748. package/src/utils/time-domain.js +0 -270
  749. package/src/utils/trtc.js +0 -1
  750. package/src/utils/utils-map.js +0 -485
  751. package/src/utils/vexutils.js +0 -836
@@ -1,2690 +0,0 @@
1
- <template>
2
- <div class="base-search">
3
- <div class="base-container">
4
- <div class="bease-left" ref="baseLeft" v-resize="onResize">
5
- <!-- 行内编辑对应生成的(保存、取消)按钮 -->
6
- <template v-if="visibleInlineOperateBtn">
7
- <div class="btn-custom-wrap">
8
- <a-button
9
- v-preventReClick="preventReTime"
10
- :style="{ display: isInlineOperating ? 'inline-block' : 'none' }"
11
- @click="inlineEditClick"
12
- class="btn-custom-class"
13
- style="margin: 8px 8px 8px 0"
14
- type="primary"
15
- >
16
- 保存
17
- </a-button>
18
- <a-button
19
- v-preventReClick="preventReTime"
20
- :style="{ display: isInlineOperating ? 'inline-block' : 'none' }"
21
- @click="inlineEditCancel"
22
- class="btn-custom-class"
23
- style="margin: 8px 8px 8px 0"
24
- >
25
- 取消
26
- </a-button>
27
- </div>
28
- </template>
29
- <ul v-if="!visibleInlineOperateBtn && !isRowEditing">
30
- <div ref="btnRow" class="btn-row" v-if="isShowSettingBtn">
31
- <a-button class="btn-setting" v-show="currentTempId != '0' && isShowSetting('hideSettingBtn')" icon="setting" @click="handlerSetting">
32
- 设置
33
- <!-- {{ $t("1.1.5.3") }} -->
34
- </a-button>
35
- <a-dropdown overlayClassName="viewList-dropdown" v-if="showViewList">
36
- <a-button class="viewList-button">
37
- <svg-icon :icon-class="'anniuqiehuanmoshi'" style="font-size: 22px"></svg-icon>
38
- </a-button>
39
- <a-menu slot="overlay">
40
- <a-menu-item v-for="(item, index) in viewList" :value="item.id" :key="index" @click="handlerSelectTemp(item.id)" :class="{ 'menu-active': currentTempId === item.id }">
41
- <span>{{ item.name }}</span>
42
- <!-- <a-icon v-if="currentTempId === item.id" type="check" /> -->
43
- </a-menu-item>
44
- </a-menu>
45
- </a-dropdown>
46
- </div>
47
- <!-- 相关项 设置按钮 -->
48
- <li v-if="showRelatedSetting">
49
- <a-button class="relatedSetting-button" type="default" @click="relatedSetting">
50
- <a-icon class="relate-setting" type="setting" />
51
- </a-button>
52
- </li>
53
- <slot name="classification"></slot>
54
- <li v-if="showQuickSearch" ref="quickSearchLi">
55
- <a-button class="search-default" type="default" @click="foldQuickSearch" :class="{'search-default-count': qqConObjCount}">
56
- <svg-icon icon-class="anniushaixuan" style="color: inherit; margin-right: 6px"></svg-icon>
57
- 筛选 {{ qqConObjCount ? `(${qqConObjCount})` : '' }}
58
- </a-button>
59
- </li>
60
- <!-- start--筛选外显--start -->
61
- <template v-for="item in outSearchFieldList">
62
- <li class="outQuickSearch-li" v-if="item.isRender" :key="item._frontId">
63
- <RenderWidget style="margin: 0 8px 8px 0" :cfg="item" v-model="item.value" source="baseSearch" :filterApiConfig="filterApiConfigOutSearch" @outFilterChange="outFilterChange" />
64
- </li>
65
- <outQuickSearch v-else :key="item.id + item.random_key" :item="item" :ref="item.columnName + item.random_key" :filterApiConfig="filterApiConfigOutSearch" @outFilterChange="outFilterChange"></outQuickSearch>
66
- </template>
67
- <!-- end--筛选外显--end -->
68
-
69
- <!-- start--筛选外显 跨表--start -->
70
- <template v-for="relationItem in outRelationQuickSearch">
71
- <template v-for="item in relationItem.fieldList">
72
- <outQuickSearch :key="item.id" :item="item" :filterApiConfig="filterApiConfigOutSearch" @outFilterChange="outFilterChange"></outQuickSearch>
73
- </template>
74
- </template>
75
- <!-- end--筛选外显 跨表--end -->
76
-
77
- <li v-if="isShowInputSearch" ref="inputSearchLi" class="baseSearch-input-search">
78
- <template v-if="outSearchFieldList && outSearchFieldList.length">
79
- <slot name="searchInput" :width="(searchInputWidth || inputSearchW)" :searchPlaceHolder="searchPlaceHolder" :showPlaceholderPrefix="showPlaceholderPrefix" :type="'outSearch'">
80
- <a-input
81
- :style="{ width: (searchInputWidth || inputSearchW) + 'px', margin: '0 8px 8px 0' }"
82
- allowClear
83
- :placeholder="searchPlaceHolder"
84
- :value="currentValue"
85
- @input="$emit('input', $event.target.value)"
86
- @pressEnter="outFilterChange"
87
- class="input-search-com"
88
- >
89
- <template slot="prefix" v-if="showPlaceholderPrefix">
90
- <a-tooltip :title="searchPlaceHolder" overlayClassName="basesearch-placeholder-tooltip">
91
- <a-icon type="info-circle" class="search-placeholder-icon" />
92
- </a-tooltip>
93
- </template>
94
- </a-input>
95
- </slot>
96
- </template>
97
-
98
- <template v-else>
99
- <slot name="searchInput" :width="(searchInputWidth || inputSearchW)" :searchPlaceHolder="searchPlaceHolder" :showPlaceholderPrefix="showPlaceholderPrefix" :type="'default'">
100
- <a-input-search
101
- class="my-input-search input-search-com"
102
- :style="{ width: (searchInputWidth || inputSearchW) + 'px' }"
103
- @search="onSearch"
104
- allowClear
105
- :placeholder="searchPlaceHolder"
106
- :value="currentValue"
107
- @input="$emit('input', $event.target.value)"
108
- >
109
- <template slot="prefix" v-if="showPlaceholderPrefix">
110
- <a-tooltip :title="searchPlaceHolder" overlayClassName="basesearch-placeholder-tooltip">
111
- <a-icon type="info-circle" class="search-placeholder-icon" />
112
- </a-tooltip>
113
- </template>
114
- <a-button slot="enterButton" type="primary">
115
- <svg-icon icon-class="xitongtubiaosousuo"></svg-icon>
116
- </a-button>
117
- </a-input-search>
118
- </slot>
119
- </template>
120
-
121
- </li>
122
- <li v-if="outSearchFieldList && outSearchFieldList.length">
123
- <a-button type="primary" @click="outFilterChange" style="margin: 0 8px 8px 0">
124
- <a-icon type="search" style="margin-right: 6px" />
125
- 查询
126
- </a-button>
127
- </li>
128
- <!-- 无外显字段查询,且隐藏模糊搜索 -->
129
- <li v-if="showApiSearch">
130
- <a-button type="primary" @click="apiSearch" style="margin: 0 8px 8px 0">
131
- <a-icon type="search" style="margin-right: 6px" />
132
- 查询
133
- </a-button>
134
- </li>
135
- <li v-if="showResetFilterBtn">
136
- <a-button @click="handleReset" style="margin: 0 8px 8px 0">
137
- <svg-icon icon-class="xitongtubiaoliebiaocaozuoanniushanchu" style="margin-right: 6px"></svg-icon>
138
- 重置
139
- </a-button>
140
- </li>
141
-
142
- <!-- 批量选择 -->
143
- <li v-if="isCard">
144
- <a-button v-if="isCardNewBatch" type="primary" @click="() =>changeCardNewBatch(false)" style="margin: 0 8px 8px 0">
145
- 取消批量选择
146
- </a-button>
147
- <a-button v-else type="primary" @click="() =>changeCardNewBatch(true)" style="margin: 0 8px 8px 0">
148
- 批量选择
149
- </a-button>
150
- </li>
151
-
152
- <!-- 平铺列表 tree -->
153
- <template v-if="showRelatedTreeBtn">
154
- <li v-if="showRelatedSearch" :class="[isRelatedSearchFold ? 'related-search-input' : 'related-search-input-expand']">
155
- <slot name="searchInput" :searchPlaceHolder="searchPlaceHolder" :showPlaceholderPrefix="showPlaceholderPrefix" :type="'relatedTreeSearch'" :isRelatedSearchFold="isRelatedSearchFold" >
156
- <a-input-search
157
- ref="relatedSearchInput"
158
- class="my-input-search my-input-search-related"
159
- placeholder="请输入关键字搜索"
160
- @search="onRelatedSearch"
161
- allowClear
162
- :value="currentValue"
163
- @input="$emit('input', $event.target.value)"
164
- >
165
- <a-button slot="enterButton" type="primary">
166
- <a-icon type="search" />
167
- <!-- <svg-icon icon-class="xitongtubiaosousuo"></svg-icon> -->
168
- </a-button>
169
- </a-input-search>
170
- </slot>
171
- </li>
172
- <template v-if="rowTileBtnListTree && rowTileBtnListTree.length === 1">
173
- <a-button type="primary" style="margin-right: 8px; margin-bottom: 8px" @click="handleAddType(rowTileBtnListTree[0])">
174
- {{ rowTileBtnListTree[0].alias || rowTileBtnListTree[0].name }}
175
- </a-button>
176
- </template>
177
- <a-dropdown v-if="rowTileBtnListTree.length > 1 && !isInlineOperating">
178
- <a-menu slot="overlay">
179
- <template v-for="b in rowTileBtnListTree">
180
- <a-menu-item :key="b.sid" class="dropdown-btn" v-if="b.type == 'ADD'" @click="handleAddType(b)">
181
- {{ b.alias || b.name }}
182
- <a-icon v-if="b.icon" :type="btnObj[b.icon]" />
183
- <template v-else>
184
- <svg-icon
185
- v-if="b.iconSetting"
186
- :iconClass="JSON.parse(b.iconSetting).icon"
187
- :style="{
188
- marginRight: '8px'
189
- }"
190
- />
191
- </template>
192
- </a-menu-item>
193
- </template>
194
- </a-menu>
195
- <a-button type="primary" ghost style="margin-left: 8px; margin-bottom: 8px">
196
- <!-- 1.1.8.1.6更多 -->
197
- {{ '更多' }} ...
198
- </a-button>
199
- </a-dropdown>
200
- </template>
201
- <template v-if="!nobutton && !showRelatedTreeBtn">
202
- <template v-if="isButtonFolding">
203
- <li class="allBtn" v-if="allBtn && allBtn.length" ref="allBtnLi">
204
- <a-dropdown v-show="!isInlineOperating">
205
- <a-menu slot="overlay">
206
- <template v-for="(b, j) in allBtn">
207
- <a-menu-item :key="b.sid" class="dropdown-btn" v-if="b.type == 'ADD'" @click="showDrawer(b, j)">
208
- {{ b.alias || b.name }}
209
- <getBtnIcon :data="b" :btnObj="btnObj" />
210
- </a-menu-item>
211
- <a-menu-item
212
- :key="b.sid"
213
- v-else-if="showButtonTop == 1 && b.type != 'LINK' && currentTempId == '0'"
214
- class="dropdown-btn"
215
- @click="clickBtn(clickRowData, b, clickRowData.my_index, undefined, j)"
216
- >
217
- {{ b.showStyle === 'only_icon' ? '' : b.alias || b.name }}
218
- <getBtnIcon :data="b" :btnObj="btnObj" />
219
- </a-menu-item>
220
- </template>
221
- </a-menu>
222
- <a-button class="ml12 dropdown-button"
223
- >{{ '更多' }}
224
- <a-icon type="down" />
225
- </a-button>
226
- </a-dropdown>
227
- </li>
228
- </template>
229
- <template v-else>
230
- <!-- start--按钮分组--start -->
231
- <template v-if="isShowGroupBtn">
232
- <template v-for="(key, i) in groupBtnObj">
233
- <li :key="i" v-if="key.list && key.list.length > 1" ref="rowTileBtnItem" :data-key="i" data-source="groupBtn">
234
- <ButtonGroup v-show="!key.isHide" :title="i" :list="key.list" :currentTempId="currentTempId" @showDrawer="showDrawer" @clickGroupBtn="clickGroupBtn"></ButtonGroup>
235
- </li>
236
- </template>
237
- </template>
238
- <!-- end--按钮分组--end -->
239
-
240
- <!-- 平铺按钮列表 -->
241
- <template v-for="(item, j) in rowTileBtnList">
242
- <!-- v-if="item.type == 'ADD'" -->
243
- <li ref="rowTileBtnItem" class="rowTileBtn-item" :key="item.sid" v-if="showLi(item)" :data-key="item.sid" data-source="rowTile">
244
- <template v-if="isFrontendComponent(item) && !item.isHide">
245
- <!-- 读卡 -->
246
- <slot name="frontendComponent" v-bind="$attrs" :curBtn="item"></slot>
247
- </template>
248
- <template v-else-if="item.type == 'ADD' || item.type == 'BATCH'">
249
- <a-button
250
- v-preventReClick="preventReTime"
251
- v-show="visibleBtn(item) && !item.isHide"
252
- @click.prevent.stop="showDrawer(item, j)"
253
- class="btn-custom-class"
254
- style="margin: 0 8px 8px 0"
255
- :style="$utils.getBtnStyle(item)"
256
- :type="item.showStyle == 'none_bg' || item.showStyle === 'only_icon' ? 'link' : 'primary'"
257
- :ghost="item.showStyle == 'white_bg'"
258
- >
259
- <getBtnIcon :data="item" :btnObj="btnObj" />
260
- <template v-if="item.showStyle !== 'only_icon'">
261
- {{ item.alias || item.name }}
262
- </template>
263
- </a-button>
264
- <a-upload v-if="item.isImportGuage" method="post" :customRequest="importGaugeCustomRequest" :show-upload-list="false">
265
- <!-- 上传配置文件 -->
266
- <a-button
267
- class="btn-custom-class"
268
- style="margin: 0 8px 8px 0"
269
- :style="$utils.getBtnStyle(item)"
270
- :type="item.showStyle == 'none_bg' || item.showStyle === 'only_icon' ? 'link' : 'primary'"
271
- :ghost="item.showStyle == 'white_bg'"
272
- >
273
- <a-icon type="upload" />
274
- <template v-if="item.showStyle !== 'only_icon'">
275
- {{ item.alias || item.name }}
276
- </template>
277
- </a-button>
278
- </a-upload>
279
- </template>
280
- <template v-else-if="isShowRowTileBtnItem(item)">
281
- <a-button
282
- v-preventReClick="preventReTime"
283
- v-show="visibleBtn(item) && !item.isHide"
284
- @click.prevent.stop="clickBtn(clickRowData, item, clickRowData.my_index, undefined, j)"
285
- class="btn-custom-class"
286
- style="margin: 0 8px 8px 0"
287
- :style="$utils.getBtnStyle(item)"
288
- :type="item.showStyle == 'none_bg' ? 'link' : 'primary'"
289
- :ghost="item.showStyle == 'white_bg'"
290
- >
291
- <getBtnIcon :data="item" :btnObj="btnObj" />
292
- <template v-if="item.showStyle !== 'only_icon'">
293
- {{ item.alias || item.name }}
294
- </template>
295
- </a-button>
296
- </template>
297
- </li>
298
- </template>
299
- <!-- 打印列表-->
300
- <template v-for="(item, j) in rowPrintBtnList">
301
- <li ref="rowTileBtnItem" class="rowTileBtn-item rowPrintBtn-btn" :key="item.sid" v-if="showLi(item)" :data-key="item.sid" data-source="rowTile">
302
- <template v-if="item.isVisible && !item.isHide">
303
- <PrintBtn
304
- v-bind="$attrs"
305
- :printConfig="printConfig"
306
- :baseUrl="printConfig.printBaseUrl"
307
- :strategy="item.strategy"
308
- :btnText="item.name"
309
- :versionType="item.__printConfig && item.__printConfig.versionType"
310
- :port="item.__printConfig && item.__printConfig.port"
311
- :authorizationKey="item.__printConfig && item.__printConfig.authorizationKey"
312
- :templateNumber="item.__printConfig && item.__printConfig.number"
313
- :hisParams="item.__printConfig && item.__printConfig.hisParams"
314
- :newPrintSetting="item.__newPrintSetting"
315
- :printFormatByNumberData="item.__printFormatByNumberData"
316
- :params="getPrintBtnParams(item)"
317
- :prevFn="() => printBtnPrevFn(clickRowData, item, 2, j)"
318
- @success="receivePrintSuccess"
319
- @error="receivePrintError"
320
- @saveOuterPrint="(val) => saveOuterPrint(val, item)"
321
- ></PrintBtn>
322
- </template>
323
- </li>
324
- </template>
325
- <!-- 折叠按钮列表 -->
326
- <li class="rowFoldBtn" v-if="showRowFoldBtnList(rowFoldBtnList, 'rowFoldBtnList')">
327
- <a-dropdown overlayClassName="baseSearch-fold-dropdown" v-show="!isInlineOperating">
328
- <a-menu slot="overlay">
329
- <template v-for="(b, j) in rowFoldBtnList">
330
- <template v-if="isFrontendComponent(b)">
331
- <a-sub-menu v-if="visibleBtn(b)" :title="b.alias || b.name" :key="b.sid">
332
- <!-- 读卡 -->
333
- <slot name="frontendComponent" v-bind="$attrs" comType="submenu" :curBtn="b"></slot>
334
- </a-sub-menu>
335
- </template>
336
- <a-menu-item v-show="visibleBtn(b)" :key="b.sid" class="dropdown-btn" v-else-if="showLiAdd(b)" @click="showDrawer(b, j)">
337
- {{ b.alias || b.name }}
338
- <getBtnIcon :data="b" :btnObj="btnObj" />
339
- </a-menu-item>
340
- <template v-else-if="showLiFold(b)">
341
- <a-menu-item v-show="visibleBtn(b)" :key="b.sid" class="dropdown-btn" @click="clickBtn(clickRowData, b, clickRowData.my_index, undefined, j)">
342
- {{ b.alias || b.name }}
343
- <getBtnIcon :data="b" :btnObj="btnObj" />
344
- </a-menu-item>
345
- </template>
346
- </template>
347
- </a-menu>
348
- <a-button class="dropdown-button" style="margin: 0 8px 8px 0"
349
- >{{ '更多' }}
350
- <a-icon type="down" />
351
- </a-button>
352
- </a-dropdown>
353
- </li>
354
- <!-- 自适应折叠 -->
355
- <template v-if="showRowFoldBtnList(rowFoldHideBtnList)">
356
- <a-dropdown overlayClassName="rowFoldHideBtnList-dropdown" v-show="!isInlineOperating">
357
- <a-menu slot="overlay">
358
- <template v-for="(value, key) in rowFoldHideBtnListObj">
359
- <a-menu-item-group :key="key" v-if="showRowFoldBtnList(value.list)">
360
- <template slot="title"></template>
361
- <template v-for="(b, j) in value.list">
362
- <template v-if="isFrontendComponent(b)">
363
- <a-sub-menu v-if="visibleBtn(b)" :title="b.alias || b.name" :key="b.sid">
364
- <!-- 读卡 -->
365
- <slot name="frontendComponent" v-bind="$attrs" comType="submenu" :curBtn="b"></slot>
366
- </a-sub-menu>
367
- </template>
368
- <a-menu-item v-show="visibleBtn(b)" :key="b.sid" class="dropdown-btn" v-else-if="b.type == 'ADD'" @click="showDrawer(b, j)">
369
- {{ b.alias || b.name }}
370
- <getBtnIcon :data="b" :btnObj="btnObj" />
371
- </a-menu-item>
372
- <template v-else-if="b.type != 'LINK' && currentTempId == '0'">
373
- <a-menu-item v-show="visibleBtn(b)" :key="b.sid" class="dropdown-btn" @click="clickBtn(clickRowData, b, clickRowData.my_index, undefined, j)">
374
- {{ b.alias || b.name }}
375
- <getBtnIcon :data="b" :btnObj="btnObj" />
376
- </a-menu-item>
377
- </template>
378
- </template>
379
- </a-menu-item-group>
380
- </template>
381
- </a-menu>
382
- <a-button class="dropdown-button" style="margin: 0 8px 8px 0"
383
- >{{ '更多' }}
384
- <a-icon type="down" />
385
- </a-button>
386
- </a-dropdown>
387
- </template>
388
- </template>
389
- </template>
390
- </ul>
391
- </div>
392
- </div>
393
- <div class="base-tabs" v-if="showBaseTabs">
394
- <div v-for="(item, index) in tabConditionList" :key="index" :class="tabIndex === index ? 'base-tabs-item base-tabs-item-active' : 'base-tabs-item'" @click="tabClick(index)"
395
- >{{ item.name }} {{ countTabCondition == 1 && (item.digital || item.digital === 0) ? '(' + (item.digital || 0) + ')' : '' }}</div
396
- >
397
- </div>
398
- <!-- palceholder 文字宽度计算 -->
399
- <span class="baseSearchPlaceholderSpan" ref="baseSearchPlaceholderSpan">
400
- {{ searchPlaceHolder }}
401
- </span>
402
- </div>
403
- </template>
404
-
405
- <script>
406
- /**
407
- * 完成搜索组合组件 BaseSearch
408
- * 使用方式:在需要的vue页中引入注册为子组件后直接使用
409
- * 提供函数:
410
- * 1、输入关键字搜索触发函数onSearch;
411
- * 2、左侧下拉选中搜索触发函数changeSearch;
412
- * 3、右侧快速弹框保存搜索函数onSave(obj);
413
- * 完整例子:<BaseSearch :onSearch='onSearch' @changeSearch='changeSearch' @onSave='onSave'/>
414
- */
415
-
416
- /**
417
- * slot:searchInput
418
- * width: {number}宽度
419
- * searchPlaceHolder:{string} 检索 input 的placeHolder
420
- * showPlaceholderPrefix: {boolean} input 是否展示前缀icon
421
- * isRelatedSearchFold: {boolean} 平铺列表树状表的检索框是否收起
422
- * type:{string} relatedTreeSearch(平铺列表树状表)/outSearch(检索外显)/default(默认)
423
- */
424
-
425
- import moment from 'moment';
426
- import 'moment/locale/zh-cn';
427
-
428
- import cloneDeep from 'lodash/cloneDeep';
429
- import vexutils from '@/utils/vexutils';
430
- import { Button, Icon, Dropdown, Select, Upload, DatePicker, Input, Menu } from 'ant-design-vue';
431
- import resize from 'vue-resize-directive';
432
-
433
- import { GROUP_TITLE_KEY } from '../const';
434
-
435
- import PrintBtn from '~/button/src/ButtonPrint/index';
436
- // import stepRule from "@/components/table/mixins/stepRule";
437
-
438
- import outQuickSearch from '../components/out-quick-search/out-quick-search';
439
- import utils from '@/utils/utils-map';
440
- import { isFunction } from 'xe-utils';
441
- import { durationMixin, $utils, filterApiFn, outQuickSearchFn, outQuickSearchDefCommon } from '../mixins/mixins';
442
- import tableSearchCon from '../mixins/tableSearchCon';
443
- import OutQuickMethod from '../mixins/out-quick-method'
444
- import dynamicMethod from '../components/render-widget/mixins/dynamic-method'
445
- import printNew from '../mixins/printNew'
446
- import svgIcon from '@/component/svg/index.vue';
447
- import 'text-security/text-security.css';
448
- import create from '@/core/create';
449
- import preventReClick from '@/directive/preventReClick';
450
- /** 获取按钮 icon */
451
- import getBtnIcon from '../components/button-icon/getBtnIcon.js';
452
- import ButtonGroup from '../components/button-group/ButtonGroup.vue';
453
-
454
- import RenderWidget from '../components/render-widget/index.vue';
455
-
456
- const EVALUATEList = [
457
- {
458
- label: '一星',
459
- value: '1',
460
- isSelect: false
461
- },
462
- {
463
- label: '二星',
464
- value: '2',
465
- isSelect: false
466
- },
467
- {
468
- label: '三星',
469
- value: '3',
470
- isSelect: false
471
- },
472
- {
473
- label: '四星',
474
- value: '4',
475
- isSelect: false
476
- },
477
- {
478
- label: '五星',
479
- value: '5',
480
- isSelect: false
481
- }
482
- ];
483
-
484
- const BTNOBJ = {
485
- // 按钮icon 映射
486
- copy: 'copy',
487
- pencil: 'edit',
488
- delete: 'delete',
489
- add: 'plus-circle',
490
- download: 'download',
491
- label: 'tag',
492
- queding: 'check',
493
- del: 'close'
494
- };
495
-
496
- export default create({
497
- name: 'base-search',
498
- mixins: [durationMixin, $utils, filterApiFn, tableSearchCon, outQuickSearchFn, outQuickSearchDefCommon, OutQuickMethod, dynamicMethod, printNew],
499
- directives: { resize, preventReClick },
500
- props: {
501
- width: {
502
- default: '400px'
503
- },
504
- searchInputWidth: {
505
- // 设置检索框的宽度
506
- type: Number,
507
- default: 0
508
- },
509
- searchInputPlaceHolder: {
510
- type: String,
511
- },
512
- onSearch: Function,
513
- rowBtnList: {
514
- type: Array,
515
- default: () => []
516
- },
517
- paramsData: Object,
518
- // downLoad: Function,
519
- showButtonTop: [String, Number],
520
- showSettings: {
521
- type: Object,
522
- default: () => ({})
523
- },
524
- clickRowData: Object,
525
- value: String,
526
- searchFieldList: {
527
- // 搜索的数据
528
- type: Array,
529
- default: () => []
530
- },
531
- searchFieldLimit: {
532
- // 搜索的数据的限制条件
533
- type: Object,
534
- default: () => ({})
535
- },
536
- viewList: {
537
- type: Array,
538
- default: () => []
539
- },
540
- TypeOfDisplay: {
541
- type: String,
542
- default: ''
543
- },
544
- tableAllCheck: {
545
- type: Boolean
546
- },
547
- classificationIndex: Number,
548
- editTableSource: {
549
- default: ''
550
- },
551
- showRelatedTreeBtn: Boolean,
552
- relatedBaseInfo: Object,
553
- onRelatedSearch: Function,
554
- showResetFilterBtn: {
555
- type: Boolean,
556
- default: false
557
- },
558
- qqConObjCount: {
559
- type: Number,
560
- default: 0
561
- },
562
- conditionType: { type: String },
563
- countCondition: { type: [Number, String] },
564
- countTabCondition: { type: Number },
565
- tabConditionNumObj: {
566
- type: Object,
567
- default: () => {}
568
- },
569
- isRelatedSearchFold: {
570
- type: Boolean,
571
- default: true
572
- },
573
- tableId: { type: String },
574
- conditionMap: {
575
- type: Object,
576
- default: () => {}
577
- },
578
- getFilterData: Function,
579
- oldtableData: Array,
580
- isNestTableClick: Boolean,
581
-
582
- isAdmin: {
583
- type: Boolean,
584
- default: false
585
- },
586
-
587
- /**
588
- * 导入量表配置
589
- */
590
- importGuageConfig: {
591
- type: Object,
592
- default: () => ({
593
- action: ''
594
- })
595
- },
596
- importGuageRequest: Function,
597
- originFieldList: Array,
598
-
599
- /**
600
- * 打印配置
601
- */
602
- printConfig: {
603
- type: Object,
604
- default: () => ({
605
- printBaseUrl: '/print/assembly',
606
- postStepRule: () => Promise.resolve({})
607
- })
608
- },
609
-
610
- gettersConfig: {
611
- type: Object,
612
- default: () => ({
613
- getIsTile: '',
614
- selectRowObj: [],
615
- selectTreeRowsObj: [],
616
- isInlineOperating: false,
617
- printNumberCache: {}
618
- })
619
- },
620
-
621
- /**
622
- * 是否展示行编辑的按钮
623
- */
624
- visibleInlineOperateBtn: {
625
- type: Boolean,
626
- default: false
627
- },
628
-
629
- tabConditionList: {
630
- type: Array,
631
- default: () => []
632
- },
633
-
634
- lastOutSearchFieldList: {
635
- type: Array,
636
- default: () => []
637
- },
638
- lastOutRelationQuickSearch: {
639
- type: Array,
640
- default: () => []
641
- },
642
- relationTableList: {
643
- type: Array,
644
- default: () => []
645
- },
646
- /**
647
- * 筛选外显
648
- */
649
- filterApiConfigOutSearch: {
650
- type: Object,
651
- default: () => ({})
652
- },
653
- useFieldList: Array,
654
- editTableUid: [String, Number],
655
-
656
- preventReTime: {
657
- type: Number,
658
- default: 1000
659
- },
660
- isCardNewBatch: {type: Boolean, deafult: false},
661
- isBatchSelect: {type: [Number, Boolean, String], default: ''},
662
- isAvailableApiType: {type: Boolean, deafult: false},
663
- apiSearch: Function,
664
- tableDataType: String,
665
- libSource: String,
666
- receivePrintSuccessDownloadPdf: Function
667
- },
668
- components: {
669
- RenderWidget,
670
- [Button.name]: Button,
671
- [Icon.name]: Icon,
672
- [Dropdown.name]: Dropdown,
673
- [Select.name]: Select,
674
- [Upload.name]: Upload,
675
- [DatePicker.name]: DatePicker,
676
- [DatePicker.RangePicker.name]: DatePicker.RangePicker,
677
- [Input.name]: Input,
678
- [Input.Search.name]: Input.Search,
679
- [Menu.name]: Menu,
680
- [Menu.Item.name]: Menu.Item,
681
- [Menu.ItemGroup.name]: Menu.ItemGroup,
682
- getBtnIcon,
683
- PrintBtn,
684
- outQuickSearch,
685
- ButtonGroup,
686
- svgIcon
687
- },
688
- inject: {
689
- editTableWrapper: {
690
- type: Object,
691
- default: () => {}
692
- }
693
- },
694
- computed: {
695
- isLowCode() {
696
- return this.libSource === 'lowCode';
697
- },
698
- isOrgAdmin() {
699
- return this.isAdmin;
700
- },
701
- currentValue() {
702
- return this.value;
703
- },
704
- allBtn() {
705
- const { rowTileBtnList, rowFoldBtnList } = this;
706
- let allBtn = [];
707
- allBtn.push(...rowTileBtnList, ...rowFoldBtnList);
708
- return allBtn;
709
- },
710
- isButtonFolding() {
711
- // 首页配置
712
- const { editTableWrapper } = this;
713
- return editTableWrapper?.options?.isButtonFolding || false;
714
- },
715
- isShowSettingBtn() {
716
- const { $attrs, viewList, noSetting } = this;
717
- if (this.showRelatedTreeBtn) return;
718
- return $attrs.isTree != 1 && viewList.length > 0 && !noSetting;
719
- },
720
- showDownCurSelectData() {
721
- return this.selectRowObj.filter(item => !(GROUP_TITLE_KEY in (item || {})))?.length;
722
- },
723
- showDownCurSelectTreeData() {
724
- return this.selectTreeRowsObj.filter(item => !(GROUP_TITLE_KEY in (item || {})))?.length;
725
- },
726
- showRowFoldBtnList() {
727
- return function(list, key) {
728
- if (key === 'rowFoldBtnList' && !this.isShowSetting('buttonAdaption')) return false;
729
- if (!list || !list.length) return false;
730
-
731
- let hasGroupBtnList = list.filter(item => item.buttonGroup);
732
- if (hasGroupBtnList.length) {
733
- let showGroup = hasGroupBtnList.some(item => item.isShowFoldGroupBtn);
734
- if (showGroup) return true;
735
- }
736
-
737
- // 只有一个按钮 分组按钮 非自适应
738
- if (list.length === 1 && list[0].buttonGroup && list[0].isButtonGroup && !list[0].isShowFoldGroupBtn) return false;
739
-
740
- let visibleList = list.filter(item => item.isVisible && !item.buttonGroup);
741
- if (!visibleList || !visibleList.length) return false;
742
- let hasAdd = visibleList.some(item => item.type === 'ADD');
743
- if (hasAdd) {
744
- return true;
745
- } else {
746
- if (this.currentTempId != 0) return false;
747
- let notLinkArr = visibleList.filter(item => item.type !== 'LINK');
748
- if (!notLinkArr || !notLinkArr.length) return false;
749
- }
750
- return true;
751
- };
752
- },
753
- initPageResize() {
754
- let { showSettings, TypeOfDisplay, classificationIndex } = this;
755
- return {
756
- showSettings,
757
- TypeOfDisplay,
758
- classificationIndex
759
- };
760
- },
761
- isShowRowTileBtnItem() {
762
- return function(item) {
763
- return this.showButtonTop == 1 && item.type != 'LINK' && this.currentTempId == '0';
764
- };
765
- },
766
- showRelatedSearchFold() {
767
- if (
768
- !this.isShowSettingBtn &&
769
- !this.isShowSetting('hideQuickSearch') &&
770
- this.outSearchFieldList.length == 0 &&
771
- this.outRelationQuickSearch.length == 0 &&
772
- !this.showResetFilterBtn &&
773
- !this.$slots.classification
774
- ) {
775
- return false;
776
- } else {
777
- return this.isRelatedSearchFold;
778
- }
779
- },
780
- handlePickerShowTime() {
781
- return function(item) {
782
- if (!item.showTime) return false;
783
- return {
784
- defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('23:59:59', 'HH:mm:ss')]
785
- };
786
- };
787
- },
788
- isShowGroupBtn() {
789
- if (!this.groupBtnObj || !Object.keys(this.groupBtnObj).length) return false;
790
- return true;
791
- },
792
- showLi() {
793
- return function(item) {
794
- if (item.buttonGroup) {
795
- return item.isShow == '1' && item.buttonGroup && !item.isButtonGroup;
796
- }
797
- return item.isShow == '1';
798
- };
799
- },
800
- showLiAdd() {
801
- return function(b) {
802
- if (b.buttonGroup) {
803
- return b.type == 'ADD' && b.buttonGroup && !b.isButtonGroup;
804
- }
805
- return b.type == 'ADD';
806
- };
807
- },
808
- showLiFold() {
809
- return function(b) {
810
- if (b.buttonGroup) {
811
- return b.type != 'LINK' && this.currentTempId == '0' && b.buttonGroup && !b.isButtonGroup;
812
- }
813
- return b.type != 'LINK' && this.currentTempId == '0';
814
- };
815
- },
816
-
817
- getIsTile() {
818
- return this?.gettersConfig?.getIsTile || '';
819
- },
820
- selectRowObj() {
821
- return this?.gettersConfig?.selectRowObj || [];
822
- },
823
- selectTreeRowsObj() {
824
- return this?.gettersConfig?.selectTreeRowsObj || [];
825
- },
826
- isInlineOperating() {
827
- return this?.gettersConfig?.isInlineOperating || false;
828
- },
829
- printNumberCache() {
830
- return this?.gettersConfig?.printNumberCache || false;
831
- },
832
-
833
- // 全部行编辑
834
- isBatchEditing() {
835
- return this?.gettersConfig?.isBatchEditing || false;
836
- },
837
- curBatchBtnData() {
838
- return this?.gettersConfig?.curBatchBtnData || {};
839
- },
840
- isRowEditing() {
841
- return this?.gettersConfig?.isRowEditing || false;
842
- },
843
- // 是否有高级筛选外显
844
- showOutSearch() {
845
- return this.outSearchFieldList?.length || this.outRelationQuickSearch?.length;
846
- },
847
- showViewList() {
848
- if (this.editTableSource === 'relatedComponent') {
849
- return this.relatedBaseInfo.showType != 'TREE';
850
- }
851
- return !this.optionsValue('hideViewList');
852
- },
853
- optionsValue() {
854
- return function(key) {
855
- return this.$attrs.tableOptions?.[key];
856
- };
857
- },
858
- searchPlaceHolder() {
859
- if (this.searchInputPlaceHolder) return this.searchInputPlaceHolder;
860
-
861
- if (!this.useFieldList?.length || this.showRelatedTreeBtn) return '请输入关键字搜索';
862
- let str = '';
863
- let strList = this.useFieldList
864
- ?.map(item => {
865
- if (item.isSearch != 1) return '';
866
- return item.formTitle || item.alias || item.title;
867
- })
868
- .filter(Boolean);
869
- if (!strList?.length) return '请输入关键字搜索';
870
- str = '输入' + strList.join('/');
871
- return str || '请输入关键字搜索';
872
- },
873
- showRelatedSearch() {
874
- // sql类型的列表, 且有筛选外显的时候不展示平铺列表的search
875
- if (this.relatedSqlOutSearch) return false;
876
- if (this.isAvailableApiType) return false;
877
- return this.showRelatedTreeBtn && this.isShowSetting('hideSearch');
878
- },
879
- showRelatedSetting() {
880
- if(this.libSource !== 'lowCode' || this.TypeOfDisplay !== 'relatedTree') return false;
881
- return !!this.relatedBaseInfo?.showSetting;
882
- },
883
- showQuickSearch() {
884
- let showQuick = this.isShowSetting('hideQuickSearch');
885
- // 平铺列表, 左侧不为tree, 而是table
886
- if (this.editTableSource == 'relatedComponent' && this.relatedBaseInfo?.showType != 'TREE') return showQuick;
887
- return showQuick && this.isRelatedSearchFold;
888
- },
889
- showBaseTabs() {
890
- return this.conditionType === 'keyword' && this.tabConditionList?.length && !this.visibleInlineOperateBtn && !this.isRowEditing;
891
- },
892
- isCard() {
893
- return this.TypeOfDisplay === 'cardNew' && this.isBatchSelect == 1
894
- },
895
- isHideSearchAndQuickSearch(){
896
- let hideSearch = this.isShowSetting('hideSearch');
897
- let hideQuickSearch = this.isShowSetting('hideQuickSearch');
898
- return !hideSearch && !hideQuickSearch;
899
- },
900
- showApiSearch(){
901
- return !this.outSearchFieldList?.length && this.isAvailableApiType && !this.isHideSearchAndQuickSearch
902
- },
903
- // sql类型的列表, 且有筛选外显的时候不展示平铺列表的search
904
- relatedSqlOutSearch() {
905
- return this.tableDataType === 'SQL' && !!this.outSearchFieldList?.length
906
- },
907
- isShowInputSearch() {
908
- if(!this.isShowSetting('hideSearch')) return false;
909
- if(!this.showRelatedTreeBtn) return true;
910
- return this.relatedSqlOutSearch;
911
- }
912
- },
913
- data() {
914
- return {
915
- modalVisible: false,
916
- currentTempId: '0',
917
- viewCongfigList: [],
918
- isTile: false,
919
- conditionList: [],
920
- displayCategoryList: [],
921
- settingId: '',
922
- searchDefName: '',
923
- rowTileBtnList: [],
924
- rowFoldBtnList: [],
925
- rowPrintBtnList: [],
926
- rowFoldHideBtnList: [], // 按钮自适应折叠list
927
- rowFoldHideBtnListObj: {}, // 按钮自适应折叠分类
928
- batchRelationBtnIds: [], // 批量操作按钮,关联的对应操作按钮id集
929
- relationBtnBatchBtnIds: [], // 有关联对应操作按钮的批量操作按钮id集
930
-
931
- nobutton: false, // 不展示按钮设置 false 展示,true 不展示
932
- noSetting: false, // 不展示按钮设置 false 展示,true 不展示
933
- isChangeWindow: false,
934
- modalWidth: '700px',
935
- modalHeight: '60vh',
936
- label_max_count: 8,
937
- baseLeftWidth: 0,
938
- btnRowWidth: 0,
939
- classificationWidth: 0,
940
- inputSearchWidth: 0,
941
- quickSearchWidth: 0,
942
- downloadDropdownWidth: 0,
943
- diffWidth: 0,
944
- resizeFlag: false,
945
- rowTileBtnListTree: [],
946
- outSearchFieldList: [],
947
- tabIndex: -1,
948
- // tabConditionList: [],
949
-
950
- /* 打印相关 */
951
- printBtnPrevFnWatch: {},
952
- printPrevFinish: false,
953
- printBtnPrevFnWatchTimeoutTimer: null,
954
- printBtn: {},
955
- groupBtnObj: {},
956
- btnObj: BTNOBJ,
957
- printBtnStrategys: [], // 打印按钮组策略list
958
- outRelationQuickSearch: [], // 关联表 筛选外显
959
- inputSearchW: 200,
960
- showPlaceholderPrefix: false
961
- };
962
- },
963
- created() {
964
- if (this.getIsTile !== undefined) {
965
- this.isTile = this.getIsTile;
966
- }
967
- },
968
- destroyed() {},
969
- methods: {
970
- tabClick(index) {
971
- if (this.tabIndex === index) return false;
972
- this.tabIndex = index;
973
- if (index !== -1) this.$emit('tabClick', this.tabConditionList[index]);
974
- },
975
- isFrontendComponent(item){
976
- if(item.type !== 'ADD') return false;
977
- if(Array.isArray(item.settingObj)) {
978
- return item.settingObj[0]?.trigger_type === 'FRONTEND_COMPONENT'
979
- }
980
- return item.settingObj?.trigger_type === 'FRONTEND_COMPONENT'
981
- },
982
- pageResize(obj) {
983
- if (this.resizeFlag || this.visibleInlineOperateBtn || this.isRowEditing) return;
984
- let baseLeft = this.$refs['baseLeft'];
985
- if (!baseLeft) return;
986
- this.resizeFlag = true;
987
- this.baseLeftWidth = baseLeft.clientWidth;
988
- this.classificationWidth = this.classificationIndex === 2 ? 160 : 0;
989
- this.btnRowWidth = this.$refs['btnRow']?.clientWidth || 0;
990
- this.inputSearchWidth = this.$refs['inputSearchLi']?.clientWidth || 0;
991
- this.quickSearchWidth = this.$refs['quickSearchLi']?.clientWidth || 0;
992
- // this.downloadDropdownWidth = this.$refs["downloadDropdownLi"]?.clientWidth || 0;
993
- let defaultTotal = this.btnRowWidth + this.classificationWidth + this.inputSearchWidth + this.quickSearchWidth;
994
-
995
- let diffWidth = this.baseLeftWidth - defaultTotal;
996
- // 平铺列表占2行
997
- if (this.editTableSource === 'relatedComponent') {
998
- diffWidth += this.baseLeftWidth;
999
- }
1000
- this.diffWidth = diffWidth;
1001
- if (!obj.type) return;
1002
- if (obj.type === 'resize') {
1003
- this.handleTileBtnWidth();
1004
- }
1005
- },
1006
- onResize() {
1007
- if (this.isButtonFolding || this.isShowSetting('buttonAdaption') || this.relatedIsTree == 1 || this.visibleInlineOperateBtn || this.isRowEditing) return;
1008
- utils.debounce(this.pageResize({ type: 'resize' }), 300);
1009
- },
1010
- async saveListIsTile() {
1011
- let url = `/tableList/saveListIsTile`;
1012
- let params = {
1013
- isTile: this.isTile ? '1' : '0'
1014
- };
1015
- let res = await this.handleGetConfigApi(params, 'requestSaveListIsTile');
1016
- if (res) {
1017
- this.$emit('setIsTile', this.isTile);
1018
- this.$message.success(this.$t('1.9.23'));
1019
- }
1020
- },
1021
- getTableCondiTionListRequest(first) {
1022
- this.getTableCondiTionList(first).then(checked => {
1023
- this.reloadList(checked);
1024
- });
1025
- },
1026
- getTableCondiTionList(first, conditionMap = {}) {
1027
- let tableId = this.tableId;
1028
- if (!tableId) return new Promise(resolve => resolve(false));
1029
- let conditionMapTemp = Object.keys(conditionMap).length > 0 ? conditionMap : this.conditionMap;
1030
-
1031
- return new Promise((resolve, reject) => {
1032
- if (Object.keys(conditionMapTemp).length > 0) {
1033
- this.conditionList = conditionMapTemp.conditionList || [];
1034
- this.displayCategoryList = conditionMapTemp.displayCategoryList || [];
1035
- let obj = {
1036
- conditionList: this.conditionList,
1037
- displayCategoryList: this.displayCategoryList
1038
- };
1039
- this.$emit('getQuickSearchListObj', obj);
1040
- this.settingId = conditionMapTemp.settingId;
1041
- const checked = this.conditionList.find(item => item.isDefault) || {
1042
- name: '全部数据' || this.$t('1.1.5.1'),
1043
- sid: 'all_data'
1044
- };
1045
- this.searchDefName = checked.name;
1046
- // if (this.conditionType === "keyword") {
1047
- this.tabConditionList = conditionMapTemp.tabConditionList || []; // 获取页签tab
1048
- if (this.tabIndex === -1) {
1049
- this.tabIndex = conditionMapTemp.tabConditionList && conditionMapTemp.tabConditionList.findIndex(item => item.isDefault); // 查询默认选中的标签
1050
- }
1051
- // }
1052
- if (this.$attrs.tableOptions?.filterCondition?.displayCategory && first) {
1053
- resolve({
1054
- name: this.$attrs.tableOptions?.filterCondition?.name,
1055
- sid: this.$attrs.tableOptions?.filterCondition?.displayCategory
1056
- });
1057
- }
1058
- resolve(checked);
1059
- } else {
1060
- resolve({});
1061
- }
1062
- });
1063
-
1064
- // }
1065
- // });
1066
- },
1067
- async getTableCondiTionListNew(tableId) {
1068
- if (!tableId) return new Promise(resolve => resolve(false));
1069
- let params = { tableId };
1070
- let url = `/tableList/getTableCondiTionList`;
1071
- return this.axios
1072
- .get(url, { params })
1073
- .then(({ data }) => {
1074
- if (data && data.result == 'SUCCESS') {
1075
- // 设置分类数据,用于优化组件内的多次请求分类
1076
- this.$emit('setConditionMap', data.map);
1077
- return data.map;
1078
- }
1079
- })
1080
- .catch(err => {
1081
- console.log(err);
1082
- });
1083
- },
1084
- relatedSetting() {
1085
- this.$emit('relatedSetting');
1086
- },
1087
- foldQuickSearch() {
1088
- this.$emit('foldQuickSearch', true);
1089
- },
1090
- openModal() {
1091
- this.modalVisible = true;
1092
- },
1093
- closeModal() {
1094
- this.resetChangeWindow();
1095
- this.modalVisible = false;
1096
- },
1097
- resetChangeWindow() {
1098
- this.modalWidth = '700px';
1099
- this.modalHeight = '60vh';
1100
- this.isChangeWindow = false;
1101
- },
1102
- changeModalWindow() {
1103
- this.isChangeWindow = !this.isChangeWindow;
1104
- let docHeight = document.body.clientHeight;
1105
- this.modalWidth = this.modalWidth === '700px' ? `100%` : '700px';
1106
- this.modalHeight = this.modalHeight === '60vh' ? `${docHeight - 108}px` : '60vh';
1107
-
1108
- if (this.modalWidth === '700px') {
1109
- this.label_max_count = 8;
1110
- } else {
1111
- this.$nextTick(() => {
1112
- let ele = document.querySelector('.quickSearch_label-container');
1113
- ele && (this.label_max_count = parseInt((ele.clientWidth - 20) / 112) * 2);
1114
- });
1115
- }
1116
- },
1117
- openSaveToCalss() {
1118
- this.$refs.quicksearch?.openSaveToCalss();
1119
- },
1120
- onSaveSearch() {
1121
- this.$refs.quicksearch?.onSave();
1122
- },
1123
- onSave(obj, isOutFilter = false, config = {}) {
1124
- if (!this.validConObj(obj, this.searchFieldList, this.searchFieldLimit)) return false;
1125
- let copy = [];
1126
- if (this.outSearchFieldList.length) {
1127
- copy = cloneDeep(this.outSearchFieldList, true);
1128
- }
1129
- let copyRelation = [];
1130
- if (this.outRelationQuickSearch.length) {
1131
- copyRelation = cloneDeep(this.outRelationQuickSearch, true);
1132
- }
1133
- this.$emit('onSave', obj, isOutFilter, copy, copyRelation, config);
1134
- this.modalVisible = false;
1135
- },
1136
- // 外部调用
1137
- editTableGetConObj() {
1138
- if (!this.showOutSearch) return;
1139
- let conObj = this.getConObjParams() || [];
1140
- if (!this.validConObj(conObj, this.searchFieldList, this.searchFieldLimit)) return false;
1141
- return conObj;
1142
- },
1143
- clearData() {
1144
- this.$refs.quicksearch?.clearData();
1145
- },
1146
- /**
1147
- * type 1-预览 2-打印
1148
- */
1149
- handlePrint(clickBtn, btn, type, j) {
1150
- btn.printType = type;
1151
- this.clickBtn(clickBtn, btn, clickBtn.my_index, true, j);
1152
- },
1153
- showDrawer(btn, j) {
1154
- let hasSelectRows = this.paramsData.form.selectRows && this.paramsData.form.selectRows.length > 0;
1155
- let isMultiSelect = hasSelectRows || this.tableAllCheck;
1156
-
1157
- if ((btn.name.includes('批量') && btn.type == 'ADD') || btn.type == 'BATCH') {
1158
- // const { settingObj = {} } = btn || {};
1159
- let settingObj = {};
1160
- let settingList = btn.setting || '{}';
1161
- if (utils.isJSON(settingList)) {
1162
- let btnSetting = JSON.parse(settingList);
1163
- if (Array.isArray(btnSetting)) {
1164
- settingObj = btnSetting[0] || {};
1165
- } else {
1166
- settingObj = btnSetting;
1167
- }
1168
- }
1169
- let trigger_type = settingObj?.trigger_type;
1170
-
1171
- // 全部行编辑
1172
- if (trigger_type == 'EDIT_ROW' || settingObj?.editAllRow == 1) {
1173
- this.handleBtnEvent(btn, j);
1174
- return;
1175
- }
1176
-
1177
- if (trigger_type == 'SCAN' && btn.type == 'ADD') {
1178
- this.handleBtnEvent(btn, j);
1179
- return;
1180
- }
1181
-
1182
- if (isMultiSelect) {
1183
- if (settingObj.isTips && settingObj.isTips == 0) {
1184
- this.handleBtnEvent(btn, j);
1185
- return;
1186
- }
1187
- // 批量操作增加确认
1188
- let params = { ...this.paramsData };
1189
- params.table = {};
1190
- if (settingObj.tipsMsg) {
1191
- if (settingObj.tipsMsg.includes('form.selectRows')) {
1192
- settingObj.tipsMsg = utils.handleMultiTips(settingObj.tipsMsg, [...params.form.selectRows]);
1193
- } else {
1194
- settingObj.tipsMsg = utils.handleSysParams(settingObj.tipsMsg, {
1195
- ...params
1196
- });
1197
- }
1198
- }
1199
- const h = this.$createElement;
1200
- this.$confirm({
1201
- title: h(
1202
- 'div',
1203
- {
1204
- directives: [
1205
- {
1206
- name: 'drag-move',
1207
- value: {
1208
- target: 'ant-modal-confirm-body'
1209
- }
1210
- }
1211
- ],
1212
- domProps: {
1213
- innerHTML: settingObj.tipsMsg || `是否确认${btn.name}`
1214
- }
1215
- }
1216
- // settingObj.tipsMsg || `是否确认${btn.name}`
1217
- ),
1218
- okText: '确定',
1219
- cancelText: '取消',
1220
- onOk: () => {
1221
- this.handleBtnEvent(btn, j);
1222
- },
1223
- onCancel() {
1224
- console.log('Cancel');
1225
- },
1226
- class: 'test'
1227
- });
1228
- } else {
1229
- if (!btn.canHandleUniline) {
1230
- // 1.9.295
1231
- this.$message.warning(`请勾选需要${btn.name}的数据`);
1232
- return;
1233
- }
1234
- this.clickBtn(
1235
- this.clickRowData,
1236
- // 找到对应的单行操作按钮
1237
- this.getUnilineBtn(btn),
1238
- this.clickRowData.my_index,
1239
- true,
1240
- j
1241
- );
1242
- }
1243
- } else {
1244
- if (btn.type == 'ADD' || btn.type == 'BATCH') {
1245
- this.handleBtnEvent(btn, j);
1246
- return;
1247
- }
1248
- this.clickBtn(this.clickRowData, btn, this.clickRowData.my_index, j);
1249
- }
1250
- },
1251
- getUnilineBtn(BatchBtn) {
1252
- let unilineBtnId = this.batchRelationBtnIds[this.relationBtnBatchBtnIds.indexOf(BatchBtn.id)];
1253
- let unilineBtnObj = null;
1254
- this.allBtn.forEach(i => {
1255
- if (i.id == unilineBtnId) {
1256
- unilineBtnObj = i;
1257
- }
1258
- });
1259
- return unilineBtnObj;
1260
- },
1261
- handleBtnEvent(btn, j) {
1262
- let indexList = [];
1263
- this.$emit('clearTeamTitleName');
1264
- if (this.paramsData.form.selectRows && this.paramsData.form.selectRows.length > 0) {
1265
- indexList = this.paramsData.form.selectRows.map(item => {
1266
- if (btn.type == 'BATCH') {
1267
- delete item.SHOW_BUTTON_IDS;
1268
- delete item.operatorColumn;
1269
- }
1270
- return item.my_index;
1271
- });
1272
- }
1273
- let setData = JSON.parse(btn.setting);
1274
- let settingList = JSON.parse(btn.setting);
1275
- /** 按钮对象需求:add类型的 setting 可能是 Array/Object*/
1276
- if (btn.type === 'ADD' || btn.type == 'BATCH') {
1277
- if (Array.isArray(settingList)) {
1278
- setData = settingList[0] || {};
1279
- } else {
1280
- setData = settingList;
1281
- }
1282
- this.paramsData.table = {};
1283
- }
1284
- if (setData.trigger_type == 'ABOUT_ITEM') {
1285
- this.$message.error('按钮事件配置有误');
1286
- return;
1287
- }
1288
- let params = setData.params || [];
1289
- if (setData.trigger_type == 'QR_CODE') {
1290
- params.forEach(item => {
1291
- item.p_value = item.p_value?.replace(/\$\{([^}]+)\}/g, (_v, $1) => {
1292
- return $1 || _v;
1293
- });
1294
- });
1295
- }
1296
- let paramsData = utils.setParamsValue(params, this.paramsData);
1297
- Object.assign(btn, {
1298
- _index_: j
1299
- });
1300
- let btnData = {
1301
- btnData: Object.assign(setData, {
1302
- paramsData: paramsData,
1303
- btnName: btn.name,
1304
- _params_data: this.paramsData,
1305
- _type_: btn.type
1306
- }),
1307
- indexList: indexList,
1308
- btnConfig: JSON.parse(JSON.stringify(btn)),
1309
- _params_data: this.paramsData,
1310
- _type_: btn.type
1311
- };
1312
- this.$emit('btnEvent', btnData);
1313
- },
1314
-
1315
- // 筛选分类相关的
1316
- async updateTableCondiTion() {
1317
- await this.getTableCondiTionListNew(this.tableId);
1318
- this.getTableCondiTionListRequest();
1319
- },
1320
- async CondiTionListInit() {
1321
- await this.getTableCondiTionListNew(this.tableId);
1322
- this.getTableCondiTionListRequest();
1323
- },
1324
- async saveGetTableCondiTionList(options) {
1325
- await this.getTableCondiTionListNew(this.tableId);
1326
- this.getTableCondiTionList();
1327
- this.$emit('getClassification', options);
1328
- },
1329
- changeSearch(key, item) {
1330
- if (key == 'all') {
1331
- this.searchDefName = '全部数据' || this.$t('1.1.5.1');
1332
- } else {
1333
- this.searchDefName = item.name;
1334
- }
1335
- this.$refs.quicksearch.clearData();
1336
- this.$emit('changeSearch', key, item);
1337
- },
1338
- changeSearchTile(val) {
1339
- this.isTile = val;
1340
- this.saveListIsTile();
1341
- },
1342
- openSetting() {
1343
- this.$refs.search.handleMenuClick('setting');
1344
- },
1345
- reloadList(item) {
1346
- this.$refs.quicksearch?.clearData();
1347
- this.$emit('reloadList', item);
1348
- },
1349
- clickBtn(data, item, index, skip, j, config={}) {
1350
- this.$emit('clearTeamTitleName');
1351
- if ((item.name.includes('批量') && item.type == 'ADD' && !skip) || (item.type == 'BATCH' && !skip)) {
1352
- this.showDrawer(item, j);
1353
- return;
1354
- }
1355
- if (Object.keys(data || {}).length === 0 && !this.isPrintBtn(item)) {
1356
- // 请点击要操作的数据1.9.140
1357
- this.$message.info('请点击要操作的数据' || this.$t('1.9.140'));
1358
- return;
1359
- }
1360
- Object.assign(item, {
1361
- _index_: j
1362
- });
1363
- this.$emit('clickBtn', data, item, index, j, config);
1364
- },
1365
- clickGroupBtn(btn, j) {
1366
- this.clickBtn(this.clickRowData, btn, this.clickRowData.my_index, undefined, j);
1367
- },
1368
- handlerSetting() {
1369
- this.$emit('handlerSetting');
1370
- },
1371
- // 请求视图列表
1372
- handlerReqAllConfigView() {
1373
- let params = {
1374
- type: 'PC',
1375
- typeTable: 'TABLE_LIST',
1376
- tableId: this.tableId,
1377
- page: 1,
1378
- rows: 20
1379
- };
1380
- this.axios
1381
- .get('/tableListConfigView/getTableListConfigViewAll', {
1382
- params: params
1383
- })
1384
- .then(({ data }) => {
1385
- if (data.rows) {
1386
- let viewCongfigList = data.rows || [];
1387
- if (viewCongfigList.length > 0) {
1388
- // 查找默认值
1389
- let curItem = viewCongfigList.find(v => v.mark == 1);
1390
- this.currentTempId = curItem ? curItem.id : '0';
1391
- this.$emit('handlerChangeView', this.currentTempId);
1392
- } else {
1393
- this.currentTempId = '0';
1394
- this.$emit('handlerChangeView', this.currentTempId);
1395
- }
1396
-
1397
- this.$set(this, 'viewCongfigList', viewCongfigList);
1398
- }
1399
- });
1400
- },
1401
- handlerSelectTemp(e) {
1402
- if (this.currentTempId === e) return;
1403
- this.currentTempId = e;
1404
- const tab = e == 0 ? 'bigTable' : null;
1405
- this.$emit('handlerChangeView', e, tab);
1406
- let f = this.viewList.findIndex(v => v.id == e);
1407
- this.resetCheckStatus();
1408
- this.$nextTick(() => {
1409
- this.formatRowBtnList();
1410
- });
1411
- },
1412
- isShowSetting(v) {
1413
- if (v == 'hideSettingBtn') {
1414
- return this.isOrgAdmin || this.showSettings[v] == 0;
1415
- } else {
1416
- if (this.showRelatedTreeBtn) {
1417
- return this.relatedBaseInfo[v] == 0;
1418
- }
1419
- return this.showSettings[v] == 0;
1420
- }
1421
- },
1422
- setBatchRelationBtnIds(list) {
1423
- let showButtonTop = !!this.showButtonTop;
1424
- if (!showButtonTop) return false;
1425
-
1426
- list.forEach(item => {
1427
- let relationBtnId = item.setting && JSON.parse(item.setting)?.relationBtnId;
1428
- if (item.type === 'BATCH' && relationBtnId) {
1429
- this.relationBtnBatchBtnIds.push(item.id);
1430
- this.batchRelationBtnIds.push(relationBtnId);
1431
- }
1432
- });
1433
- },
1434
- setBtnStatus(btn) {
1435
- const btnObj = utils.getRowOperatorIdSetting({}, btn);
1436
- const { settingObj = {} } = btnObj || {};
1437
- let isAllSelect = this.tableAllCheck;
1438
- let isMultiSelect = !!this.paramsData.form.selectIds;
1439
- let isBatchBtn = btn.type === 'BATCH';
1440
- let isAddBtn = btn.type === 'ADD';
1441
- let isSQLSAVEBtn = settingObj.trigger_type === 'SQLSAVE';
1442
- let isLineBtn = btn.type === 'EDIT' || btn.type === 'DELETE';
1443
- let isImportGuage = settingObj.trigger_type === 'GUAGE' && settingObj.guage_type == 'importGuage';
1444
-
1445
- let isEditRow = settingObj.trigger_type === 'EDIT_ROW';
1446
- let editAllRow = settingObj.editAllRow == 1;
1447
-
1448
- // 批量&&行编辑&&全部行编辑 直接展示
1449
- if (isBatchBtn && isEditRow && editAllRow) {
1450
- btn.isVisible = true;
1451
- return;
1452
- }
1453
-
1454
- let isLowcodeTree = this.isLowCode && this.$attrs.isTree != 0
1455
- let curSelectLen = isLowcodeTree ? this.showDownCurSelectTreeData : this.showDownCurSelectData;
1456
-
1457
- // 默认情况下 只展示新增&下载
1458
- if (!this.showDownCurSelectData) {
1459
- btn.isVisible = isAddBtn ? true : false;
1460
- if (!isImportGuage) return;
1461
- }
1462
- // 低代码树表格批量按钮特别处理一下, 单击行不选中, 所以需要特别处理批量按钮
1463
- if(isLowcodeTree && !isImportGuage && isBatchBtn && !curSelectLen) {
1464
- btn.isVisible = false;
1465
- return;
1466
- }
1467
-
1468
- // btn.settingObj.guage_type == "importGuage";
1469
- // 全选状态下,只有入口类型的批量按钮展示(因当前版本仅支持入口类型的全选批量操作
1470
- if (isBatchBtn && isAllSelect) {
1471
- btn.isVisible = isSQLSAVEBtn;
1472
- return;
1473
- }
1474
-
1475
- // 批量操作按钮,如果有绑定对应单行操作按钮,则批量按钮开启单行操作
1476
- let relationBtnId = JSON.parse(btn.setting).relationBtnId;
1477
- if (isBatchBtn && relationBtnId) {
1478
- btn.canHandleUniline = true;
1479
- }
1480
-
1481
- // 批量按钮关联的对应按钮
1482
- if (this.showDownCurSelectData > 1 && isLineBtn) {
1483
- btn.isVisible = false;
1484
- } else {
1485
- if (isBatchBtn && btn.chooseTwoData == 1) {
1486
- btn.isVisible = !this.batchRelationBtnIds.includes(btn.id) && curSelectLen > 1;
1487
- } else {
1488
- btn.isVisible = !this.batchRelationBtnIds.includes(btn.id);
1489
- }
1490
- }
1491
-
1492
- // 未绑定了行级按钮的批量按钮,默认隐藏, 勾选展示
1493
- if (isBatchBtn && !relationBtnId && curSelectLen > 1) {
1494
- btn.isVisible = isMultiSelect;
1495
- }
1496
- // 量表导入按钮
1497
- if (isImportGuage) {
1498
- btn.isImportGuage = true;
1499
- btn.isVisible = false;
1500
- }
1501
- },
1502
- // 处理分组按钮
1503
- handleButtonGroup(buttonList) {
1504
- let useBttonList = buttonList
1505
- .map(v => {
1506
- v.isButtonGroup = false;
1507
- // 有分组名 非隐藏
1508
- if (!v.buttonGroup || !v.isVisible || v.isShow != 1) return null;
1509
- if (v.type === 'ADD' || v.type == 'BATCH') return v;
1510
- if (this.showButtonTop != 1) return null;
1511
- return v;
1512
- })
1513
- .filter(Boolean);
1514
- if (!useBttonList.length) return;
1515
- let groupRes = vexutils.groupBy(useBttonList, 'buttonGroup');
1516
- if (!groupRes || !Object.keys(groupRes).length) return;
1517
- let resObj = {};
1518
- Object.keys(groupRes).forEach(item => {
1519
- let list = groupRes[item];
1520
- // 超过一个才展示
1521
- if (item && list?.length > 1) {
1522
- resObj[item] = {
1523
- key: item,
1524
- isHide: false,
1525
- list: list,
1526
- clientWidth: 0,
1527
- isVisible: true
1528
- };
1529
- list.forEach(v => (v.isButtonGroup = true));
1530
- }
1531
- });
1532
- this.groupBtnObj = resObj;
1533
- },
1534
- async formatRowBtnList() {
1535
- let rowFoldBtnList = [];
1536
- let rowTileBtnList = [];
1537
- let rowPrintBtnList = [];
1538
- this.rowFoldBtnList = [];
1539
- this.rowTileBtnList = [];
1540
- this.rowPrintBtnList = [];
1541
- this.rowFoldHideBtnList = [];
1542
- this.batchRelationBtnIds = [];
1543
- this.relationBtnBatchBtnIds = [];
1544
- this.groupBtnObj = {};
1545
- let useButton = [];
1546
- // let tempBtnList = this.rowBtnList;
1547
- // // 按钮置顶时 过滤掉行级按钮中 仅图标
1548
- // if (this.showButtonTop == 1) {
1549
- // tempBtnList = tempBtnList.filter(v => {
1550
- // if (["EDIT", "DELETE"].includes(v.type)) {
1551
- // if (v.showStyle != "only_icon") return v;
1552
- // } else {
1553
- // return v;
1554
- // }
1555
- // });
1556
- // }
1557
- let rowBtnList = this.rowBtnList;
1558
- // 新卡片视图 有进入批量模式的按钮
1559
- if (this.isCard) {
1560
- if(this.isCardNewBatch) {
1561
- rowBtnList = rowBtnList.map(v => {
1562
- if(v.type == 'BATCH') return v
1563
- return null
1564
- }).filter(Boolean);
1565
- } else {
1566
- rowBtnList = rowBtnList.map(v => {
1567
- if(v.type != 'BATCH') return v;
1568
- return null;
1569
- }).filter(Boolean);
1570
- }
1571
- }
1572
- if (!rowBtnList?.length) return;
1573
- this.setBatchRelationBtnIds(rowBtnList);
1574
-
1575
-
1576
- // 子列表只留下行级按钮
1577
- // if (this.isNestTableClick) {
1578
- // rowBtnList = this.rowBtnList.filter(item => item.type != 'ADD' && item.type != 'BATCH');
1579
- // }
1580
-
1581
- rowBtnList.forEach(btn => {
1582
- if (!(btn.isShow == '1' && btn.type != 'LINK')) return;
1583
- btn.isHide = false;
1584
- btn.isButtonGroup = false;
1585
- let cloneBtn = cloneDeep(btn);
1586
- this.setBtnStatus(cloneBtn);
1587
- // 按钮自适应 即使折叠也平铺显示出来
1588
- if (this.isShowSetting('buttonAdaption')) {
1589
- if (btn.toggle == 'fold') {
1590
- if (btn.type != 'ADD' && btn.type != 'BATCH' && this.showButtonTop == 0) return;
1591
- if (!this.isPrintBtn(btn)) {
1592
- rowFoldBtnList.push(cloneBtn);
1593
- }
1594
- } else {
1595
- rowTileBtnList.push(cloneBtn);
1596
- }
1597
- } else {
1598
- rowTileBtnList.push(cloneBtn);
1599
- }
1600
- useButton.push(cloneBtn);
1601
- });
1602
- if (this.isShowSetting('buttonAdaption')) {
1603
- this.rowFoldBtnList = rowFoldBtnList;
1604
- }
1605
-
1606
- this.rowTileBtnList = rowTileBtnList.filter(i => {
1607
- if (this.isPrintBtn(i)) {
1608
- rowPrintBtnList.push(i);
1609
- } else {
1610
- return i;
1611
- }
1612
- });
1613
-
1614
- let printNumberList = (await this.getPrintNumber(rowPrintBtnList)) || [];
1615
- let configObj = await this.getPrintUserConfigReuqestAll(printNumberList, rowPrintBtnList)
1616
- rowPrintBtnList = this.setPrintNumberToBtnList(printNumberList, rowPrintBtnList, configObj);
1617
- // this.rowPrintBtnList = rowPrintBtnList;
1618
- // 添加批量打印策略:strategy: MULTI(循环多条, 默认值, 为空时使用该策略) ONCE(聚合一条)
1619
- this.rowPrintBtnList = rowPrintBtnList.map(item => {
1620
- const obj = this.printBtnStrategys.find(v => v.id === item.settingObj[0].trigger_id);
1621
- item.strategy = obj?.setting ? JSON.parse(obj.setting).strategy : 'MULTI';
1622
- return item;
1623
- });
1624
-
1625
- this.hideInlineOperationBtn();
1626
-
1627
- // 分组按钮
1628
- this.handleButtonGroup(useButton);
1629
-
1630
- if (this.isShowSetting('buttonAdaption')) return;
1631
- this.$nextTick(() => {
1632
- this.handleTileBtnWidth();
1633
- this.dealOutFilterHideBtn();
1634
- });
1635
- },
1636
- hideInlineOperationBtn() {
1637
- if (this.TypeOfDisplay === 'table') return;
1638
-
1639
- this.rowFoldBtnList = this.rowFoldBtnList.filter(item => {
1640
- return item.settingObj[0].trigger_type !== 'EDIT_ROW';
1641
- });
1642
- this.rowTileBtnList = this.rowTileBtnList.filter(item => {
1643
- return item.settingObj[0].trigger_type !== 'EDIT_ROW';
1644
- });
1645
- },
1646
- isPrintBtn(btn) {
1647
- const copySettingObj = btn.settingObj;
1648
- let settingObj = {};
1649
- if (Array.isArray(copySettingObj)) {
1650
- settingObj = copySettingObj[0];
1651
- } else {
1652
- settingObj = copySettingObj;
1653
- }
1654
- if (!settingObj) return false;
1655
- return settingObj.trigger_type === 'PRINT';
1656
- },
1657
- handleTileBtnWidth() {
1658
- if (this.outSearchFieldList.length > 0) return; // 存在外显按钮的时候 不触发这个函数
1659
- let rowTileBtnRef = this.$refs.rowTileBtnItem;
1660
- if (!rowTileBtnRef || !rowTileBtnRef.length) return;
1661
- let rowTileBtnList = JSON.parse(JSON.stringify(this.rowTileBtnList));
1662
- let groupBtnObj = JSON.parse(JSON.stringify(this.groupBtnObj));
1663
- let btnTotalWidth = 90;
1664
- let hasHideBtn = false;
1665
- let rowFoldHideBtnWidth = 90;
1666
- let diffWidth = this.diffWidth;
1667
- rowTileBtnRef.forEach((e, index) => {
1668
- let dataKey = e.getAttribute('data-key');
1669
- let dateSource = e.getAttribute('data-source');
1670
- let clientWidth = e.clientWidth;
1671
- let item;
1672
- if (dateSource == 'groupBtn') {
1673
- item = groupBtnObj[dataKey];
1674
- } else {
1675
- item = rowTileBtnList.find(v => v.sid === dataKey);
1676
- }
1677
- if (!item) return;
1678
- if (clientWidth) {
1679
- item.clientWidth = clientWidth;
1680
- }
1681
- if (item.clientWidth) {
1682
- clientWidth = item.clientWidth;
1683
- }
1684
- if (diffWidth <= 0) {
1685
- this.$set(item, 'isHide', true);
1686
- } else if (diffWidth > 0 && item.isVisible) {
1687
- btnTotalWidth += clientWidth;
1688
- if (btnTotalWidth > diffWidth) {
1689
- this.$set(item, 'isHide', true);
1690
- if (!hasHideBtn) {
1691
- hasHideBtn = true;
1692
- diffWidth -= rowFoldHideBtnWidth;
1693
- btnTotalWidth -= rowFoldHideBtnWidth;
1694
- }
1695
- } else {
1696
- this.$set(item, 'isHide', false);
1697
- }
1698
- }
1699
- });
1700
- let hideBtn = rowTileBtnList.filter(item => item.isVisible && item.isHide);
1701
- this.groupBtnObj = groupBtnObj;
1702
- this.rowTileBtnList = rowTileBtnList;
1703
- let rowFoldHideBtnListObj = {
1704
- ADD: { name: '新增按钮', list: [] },
1705
- INLINE: { name: '行级按钮', list: [] },
1706
- BATCH: { name: '批量按钮', list: [] }
1707
- };
1708
-
1709
- hideBtn.forEach(item => {
1710
- item.isShowFoldGroupBtn = false;
1711
- if (item.type === 'ADD') {
1712
- rowFoldHideBtnListObj.ADD.list.push(item);
1713
- } else if (item.type == 'BATCH') {
1714
- rowFoldHideBtnListObj.BATCH.list.push(item);
1715
- } else {
1716
- rowFoldHideBtnListObj.INLINE.list.push(item);
1717
- }
1718
- });
1719
-
1720
- let hideGroupBtnObj = {};
1721
- // 按钮自适应 隐藏的分组 需要在折叠中平铺展示
1722
- for (let key in groupBtnObj) {
1723
- if (groupBtnObj[key].isHide) {
1724
- let list = groupBtnObj[key].list;
1725
- hideGroupBtnObj[key] = {
1726
- name: key,
1727
- list
1728
- };
1729
- list.forEach(item => {
1730
- let matchItem = hideBtn.find(v => v.sid === item.sid);
1731
- if (!matchItem) {
1732
- item.isShowFoldGroupBtn = true;
1733
- hideBtn.push(item);
1734
- } else {
1735
- matchItem.isShowFoldGroupBtn = true;
1736
- }
1737
- });
1738
- }
1739
- }
1740
- if (Object.keys(hideGroupBtnObj).length) {
1741
- Object.assign(rowFoldHideBtnListObj, hideGroupBtnObj);
1742
- }
1743
-
1744
- this.rowFoldHideBtnListObj = rowFoldHideBtnListObj;
1745
- this.rowFoldHideBtnList = hideBtn;
1746
- this.resizeFlag = false;
1747
- },
1748
- resetCheckStatus() {
1749
- this.$emit('pubResetCheckStatus');
1750
- },
1751
- handleReset() {
1752
- this.$emit('handleReset', { targetType: 'outQuickSearchReset' });
1753
- },
1754
- changeCardNewBatch(val) {
1755
- this.$emit('changeCardNewBatch', val)
1756
- },
1757
- // 兼容二次开发平台
1758
- importGaugeMethod(params, name) {
1759
- let url = this.importGuageConfig?.action || `${this.axios.defaults.baseURL}/guage/importGuage`
1760
- this.axios.post(url, params).then(({data}) => {
1761
- if(data.result !== 'SUCCESS') {
1762
- this.$message.error(data.resultMsg || `${name}导入失败`)
1763
- return;
1764
- }
1765
- this.$message.success(`${name}导入成功`);
1766
- this.$emit('importUpdate');
1767
- })
1768
- },
1769
- // 量表导入自定义上传方法
1770
- importGaugeCustomRequest(options) {
1771
- let { file } = options;
1772
- let formData = new FormData();
1773
- formData.append("file", file);
1774
-
1775
- this.$set(file, "status", "uploading");
1776
- let curMehod = this.importGaugeMethod
1777
- if(this.importGuageRequest && isFunction(this.importGuageRequest)) {
1778
- curMehod = this.importGuageRequest
1779
- }
1780
- curMehod(formData, file.name)
1781
- },
1782
- // @change="handleUploadChange"
1783
- handleUploadChange(info) {
1784
- const { file, fileList } = info;
1785
- if (file.status !== 'uploading') {
1786
- console.log(file, fileList);
1787
- }
1788
- if (file.status === 'done') {
1789
- if (file.response?.result == 'SUCCESS') {
1790
- this.$message.success(`${file.name} 导入成功`);
1791
- this.$emit('importUpdate');
1792
- } else {
1793
- this.$message.error(`${file.name} 导入失败`);
1794
- }
1795
- } else if (file.status === 'error') {
1796
- this.$message.error(`${file.name} 导入失败`);
1797
- }
1798
- },
1799
- handleOtherConfigInit() {
1800
- setTimeout(() => {
1801
- let tableOptions = this.$attrs?.tableOptions || this.tableOptions || {};
1802
- const { nobutton = false, TypeOfDisplay = '', noSetting = false } = tableOptions?.config || {};
1803
- this.nobutton = nobutton || false;
1804
- if (TypeOfDisplay === 'table') {
1805
- this.currentTempId = '0';
1806
- }
1807
- if (noSetting) {
1808
- // this.showSettings["hideSettingBtn"] = 1;
1809
- this.noSetting = true;
1810
- }
1811
- }, 16);
1812
- },
1813
-
1814
- handleTopBtnTracher(btn, j) {
1815
- try {
1816
- // 埋点
1817
- this.$_handleTracherLog('列表按钮', {
1818
- 列表ID: this.tableId || '',
1819
- 列表名称: this.tableName || this.$attrs?.tableName || '',
1820
- 按钮名称: btn.name,
1821
- 按钮ID: btn.id,
1822
- 按钮类型: btn.type,
1823
- 按钮顺序位置: j,
1824
- 显示位置: btn.toggle
1825
- });
1826
- } catch (error) {
1827
- console.log(error);
1828
- }
1829
- },
1830
- handleAddType(btn) {
1831
- const btnObj = utils.getRowOperatorIdSetting({}, btn);
1832
- let setData = JSON.parse(btnObj.setting);
1833
- const { editTableWrapper } = this;
1834
- const tableParams = JSON.parse(JSON.stringify(this.paramsData));
1835
-
1836
- if (editTableWrapper.options && utils.isPlainObject(editTableWrapper.options.extendParams)) {
1837
- // 有额外的参数
1838
- editTableWrapper.options?.extendParams && Object.assign(tableParams.form, editTableWrapper.options.extendParams);
1839
- }
1840
- const paramsData = Object.assign(tableParams, {
1841
- table: btn
1842
- });
1843
- const params = utils.setParamsValue(setData.params, paramsData);
1844
- Object.assign(setData, { params, _params_data: paramsData });
1845
- this.$emit('btnEventTree', setData);
1846
- },
1847
- getRowTileBtnList(btnList) {
1848
- this.rowTileBtnListTree = [];
1849
- this.rowTileBtnListTree = btnList.filter(btn => btn.isShow == '1' && btn.type == 'ADD');
1850
- },
1851
- relatedSearchInputBlur() {
1852
- let searchInput = this.$refs.relatedSearchInput;
1853
- if (!searchInput) return;
1854
- if (!searchInput.$el?.children) return;
1855
- if (!searchInput.$el.children[0]?.children) return;
1856
- if (!searchInput.$el.children[0].children[0]) return;
1857
- if (!searchInput.$el.children[0].children[0]?.children) return;
1858
- let inputDom = searchInput.$el.children[0].children[0].children[0];
1859
- if (!inputDom) return;
1860
- inputDom.blur();
1861
- },
1862
- handleRequestedLabel(v) {
1863
- let requestedLabel = this.filterApiConfig?.requestedLabel
1864
- if(requestedLabel && typeof requestedLabel === 'function') {
1865
- return this.handleGetConfigApi(v, 'requestedLabel')
1866
- }
1867
- let params = { type: v, pageSize: 10000 };
1868
- return this.axios.get('/label/list', { params: params });
1869
- },
1870
- initOutSearchFieldList(config = {}) {
1871
- this.outSearchFieldList = [];
1872
- this.outRelationQuickSearch = [];
1873
- let mySearchFieldList = JSON.parse(JSON.stringify(this.searchFieldList)).filter(i => ((i.random_key = this.getFiledRandom_key(i)), i.isShowSearch == 1 && i.filterExplicit == 1));
1874
- this.outSearchFieldList = mySearchFieldList;
1875
- this.sourceTrigger = 'baseSearch'
1876
- // 跨表
1877
- let outRelationQuickSearch = this.relationTableList.map(item => {
1878
- return {
1879
- fieldList: item.fieldList.fieldList.filter(item => item.isShowSearch == 1 && item.filterExplicit == 1) || [],
1880
- tableName: item.tableName,
1881
- primaryField: item.primaryField,
1882
- parameterConversionId: item.parameterConversionId,
1883
- tableId: item.tableId,
1884
- relationField: item.relationField,
1885
- converFun: item.converFun,
1886
- relationOrgId: item.relationOrgId,
1887
- preConObj: item.preConObj,
1888
- preSqlExpression: item.preSqlExpression
1889
- };
1890
- });
1891
- outRelationQuickSearch = outRelationQuickSearch.filter(item => item.fieldList.length);
1892
- this.$set(this, 'outRelationQuickSearch', outRelationQuickSearch);
1893
- this.dealOutFilterHideBtn();
1894
- this.handlerInitSearchItem(this.outSearchFieldList);
1895
- this.outRelationQuickSearch.forEach(item => {
1896
- this.handlerInitSearchItem(item.fieldList);
1897
- });
1898
- if (this.lastOutSearchFieldList.length > 0) {
1899
- this.outSearchFieldList = cloneDeep(this.lastOutSearchFieldList);
1900
- }
1901
- if (this.lastOutRelationQuickSearch.length) {
1902
- this.outRelationQuickSearch = this.$utils.clone(this.lastOutRelationQuickSearch, true);
1903
- }
1904
-
1905
- // 如有配置默认值
1906
- this.isOut = true;
1907
- this.handleDefVal(config)
1908
- },
1909
- dealOutFilterHideBtn() {
1910
- if (!this.isShowSetting('buttonAdaption') && this.outSearchFieldList.length > 0) {
1911
- // 如果设置了按钮自适应 全部按钮放入折叠按钮
1912
- // 需要考虑按钮是否有分组 过滤掉分组
1913
- let rowTileBtnList = JSON.parse(JSON.stringify(this.rowTileBtnList));
1914
- let hideBtn = rowTileBtnList.filter(item => {
1915
- if (!item.isVisible) return false;
1916
- if (!item.buttonGroup) return true;
1917
- if (this.groupBtnObj && this.groupBtnObj[item.buttonGroup]) return false;
1918
- return true;
1919
- });
1920
- this.rowTileBtnList = rowTileBtnList.map(i => {
1921
- i['isHide'] = true;
1922
- return i;
1923
- });
1924
- let rowFoldHideBtnListObj = {
1925
- ADD: { name: '新增按钮', list: [] },
1926
- INLINE: { name: '行级按钮', list: [] },
1927
- BATCH: { name: '批量按钮', list: [] }
1928
- };
1929
- hideBtn.forEach(item => {
1930
- this.$set(item, 'isHide', true);
1931
- if (item.type === 'ADD') {
1932
- rowFoldHideBtnListObj.ADD.list.push(item);
1933
- } else if (item.type == 'BATCH') {
1934
- rowFoldHideBtnListObj.BATCH.list.push(item);
1935
- } else {
1936
- rowFoldHideBtnListObj.INLINE.list.push(item);
1937
- }
1938
- });
1939
- this.rowFoldHideBtnListObj = rowFoldHideBtnListObj;
1940
- this.rowFoldHideBtnList = hideBtn;
1941
- }
1942
- },
1943
- outFilterChange(config = {}) {
1944
- let conObj = this.getConObjParams() || [];
1945
- this.onSave(conObj, true, config);
1946
- },
1947
- visibleBtn(btn) {
1948
- if (!btn.isVisible) return false;
1949
- if (this.isInlineOperating) return false;
1950
-
1951
- return true;
1952
- },
1953
- /* 打印相关 */
1954
- toSelectPrintObjs(value) {
1955
- let oldtableData = this.oldtableData;
1956
- let selectData = [];
1957
- if (value && value.length) {
1958
- value.forEach(v => {
1959
- let loopNode;
1960
- this.loop(oldtableData, v.my_index, item => {
1961
- loopNode = item;
1962
- });
1963
- selectData.push({
1964
- ...loopNode
1965
- });
1966
- });
1967
- }
1968
- selectData = selectData.map(item => {
1969
- return utils.paramsToPrintValue(item);
1970
- });
1971
-
1972
- return selectData;
1973
- },
1974
- loop(data, theUniqueKey, callback) {
1975
- data.forEach((item, index, arr) => {
1976
- if (item.theUniqueKey === theUniqueKey) {
1977
- return callback(item, index, arr);
1978
- }
1979
- if (item.children) {
1980
- return this.loop(item.children, theUniqueKey, callback);
1981
- }
1982
- });
1983
- },
1984
- getPrintBtnParams(btn) {
1985
- const paramsData = JSON.parse(JSON.stringify(this.paramsData));
1986
- // const selectRows = this.toSelectPrintObjs(paramsData.form.selectRows);
1987
- const setData = JSON.parse(btn.setting);
1988
- let paramsArray = [];
1989
- paramsData.form.selectRows.forEach(i => {
1990
- const obj = {
1991
- table: i
1992
- };
1993
- // paramsArray.push(utils.setParamsValue(setData[0].params, Object.assign(paramsData, { obj })));
1994
- let resParams = utils.setParamsValue(setData[0].params, Object.assign(paramsData, { obj, table: i })) || {}
1995
- resParams._originRow = i;
1996
- if(btn?.__printConfig?.number) {
1997
- resParams.templateNumbers = [btn.__printConfig.number]
1998
- }
1999
- paramsArray.push(resParams);
2000
- });
2001
- return paramsArray;
2002
- },
2003
- async receivePrintSuccessAboutPrint(res, info, config) {
2004
- const printBtn = this.printBtn;
2005
- const templateId = info.templateId;
2006
- const formatId = info.formatId;
2007
- const number = printBtn.__printConfig.number;
2008
-
2009
- try {
2010
- const print = { formatId, number };
2011
- // 执行打印后置条件
2012
- const result = await this.printConfig.postStepRule(printBtn.settingObj, {
2013
- result: res,
2014
- print: print
2015
- }, config);
2016
-
2017
- let isSync = result?.method
2018
- if(!isSync || isSync!=='sync') return;
2019
- // 同步刷新列表
2020
- let getTableList = this.editTableWrapper?.$refs?.editTable?.getTableList || this.editTableWrapper?.getTableList;
2021
- if(!getTableList || typeof getTableList !== 'function') return;
2022
- getTableList({setNum: true, isResetCondiTionDigital: true});
2023
- } catch (error) {
2024
- console.log('error', error);
2025
- }
2026
- },
2027
- async receivePrintSuccess(res, info, config={}) {
2028
- const {isMulti, errorList=[]} = config
2029
- let useRes = res;
2030
- // 批量打印如果有失败就取errorList的最后一项
2031
- if(isMulti && errorList.length) {
2032
- useRes = errorList[errorList.length -1];
2033
- }
2034
- const {result, message, errinfo} = useRes || {}
2035
- const messageType = isMulti ? result == 'error' ?'error' : 'success' : 'success';
2036
- let msg = message;
2037
- if(messageType === 'error' && errinfo) {
2038
- msg = (message + `:${errinfo}`)
2039
- }
2040
- if (info.type === 'print') {
2041
- await this.receivePrintSuccessAboutPrint(useRes, info, config);
2042
- }
2043
- if(info.type === 'download' && this.receivePrintSuccessDownloadPdf && typeof this.receivePrintSuccessDownloadPdf === 'function') {
2044
- this.receivePrintSuccessDownloadPdf(useRes, config)
2045
- }
2046
-
2047
- setTimeout(() => {
2048
- this.$message[messageType](message);
2049
- }, 3500);
2050
- },
2051
- receivePrintError(res) {
2052
- let errorMsg = res.message;
2053
- res.errinfo && (errorMsg += `:${res.errinfo}`);
2054
- this.$message.error(errorMsg);
2055
- },
2056
- resetAllPrintFnWatch() {
2057
- let keys = Object.keys(this.printBtnPrevFnWatch);
2058
- keys.forEach(key => {
2059
- if (!this.printBtnPrevFnWatch[key]) return false;
2060
- this.printBtnPrevFnWatch[key]();
2061
- this.printBtnPrevFnWatch[key] = null;
2062
- delete this.printBtnPrevFnWatch[key];
2063
- });
2064
- },
2065
- printBtnPrevFnWatchSetTimeout(reject) {
2066
- if (this.printBtnPrevFnWatchTimeoutTimer) {
2067
- clearTimeout(this.printBtnPrevFnWatchTimeoutTimer);
2068
- this.printBtnPrevFnWatchTimeoutTimer = null;
2069
- }
2070
-
2071
- this.printBtnPrevFnWatchTimeoutTimer = setTimeout(() => {
2072
- this.resetAllPrintFnWatch();
2073
- reject();
2074
- }, 10000);
2075
- },
2076
- printBtnPrevFn(clickBtn, btn, type, j) {
2077
- return new Promise((resolve, reject) => {
2078
- /*
2079
- 触发原按钮流程,在EditTable中触发原打印按钮节点时,修改[printPrevFinish]状态
2080
- 触发watch,再执行Promise.resolve()
2081
- */
2082
- this.clickBtn(clickBtn, btn, clickBtn.my_index, true, j, {printBtnTrigger: true});
2083
- const timestamp = Date.now();
2084
-
2085
- this.resetAllPrintFnWatch();
2086
- this.printPrevFinish = false;
2087
-
2088
- this.printBtnPrevFnWatch[timestamp] = this.$watch('printPrevFinish', val => {
2089
- if (!this.printBtnPrevFnWatch[timestamp]) return false;
2090
- this.resetAllPrintFnWatch();
2091
- resolve();
2092
- });
2093
-
2094
- this.printBtnPrevFnWatchSetTimeout(reject);
2095
- });
2096
- },
2097
- inlineEditClick() {
2098
- let { btnName, tipsMsg, isTips } = this.curBatchBtnData || {};
2099
- let _this = this;
2100
- // 保存是否需要提示
2101
- if (isTips != 1) {
2102
- this.setBatchSaveRowStatus(true);
2103
- return;
2104
- }
2105
- this.$confirm({
2106
- title: tipsMsg || `是否确认${btnName}`,
2107
- okText: '确定',
2108
- cancelText: '取消',
2109
- onOk: () => {
2110
- _this.setBatchSaveRowStatus(true);
2111
- },
2112
- onCancel() {}
2113
- });
2114
- },
2115
-
2116
- /**
2117
- * 获取外显检索的默认值设置
2118
- */
2119
- handleGetOutSearchInitValue() {
2120
- const isSetDefVal = this.outSearchFieldList.some(v => {
2121
- if (this.isRender(v)) {
2122
- return this.isExistDefValByRenderWidget(v);
2123
- }
2124
- return !!v.explicitDefaultVal
2125
- });
2126
- if (isSetDefVal) {
2127
- let conObj = this.getConObjParams() || [];
2128
- return conObj;
2129
- }
2130
-
2131
- return [];
2132
- },
2133
-
2134
- getFiledRandom_key(el) {
2135
- // 初始化
2136
- const showSetting = el?.settingObj?.showSetting || [];
2137
- let f = !this.$utils.isEmpty(el?.settingObj?.wordbook);
2138
- if (!showSetting?.length && f) {
2139
- return Math.random().toString();
2140
- }
2141
- return '11';
2142
- },
2143
-
2144
- inlineEditCancel() {
2145
- this.setBatchCancelRowStatus(true);
2146
- },
2147
-
2148
- setBatchSaveRowStatus(f) {
2149
- this.$emit('setBatchSaveRowStatus', f);
2150
- },
2151
-
2152
- setBatchCancelRowStatus(f) {
2153
- this.$emit('setBatchCancelRowStatus', f);
2154
- },
2155
-
2156
- setPrintNumberCache(obj) {
2157
- this.$emit('setPrintNumberCache', obj);
2158
- },
2159
-
2160
- getRef(key){
2161
- let ref = this.$refs[key];
2162
- if(Array.isArray(ref)){
2163
- return ref[0];
2164
- }
2165
- return ref;
2166
- },
2167
-
2168
- /**
2169
- * 赋值给检索外显
2170
- */
2171
- async setOutFilterValues(obj){
2172
- if(typeof obj === 'object'){
2173
-
2174
- const outObj = this.outSearchFieldList.reduce((pre,cur)=>{
2175
- cur.columnName && (pre[cur.columnName]=cur)
2176
- return pre;
2177
- },{});
2178
-
2179
- // 遍历对象赋值
2180
- Object.keys(obj).forEach(k=>{
2181
- let val = obj[k];
2182
- let item = outObj[k] || {}
2183
- if(vexutils.isObject(val)){
2184
- let ks = ['bigValue','lessValue'];
2185
- ks.forEach(kk=>{
2186
- this.$set(item,kk,val[kk]);
2187
- })
2188
- } else {
2189
- if (typeof val === 'number') {
2190
- val = String(val);
2191
- }
2192
- this.$set(item,'value',val);
2193
- }
2194
- // 检索组件,触发检索方法
2195
- if (item?.comType == "SelectMuiWordBook"){
2196
- this.setSelectMuiWordBookType(item,val)
2197
- }
2198
- })
2199
-
2200
- await this.$nextTick();
2201
- this.outFilterChange()
2202
- }
2203
- },
2204
-
2205
- setSelectMuiWordBookType(item,val){
2206
- if(Array.isArray(item.dataSource)){
2207
- let f = item.dataSource.find(v=>v.myName == val);
2208
- if(f) return
2209
- }
2210
- let rKey = item.columnName + item.random_key
2211
- let ref = this.getRef(rKey);
2212
- ref && ref.handleWordBookSearch(val,item)
2213
- }
2214
-
2215
- /* */
2216
- },
2217
- watch: {
2218
- // 平铺列表 watch 触发 导致请求发很多次
2219
- // 注释掉tableId 之后有问题请使用另外的方法解决, 不要再使用watch触发
2220
- // tableId: {
2221
- // immediate: true,
2222
- // deep: true,
2223
- // handler(val) {
2224
- // val && this.getTableCondiTionListRequest(true);
2225
- // }
2226
- // },
2227
- viewList: {
2228
- deep: true,
2229
- immediate: true,
2230
- handler() {
2231
- if (this.viewList.length > 0) {
2232
- let curItem;
2233
- let hasListType = true;
2234
- this.viewList.forEach(v => {
2235
- if (v.mark == 1) {
2236
- curItem = v.id;
2237
- }
2238
- if (v.id == '0') {
2239
- hasListType = false;
2240
- }
2241
- });
2242
- hasListType &&
2243
- this.viewList.push({
2244
- id: '0',
2245
- name: '列表模式' || this.$t('1.1.5.4')
2246
- });
2247
- // 查找默认值
2248
- // let curItem = this.viewList.find(v => v.mark == 1);
2249
- this.currentTempId = curItem || '0';
2250
-
2251
- // 按钮打卡视图列表
2252
- let tableViewId = this.optionsValue('tableViewId');
2253
- let onlyOpenView = this.optionsValue('hideViewList') && tableViewId;
2254
- if (onlyOpenView) {
2255
- this.currentTempId = tableViewId;
2256
- }
2257
- // this.handlerSelectTemp(this.currentTempId);
2258
- this.$emit('handlerChangeView', this.currentTempId);
2259
- } else {
2260
- this.currentTempId = '0';
2261
- // this.handlerSelectTemp(this.currentTempId);
2262
- this.editTableSource != 'relatedComponent' && this.$emit('handlerChangeView', this.currentTempId);
2263
- }
2264
- }
2265
- },
2266
- getIsTile: {
2267
- immediate: true,
2268
- handler(val) {
2269
- if (val === undefined) return;
2270
- this.isTile = val;
2271
- }
2272
- },
2273
- rowBtnList: {
2274
- immediate: true,
2275
- deep: true,
2276
- handler() {
2277
- this.formatRowBtnList();
2278
- this.handleOtherConfigInit();
2279
- }
2280
- },
2281
- initPageResize: {
2282
- immediate: true,
2283
- deep: true,
2284
- handler(val) {
2285
- if (!val || !Object.keys(val).length) return;
2286
- if (this.isButtonFolding || this.isShowSetting('buttonAdaption')) return;
2287
- let { classificationIndex } = val;
2288
- if (classificationIndex < 0) return;
2289
- this.pageResize({});
2290
- }
2291
- },
2292
- relatedBaseInfo: {
2293
- immediate: true,
2294
- deep: true,
2295
- handler(val) {
2296
- if (!val || !Object.keys(val).length) return;
2297
- let { buttonList } = val;
2298
- if (!buttonList || !buttonList.length) return;
2299
- this.getRowTileBtnList(buttonList);
2300
- }
2301
- },
2302
- searchFieldList: {
2303
- immediate: true,
2304
- deep: true,
2305
- handler(val) {
2306
- if (val && val.length > 0) {
2307
- this.initOutSearchFieldList();
2308
- }
2309
- }
2310
- },
2311
- tabConditionNumObj: {
2312
- immediate: true,
2313
- deep: true,
2314
- handler(val) {
2315
- if (this.conditionType === 'keyword' && val && Object.keys(val).length > 0) {
2316
- this.tabConditionList.length > 0 &&
2317
- this.tabConditionList.forEach(item => {
2318
- if (val[item.sid] !== undefined) this.$set(item, 'digital', val[item.sid]);
2319
- });
2320
- }
2321
- }
2322
- },
2323
- searchPlaceHolder: {
2324
- immediate: true,
2325
- handler(val) {
2326
- if (!val || this.showRelatedTreeBtn) return;
2327
- this.$nextTick(() => {
2328
- this.showPlaceholderPrefix = false;
2329
- let dom = this.$refs.baseSearchPlaceholderSpan;
2330
- if (!dom) return;
2331
- // input 框有padding 32px ...显示需要多预留一些宽度12px
2332
- let w = dom.offsetWidth + 45;
2333
- // 非筛选外显input 有enterButton 预留宽度
2334
- if (!this.showOutSearch) {
2335
- w += 45;
2336
- }
2337
- let maxW = 300;
2338
- this.inputSearchW = w > maxW ? maxW : w < 200 ? 200 : w;
2339
- if (w > maxW) {
2340
- this.showPlaceholderPrefix = true;
2341
- }
2342
- this.onResize();
2343
- });
2344
- }
2345
- }
2346
- }
2347
- });
2348
- </script>
2349
-
2350
- <style lang="less" scoped>
2351
- .base-search {
2352
- flex: 1;
2353
- .base-container {
2354
- display: flex;
2355
- justify-content: space-between;
2356
- text-align: left;
2357
- background: #fff;
2358
- .rowPrintBtn-btn {
2359
- /deep/ .newprint-button-outer {
2360
- margin: 0px 8px 8px 0px;
2361
- }
2362
- }
2363
- }
2364
- .bease-left {
2365
- display: flex;
2366
- justify-content: flex-start;
2367
- align-items: flex-start;
2368
- flex: 1;
2369
- .btn-custom-wrap {
2370
- width: 100%;
2371
- display: flex;
2372
- justify-content: flex-end;
2373
- align-items: flex-start;
2374
- }
2375
- }
2376
- .base-tabs {
2377
- display: flex;
2378
- align-items: center;
2379
- border-bottom: 1px solid #d5d5d5;
2380
- margin-bottom: 8px;
2381
- .base-tabs-item {
2382
- padding: 7px 16px;
2383
- font-size: 14px;
2384
- color: #212121;
2385
- font-weight: 400;
2386
- cursor: pointer;
2387
- border-bottom: 1px solid transparent;
2388
- }
2389
- .base-tabs-item-active {
2390
- color: #2d7aff;
2391
- border-bottom: 1px solid #2d7aff;
2392
- }
2393
- }
2394
- ul {
2395
- display: flex;
2396
- align-items: center;
2397
- flex-wrap: wrap;
2398
- margin-top: 8px;
2399
- li {
2400
- display: inline-block;
2401
- /deep/ .relatedSetting-button {
2402
- height: 32px;
2403
- line-height: 32px;
2404
- margin-bottom: 8px;
2405
- margin-right: 8px;
2406
- }
2407
- /deep/ .search-default {
2408
- height: 32px;
2409
- line-height: 32px;
2410
- margin-bottom: 8px;
2411
- margin-right: 8px;
2412
- border-color: #d5d5d5;
2413
- color: #212121;
2414
- .ant-btn {
2415
- border-color: #d5d5d5;
2416
- color: #212121;
2417
- }
2418
- &.search-default-count {
2419
- border-color: #2d7aff;
2420
- color: #2d7aff;
2421
- .ant-btn {
2422
- color: #2d7aff;
2423
- }
2424
- }
2425
- }
2426
- /deep/ .out-filter-input {
2427
- width: 200px;
2428
- margin: 0 8px 8px 0;
2429
- .ant-input-wrapper {
2430
- .ant-input-group-addon {
2431
- border: 1px solid #d9d9d9 !important;
2432
- border-left: 0 !important;
2433
- }
2434
- }
2435
- }
2436
- .my-input-search {
2437
- vertical-align: middle;
2438
- position: relative;
2439
- top: -1px;
2440
- margin-bottom: 8px;
2441
- margin-right: 8px;
2442
- height: 32px;
2443
- /deep/ .ant-input {
2444
- margin-top: 1px;
2445
- border-right: 0 !important;
2446
- &:hover {
2447
- & + .ant-input-suffix {
2448
- .ant-input-search-icon {
2449
- color: #579aff;
2450
- }
2451
- }
2452
- }
2453
- }
2454
- /deep/ .ant-input-group-addon {
2455
- padding: 0;
2456
- border: 0 !important;
2457
- vertical-align: bottom;
2458
- .ant-btn {
2459
- border-top-left-radius: 0;
2460
- border-bottom-left-radius: 0;
2461
- }
2462
- }
2463
- .svg-icon {
2464
- margin-right: 0;
2465
- font-size: 16px;
2466
- }
2467
- }
2468
- .mr8 {
2469
- margin-right: 8px;
2470
- margin-bottom: 8px;
2471
- }
2472
- .mr12 {
2473
- margin-right: 12px;
2474
- margin-bottom: 8px;
2475
- }
2476
- .ml12 {
2477
- margin-left: 12px;
2478
- margin-bottom: 8px;
2479
- }
2480
- &.related-search-input {
2481
- /deep/ .my-input-search {
2482
- width: 40px;
2483
- .ant-input-affix-wrapper {
2484
- width: 0px;
2485
- .ant-input {
2486
- width: 0;
2487
- outline: none;
2488
- box-shadow: none;
2489
- &:focus {
2490
- outline: none;
2491
- }
2492
- }
2493
- .ant-input:not(:last-child) {
2494
- padding: 0px;
2495
- border: 0px !important;
2496
- }
2497
- .ant-input-suffix {
2498
- i {
2499
- display: none;
2500
- }
2501
- }
2502
- }
2503
- .ant-input-group-addon {
2504
- .ant-btn {
2505
- border-top-left-radius: 4px;
2506
- border-bottom-left-radius: 4px;
2507
- }
2508
- }
2509
- }
2510
- }
2511
- &.related-search-input-expand {
2512
- transition: width 0.2s;
2513
- /deep/ .my-input-search {
2514
- width: 215px;
2515
- .ant-input-affix-wrapper {
2516
- .ant-input-suffix {
2517
- i {
2518
- display: inline-block;
2519
- }
2520
- }
2521
- }
2522
- }
2523
- }
2524
- }
2525
- .dropdown-button {
2526
- color: #212121;
2527
- border-color: #d5d5d5 !important;
2528
- margin-left: 8px;
2529
- margin-bottom: 8px;
2530
- /deep/ .svg-icon {
2531
- margin-right: 4px;
2532
- }
2533
- &.ant-dropdown-trigger {
2534
- i.anticon.anticon-down {
2535
- color: #969696;
2536
- font-size: 14px;
2537
- }
2538
- }
2539
- }
2540
- .baseSearch-input-search {
2541
- .input-search-com {
2542
- input {
2543
- padding: 4px 8px;
2544
- }
2545
- .search-placeholder-icon {
2546
- color: #b4b4b4;
2547
- }
2548
- }
2549
- }
2550
- }
2551
- /deep/ .num-picker {
2552
- position: relative;
2553
- display: flex;
2554
- &.num-picker-unit {
2555
- padding-right: 20px;
2556
- }
2557
- input {
2558
- text-align: left !important;
2559
- }
2560
- &:hover {
2561
- .clear-number-icon {
2562
- display: block;
2563
- }
2564
- }
2565
- /deep/ .ant-calendar-range-picker-input {
2566
- text-align: left;
2567
- }
2568
- .clear-number-icon {
2569
- position: absolute;
2570
- right: 5px;
2571
- top: 6px;
2572
- display: none;
2573
- cursor: pointer;
2574
- z-index: 1000;
2575
- }
2576
- }
2577
- .btn-row {
2578
- display: inline-flex;
2579
- line-height: 32px;
2580
- height: 32px;
2581
- // padding: 0 10px;
2582
- padding-right: 8px;
2583
- margin-bottom: 8px;
2584
- transform: translateZ(0);
2585
- .mgl-10 {
2586
- margin-left: 10px;
2587
- }
2588
- &.min-width {
2589
- min-width: 212px;
2590
- }
2591
- /deep/ .ant-select-selection__rendered {
2592
- color: #212121;
2593
- font-size: 14px;
2594
- }
2595
- /deep/ .ant-select-arrow {
2596
- i {
2597
- color: #969696;
2598
- font-size: 12px;
2599
- }
2600
- }
2601
- .btn-setting {
2602
- margin-right: 4px;
2603
- }
2604
- .viewList-button {
2605
- display: flex;
2606
- align-items: center;
2607
- justify-content: center;
2608
- padding: 0 12px;
2609
- }
2610
- }
2611
- .search-tile {
2612
- max-width: 100%;
2613
- max-height: 74px;
2614
- overflow-x: auto;
2615
- /deep/ .ant-btn {
2616
- margin-right: 10px;
2617
- margin-bottom: 5px;
2618
- }
2619
- }
2620
-
2621
- .psw-icon {
2622
- cursor: pointer;
2623
- &:active {
2624
- color: #5585f5;
2625
- // #2474ff
2626
- }
2627
- color: #969696;
2628
- }
2629
-
2630
- ::-webkit-input-placeholder {
2631
- /* WebKit browsers */
2632
- font-family: 'Avenir', Helvetica, Arial, sans-serif;
2633
- }
2634
-
2635
- ::-moz-placeholder {
2636
- /* Mozilla Firefox 19+ */
2637
- font-family: 'Avenir', Helvetica, Arial, sans-serif;
2638
- }
2639
-
2640
- :-ms-input-placeholder {
2641
- /* Internet Explorer 10+ */
2642
- font-family: 'Avenir', Helvetica, Arial, sans-serif;
2643
- }
2644
- .baseSearchPlaceholderSpan {
2645
- visibility: hidden;
2646
- position: absolute;
2647
- z-index: -1;
2648
- }
2649
- }
2650
- </style>
2651
- <style lang="less">
2652
- .rowFoldHideBtnList-dropdown {
2653
- .ant-dropdown-menu {
2654
- overflow-y: auto;
2655
- max-height: 99vh;
2656
- }
2657
- .ant-dropdown-menu-item-group {
2658
- .ant-dropdown-menu-item-group-title {
2659
- display: none;
2660
- }
2661
- border-bottom: 1px solid #d5d5d5;
2662
- &:last-child {
2663
- border-color: transparent;
2664
- }
2665
- }
2666
- }
2667
- .viewList-dropdown {
2668
- min-width: 120px;
2669
- .ant-dropdown-menu-item {
2670
- display: flex;
2671
- justify-content: space-between;
2672
- align-items: center;
2673
- color: #2e2e2e;
2674
- margin: 1px 0;
2675
- &:hover {
2676
- background: #f2f2f2;
2677
- }
2678
- > span {
2679
- display: inline;
2680
- width: 85%;
2681
- text-overflow: ellipsis;
2682
- white-space: nowrap;
2683
- overflow: hidden;
2684
- }
2685
- }
2686
- .ant-dropdown-menu-item.menu-active {
2687
- color: #2d7aff;
2688
- }
2689
- }
2690
- </style>