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.
Files changed (102) hide show
  1. package/CHANGELOG.md +24 -2
  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 +225 -139
  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/empty/index.js +8 -8
  34. package/es/fabric-chart/index.js +49 -35
  35. package/es/form/index.js +8 -8
  36. package/es/form-model/index.js +8 -8
  37. package/es/form-table/index.js +62 -62
  38. package/es/index/index.js +787 -565
  39. package/es/index/style.css +1 -1
  40. package/es/input/index.js +9 -9
  41. package/es/input-number/index.js +8 -8
  42. package/es/layout/index.js +8 -8
  43. package/es/list/index.js +8 -8
  44. package/es/locale-provider/index.js +8 -8
  45. package/es/map/index.js +9 -9
  46. package/es/mentions/index.js +8 -8
  47. package/es/menu/index.js +8 -8
  48. package/es/message/index.js +8 -8
  49. package/es/multi-chat/index.js +75 -75
  50. package/es/multi-chat-client/index.js +69 -69
  51. package/es/multi-chat-history/index.js +4 -4
  52. package/es/multi-chat-record/index.js +14 -14
  53. package/es/multi-chat-setting/index.js +22 -22
  54. package/es/multi-chat-sip/index.js +1 -1
  55. package/es/notification/index.js +8 -8
  56. package/es/page-header/index.js +8 -8
  57. package/es/pagination/index.js +8 -8
  58. package/es/popconfirm/index.js +8 -8
  59. package/es/popover/index.js +8 -8
  60. package/es/progress/index.js +8 -8
  61. package/es/radio/index.js +9 -9
  62. package/es/rate/index.js +8 -8
  63. package/es/result/index.js +8 -8
  64. package/es/row/index.js +8 -8
  65. package/es/scale-view/index.js +88 -67
  66. package/es/scale-view/style.css +1 -1
  67. package/es/select/index.js +12 -12
  68. package/es/select-label/index.js +11 -11
  69. package/es/select-person/index.js +2 -2
  70. package/es/shortcut-setter/index.js +10 -10
  71. package/es/skeleton/index.js +8 -8
  72. package/es/slider/index.js +8 -8
  73. package/es/space/index.js +8 -8
  74. package/es/spin/index.js +8 -8
  75. package/es/statistic/index.js +8 -8
  76. package/es/steps/index.js +8 -8
  77. package/es/switch/index.js +8 -8
  78. package/es/table-filter/index.js +188 -87
  79. package/es/table-filter/style.css +1 -1
  80. package/es/tabs/index.js +8 -8
  81. package/es/tag/index.js +9 -9
  82. package/es/time-picker/index.js +8 -8
  83. package/es/timeline/index.js +8 -8
  84. package/es/tooltip/index.js +8 -8
  85. package/es/transfer/index.js +8 -8
  86. package/es/tree/index.js +8 -8
  87. package/es/tree-select/index.js +8 -8
  88. package/es/upload/index.js +8 -8
  89. package/es/verification-code/index.js +2 -2
  90. package/lib/cui.common.js +784 -563
  91. package/lib/cui.umd.js +784 -563
  92. package/lib/cui.umd.min.js +23 -23
  93. package/package.json +1 -1
  94. package/packages/big-table/src/BigTable.vue +23 -8
  95. package/packages/big-table/src/utils/bigTableProps.js +4 -0
  96. package/packages/big-table/src/utils/tableParse.js +41 -0
  97. package/packages/fabric-chart/src/const/defaultVaule.js +59 -59
  98. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +23 -16
  99. package/packages/scale-view/formitem/r-choice.vue +13 -1
  100. package/packages/scale-view/scaleView.vue +2010 -2010
  101. package/packages/table-filter/src/base-search-com/BaseSearch.vue +121 -50
  102. 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
- <a-input
71
- :style="{ width: (searchInputWidth || inputSearchW) + 'px', margin: '0 8px 8px 0' }"
72
- allowClear
73
- :placeholder="searchPlaceHolder"
74
- :value="currentValue"
75
- @input="$emit('input', $event.target.value)"
76
- @pressEnter="outFilterChange"
77
- class="input-search-com"
78
- >
79
- <template slot="prefix" v-if="showPlaceholderPrefix">
80
- <a-tooltip :title="searchPlaceHolder" overlayClassName="basesearch-placeholder-tooltip">
81
- <a-icon type="info-circle" class="search-placeholder-icon" />
82
- </a-tooltip>
83
- </template>
84
- </a-input>
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
- <a-input-search
87
- v-else
88
- class="my-input-search input-search-com"
89
- :style="{ width: (searchInputWidth || inputSearchW) + 'px' }"
90
- @search="onSearch"
91
- allowClear
92
- :placeholder="searchPlaceHolder"
93
- :value="currentValue"
94
- @input="$emit('input', $event.target.value)"
95
- >
96
- <template slot="prefix" v-if="showPlaceholderPrefix">
97
- <a-tooltip :title="searchPlaceHolder" overlayClassName="basesearch-placeholder-tooltip">
98
- <a-icon type="info-circle" class="search-placeholder-icon" />
99
- </a-tooltip>
100
- </template>
101
- <a-button slot="enterButton" type="primary">
102
- <svg-icon icon-class="xitongtubiaosousuo"></svg-icon>
103
- </a-button>
104
- </a-input-search>
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
- <a-input-search
133
- ref="relatedSearchInput"
134
- class="my-input-search my-input-search-related"
135
- placeholder="请输入关键字搜索"
136
- @search="onRelatedSearch"
137
- allowClear
138
- :value="currentValue"
139
- @input="$emit('input', $event.target.value)"
140
- >
141
- <a-button slot="enterButton" type="primary">
142
- <a-icon type="search" />
143
- <!-- <svg-icon icon-class="xitongtubiaosousuo"></svg-icon> -->
144
- </a-button>
145
- </a-input-search>
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
  };