cnhis-design-vue 2.1.11 → 2.1.14

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 (113) hide show
  1. package/CHANGELOG.md +45 -18
  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 +342 -234
  12. package/es/big-table/style.css +1 -1
  13. package/es/breadcrumb/index.js +8 -8
  14. package/es/button/index.js +55 -55
  15. package/es/button/style.css +1 -1
  16. package/es/calendar/index.js +8 -8
  17. package/es/captcha/index.js +3 -3
  18. package/es/card/index.js +8 -8
  19. package/es/carousel/index.js +8 -8
  20. package/es/cascader/index.js +8 -8
  21. package/es/checkbox/index.js +9 -9
  22. package/es/col/index.js +8 -8
  23. package/es/collapse/index.js +8 -8
  24. package/es/color-picker/index.js +1 -1
  25. package/es/comment/index.js +8 -8
  26. package/es/config-provider/index.js +8 -8
  27. package/es/date-picker/index.js +8 -8
  28. package/es/descriptions/index.js +8 -8
  29. package/es/divider/index.js +8 -8
  30. package/es/drag-layout/index.js +3 -3
  31. package/es/drawer/index.js +8 -8
  32. package/es/dropdown/index.js +8 -8
  33. package/es/editor/index.js +1 -1
  34. package/es/empty/index.js +8 -8
  35. package/es/fabric-chart/index.js +88 -92
  36. package/es/form/index.js +8 -8
  37. package/es/form-model/index.js +8 -8
  38. package/es/form-table/index.js +62 -62
  39. package/es/index/index.js +1415 -1024
  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 +230 -127
  51. package/es/multi-chat/style.css +1 -1
  52. package/es/multi-chat-client/index.js +255 -147
  53. package/es/multi-chat-client/style.css +1 -1
  54. package/es/multi-chat-history/index.js +4 -4
  55. package/es/multi-chat-record/index.js +14 -14
  56. package/es/multi-chat-setting/index.js +23 -23
  57. package/es/multi-chat-sip/index.js +1 -1
  58. package/es/notification/index.js +8 -8
  59. package/es/page-header/index.js +8 -8
  60. package/es/pagination/index.js +8 -8
  61. package/es/popconfirm/index.js +8 -8
  62. package/es/popover/index.js +8 -8
  63. package/es/progress/index.js +8 -8
  64. package/es/radio/index.js +9 -9
  65. package/es/rate/index.js +8 -8
  66. package/es/result/index.js +8 -8
  67. package/es/row/index.js +8 -8
  68. package/es/scale-view/index.js +132 -218
  69. package/es/scale-view/style.css +1 -1
  70. package/es/select/index.js +11 -11
  71. package/es/select-label/index.js +11 -11
  72. package/es/select-person/index.js +2 -2
  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 +433 -168
  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 +1573 -1171
  93. package/lib/cui.umd.js +1573 -1171
  94. package/lib/cui.umd.min.js +45 -45
  95. package/package.json +2 -2
  96. package/packages/big-table/src/BigTable.vue +191 -127
  97. package/packages/big-table/src/assets/style/table-base.less +11 -1
  98. package/packages/big-table/src/utils/bigTableProps.js +2 -1
  99. package/packages/button/src/ButtonPrint/index.vue +5 -4
  100. package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +3 -1
  101. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +25 -39
  102. package/packages/multi-chat/chat/chatHeader.vue +9 -4
  103. package/packages/multi-chat/chat/client/clientChat.vue +3 -0
  104. package/packages/multi-chat/chat/quickReply.vue +90 -12
  105. package/packages/multi-chat/store/actions.js +1 -1
  106. package/packages/scale-view/formitem/r-choice.vue +45 -103
  107. package/packages/table-filter/src/base-search-com/BaseSearch.vue +6 -2
  108. package/packages/table-filter/src/components/c-tree-select/tree-select.vue +1 -1
  109. package/packages/table-filter/src/components/multi-select/multi-select.vue +8 -4
  110. package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +1 -1
  111. package/packages/table-filter/src/const/dataOptions.js +43 -0
  112. package/packages/table-filter/src/mixins/mixins.js +15 -2
  113. package/packages/table-filter/src/quick-search/QuickSearch.vue +113 -36
@@ -5,7 +5,7 @@
5
5
  @pressEnter="outFilterChange"
6
6
  class="CL-input"
7
7
  :style="{
8
- width: '200px',
8
+ width: `${item.advanceColWidth || 200}px`,
9
9
  margin: '0 8px 8px 0',
10
10
  'font-family': item.PASSWORDTYPE ? 'text-security-disc' : 'inherit'
11
11
  }"
@@ -0,0 +1,43 @@
1
+ export const dataOptions = {
2
+ dateTeam0: [
3
+ { con: 'TODAY', title: '1.1.4.37', name: '今天' },
4
+ { con: 'TOMORROW', title: '1.1.4.38', name: '明天' },
5
+ { con: 'YESTERDAY', title: '1.1.4.39', name: '昨天' },
6
+ { con: 'THIS_WEEK', title: '1.1.4.40', name: '本周' },
7
+ { con: 'NEXT_WEEK', title: '1.1.4.41', name: '下周' },
8
+ { con: 'UP_WEEK', title: '1.1.4.42', name: '上周' },
9
+ { con: 'THIS_MONTH', title: '1.1.4.43', name: '本月' },
10
+ { con: 'NEXT_MONTH', title: '1.1.4.44', name: '下月' },
11
+ { con: 'UP_MONTH', title: '1.1.4.45', name: '上月' },
12
+ { con: 'THIS_SEASON', title: '1.1.4.46', name: '本季度' },
13
+ { con: 'NEXT_SEASON', title: '1.1.4.47', name: '下季度' },
14
+ { con: 'UP_SEASON', title: '1.1.4.48', name: '上季度' },
15
+ { con: 'THIS_YEAR', title: '1.1.4.49', name: '本年' },
16
+ { con: 'NEXT_YEAR', title: '1.1.4.50', name: '下年' },
17
+ { con: 'UP_YEAR', title: '1.1.4.51', name: '上年' }
18
+ ],
19
+ dateTeam2: [
20
+ { con: 'TODAY', title: '1.1.4.37', name: '今天' },
21
+ { con: 'TOMORROW', title: '1.1.4.38', name: '明天' },
22
+ { con: 'THIS_WEEK', title: '1.1.4.40', name: '本周' },
23
+ { con: 'NEXT_WEEK', title: '1.1.4.41', name: '下周' },
24
+ { con: 'THIS_MONTH', title: '1.1.4.43', name: '本月' },
25
+ { con: 'NEXT_MONTH', title: '1.1.4.44', name: '下月' },
26
+ { con: 'THIS_SEASON', title: '1.1.4.46', name: '本季度' },
27
+ { con: 'NEXT_SEASON', title: '1.1.4.47', name: '下季度' },
28
+ { con: 'THIS_YEAR', title: '1.1.4.49', name: '本年' },
29
+ { con: 'NEXT_YEAR', title: '1.1.4.50', name: '下年' }
30
+ ],
31
+ dateTeam3: [
32
+ { con: 'TODAY', title: '1.1.4.37', name: '今天' },
33
+ { con: 'YESTERDAY', title: '1.1.4.39', name: '昨天' },
34
+ { con: 'THIS_WEEK', title: '1.1.4.40', name: '本周' },
35
+ { con: 'UP_WEEK', title: '1.1.4.42', name: '上周' },
36
+ { con: 'THIS_MONTH', title: '1.1.4.43', name: '本月' },
37
+ { con: 'UP_MONTH', title: '1.1.4.45', name: '上月' },
38
+ { con: 'THIS_SEASON', title: '1.1.4.46', name: '本季度' },
39
+ { con: 'UP_SEASON', title: '1.1.4.48', name: '上季度' },
40
+ { con: 'THIS_YEAR', title: '1.1.4.49', name: '本年' },
41
+ { con: 'UP_YEAR', title: '1.1.4.51', name: '上年' }
42
+ ]
43
+ };
@@ -403,7 +403,8 @@ export const outQuickSearchFn = {
403
403
  * isPreciseSearch: 0/1
404
404
  */
405
405
  let textCon = el.fieldType == "TEXT" && isPreciseSearch == 1 ? 'EQ' : 'CL';
406
-
406
+ let advanceOptionSetting = el.advanceOptionSetting;
407
+ // let advanceColWidth = el.advanceColWidth;
407
408
  // 映射优先级最高
408
409
  if (showSetting?.length) {
409
410
  let tvalue = []
@@ -412,7 +413,11 @@ export const outQuickSearchFn = {
412
413
  if(df){
413
414
  let i = df == 'firstOption' ? 0 : showSetting.findIndex(v => v.change_text == df);
414
415
  if(i > -1){
415
- tvalue.push(i)
416
+ if(String(advanceOptionSetting) === '0'){
417
+ tvalue = i
418
+ } else {
419
+ tvalue.push(i)
420
+ }
416
421
  }
417
422
  }
418
423
  // 存在映射 使用下拉多选框
@@ -553,7 +558,15 @@ export const outQuickSearchFn = {
553
558
  temp.value = item.value;
554
559
  conObj.push(temp);
555
560
  }
561
+ let advanceOptionSetting = item.advanceOptionSetting;
556
562
  if (item.com === "SelectMui" && item.value) {
563
+ // 单选模式
564
+ let single = String(advanceOptionSetting) === '0';
565
+ if(single){
566
+ if(!Array.isArray(item.value)) {
567
+ item.value = [item.value]
568
+ }
569
+ }
557
570
  let hasArr = Array.isArray(item.value) && item.value.length > 0
558
571
  if (item.comType == "SelectMuiWordBook" && hasArr) {
559
572
  temp.value = item.value.join("|#|");
@@ -157,7 +157,7 @@
157
157
  <template v-if="showPercent(item)">
158
158
  <a-input-number
159
159
  class="CL-input"
160
- style="width: 200px"
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: '200px',
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: 200px"
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: '200px',
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: 200px"
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: 200px" v-model="item.CL" allowClear>
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: 200px"
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: 200px"
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
@@ -582,19 +582,28 @@
582
582
  {{ sea.myName }}
583
583
  </a-select-option>
584
584
  </a-select> -->
585
- <multiSelect
586
- v-if="item.con == 'QUOTE'"
587
- :item="item"
588
- source="quickSearch"
589
- :maxTagPlaceholder="maxTagPlaceholder"
590
- :outFilterChange="filterChange"
591
- :handleWordBookSearch="handleSearch"
592
- :dropdownVisibleChange="dropdownVisibleChange"
593
- :fetchingWordbook="fetchingWordbook"
594
- ></multiSelect>
585
+ <template v-if="item.con == 'QUOTE' || item.com == 'SelectMui'">
586
+ <c-tree-select
587
+ v-if="item.comType === 'treeSelect'"
588
+ :item="item"
589
+ :handleGetConfigApi="handleGetConfigApi"
590
+ style="margin: 0 8px 8px 0"
591
+ />
592
+ <multiSelect
593
+ v-else
594
+ :item="item"
595
+ source="quickSearch"
596
+ :maxTagPlaceholder="maxTagPlaceholder"
597
+ :outFilterChange="filterChange"
598
+ :handleWordBookSearch="handleSearch"
599
+ :dropdownVisibleChange="dropdownVisibleChange"
600
+ :fetchingWordbook="fetchingWordbook"
601
+ ></multiSelect>
602
+ </template>
603
+
595
604
  <a-checkbox-group
596
605
  class="check-box"
597
- v-if="item.con == 'CONVERT'"
606
+ v-else-if="item.con == 'CONVERT'"
598
607
  :options="item.setting.showSetting"
599
608
  v-model="item.CONVERT"
600
609
  />
@@ -728,6 +737,7 @@ import wordBookutils from '../mixins/wordBookutils';
728
737
  import cTreeSelect from '../components/c-tree-select/tree-select';
729
738
  import create from '@/core/create';
730
739
  import utils from '@/utils/utils-map';
740
+ import {dataOptions} from '../const/dataOptions'
731
741
  export default create({
732
742
  name: "quick-search",
733
743
  mixins: [durationMixin, $utils, filterApiFn, tableSearchCon],
@@ -789,6 +799,11 @@ export default create({
789
799
  return item.settingObj?.attr === "PERCENTAGE" || false;
790
800
  };
791
801
  },
802
+ getEleWidth(){
803
+ return function(item) {
804
+ return `${item.advanceColWidth||200}px`
805
+ }
806
+ },
792
807
  hasRelationQuickSearch() {
793
808
  return this.relationQuickSearch.findIndex(i => i.fieldList && i.fieldList.length) != -1;
794
809
  },
@@ -840,7 +855,7 @@ export default create({
840
855
  { title: '1.2.5.58', units: 1, con: 'DAY', name: '天' },
841
856
  { title: '1.2.5.59', units: 2, con: 'WEEK', name: '周' },
842
857
  { title: '1.2.1.11.18', units: 1, con: 'MONTH', name: '月' },
843
- { title: '1.9.273', units: 1, con: 'YEAR', name: '岁' }
858
+ { title: '1.9.273', units: 1, con: 'YEAR', name: '岁' },
844
859
  ],
845
860
  isChangeWindow: false,
846
861
  modalWidth: "700px",
@@ -851,7 +866,8 @@ export default create({
851
866
  parentNames: [],
852
867
  showAdd: false,
853
868
  addVal: "",
854
- fetchingWordbook: false
869
+ fetchingWordbook: false,
870
+ ...dataOptions
855
871
  };
856
872
  },
857
873
  watch: {
@@ -971,20 +987,36 @@ export default create({
971
987
  setDefaultCon(val) {
972
988
  if (!val.length) {
973
989
  this.quickSearch.forEach((item, index) => {
974
- if (item.CONVERT && Array.isArray(item.CONVERT)) {
975
- this.$set(this.quickSearch[index], "CONVERT", []);
976
- }
990
+ let advanceOptionSetting = item?.advanceOptionSetting;
991
+ // 单选
992
+ let optionSetting0 =String(advanceOptionSetting) == '0';
993
+ if(optionSetting0){
994
+ this.$set(this.quickSearch[index], "value", undefined);
995
+ } else {
996
+ if (item.CONVERT && Array.isArray(item.CONVERT)) {
997
+ this.$set(this.quickSearch[index], "CONVERT", []);
998
+ }
999
+ }
1000
+
977
1001
  });
978
1002
  return false;
979
1003
  }
980
1004
 
981
1005
  this.quickSearch.forEach((item, index) => {
1006
+ let advanceOptionSetting = item?.advanceOptionSetting;
1007
+ // 单选
1008
+ let optionSetting0 =String(advanceOptionSetting) == '0';
982
1009
  let find = val.find(valItem => valItem.field_key === item.columnName);
983
1010
  if (find) {
984
1011
  let value = find.value.map(item => JSON.stringify(item));
1012
+ value = value.filter(Boolean)
985
1013
  this.$set(this.quickSearch[index], "CONVERT", value);
1014
+ if(optionSetting0){
1015
+ let i = value[0] ? item.labelList.findIndex(v=> v.value== value[0]) : ""
1016
+ this.$set(this.quickSearch[index], "value", i);
1017
+ }
986
1018
  } else {
987
- this.$set(this.quickSearch[index], "CONVERT", []);
1019
+ this.$set(this.quickSearch[index], "CONVERT",optionSetting0?"": []);
988
1020
  }
989
1021
  });
990
1022
  },
@@ -996,11 +1028,17 @@ export default create({
996
1028
  if (el.setting) {
997
1029
  // el.seting 可能是 string / object
998
1030
  el.setting = typeof el.setting == "string" ? JSON.parse(el.setting) : el.setting;
1031
+
1032
+ let advanceOptionSetting = el?.advanceOptionSetting;
1033
+ // 单选
1034
+ let optionSetting0 =String(advanceOptionSetting) == '0';
999
1035
  if (!vexutils.isEmpty(el.setting.wordbook)) {
1000
1036
  let isTree = "tree" === el?.setting?.wordbook?.showType;
1001
1037
  let comType = isTree ? 'treeSelect' : 'SelectMuiWordBook';
1002
1038
  let defVal = isTree ? [] : [];
1003
-
1039
+ if(optionSetting0){
1040
+ defVal = undefined
1041
+ }
1004
1042
  this.$set(el, "con", "QUOTE");
1005
1043
  this.$set(el, "dataSource", []);
1006
1044
  this.$set(el, "QUOTE", []);
@@ -1032,8 +1070,21 @@ export default create({
1032
1070
  // this.$set(set, "label", set.change_text);
1033
1071
  // this.$set(set, "value", JSON.stringify(set.filter));
1034
1072
  // });
1073
+ /**
1074
+ * 映射方式的单选模式
1075
+ */
1076
+ if(optionSetting0){
1077
+ this.$set(el, "com", "SelectMui");
1078
+ this.$set(el, "comType", "SelectMui");
1079
+ const labelList = el.setting.showSetting.map(i => {
1080
+ i.labelName = i.change_text;
1081
+ return i;
1082
+ });
1083
+ this.$set(el, "labelList", labelList);
1084
+ }
1085
+
1035
1086
  this.$set(el.setting, "showSetting", showSetting);
1036
- this.$set(el, "CONVERT", []);
1087
+ this.$set(el, "CONVERT",optionSetting0? "": []);
1037
1088
  return;
1038
1089
  }
1039
1090
  }
@@ -1076,15 +1127,21 @@ export default create({
1076
1127
  } else {
1077
1128
  // 判断是否有默认值
1078
1129
  const value = this.getSearchDefValueByLimit(el, this.searchFieldLimit);
1079
- const hasValue = Array.isArray(value);
1130
+ let hasValue = Array.isArray(value);
1131
+ let advanceOptionSetting = el?.advanceOptionSetting;
1132
+ // 选择时间模式
1133
+ let optionSetting1 = String(advanceOptionSetting) == '1';
1134
+
1080
1135
  this.$set(el, "con", "DATE");
1081
- this.$set(el, "showDate", hasValue);
1082
- this.$set(el, "marginx", hasValue ? "mr" : "ml");
1136
+ this.$set(el, "showDate", optionSetting1 || hasValue);
1137
+ this.$set(el, "marginx",optionSetting1 || hasValue ? "mr" : "ml");
1083
1138
  this.$set(el, "DATE", {
1084
1139
  con: hasValue ? "IN" : null,
1085
1140
  start_val: hasValue ? value[0] : null,
1086
1141
  end_val: hasValue ? value[1] : null
1087
1142
  });
1143
+ let dateTeam = optionSetting1 ? [] : this[`dateTeam${advanceOptionSetting}`] || this.dateTeam0;
1144
+ this.$set(el, 'dateTeam' , dateTeam)
1088
1145
  }
1089
1146
  } else if (el.fieldType == "TEXT") {
1090
1147
  /**
@@ -1165,6 +1222,7 @@ export default create({
1165
1222
  }
1166
1223
  },
1167
1224
  dropdownVisibleChange(open, item) {
1225
+ if (item.comType == "SelectMui" && String(item.advanceOptionSetting) === '0') return;
1168
1226
  if (open) {
1169
1227
  let obj = {};
1170
1228
  if (item.setting.wordbook.params) {
@@ -1187,6 +1245,7 @@ export default create({
1187
1245
  * 输入自动联想
1188
1246
  */
1189
1247
  handleSearch(value, item, config={}) {
1248
+ if (item.comType == "SelectMui" && String(item.advanceOptionSetting) === '0') return;
1190
1249
  let params = {
1191
1250
  keyword: value,
1192
1251
  autograph: this.curAutograph
@@ -1288,6 +1347,9 @@ export default create({
1288
1347
  let item = arr[i];
1289
1348
  let value = "";
1290
1349
  let limit_date = "";
1350
+ let advanceOptionSetting = item?.advanceOptionSetting;
1351
+ // 单选
1352
+ let optionSetting0 =String(advanceOptionSetting) === '0';
1291
1353
  if (item.EQ || item.CL) {
1292
1354
  value = item.EQ || item.CL;
1293
1355
  if (item.settingObj?.attr === "PERCENTAGE") {
@@ -1296,6 +1358,15 @@ export default create({
1296
1358
  if (item.EVALUATEAttr) {
1297
1359
  value = item.selecteds.join("|#|");
1298
1360
  }
1361
+ } else if((item.comType == 'SelectMui'&& optionSetting0)){
1362
+ // 单选模式
1363
+ let i = item.value;
1364
+ let c = item?.labelList[i];
1365
+ if (item.con == "CONVERT") {
1366
+ value = c?.filter ? [c?.filter] : undefined
1367
+ } else {
1368
+ value= c?.labelName ? [c?.labelName] : undefined;
1369
+ }
1299
1370
  } else if (item.con == "QUOTE" && !vexutils.isEmpty(item.value)) {
1300
1371
  // value = item.QUOTE.join("|#|");
1301
1372
  if(item.comType == "treeSelect"){
@@ -1311,7 +1382,7 @@ export default create({
1311
1382
  value = cval.join("|#|");
1312
1383
  }
1313
1384
  } else {
1314
- value = item.value.join("|#|");
1385
+ value = optionSetting0? item.value : item.value.join("|#|");
1315
1386
  }
1316
1387
  } else if (!vexutils.isEmpty(item.CONVERT)) {
1317
1388
  value = item.CONVERT.map(item => {
@@ -1565,16 +1636,22 @@ export default create({
1565
1636
  return;
1566
1637
  }
1567
1638
  arr.forEach(item => {
1639
+ let advanceOptionSetting = item?.advanceOptionSetting;
1640
+ // 单选
1641
+ let optionSetting0 =String(advanceOptionSetting) === '0';
1568
1642
  if (item.EQ || item.CL) {
1569
1643
  item.EQ = "";
1570
1644
  item.CL = "";
1571
1645
  } else if (item.con == "QUOTE" && !vexutils.isEmpty(item.value)) {
1572
1646
  item.QUOTE = [];
1573
1647
  item.value = [];
1648
+ } else if(item.com == 'SelectMui' && item.con == 'CONVERT' && optionSetting0){
1649
+ item.CONVERT = [];
1650
+ item.value = undefined
1574
1651
  } else if (!vexutils.isEmpty(item.CONVERT)) {
1575
1652
  item.CONVERT = [];
1576
1653
  } else if (item.DATE) {
1577
- item.showDate = false;
1654
+ item.showDate = String(advanceOptionSetting) == '1' ? true: false;
1578
1655
  item.marginx = "ml";
1579
1656
  item.DATE = {
1580
1657
  con: null,