cnhis-design-vue 2.1.16 → 2.1.17

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 (125) hide show
  1. package/CHANGELOG.md +2219 -2219
  2. package/es/affix/index.js +8 -8
  3. package/es/age/index.js +10 -10
  4. package/es/alert/index.js +8 -8
  5. package/es/anchor/index.js +8 -8
  6. package/es/auto-complete/index.js +8 -8
  7. package/es/avatar/index.js +8 -8
  8. package/es/back-top/index.js +8 -8
  9. package/es/badge/index.js +8 -8
  10. package/es/base/index.js +8 -8
  11. package/es/big-table/index.js +124 -111
  12. package/es/breadcrumb/index.js +8 -8
  13. package/es/button/index.js +59 -53
  14. package/es/button/style.css +1 -1
  15. package/es/calendar/index.js +8 -8
  16. package/es/captcha/index.js +3 -3
  17. package/es/card/index.js +8 -8
  18. package/es/carousel/index.js +8 -8
  19. package/es/cascader/index.js +8 -8
  20. package/es/checkbox/index.js +9 -9
  21. package/es/col/index.js +8 -8
  22. package/es/collapse/index.js +8 -8
  23. package/es/color-picker/index.js +1 -1
  24. package/es/comment/index.js +8 -8
  25. package/es/config-provider/index.js +8 -8
  26. package/es/date-picker/index.js +8 -8
  27. package/es/descriptions/index.js +8 -8
  28. package/es/divider/index.js +8 -8
  29. package/es/drag-layout/index.js +3 -3
  30. package/es/drawer/index.js +8 -8
  31. package/es/dropdown/index.js +8 -8
  32. package/es/editor/index.js +1 -1
  33. package/es/empty/index.js +8 -8
  34. package/es/fabric-chart/index.js +95 -104
  35. package/es/fabric-chart/style.css +1 -1
  36. package/es/form/index.js +8 -8
  37. package/es/form-model/index.js +8 -8
  38. package/es/form-table/index.js +62 -62
  39. package/es/index/index.js +666 -656
  40. package/es/index/style.css +1 -1
  41. package/es/input/index.js +9 -9
  42. package/es/input-number/index.js +8 -8
  43. package/es/layout/index.js +8 -8
  44. package/es/list/index.js +8 -8
  45. package/es/locale-provider/index.js +8 -8
  46. package/es/map/index.js +9 -9
  47. package/es/mentions/index.js +8 -8
  48. package/es/menu/index.js +8 -8
  49. package/es/message/index.js +8 -8
  50. package/es/multi-chat/index.js +92 -92
  51. package/es/multi-chat-client/index.js +86 -86
  52. package/es/multi-chat-history/index.js +4 -4
  53. package/es/multi-chat-record/index.js +14 -14
  54. package/es/multi-chat-setting/index.js +27 -27
  55. package/es/multi-chat-sip/index.js +1 -1
  56. package/es/notification/index.js +8 -8
  57. package/es/page-header/index.js +8 -8
  58. package/es/pagination/index.js +8 -8
  59. package/es/popconfirm/index.js +8 -8
  60. package/es/popover/index.js +8 -8
  61. package/es/progress/index.js +8 -8
  62. package/es/radio/index.js +9 -9
  63. package/es/rate/index.js +8 -8
  64. package/es/result/index.js +8 -8
  65. package/es/row/index.js +8 -8
  66. package/es/scale-view/index.js +33 -33
  67. package/es/select/index.js +11 -11
  68. package/es/select-label/index.js +11 -11
  69. package/es/select-person/index.js +20 -20
  70. package/es/skeleton/index.js +8 -8
  71. package/es/slider/index.js +8 -8
  72. package/es/space/index.js +8 -8
  73. package/es/spin/index.js +8 -8
  74. package/es/statistic/index.js +8 -8
  75. package/es/steps/index.js +8 -8
  76. package/es/switch/index.js +8 -8
  77. package/es/table-filter/index.js +145 -139
  78. package/es/table-filter/style.css +1 -1
  79. package/es/tabs/index.js +8 -8
  80. package/es/tag/index.js +9 -9
  81. package/es/time-picker/index.js +8 -8
  82. package/es/timeline/index.js +8 -8
  83. package/es/tooltip/index.js +8 -8
  84. package/es/transfer/index.js +8 -8
  85. package/es/tree/index.js +8 -8
  86. package/es/tree-select/index.js +8 -8
  87. package/es/upload/index.js +8 -8
  88. package/es/verification-code/index.js +2 -2
  89. package/lib/cui.common.js +644 -634
  90. package/lib/cui.umd.js +644 -634
  91. package/lib/cui.umd.min.js +72 -72
  92. package/package.json +107 -107
  93. package/packages/big-table/src/BigTable.vue +3038 -3038
  94. package/packages/big-table/src/assets/style/table-base.less +370 -370
  95. package/packages/big-table/src/components/AutoLayoutButton.vue +270 -270
  96. package/packages/big-table/src/utils/batchEditing.js +34 -27
  97. package/packages/big-table/src/utils/bigTableProps.js +95 -95
  98. package/packages/button/src/ButtonPrint/components/IdentityVerification.vue +181 -181
  99. package/packages/button/src/ButtonPrint/index.vue +728 -724
  100. package/packages/fabric-chart/src/FabricChart.vue +15 -36
  101. package/packages/fabric-chart/src/components/TimeScaleValue.vue +117 -117
  102. package/packages/fabric-chart/src/const/defaultVaule.js +59 -59
  103. package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +4 -3
  104. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +960 -960
  105. package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +135 -133
  106. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +558 -558
  107. package/packages/fabric-chart/src/fabric-chart2/FabricTop.vue +172 -172
  108. package/packages/multi-chat/chat/chatFooter.vue +1598 -1598
  109. package/packages/multi-chat/chat/chatMain.vue +1442 -1442
  110. package/packages/multi-chat/chat/quickReply.vue +439 -439
  111. package/packages/multi-chat/chat/scrollList.vue +1232 -1232
  112. package/packages/multi-chat/setting/baseInfo/index.vue +1302 -1302
  113. package/packages/multi-chat/store/actions.js +448 -448
  114. package/packages/multi-chat/store/state.js +112 -112
  115. package/packages/scale-view/formitem/r-choice.vue +714 -714
  116. package/packages/scale-view/scaleView.vue +2010 -2010
  117. package/packages/select-person/select-person.vue +1658 -1658
  118. package/packages/table-filter/src/base-search-com/BaseSearch.vue +2462 -2462
  119. package/packages/table-filter/src/components/c-tree-select/tree-select.vue +336 -336
  120. package/packages/table-filter/src/components/multi-select/multi-select.vue +219 -219
  121. package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +340 -340
  122. package/packages/table-filter/src/const/dataOptions.js +43 -43
  123. package/packages/table-filter/src/mixins/mixins.js +695 -695
  124. package/packages/table-filter/src/quick-search/QuickSearch.vue +2083 -2083
  125. package/src/directive/preventReClick.js +12 -12
@@ -1,5 +1,5 @@
1
1
  // import { mapMutations, mapActions } from "vuex";
2
- import utils from "@/utils/utils-map";
2
+ import utils from '@/utils/utils-map';
3
3
  export default {
4
4
  props: {
5
5
  // 曾经的getters
@@ -43,10 +43,10 @@ export default {
43
43
  return {
44
44
  isLoadData: this.isLoadData,
45
45
  isLoadColumn: this.isLoadColumn
46
- }
46
+ };
47
47
  },
48
48
  isTableEdit() {
49
- return this.isInlineOperating || this.isInlineAdding
49
+ return this.isInlineOperating || this.isInlineAdding;
50
50
  }
51
51
  },
52
52
  watch: {
@@ -55,7 +55,7 @@ export default {
55
55
  let { isLoadData, isLoadColumn } = obj;
56
56
  if (!(isLoadData && isLoadColumn)) return;
57
57
  if (this.isBatchEditing) return;
58
- this.$emit('tableLoad', true)
58
+ this.$emit('tableLoad', true);
59
59
  },
60
60
  /**
61
61
  * 编辑
@@ -69,7 +69,7 @@ export default {
69
69
  }
70
70
  // 非行内按钮触发
71
71
  if (!this.isRowEditing) {
72
- await this.toggleColumn()
72
+ await this.toggleColumn();
73
73
  }
74
74
  this.hideSelectCloumns();
75
75
  this.handleClickBatchEditBtnByInline();
@@ -90,7 +90,7 @@ export default {
90
90
  if (!val || this.isNestTable) return false;
91
91
  if (this.isTree != 0 || !this.isMatchComponent) return false;
92
92
  if (!this.checkOperateCurrentTable()) return false;
93
- await this.toggleColumn('showColumn')
93
+ await this.toggleColumn('showColumn');
94
94
  this.handleClickBatchCancelBtnByInline();
95
95
  },
96
96
  /**
@@ -109,17 +109,17 @@ export default {
109
109
  this.resetBatchOperationRowStatus();
110
110
  return false;
111
111
  }
112
- await this.toggleColumn()
112
+ await this.toggleColumn();
113
113
  this.hideSelectCloumns();
114
- this.handleClickAddRow()
114
+ this.handleClickAddRow();
115
115
  }
116
116
  },
117
117
  methods: {
118
118
  toggleColumn(key) {
119
- let method = key || 'hideColumn'
119
+ let method = key || 'hideColumn';
120
120
  const xGrid = this.$refs.xGrid;
121
121
  if (!xGrid) return Promise.resolve();
122
- let operate = xGrid.getColumnByField("operatorColumn")
122
+ let operate = xGrid.getColumnByField('operatorColumn');
123
123
  if (method === 'showColumn' && operate.visible) {
124
124
  return Promise.resolve();
125
125
  }
@@ -233,10 +233,18 @@ export default {
233
233
  this.$emit('resetBatchEditDoneStatus');
234
234
 
235
235
  let formDom = document.querySelectorAll('.js-inlineEditForm');
236
- let sliceLen = this.handleEditFormLength();
237
- // HACK: vxeTable行内编辑时复制的DOM节点,无需触发提交
238
- formDom = [...formDom].slice(0, sliceLen);
239
- formDom.forEach(item => {
236
+ let filterFormDom = [];
237
+ [...formDom].map(item => {
238
+ let pNode = item.parentNode?.parentNode;
239
+ if (pNode) {
240
+ if (pNode.classList.contains('vxe-body--column') && !pNode.classList.contains('fixed--hidden')) {
241
+ filterFormDom.push(item);
242
+ }
243
+ }
244
+ });
245
+ if (!filterFormDom.length) return false;
246
+ // // HACK: vxeTable行内编辑时复制的DOM节点,无需触发提交
247
+ filterFormDom.forEach(item => {
240
248
  item.__vue__.handleSubmitForm();
241
249
  });
242
250
  },
@@ -340,22 +348,21 @@ export default {
340
348
  return editColumnMap;
341
349
  },
342
350
  async handleRequestedUniqueKey(id) {
343
- let handleEditFormRequestedUniqueKey = this.editFormApiConfig?.handleEditFormRequestedUniqueKey
351
+ let handleEditFormRequestedUniqueKey = this.editFormApiConfig?.handleEditFormRequestedUniqueKey;
344
352
  if (!handleEditFormRequestedUniqueKey || typeof handleEditFormRequestedUniqueKey !== 'function') {
345
353
  handleEditFormRequestedUniqueKey = this.getPrimaryKeyRequest;
346
354
  }
347
- return handleEditFormRequestedUniqueKey({ tableId: id }).then((val) => {
348
- val && (this.cacheUniqueKey[id] = { value: val, status: true })
349
- })
350
-
355
+ return handleEditFormRequestedUniqueKey({ tableId: id }).then(val => {
356
+ val && (this.cacheUniqueKey[id] = { value: val, status: true });
357
+ });
351
358
  },
352
359
  getPrimaryKeyRequest(params) {
353
360
  return new Promise((resolve, reject) => {
354
361
  this.axios
355
- .get("tableList/getPrimaryKey", { params })
362
+ .get('tableList/getPrimaryKey', { params })
356
363
  .then(({ data }) => {
357
364
  let result;
358
- if (data.result == "SUCCESS") {
365
+ if (data.result == 'SUCCESS') {
359
366
  const { map = {} } = data;
360
367
  result = map.primaryKey || undefined;
361
368
  } else {
@@ -413,7 +420,7 @@ export default {
413
420
  let originalRow = this.pageIndexOldtableData.find(item => {
414
421
  let oldItemVal = utils.handleCurValue(item[this.primaryKey]);
415
422
  let rowVal = utils.handleCurValue(row[this.primaryKey]);
416
- return oldItemVal == rowVal
423
+ return oldItemVal == rowVal;
417
424
  });
418
425
  defaultCombinationForm = this.setDefaultFormData(column.property, fieldItem, originalRow);
419
426
  }
@@ -504,7 +511,7 @@ export default {
504
511
  this.$emit('triggerSpinning', false);
505
512
  return;
506
513
  }
507
- let { listFormUnionSetting } = this
514
+ let { listFormUnionSetting } = this;
508
515
  let { formId } = listFormUnionSetting;
509
516
  let params = this.handleSubmitParams(this.batchFormData);
510
517
  if (!formId || !params) {
@@ -543,7 +550,7 @@ export default {
543
550
  let arr = [];
544
551
  for (let key in batchFormData) {
545
552
  // v[this.primaryKey] 可能为数字
546
- // key 为字符串 用全等匹配不到 改为 ==
553
+ // key 为字符串 用全等匹配不到 改为 ==
547
554
  let matchItem = this.oldtableData.find(v => v[this.primaryKey] == key);
548
555
  let obj = batchFormData[key];
549
556
  if (matchItem) {
@@ -556,11 +563,11 @@ export default {
556
563
  return arr;
557
564
  },
558
565
  savaForm(formId, params) {
559
- let handleEditFormSavaForm = this.editFormApiConfig?.handleEditFormSavaForm
566
+ let handleEditFormSavaForm = this.editFormApiConfig?.handleEditFormSavaForm;
560
567
  if (!handleEditFormSavaForm || typeof handleEditFormSavaForm !== 'function') {
561
- handleEditFormSavaForm = this.savaFormRequest
568
+ handleEditFormSavaForm = this.savaFormRequest;
562
569
  }
563
- return handleEditFormSavaForm(params, { formId })
570
+ return handleEditFormSavaForm(params, { formId });
564
571
  },
565
572
  savaFormRequest(params, config) {
566
573
  let url = `/form/editRows/update/${config.formId}`;
@@ -1,95 +1,95 @@
1
- const bigTableProps = {
2
- data: { type: Array, default: () => [] },
3
- MAX_CHECK_SIZE: [String, Number],
4
- showFooter: Boolean,
5
- sumData: { type: Object, default: () => ({}) },
6
- avgData: { type: Object, default: () => ({}) },
7
- columnConfig: {
8
- type: Object,
9
- default: () => {
10
- return {};
11
- }
12
- },
13
- refreshRow: Number,
14
- relatedItems: {
15
- type: Object,
16
- default: () => {
17
- return {
18
- triggerMethodPc: '', // 相关项打开方式
19
- triggerMethodField: '' // 相关项打开字段
20
- };
21
- }
22
- },
23
- pageVO: {
24
- type: Object,
25
- default: () => {
26
- return {
27
- pageIndex: 1, // 当前第几页
28
- pageSize: 20, // 每页几条数据
29
- total: 20 // 总数多少条
30
- };
31
- }
32
- },
33
- tableOptions: { type: Object, default: () => ({}) },
34
- quickSearchConfig: { type: Array, default: () => [] },
35
- primaryKey: String,
36
- tableDataCache: { type: Array, default: () => [] },
37
- oldtableData: { type: Array, default: () => [] }, // 原始数据
38
- tableName: String,
39
- fieldListOriginal: { type: Array, default: () => [] },
40
- tableParams: { type: Object, default: () => ({}) },
41
- emptyItems: {
42
- type: Object,
43
- default: () => {
44
- return {
45
- noDataImg: 'nodata',
46
- noDataTip: ''
47
- };
48
- }
49
- },
50
- styleSetting: { type: Object, default: () => ({}) },
51
- sysImageSize: { type: Array, default: () => [] },
52
- height: String,
53
- groupCountFields: { type: Array, default: () => [] },
54
- groupCountMap: { type: Object, default: () => ({}) },
55
- listFormUnionSetting: { type: Object, default: () => ({}) },
56
- inlineEditFormConfig: { type: Object, default: () => ({}) },
57
- clickRowData: { type: Object, default: () => ({}) },
58
- btnList: { type: Array, default: () => [] },
59
- spinning: Boolean,
60
- rowGroupSetting: { type: Object, default: () => ({}) },
61
- isInlineOperating: Boolean,
62
- inlineEditCurrentOperateBtnId: String,
63
- tableRefreshCache: { type: Object, default: () => ({}) }, // 记录需要刷新的列表,当切换到当前列表时更新
64
- userInfo: { type: Object, default: () => ({}) },
65
- isInlineAdding: Boolean,
66
- isRowEditing: Boolean,
67
- pageIndexOldtableData: {
68
- // 原始数据
69
- type: Array,
70
- default: () => []
71
- },
72
- submitForm: Function,
73
- isMatchComponent: { type: Boolean, default: true }, // 为了兼容低代码(组件内部)与二次开发平台(vuex)
74
- asyncCount: Boolean,
75
- showSettings: { type: Object, default: () => ({}) },
76
- filterDomPortal: { // 表头筛选挂载的地方
77
- type: String,
78
- default: "body"
79
- },
80
- filterTopOffset: { // 表头 top 调节
81
- type: Number,
82
- default: 0
83
- },
84
- editFormApiConfig: Object, // 编辑表格api
85
- defaultEditAllRow: Boolean,
86
- editTableUid: [String, Number],
87
- curBatchBtnData: { type: Object, default: () => ({}) },
88
- rowBtnAutoLayout:{// 行内按钮自适应布局
89
- type: Boolean,
90
- default: true
91
- },
92
- listCountParams:{ type: Object, default: () => ({}) },
93
- };
94
-
95
- export default bigTableProps;
1
+ const bigTableProps = {
2
+ data: { type: Array, default: () => [] },
3
+ MAX_CHECK_SIZE: [String, Number],
4
+ showFooter: Boolean,
5
+ sumData: { type: Object, default: () => ({}) },
6
+ avgData: { type: Object, default: () => ({}) },
7
+ columnConfig: {
8
+ type: Object,
9
+ default: () => {
10
+ return {};
11
+ }
12
+ },
13
+ refreshRow: Number,
14
+ relatedItems: {
15
+ type: Object,
16
+ default: () => {
17
+ return {
18
+ triggerMethodPc: '', // 相关项打开方式
19
+ triggerMethodField: '' // 相关项打开字段
20
+ };
21
+ }
22
+ },
23
+ pageVO: {
24
+ type: Object,
25
+ default: () => {
26
+ return {
27
+ pageIndex: 1, // 当前第几页
28
+ pageSize: 20, // 每页几条数据
29
+ total: 20 // 总数多少条
30
+ };
31
+ }
32
+ },
33
+ tableOptions: { type: Object, default: () => ({}) },
34
+ quickSearchConfig: { type: Array, default: () => [] },
35
+ primaryKey: String,
36
+ tableDataCache: { type: Array, default: () => [] },
37
+ oldtableData: { type: Array, default: () => [] }, // 原始数据
38
+ tableName: String,
39
+ fieldListOriginal: { type: Array, default: () => [] },
40
+ tableParams: { type: Object, default: () => ({}) },
41
+ emptyItems: {
42
+ type: Object,
43
+ default: () => {
44
+ return {
45
+ noDataImg: 'nodata',
46
+ noDataTip: ''
47
+ };
48
+ }
49
+ },
50
+ styleSetting: { type: Object, default: () => ({}) },
51
+ sysImageSize: { type: Array, default: () => [] },
52
+ height: String,
53
+ groupCountFields: { type: Array, default: () => [] },
54
+ groupCountMap: { type: Object, default: () => ({}) },
55
+ listFormUnionSetting: { type: Object, default: () => ({}) },
56
+ inlineEditFormConfig: { type: Object, default: () => ({}) },
57
+ clickRowData: { type: Object, default: () => ({}) },
58
+ btnList: { type: Array, default: () => [] },
59
+ spinning: Boolean,
60
+ rowGroupSetting: { type: Object, default: () => ({}) },
61
+ isInlineOperating: Boolean,
62
+ inlineEditCurrentOperateBtnId: String,
63
+ tableRefreshCache: { type: Object, default: () => ({}) }, // 记录需要刷新的列表,当切换到当前列表时更新
64
+ userInfo: { type: Object, default: () => ({}) },
65
+ isInlineAdding: Boolean,
66
+ isRowEditing: Boolean,
67
+ pageIndexOldtableData: {
68
+ // 原始数据
69
+ type: Array,
70
+ default: () => []
71
+ },
72
+ submitForm: Function,
73
+ isMatchComponent: { type: Boolean, default: true }, // 为了兼容低代码(组件内部)与二次开发平台(vuex)
74
+ asyncCount: Boolean,
75
+ showSettings: { type: Object, default: () => ({}) },
76
+ filterDomPortal: { // 表头筛选挂载的地方
77
+ type: String,
78
+ default: "body"
79
+ },
80
+ filterTopOffset: { // 表头 top 调节
81
+ type: Number,
82
+ default: 0
83
+ },
84
+ editFormApiConfig: Object, // 编辑表格api
85
+ defaultEditAllRow: Boolean,
86
+ editTableUid: [String, Number],
87
+ curBatchBtnData: { type: Object, default: () => ({}) },
88
+ rowBtnAutoLayout:{// 行内按钮自适应布局
89
+ type: Boolean,
90
+ default: true
91
+ },
92
+ listCountParams:{ type: Object, default: () => ({}) },
93
+ };
94
+
95
+ export default bigTableProps;