cnhis-design-vue 0.2.64-beta → 0.3.2-beta

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