cnhis-design-vue 2.1.44 → 2.1.46
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 +24 -2
- 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 +225 -139
- 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/empty/index.js +8 -8
- package/es/fabric-chart/index.js +49 -35
- 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 +787 -565
- 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 +88 -67
- 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 +188 -87
- 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 +784 -563
- package/lib/cui.umd.js +784 -563
- package/lib/cui.umd.min.js +23 -23
- package/package.json +1 -1
- package/packages/big-table/src/BigTable.vue +23 -8
- package/packages/big-table/src/utils/bigTableProps.js +4 -0
- package/packages/big-table/src/utils/tableParse.js +41 -0
- package/packages/fabric-chart/src/const/defaultVaule.js +59 -59
- package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +23 -16
- package/packages/scale-view/formitem/r-choice.vue +13 -1
- package/packages/scale-view/scaleView.vue +2010 -2010
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +121 -50
- package/packages/table-filter/src/components/multi-select/multi-select.vue +8 -0
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
</li>
|
|
54
54
|
<!-- start--筛选外显--start -->
|
|
55
55
|
<template v-for="item in outSearchFieldList">
|
|
56
|
-
<outQuickSearch :key="item.id + item.random_key" :item="item" :filterApiConfig="filterApiConfigOutSearch" @outFilterChange="outFilterChange"></outQuickSearch>
|
|
56
|
+
<outQuickSearch :key="item.id + item.random_key" :item="item" :ref="item.columnName + item.random_key" :filterApiConfig="filterApiConfigOutSearch" @outFilterChange="outFilterChange"></outQuickSearch>
|
|
57
57
|
</template>
|
|
58
58
|
<!-- end--筛选外显--end -->
|
|
59
59
|
|
|
@@ -67,41 +67,48 @@
|
|
|
67
67
|
|
|
68
68
|
<li v-if="isShowSetting('hideSearch') && !showRelatedTreeBtn" ref="inputSearchLi" class="baseSearch-input-search">
|
|
69
69
|
<template v-if="outSearchFieldList && outSearchFieldList.length">
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<
|
|
81
|
-
<a-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
70
|
+
<slot name="searchInput" :width="(searchInputWidth || inputSearchW)" :searchPlaceHolder="searchPlaceHolder" :showPlaceholderPrefix="showPlaceholderPrefix" :type="'outSearch'">
|
|
71
|
+
<a-input
|
|
72
|
+
:style="{ width: (searchInputWidth || inputSearchW) + 'px', margin: '0 8px 8px 0' }"
|
|
73
|
+
allowClear
|
|
74
|
+
:placeholder="searchPlaceHolder"
|
|
75
|
+
:value="currentValue"
|
|
76
|
+
@input="$emit('input', $event.target.value)"
|
|
77
|
+
@pressEnter="outFilterChange"
|
|
78
|
+
class="input-search-com"
|
|
79
|
+
>
|
|
80
|
+
<template slot="prefix" v-if="showPlaceholderPrefix">
|
|
81
|
+
<a-tooltip :title="searchPlaceHolder" overlayClassName="basesearch-placeholder-tooltip">
|
|
82
|
+
<a-icon type="info-circle" class="search-placeholder-icon" />
|
|
83
|
+
</a-tooltip>
|
|
84
|
+
</template>
|
|
85
|
+
</a-input>
|
|
86
|
+
</slot>
|
|
85
87
|
</template>
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
<
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
88
|
+
|
|
89
|
+
<template v-else>
|
|
90
|
+
<slot name="searchInput" :width="(searchInputWidth || inputSearchW)" :searchPlaceHolder="searchPlaceHolder" :showPlaceholderPrefix="showPlaceholderPrefix" :type="'default'">
|
|
91
|
+
<a-input-search
|
|
92
|
+
class="my-input-search input-search-com"
|
|
93
|
+
:style="{ width: (searchInputWidth || inputSearchW) + 'px' }"
|
|
94
|
+
@search="onSearch"
|
|
95
|
+
allowClear
|
|
96
|
+
:placeholder="searchPlaceHolder"
|
|
97
|
+
:value="currentValue"
|
|
98
|
+
@input="$emit('input', $event.target.value)"
|
|
99
|
+
>
|
|
100
|
+
<template slot="prefix" v-if="showPlaceholderPrefix">
|
|
101
|
+
<a-tooltip :title="searchPlaceHolder" overlayClassName="basesearch-placeholder-tooltip">
|
|
102
|
+
<a-icon type="info-circle" class="search-placeholder-icon" />
|
|
103
|
+
</a-tooltip>
|
|
104
|
+
</template>
|
|
105
|
+
<a-button slot="enterButton" type="primary">
|
|
106
|
+
<svg-icon icon-class="xitongtubiaosousuo"></svg-icon>
|
|
107
|
+
</a-button>
|
|
108
|
+
</a-input-search>
|
|
109
|
+
</slot>
|
|
110
|
+
</template>
|
|
111
|
+
|
|
105
112
|
</li>
|
|
106
113
|
<li v-if="outSearchFieldList && outSearchFieldList.length">
|
|
107
114
|
<a-button type="primary" @click="outFilterChange" style="margin: 0 8px 8px 0">
|
|
@@ -129,20 +136,22 @@
|
|
|
129
136
|
<!-- 平铺列表 tree -->
|
|
130
137
|
<template v-if="showRelatedTreeBtn">
|
|
131
138
|
<li v-if="showRelatedSearch" :class="[isRelatedSearchFold ? 'related-search-input' : 'related-search-input-expand']">
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
<a-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
<slot name="searchInput" :searchPlaceHolder="searchPlaceHolder" :showPlaceholderPrefix="showPlaceholderPrefix" :type="'relatedTreeSearch'" :isRelatedSearchFold="isRelatedSearchFold" >
|
|
140
|
+
<a-input-search
|
|
141
|
+
ref="relatedSearchInput"
|
|
142
|
+
class="my-input-search my-input-search-related"
|
|
143
|
+
placeholder="请输入关键字搜索"
|
|
144
|
+
@search="onRelatedSearch"
|
|
145
|
+
allowClear
|
|
146
|
+
:value="currentValue"
|
|
147
|
+
@input="$emit('input', $event.target.value)"
|
|
148
|
+
>
|
|
149
|
+
<a-button slot="enterButton" type="primary">
|
|
150
|
+
<a-icon type="search" />
|
|
151
|
+
<!-- <svg-icon icon-class="xitongtubiaosousuo"></svg-icon> -->
|
|
152
|
+
</a-button>
|
|
153
|
+
</a-input-search>
|
|
154
|
+
</slot>
|
|
146
155
|
</li>
|
|
147
156
|
<template v-if="rowTileBtnListTree && rowTileBtnListTree.length === 1">
|
|
148
157
|
<a-button type="primary" style="margin-right: 8px; margin-bottom: 8px" @click="handleAddType(rowTileBtnListTree[0])">
|
|
@@ -368,6 +377,16 @@
|
|
|
368
377
|
* 3、右侧快速弹框保存搜索函数onSave(obj);
|
|
369
378
|
* 完整例子:<BaseSearch :onSearch='onSearch' @changeSearch='changeSearch' @onSave='onSave'/>
|
|
370
379
|
*/
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* slot:searchInput
|
|
383
|
+
* width: {number}宽度
|
|
384
|
+
* searchPlaceHolder:{string} 检索 input 的placeHolder
|
|
385
|
+
* showPlaceholderPrefix: {boolean} input 是否展示前缀icon
|
|
386
|
+
* isRelatedSearchFold: {boolean} 平铺列表树状表的检索框是否收起
|
|
387
|
+
* type:{string} relatedTreeSearch(平铺列表树状表)/outSearch(检索外显)/default(默认)
|
|
388
|
+
*/
|
|
389
|
+
|
|
371
390
|
import moment from 'moment';
|
|
372
391
|
import 'moment/locale/zh-cn';
|
|
373
392
|
|
|
@@ -1446,7 +1465,7 @@ export default create({
|
|
|
1446
1465
|
}
|
|
1447
1466
|
if (!rowBtnList?.length) return;
|
|
1448
1467
|
this.setBatchRelationBtnIds(rowBtnList);
|
|
1449
|
-
|
|
1468
|
+
|
|
1450
1469
|
|
|
1451
1470
|
// 子列表只留下行级按钮
|
|
1452
1471
|
// if (this.isNestTableClick) {
|
|
@@ -2039,6 +2058,58 @@ export default create({
|
|
|
2039
2058
|
|
|
2040
2059
|
setPrintNumberCache(obj) {
|
|
2041
2060
|
this.$emit('setPrintNumberCache', obj);
|
|
2061
|
+
},
|
|
2062
|
+
|
|
2063
|
+
getRef(key){
|
|
2064
|
+
let ref = this.$refs[key];
|
|
2065
|
+
if(Array.isArray(ref)){
|
|
2066
|
+
return ref[0];
|
|
2067
|
+
}
|
|
2068
|
+
return ref;
|
|
2069
|
+
},
|
|
2070
|
+
|
|
2071
|
+
/**
|
|
2072
|
+
* 赋值给检索外显
|
|
2073
|
+
*/
|
|
2074
|
+
async setOutFilterValues(obj){
|
|
2075
|
+
if(typeof obj === 'object'){
|
|
2076
|
+
|
|
2077
|
+
const outObj = this.outSearchFieldList.reduce((pre,cur)=>{
|
|
2078
|
+
cur.columnName && (pre[cur.columnName]=cur)
|
|
2079
|
+
return pre;
|
|
2080
|
+
},{});
|
|
2081
|
+
|
|
2082
|
+
// 遍历对象赋值
|
|
2083
|
+
Object.keys(obj).forEach(k=>{
|
|
2084
|
+
let val = obj[k];
|
|
2085
|
+
let item = outObj[k] || {}
|
|
2086
|
+
if(vexutils.isObject(val)){
|
|
2087
|
+
let ks = ['bigValue','lessValue'];
|
|
2088
|
+
ks.forEach(kk=>{
|
|
2089
|
+
this.$set(item,kk,val[kk]);
|
|
2090
|
+
})
|
|
2091
|
+
} else {
|
|
2092
|
+
this.$set(item,'value',val);
|
|
2093
|
+
}
|
|
2094
|
+
// 检索组件,触发检索方法
|
|
2095
|
+
if (item?.comType == "SelectMuiWordBook"){
|
|
2096
|
+
this.setSelectMuiWordBookType(item,val)
|
|
2097
|
+
}
|
|
2098
|
+
})
|
|
2099
|
+
|
|
2100
|
+
await this.$nextTick();
|
|
2101
|
+
this.outFilterChange()
|
|
2102
|
+
}
|
|
2103
|
+
},
|
|
2104
|
+
|
|
2105
|
+
setSelectMuiWordBookType(item,val){
|
|
2106
|
+
if(Array.isArray(item.dataSource)){
|
|
2107
|
+
let f = item.dataSource.find(v=>v.myName == val);
|
|
2108
|
+
if(f) return
|
|
2109
|
+
}
|
|
2110
|
+
let rKey = item.columnName + item.random_key
|
|
2111
|
+
let ref = this.getRef(rKey);
|
|
2112
|
+
ref && ref.handleWordBookSearch(val,item)
|
|
2042
2113
|
}
|
|
2043
2114
|
|
|
2044
2115
|
/* */
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
:filterOption="false"
|
|
12
12
|
v-model="item.value"
|
|
13
13
|
@search="handleWordBookSearch($event, item)"
|
|
14
|
+
@change="handleChange"
|
|
14
15
|
@dropdownVisibleChange="dropdownVisibleChange($event, item)"
|
|
15
16
|
class="quick-input-select"
|
|
16
17
|
:allowClear="item.explicitRequired != 1"
|
|
@@ -164,6 +165,13 @@ export default {
|
|
|
164
165
|
let { page, keyword = undefined } = this?.item?.searchPageConfig;
|
|
165
166
|
page = cType === 'next' ? page + 1 : page - 1;
|
|
166
167
|
this.handleWordBookSearch(keyword, this.item, { page });
|
|
168
|
+
},
|
|
169
|
+
|
|
170
|
+
handleChange(){
|
|
171
|
+
if(this.mode === 'default'){
|
|
172
|
+
// this.$emit('change')
|
|
173
|
+
this.outFilterChange()
|
|
174
|
+
}
|
|
167
175
|
}
|
|
168
176
|
}
|
|
169
177
|
};
|