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.
- package/CHANGELOG.md +88 -59
- package/es/affix/index.js +8 -8
- package/es/age/index.js +10 -10
- package/es/alert/index.js +8 -8
- package/es/anchor/index.js +8 -8
- package/es/auto-complete/index.js +8 -8
- package/es/avatar/index.js +8 -8
- package/es/back-top/index.js +8 -8
- package/es/badge/index.js +8 -8
- package/es/base/index.js +8 -8
- package/es/big-table/index.js +114 -94
- package/es/big-table/style.css +1 -1
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +22 -22
- package/es/calendar/index.js +8 -8
- package/es/captcha/index.js +3 -3
- package/es/card/index.js +8 -8
- package/es/carousel/index.js +8 -8
- package/es/cascader/index.js +8 -8
- package/es/checkbox/index.js +9 -9
- package/es/col/index.js +8 -8
- package/es/collapse/index.js +8 -8
- package/es/color-picker/index.js +1 -1
- package/es/comment/index.js +8 -8
- package/es/config-provider/index.js +8 -8
- package/es/date-picker/index.js +8 -8
- package/es/descriptions/index.js +8 -8
- package/es/divider/index.js +8 -8
- package/es/drag-layout/index.js +3 -3
- package/es/drawer/index.js +8 -8
- package/es/dropdown/index.js +8 -8
- package/es/editor/index.js +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +490 -275
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/form-table/index.js +66 -66
- package/es/index/index.js +1008 -740
- package/es/index/style.css +1 -1
- package/es/input/index.js +9 -9
- package/es/input-number/index.js +8 -8
- package/es/layout/index.js +8 -8
- package/es/list/index.js +8 -8
- package/es/locale-provider/index.js +8 -8
- package/es/map/index.js +9 -9
- package/es/mentions/index.js +8 -8
- package/es/menu/index.js +8 -8
- package/es/message/index.js +8 -8
- package/es/multi-chat/index.js +76 -76
- package/es/multi-chat-client/index.js +70 -70
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +14 -14
- package/es/multi-chat-setting/index.js +22 -22
- package/es/multi-chat-sip/index.js +1 -1
- package/es/notification/index.js +8 -8
- package/es/page-header/index.js +8 -8
- package/es/pagination/index.js +8 -8
- package/es/popconfirm/index.js +8 -8
- package/es/popover/index.js +8 -8
- package/es/progress/index.js +8 -8
- package/es/radio/index.js +9 -9
- package/es/rate/index.js +8 -8
- package/es/result/index.js +8 -8
- package/es/row/index.js +8 -8
- package/es/scale-container/index.js +1 -1
- package/es/scale-view/index.js +61 -49
- package/es/scale-view/style.css +1 -1
- package/es/select/index.js +12 -12
- package/es/select-label/index.js +11 -11
- package/es/select-person/index.js +2 -2
- package/es/shortcut-setter/index.js +10 -10
- package/es/skeleton/index.js +8 -8
- package/es/slider/index.js +8 -8
- package/es/space/index.js +8 -8
- package/es/spin/index.js +8 -8
- package/es/statistic/index.js +8 -8
- package/es/steps/index.js +8 -8
- package/es/switch/index.js +8 -8
- package/es/table-filter/index.js +102 -81
- package/es/table-filter/style.css +1 -1
- package/es/tabs/index.js +8 -8
- package/es/tag/index.js +9 -9
- package/es/time-picker/index.js +8 -8
- package/es/timeline/index.js +8 -8
- package/es/tooltip/index.js +8 -8
- package/es/transfer/index.js +8 -8
- package/es/tree/index.js +8 -8
- package/es/tree-select/index.js +8 -8
- package/es/upload/index.js +8 -8
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +1004 -736
- package/lib/cui.umd.js +1004 -736
- package/lib/cui.umd.min.js +22 -22
- package/package.json +1 -1
- package/packages/big-table/src/BigTable.vue +16 -5
- package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +3 -3
- package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +20 -20
- package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +54 -20
- package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +25 -24
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +66 -11
- package/packages/scale-view/scaleView.vue +7 -0
- package/packages/table-filter/src/mixins/wordBookutils.js +36 -25
- 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:
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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] ?
|
|
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
|
-
|
|
74
|
+
myName: t,
|
|
63
75
|
showKeys: t,
|
|
64
|
-
|
|
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)
|