cnhis-design-vue 2.1.11 → 2.1.12
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 +18 -18
- 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 +117 -97
- package/es/big-table/style.css +1 -1
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +28 -28
- 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/empty/index.js +8 -8
- package/es/fabric-chart/index.js +140 -87
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/form-table/index.js +62 -62
- package/es/index/index.js +985 -770
- 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 +75 -75
- package/es/multi-chat-client/index.js +69 -69
- 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-view/index.js +132 -218
- package/es/scale-view/style.css +1 -1
- package/es/select/index.js +11 -11
- package/es/select-label/index.js +11 -11
- package/es/select-person/index.js +2 -2
- 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 +362 -134
- 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 +1123 -897
- package/lib/cui.umd.js +1123 -897
- package/lib/cui.umd.min.js +34 -34
- package/package.json +2 -2
- package/packages/big-table/src/BigTable.vue +9 -1
- package/packages/big-table/src/utils/bigTableProps.js +2 -1
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +42 -28
- package/packages/scale-view/formitem/r-choice.vue +45 -103
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +6 -2
- package/packages/table-filter/src/components/c-tree-select/tree-select.vue +1 -1
- package/packages/table-filter/src/components/multi-select/multi-select.vue +7 -3
- package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +1 -1
- package/packages/table-filter/src/const/dataOptions.js +43 -0
- package/packages/table-filter/src/mixins/mixins.js +15 -2
- package/packages/table-filter/src/quick-search/QuickSearch.vue +64 -19
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
<template v-if="showPercent(item)">
|
|
158
158
|
<a-input-number
|
|
159
159
|
class="CL-input"
|
|
160
|
-
style="width:
|
|
160
|
+
:style="`width: ${getEleWidth(item)}`"
|
|
161
161
|
v-model="item.CL"
|
|
162
162
|
:min="0"
|
|
163
163
|
:max="100"
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
<a-input
|
|
169
169
|
class="CL-input"
|
|
170
170
|
:style="{
|
|
171
|
-
width:
|
|
171
|
+
width: `${getEleWidth(item)}`,
|
|
172
172
|
'font-family': item.PASSWORDTYPE ? 'text-security-disc' : 'inherit'
|
|
173
173
|
}"
|
|
174
174
|
v-model="item.CL"
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
<template v-if="showPercent(item)">
|
|
191
191
|
<a-input-number
|
|
192
192
|
class="EQ-input"
|
|
193
|
-
style="width:
|
|
193
|
+
:style="`width: ${getEleWidth(item)}`"
|
|
194
194
|
v-model="item.EQ"
|
|
195
195
|
:min="0"
|
|
196
196
|
:max="100"
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
:class="{ 'psw-icon': item.comAttr == 'PASSWORD' }"
|
|
203
203
|
class="EQ-input"
|
|
204
204
|
:style="{
|
|
205
|
-
width:
|
|
205
|
+
width: `${getEleWidth(item)}`,
|
|
206
206
|
'font-family': item.PASSWORDTYPE ? 'text-security-disc' : 'inherit'
|
|
207
207
|
}"
|
|
208
208
|
v-model="item.EQ"
|
|
@@ -225,14 +225,14 @@
|
|
|
225
225
|
<div v-if="item.con == 'DATE'">
|
|
226
226
|
<a-radio-group v-model="item.DATE.con" buttonStyle="solid">
|
|
227
227
|
<a-radio-button
|
|
228
|
-
v-for="date in dateTeam"
|
|
228
|
+
v-for="date in item.dateTeam"
|
|
229
229
|
v-show="!item.showDate"
|
|
230
230
|
@click="clickRadioGroup(item.DATE, date.con)"
|
|
231
231
|
:key="date.con"
|
|
232
232
|
:value="date.con"
|
|
233
233
|
>{{ getI18nText(date.title, date.name) }}
|
|
234
234
|
</a-radio-button>
|
|
235
|
-
<span :class="['check-date-btn', item.marginx]" @click="checkDate(item)">{{
|
|
235
|
+
<span v-show="item.advanceOptionSetting != 1" :class="['check-date-btn', item.marginx]" @click="checkDate(item)">{{
|
|
236
236
|
getI18nText('1.1.4.52', '选择时间')
|
|
237
237
|
}}</span>
|
|
238
238
|
<div class="check-date" v-show="item.showDate">
|
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
{{ sea.showKeys || sea.myName }}
|
|
337
337
|
</a-select-option>
|
|
338
338
|
</a-select> -->
|
|
339
|
-
<template v-if="item.con == 'QUOTE'">
|
|
339
|
+
<template v-if="item.con == 'QUOTE' || item.com == 'SelectMui'">
|
|
340
340
|
<c-tree-select
|
|
341
341
|
v-if="item.comType === 'treeSelect'"
|
|
342
342
|
:item="item"
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
|
|
358
358
|
<a-checkbox-group
|
|
359
359
|
class="check-box"
|
|
360
|
-
v-if="item.con == 'CONVERT'"
|
|
360
|
+
v-else-if="item.con == 'CONVERT'"
|
|
361
361
|
:options="item.setting.showSetting"
|
|
362
362
|
v-model="item.CONVERT"
|
|
363
363
|
/>
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
<template v-if="showPercent(item)">
|
|
488
488
|
<a-input-number
|
|
489
489
|
class="CL-input"
|
|
490
|
-
style="width:
|
|
490
|
+
:style="`width: ${getEleWidth(item)}`"
|
|
491
491
|
v-model="item.CL"
|
|
492
492
|
:min="0"
|
|
493
493
|
:max="100"
|
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
/>
|
|
496
496
|
</template>
|
|
497
497
|
<template v-else>
|
|
498
|
-
<a-input class="CL-input" style="width:
|
|
498
|
+
<a-input class="CL-input" :style="`width: ${getEleWidth(item)}`" v-model="item.CL" allowClear>
|
|
499
499
|
</a-input>
|
|
500
500
|
</template>
|
|
501
501
|
</template>
|
|
@@ -503,7 +503,7 @@
|
|
|
503
503
|
<template v-if="showPercent(item)">
|
|
504
504
|
<a-input-number
|
|
505
505
|
class="EQ-input"
|
|
506
|
-
style="width:
|
|
506
|
+
:style="`width: ${getEleWidth(item)}`"
|
|
507
507
|
v-model="item.EQ"
|
|
508
508
|
:min="0"
|
|
509
509
|
:max="100"
|
|
@@ -513,7 +513,7 @@
|
|
|
513
513
|
<template v-else>
|
|
514
514
|
<a-input
|
|
515
515
|
class="EQ-input"
|
|
516
|
-
style="width:
|
|
516
|
+
:style="`width: ${getEleWidth(item)}`"
|
|
517
517
|
v-model="item.EQ"
|
|
518
518
|
:placeholder="item.isPreciseSearch || item.fieldType == 'JSONB' ? '' : getI18nText('1.9.6', '区间搜素用~分割')"
|
|
519
519
|
allowClear
|
|
@@ -728,6 +728,7 @@ import wordBookutils from '../mixins/wordBookutils';
|
|
|
728
728
|
import cTreeSelect from '../components/c-tree-select/tree-select';
|
|
729
729
|
import create from '@/core/create';
|
|
730
730
|
import utils from '@/utils/utils-map';
|
|
731
|
+
import {dataOptions} from '../const/dataOptions'
|
|
731
732
|
export default create({
|
|
732
733
|
name: "quick-search",
|
|
733
734
|
mixins: [durationMixin, $utils, filterApiFn, tableSearchCon],
|
|
@@ -789,6 +790,11 @@ export default create({
|
|
|
789
790
|
return item.settingObj?.attr === "PERCENTAGE" || false;
|
|
790
791
|
};
|
|
791
792
|
},
|
|
793
|
+
getEleWidth(){
|
|
794
|
+
return function(item) {
|
|
795
|
+
return `${item.advanceColWidth||200}px`
|
|
796
|
+
}
|
|
797
|
+
},
|
|
792
798
|
hasRelationQuickSearch() {
|
|
793
799
|
return this.relationQuickSearch.findIndex(i => i.fieldList && i.fieldList.length) != -1;
|
|
794
800
|
},
|
|
@@ -840,7 +846,7 @@ export default create({
|
|
|
840
846
|
{ title: '1.2.5.58', units: 1, con: 'DAY', name: '天' },
|
|
841
847
|
{ title: '1.2.5.59', units: 2, con: 'WEEK', name: '周' },
|
|
842
848
|
{ title: '1.2.1.11.18', units: 1, con: 'MONTH', name: '月' },
|
|
843
|
-
{ title: '1.9.273', units: 1, con: 'YEAR', name: '岁' }
|
|
849
|
+
{ title: '1.9.273', units: 1, con: 'YEAR', name: '岁' },
|
|
844
850
|
],
|
|
845
851
|
isChangeWindow: false,
|
|
846
852
|
modalWidth: "700px",
|
|
@@ -851,7 +857,8 @@ export default create({
|
|
|
851
857
|
parentNames: [],
|
|
852
858
|
showAdd: false,
|
|
853
859
|
addVal: "",
|
|
854
|
-
fetchingWordbook: false
|
|
860
|
+
fetchingWordbook: false,
|
|
861
|
+
...dataOptions
|
|
855
862
|
};
|
|
856
863
|
},
|
|
857
864
|
watch: {
|
|
@@ -996,11 +1003,17 @@ export default create({
|
|
|
996
1003
|
if (el.setting) {
|
|
997
1004
|
// el.seting 可能是 string / object
|
|
998
1005
|
el.setting = typeof el.setting == "string" ? JSON.parse(el.setting) : el.setting;
|
|
1006
|
+
|
|
1007
|
+
let advanceOptionSetting = el?.advanceOptionSetting;
|
|
1008
|
+
// 单选
|
|
1009
|
+
let optionSetting0 =String(advanceOptionSetting) == '0';
|
|
999
1010
|
if (!vexutils.isEmpty(el.setting.wordbook)) {
|
|
1000
1011
|
let isTree = "tree" === el?.setting?.wordbook?.showType;
|
|
1001
1012
|
let comType = isTree ? 'treeSelect' : 'SelectMuiWordBook';
|
|
1002
1013
|
let defVal = isTree ? [] : [];
|
|
1003
|
-
|
|
1014
|
+
if(optionSetting0){
|
|
1015
|
+
defVal = ""
|
|
1016
|
+
}
|
|
1004
1017
|
this.$set(el, "con", "QUOTE");
|
|
1005
1018
|
this.$set(el, "dataSource", []);
|
|
1006
1019
|
this.$set(el, "QUOTE", []);
|
|
@@ -1032,8 +1045,21 @@ export default create({
|
|
|
1032
1045
|
// this.$set(set, "label", set.change_text);
|
|
1033
1046
|
// this.$set(set, "value", JSON.stringify(set.filter));
|
|
1034
1047
|
// });
|
|
1048
|
+
/**
|
|
1049
|
+
* 映射方式的单选模式
|
|
1050
|
+
*/
|
|
1051
|
+
if(optionSetting0){
|
|
1052
|
+
this.$set(el, "com", "SelectMui");
|
|
1053
|
+
this.$set(el, "comType", "SelectMui");
|
|
1054
|
+
const labelList = el.setting.showSetting.map(i => {
|
|
1055
|
+
i.labelName = i.change_text;
|
|
1056
|
+
return i;
|
|
1057
|
+
});
|
|
1058
|
+
this.$set(el, "labelList", labelList);
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1035
1061
|
this.$set(el.setting, "showSetting", showSetting);
|
|
1036
|
-
this.$set(el, "CONVERT", []);
|
|
1062
|
+
this.$set(el, "CONVERT",optionSetting0? "": []);
|
|
1037
1063
|
return;
|
|
1038
1064
|
}
|
|
1039
1065
|
}
|
|
@@ -1076,15 +1102,21 @@ export default create({
|
|
|
1076
1102
|
} else {
|
|
1077
1103
|
// 判断是否有默认值
|
|
1078
1104
|
const value = this.getSearchDefValueByLimit(el, this.searchFieldLimit);
|
|
1079
|
-
|
|
1105
|
+
let hasValue = Array.isArray(value);
|
|
1106
|
+
let advanceOptionSetting = el?.advanceOptionSetting;
|
|
1107
|
+
// 选择时间模式
|
|
1108
|
+
let optionSetting1 =String(advanceOptionSetting) == '1'
|
|
1109
|
+
|
|
1080
1110
|
this.$set(el, "con", "DATE");
|
|
1081
|
-
this.$set(el, "showDate", hasValue);
|
|
1082
|
-
this.$set(el, "marginx", hasValue ? "mr" : "ml");
|
|
1111
|
+
this.$set(el, "showDate", optionSetting1 || hasValue);
|
|
1112
|
+
this.$set(el, "marginx",optionSetting1 || hasValue ? "mr" : "ml");
|
|
1083
1113
|
this.$set(el, "DATE", {
|
|
1084
1114
|
con: hasValue ? "IN" : null,
|
|
1085
1115
|
start_val: hasValue ? value[0] : null,
|
|
1086
1116
|
end_val: hasValue ? value[1] : null
|
|
1087
1117
|
});
|
|
1118
|
+
let dateTeam = optionSetting1 ? [] : this[`dateTeam${advanceOptionSetting}`] || this.dateTeam0;
|
|
1119
|
+
this.$set(el, 'dateTeam' , dateTeam)
|
|
1088
1120
|
}
|
|
1089
1121
|
} else if (el.fieldType == "TEXT") {
|
|
1090
1122
|
/**
|
|
@@ -1165,6 +1197,7 @@ export default create({
|
|
|
1165
1197
|
}
|
|
1166
1198
|
},
|
|
1167
1199
|
dropdownVisibleChange(open, item) {
|
|
1200
|
+
if (item.comType == "SelectMui" && String(item.advanceOptionSetting) === '0') return;
|
|
1168
1201
|
if (open) {
|
|
1169
1202
|
let obj = {};
|
|
1170
1203
|
if (item.setting.wordbook.params) {
|
|
@@ -1187,6 +1220,7 @@ export default create({
|
|
|
1187
1220
|
* 输入自动联想
|
|
1188
1221
|
*/
|
|
1189
1222
|
handleSearch(value, item, config={}) {
|
|
1223
|
+
if (item.comType == "SelectMui" && String(item.advanceOptionSetting) === '0') return;
|
|
1190
1224
|
let params = {
|
|
1191
1225
|
keyword: value,
|
|
1192
1226
|
autograph: this.curAutograph
|
|
@@ -1288,6 +1322,9 @@ export default create({
|
|
|
1288
1322
|
let item = arr[i];
|
|
1289
1323
|
let value = "";
|
|
1290
1324
|
let limit_date = "";
|
|
1325
|
+
let advanceOptionSetting = item?.advanceOptionSetting;
|
|
1326
|
+
// 单选
|
|
1327
|
+
let optionSetting0 =String(advanceOptionSetting) === '0';
|
|
1291
1328
|
if (item.EQ || item.CL) {
|
|
1292
1329
|
value = item.EQ || item.CL;
|
|
1293
1330
|
if (item.settingObj?.attr === "PERCENTAGE") {
|
|
@@ -1320,6 +1357,14 @@ export default create({
|
|
|
1320
1357
|
}
|
|
1321
1358
|
return item;
|
|
1322
1359
|
});
|
|
1360
|
+
} else if((item.comType == 'SelectMui'&& optionSetting0)){
|
|
1361
|
+
let i = item.value;
|
|
1362
|
+
let c = item?.labelList[i];
|
|
1363
|
+
if (item.con == "CONVERT") {
|
|
1364
|
+
value = c?.filter
|
|
1365
|
+
} else {
|
|
1366
|
+
value= c?.labelName;
|
|
1367
|
+
}
|
|
1323
1368
|
} else if (item.DATE && !item.AGEAttr) {
|
|
1324
1369
|
// 年龄组件的不按照 date 类型处理
|
|
1325
1370
|
if (item.DATE.start_val || item.DATE.end_val) {
|