cnhis-design-vue 2.1.63 → 2.1.65

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 (104) hide show
  1. package/CHANGELOG.md +88 -59
  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 +114 -94
  12. package/es/big-table/style.css +1 -1
  13. package/es/breadcrumb/index.js +8 -8
  14. package/es/button/index.js +22 -22
  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/ellipsis/index.js +1 -1
  34. package/es/empty/index.js +8 -8
  35. package/es/fabric-chart/index.js +490 -275
  36. package/es/form/index.js +8 -8
  37. package/es/form-model/index.js +8 -8
  38. package/es/form-table/index.js +66 -66
  39. package/es/index/index.js +1008 -740
  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 +76 -76
  51. package/es/multi-chat-client/index.js +70 -70
  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 +22 -22
  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-container/index.js +1 -1
  67. package/es/scale-view/index.js +61 -49
  68. package/es/scale-view/style.css +1 -1
  69. package/es/select/index.js +12 -12
  70. package/es/select-label/index.js +11 -11
  71. package/es/select-person/index.js +2 -2
  72. package/es/shortcut-setter/index.js +10 -10
  73. package/es/skeleton/index.js +8 -8
  74. package/es/slider/index.js +8 -8
  75. package/es/space/index.js +8 -8
  76. package/es/spin/index.js +8 -8
  77. package/es/statistic/index.js +8 -8
  78. package/es/steps/index.js +8 -8
  79. package/es/switch/index.js +8 -8
  80. package/es/table-filter/index.js +102 -81
  81. package/es/table-filter/style.css +1 -1
  82. package/es/tabs/index.js +8 -8
  83. package/es/tag/index.js +9 -9
  84. package/es/time-picker/index.js +8 -8
  85. package/es/timeline/index.js +8 -8
  86. package/es/tooltip/index.js +8 -8
  87. package/es/transfer/index.js +8 -8
  88. package/es/tree/index.js +8 -8
  89. package/es/tree-select/index.js +8 -8
  90. package/es/upload/index.js +8 -8
  91. package/es/verification-code/index.js +2 -2
  92. package/lib/cui.common.js +1004 -736
  93. package/lib/cui.umd.js +1004 -736
  94. package/lib/cui.umd.min.js +22 -22
  95. package/package.json +1 -1
  96. package/packages/big-table/src/BigTable.vue +16 -5
  97. package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +3 -3
  98. package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +20 -20
  99. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +54 -20
  100. package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +25 -24
  101. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +66 -11
  102. package/packages/scale-view/scaleView.vue +7 -0
  103. package/packages/table-filter/src/mixins/wordBookutils.js +36 -25
  104. package/packages/table-filter/src/quick-search/QuickSearch.vue +5 -0
@@ -1,11 +1,11 @@
1
1
  import vexutils from '@/utils/vexutils';
2
2
 
3
- const SYMBOL = "<&=&>"
3
+ const SYMBOL = '<&=&>';
4
4
  /**
5
5
  * 处理 getWordbookData 接口返回的数据以及配置
6
6
  */
7
7
  const formatWordbookDataUtils = {
8
- hasArray: (arr) => Array.isArray(arr) && arr.length > 0,
8
+ hasArray: arr => Array.isArray(arr) && arr.length > 0,
9
9
  handleWordbookData(item, data, params) {
10
10
  // this.$set(item, "hasFieldList", false);
11
11
  let { setting = {} } = item;
@@ -17,52 +17,64 @@ const formatWordbookDataUtils = {
17
17
  let searchPageConfig = {};
18
18
 
19
19
  if (defaultValue && defaultValueTitle) {
20
+ // 保存的时候值会变成字符串, 如果是数字的话回显会出问题, 这里全部处理成字符串
21
+ if (typeof defaultValue === 'number') {
22
+ defaultValue = String(defaultValue);
23
+ }
20
24
  defaultItem = {
21
25
  myName: defaultValue,
22
26
  showKeys: defaultValueTitle
23
27
  };
24
28
  }
25
29
  if (data && data.result) {
26
- let reqParams = data?.reqParams || {}
30
+ let reqParams = data?.reqParams || {};
27
31
 
28
- let { page, hasNextPage,fieldList } = data.map;
29
- searchPageConfig = Object.assign(item.searchPageConfig, {
30
- page,
31
- hasNextPage,
32
- isRequest: true,
33
- keyword: params?.keyword || undefined,
34
- asyncCount: reqParams?.asyncCount || undefined
35
- });
32
+ let { page, hasNextPage, fieldList } = data.map;
33
+ searchPageConfig = Object.assign(item.searchPageConfig, {
34
+ page,
35
+ hasNextPage,
36
+ isRequest: true,
37
+ keyword: params?.keyword || undefined,
38
+ asyncCount: reqParams?.asyncCount || undefined
39
+ });
36
40
  // 数组赋值并添加唯一name
37
41
  let rows = data.map.rows.map(row => {
38
42
  let showKeysStr = [];
39
43
  showKeys.forEach(ren => {
40
- let str = vexutils.stringToValue(row[ren],'change_text')
44
+ let str = vexutils.stringToValue(row[ren], 'change_text');
41
45
  showKeysStr.push(str);
42
46
  });
43
- let name = vexutils.stringToValue(row[item.setting.wordbook.field_key],'value')
47
+ let name = vexutils.stringToValue(row[item.setting.wordbook.field_key], 'value');
48
+ // 保存的时候值会变成字符串, 如果是数字的话回显会出问题, 这里全部处理成字符串
49
+ if (typeof name === 'number') {
50
+ name = String(name);
51
+ }
44
52
  return Object.assign(row, {
45
53
  myName: name,
46
54
  showKeys: showKeysStr.join(SYMBOL),
47
- _show_title: showKeysStr.join(" ")
55
+ _show_title: showKeysStr.join(' ')
48
56
  });
49
57
  });
50
58
  // 数组对象去重
51
59
  let obj = {};
52
60
  resArr = rows.reduce((cur, next) => {
53
- obj[next.myName] ? "" : (obj[next.myName] = true && cur.push(next));
61
+ obj[next.myName] ? '' : (obj[next.myName] = true && cur.push(next));
54
62
  return cur;
55
63
  }, []);
56
64
  if (defaultItem) {
57
65
  resArr.unshift(defaultItem);
58
66
  }
59
- if(formatWordbookDataUtils.hasArray(fieldList) && formatWordbookDataUtils.hasArray(showKeys) && showKeys.length > 1){
60
- let t = formatWordbookDataUtils.getTitleHeader(fieldList,showKeys);
67
+ if (formatWordbookDataUtils.hasArray(fieldList) && formatWordbookDataUtils.hasArray(showKeys) && showKeys.length > 1) {
68
+ let t = formatWordbookDataUtils.getTitleHeader(fieldList, showKeys);
69
+ // 保存的时候值会变成字符串, 如果是数字的话回显会出问题, 这里全部处理成字符串
70
+ if (typeof t === 'number') {
71
+ t = String(t);
72
+ }
61
73
  resArr.unshift({
62
- myName: t,
74
+ myName: t,
63
75
  showKeys: t,
64
- sid: Math.random()
65
- })
76
+ sid: Math.random()
77
+ });
66
78
  // this.$set(item, "hasFieldList", true);
67
79
  hasFieldList = true;
68
80
  }
@@ -70,10 +82,10 @@ const formatWordbookDataUtils = {
70
82
  }
71
83
 
72
84
  return {
73
- rows:resArr,
85
+ rows: resArr,
74
86
  hasFieldList,
75
87
  searchPageConfig
76
- }
88
+ };
77
89
  },
78
90
 
79
91
  // 下拉搜索框获取字段title
@@ -95,8 +107,7 @@ const formatWordbookDataUtils = {
95
107
  });
96
108
  let res = titleHeader.join(SYMBOL);
97
109
  return res;
98
- },
99
- }
100
-
110
+ }
111
+ };
101
112
 
102
113
  export default formatWordbookDataUtils;
@@ -1012,6 +1012,11 @@ export default create({
1012
1012
  if (find) {
1013
1013
  let value = find?.value
1014
1014
  let isTrance = item.CONVERT && Array.isArray(item.CONVERT) || item.comType == "SelectMui" && item.con == "CONVERT"
1015
+ // wordbook多选
1016
+ let isWordBookMulti = value && item.comType === "SelectMuiWordBook"&& typeof value ==='string' && value.includes('|#|')
1017
+ if(isWordBookMulti) {
1018
+ value = value.split('|#|')
1019
+ }
1015
1020
  if(Array.isArray(value) && isTrance){
1016
1021
  let value = find?.value?.map?.(item => JSON.stringify(item)) || find.value;
1017
1022
  value = value.filter(Boolean)