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.
Files changed (103) hide show
  1. package/CHANGELOG.md +18 -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 +117 -97
  12. package/es/big-table/style.css +1 -1
  13. package/es/breadcrumb/index.js +8 -8
  14. package/es/button/index.js +28 -28
  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 +140 -87
  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 +985 -770
  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 +132 -218
  66. package/es/scale-view/style.css +1 -1
  67. package/es/select/index.js +11 -11
  68. package/es/select-label/index.js +11 -11
  69. package/es/select-person/index.js +2 -2
  70. package/es/skeleton/index.js +8 -8
  71. package/es/slider/index.js +8 -8
  72. package/es/space/index.js +8 -8
  73. package/es/spin/index.js +8 -8
  74. package/es/statistic/index.js +8 -8
  75. package/es/steps/index.js +8 -8
  76. package/es/switch/index.js +8 -8
  77. package/es/table-filter/index.js +362 -134
  78. package/es/table-filter/style.css +1 -1
  79. package/es/tabs/index.js +8 -8
  80. package/es/tag/index.js +9 -9
  81. package/es/time-picker/index.js +8 -8
  82. package/es/timeline/index.js +8 -8
  83. package/es/tooltip/index.js +8 -8
  84. package/es/transfer/index.js +8 -8
  85. package/es/tree/index.js +8 -8
  86. package/es/tree-select/index.js +8 -8
  87. package/es/upload/index.js +8 -8
  88. package/es/verification-code/index.js +2 -2
  89. package/lib/cui.common.js +1123 -897
  90. package/lib/cui.umd.js +1123 -897
  91. package/lib/cui.umd.min.js +34 -34
  92. package/package.json +2 -2
  93. package/packages/big-table/src/BigTable.vue +9 -1
  94. package/packages/big-table/src/utils/bigTableProps.js +2 -1
  95. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +42 -28
  96. package/packages/scale-view/formitem/r-choice.vue +45 -103
  97. package/packages/table-filter/src/base-search-com/BaseSearch.vue +6 -2
  98. package/packages/table-filter/src/components/c-tree-select/tree-select.vue +1 -1
  99. package/packages/table-filter/src/components/multi-select/multi-select.vue +7 -3
  100. package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +1 -1
  101. package/packages/table-filter/src/const/dataOptions.js +43 -0
  102. package/packages/table-filter/src/mixins/mixins.js +15 -2
  103. package/packages/table-filter/src/quick-search/QuickSearch.vue +64 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "2.1.11",
3
+ "version": "2.1.12",
4
4
  "description": "前端业务UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -104,4 +104,4 @@
104
104
  "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
105
105
  }
106
106
  }
107
- }
107
+ }
@@ -2746,13 +2746,21 @@ export default create({
2746
2746
  };
2747
2747
  if (this.isTree == 2) {
2748
2748
  const { tableId, page, pageSize, autograph, isTreeOrList } = this.tableParams;
2749
+ const { extraParams = {} } = this.listCountParams || {};
2750
+ let tempExtra = {};
2751
+ if (vexutils.isJSON(extraParams)) {
2752
+ tempExtra = JSON.parse(extraParams);
2753
+ }
2754
+ // 20220725 测试要求懒加载树请求时带上父级的extraParams
2749
2755
  const params = {
2750
2756
  levelLazyLoadPrimaryKeyValue: row[this.primaryKey],
2751
2757
  tableId,
2752
2758
  page,
2753
2759
  pageSize,
2754
2760
  autograph,
2755
- isTreeOrList
2761
+ isTreeOrList,
2762
+ extraParams,
2763
+ ...tempExtra
2756
2764
  };
2757
2765
 
2758
2766
  return this.getAsyncTableData(params).then(({ data }) => {
@@ -88,7 +88,8 @@ const bigTableProps = {
88
88
  rowBtnAutoLayout:{// 行内按钮自适应布局
89
89
  type: Boolean,
90
90
  default: true
91
- }
91
+ },
92
+ listCountParams:{ type: Object, default: () => ({}) },
92
93
  };
93
94
 
94
95
  export default bigTableProps;
@@ -371,19 +371,7 @@ export default {
371
371
  lockMovementY: true
372
372
  }
373
373
  : {};
374
- if (this.isObject(v) && !v.value) {
375
- const option = Object.assign({}, obj.iconStyle || {}, v || {}, {
376
- ...common,
377
- ...eventStyle
378
- });
379
- let ele;
380
- if (v?.iconClassName) {
381
- ele = await this.createImage(v.iconClassName, v);
382
- }
383
- const img = await this.createPoint(v?.url || v?.iconClassName ? 'img' : v.type, {
384
- ele: ele || '',
385
- ...option
386
- });
374
+ const addNumber = async point => {
387
375
  // 标记增加序号
388
376
  if (v.other?.number) {
389
377
  const circle = await this.createPoint('circle', {
@@ -396,39 +384,56 @@ export default {
396
384
  left: 0,
397
385
  top: 0
398
386
  });
399
- const text = new this.fabric.Text(String(v.other?.number || ''), {
387
+ const text = new this.fabric.Text(String(v.other?.number), {
400
388
  ...defaultVaule.textStyle,
401
389
  ...common,
402
390
  ...(obj.numberStyle?.text || {}),
403
391
  left: 0,
404
392
  top: 0
405
393
  });
394
+ const scale = typeof point.scale === 'number' ? point.scale : 1;
406
395
  const group = new this.fabric.Group([circle, text], {
407
396
  ...common,
408
397
  originY: 'right',
409
- left: img.left - (img.width * img.scale) / 2 - defaultVaule.bottomNumberLeftSpace,
398
+ left: point.left - (point.width * scale) / 2 - defaultVaule.bottomNumberLeftSpace,
410
399
  selectable: false,
411
- evented: false
400
+ hoverCursor: 'default',
401
+ // evented: false,
402
+ ...eventStyle
412
403
  });
413
- img.number = group;
404
+ return group;
414
405
  }
415
- img.hasControls = img.hasBorders = false;
416
- this.pointEvent(img);
417
- this.canvas.add(img);
418
- img.number && this.canvas.add(img.number);
406
+ };
407
+ const addCanvas = async point => {
408
+ point.number = await addNumber(point);
409
+ point.hasControls = point.hasBorders = false;
410
+ this.pointEvent(point);
411
+ this.canvas.add(point);
412
+ point.number && this.canvas.add(point.number);
419
413
  this.canvas.requestRenderAll();
420
- } else {
414
+ };
415
+ if (this.isObject(v) && !v.value) {
416
+ const option = Object.assign({}, obj.iconStyle || {}, v || {}, {
417
+ ...common,
418
+ ...eventStyle
419
+ });
420
+ let ele;
421
+ if (v?.iconClassName) {
422
+ ele = await this.createImage(v.iconClassName, v);
423
+ }
424
+ const img = await this.createPoint(v?.url || v?.iconClassName ? 'img' : v.type, {
425
+ ele: ele || '',
426
+ ...option
427
+ });
428
+ addCanvas(img);
429
+ } else if (v.value) {
421
430
  const text = new this.fabric.Text(String(v.value), {
422
431
  ...defaultVaule.textStyle,
423
432
  ...obj.style,
424
433
  ...common,
425
434
  ...eventStyle
426
435
  });
427
- text.hasControls = text.hasBorders = false;
428
- // textList.push(text);
429
- this.pointEvent(text);
430
- this.canvas.add(text);
431
- this.canvas.renderAll();
436
+ addCanvas(text);
432
437
  }
433
438
  });
434
439
  }
@@ -439,7 +444,8 @@ export default {
439
444
  updateNumber(point) {
440
445
  if (point.number) {
441
446
  point.number.setCoords();
442
- point.number.set({ left: point.left - (point.width * point.scale) / 2 - defaultVaule.bottomNumberLeftSpace, top: point.top });
447
+ const scale = typeof point.scale === 'number' ? point.scale : 1;
448
+ point.number.set({ left: point.left - (point.width * scale) / 2 - defaultVaule.bottomNumberLeftSpace, top: point.top });
443
449
  }
444
450
  },
445
451
  pointEvent(point) {
@@ -449,6 +455,14 @@ export default {
449
455
  point.on('mouseout', () => {
450
456
  this.isDropVisible = false;
451
457
  });
458
+ if (point.number) {
459
+ point.number.on('mouseover', () => {
460
+ this.showDrapPopup(point, true);
461
+ });
462
+ point.number.on('mouseout', () => {
463
+ this.isDropVisible = false;
464
+ });
465
+ }
452
466
  // 移动中 实时更新相关联的线的坐标
453
467
  if (this.eventStyle.evented) {
454
468
  point.on('moving', () => {
@@ -121,7 +121,7 @@
121
121
  v-model="choiceValue"
122
122
  placeholder="请选择"
123
123
  show-search
124
- :mode="cloneItem.setting.isMultiple ? 'multiple' : 'default'"
124
+ :mode="showMulti"
125
125
  :disabled="isLock"
126
126
  @search="handleSearch"
127
127
  @change="handleSelectChange"
@@ -130,7 +130,7 @@
130
130
  :notFoundContent="fetching ? undefined : '暂无数据'"
131
131
  >
132
132
  <a-spin v-if="fetching" slot="notFoundContent" size="small" />
133
- <a-select-option v-for="(v, i) in curOptions" :key="i" :value="v.value">{{ v[showField] }}</a-select-option>
133
+ <a-select-option v-for="(v, i) in curOptions" :key="i" :value="v[columnKey]">{{ v[labelKey] }}</a-select-option>
134
134
  </a-select>
135
135
  <a-cascader
136
136
  v-else-if="cloneItem.type == 'SEARCH_CASCADE'"
@@ -238,6 +238,32 @@ export default {
238
238
  return function (o) {
239
239
  return o.prefix || o.suffix;
240
240
  };
241
+ },
242
+ isDynamic2Static() {
243
+ // 分享链接的量表用 optionType 1:静态,2:动态,3:动态转静态
244
+ let { targetSource = {}, options = [], optionType } = this.item || {};
245
+ if (targetSource.target_id && (options.length || optionType == 3)) return true;
246
+ return false;
247
+ },
248
+ isMultiple() {
249
+ return this.item?.setting?.isMultiple;
250
+ },
251
+ showMulti() {
252
+ return this.isMultiple ? 'multiple' : 'default';
253
+ },
254
+ // 取值字段
255
+ columnKey() {
256
+ let { target_id, values } = this.item?.targetSource || {};
257
+ if (!target_id || !values) return 'value';
258
+ if (this.isDynamic2Static) return values || 'value';
259
+ return values;
260
+ },
261
+ // 显示字段
262
+ labelKey() {
263
+ let { target_id, showField } = this.item?.targetSource || {};
264
+ if (!target_id || !showField) return 'label';
265
+ if (this.isDynamic2Static) return showField || 'label';
266
+ return showField;
241
267
  }
242
268
  },
243
269
  watch: {
@@ -255,8 +281,6 @@ export default {
255
281
  selectParams: { tableType: 'TABLE_LIST', pageSize: 20, page: 1 },
256
282
  cascaderParams: { tableType: 'TABLE_LIST' },
257
283
  cloneItem: {},
258
- columnName: '', // 取值字段
259
- showField: '', // 显示字段
260
284
  curvalue: '',
261
285
  curCheckboxValue: [],
262
286
  othersText: '',
@@ -463,11 +487,10 @@ export default {
463
487
  async initSelectOptions() {
464
488
  // 分享链接的量表用 optionType 1:静态,2:动态,3:动态转静态
465
489
  const { targetSource, type, options = [], optionType = 1 } = this.cloneItem;
466
- this.showField = 'label';
467
490
  if (!targetSource?.target_id) return;
468
491
  // 动态数据源转静态数据
469
- if (type == 'SELECT' && (options.length || optionType == 3)) {
470
- this.curOptions = options;
492
+ if (type == 'SELECT' && this.isDynamic2Static) {
493
+ this.curOptions = this.handleDynamic2StaticOptions(options);
471
494
  return;
472
495
  }
473
496
  if (type === 'SELECT') {
@@ -477,113 +500,32 @@ export default {
477
500
  } else {
478
501
  this.curOptions = await this.getCascadeOptions(this.cloneItem);
479
502
  }
480
- this.columnName = targetSource?.values;
481
- this.showField = targetSource?.showField || targetSource?.values;
482
- // this.findDetails(targetSource).then(obj => {
483
- // if (type == "SEARCH_CASCADE") {
484
- // this.findCascader(obj);
485
- // } else if (type == "SELECT") {
486
- // this.findTableData(obj);
487
- // }
488
- // });
489
- },
490
- // 下拉组件查询列表数据配置
491
- findDetails({ target_id, values, primaryField, relationField, showField }) {
492
- const url = '/tableList/getDetail';
493
- const params = {
494
- tableId: target_id,
495
- tableType: 'TABLE_LIST'
496
- };
497
- this.columnName = values;
498
- this.showField = showField || values;
499
- return axios.get(url, { params }).then(({ data }) => {
500
- const { detailAutograph, tableId, fieldList = [], buttonList = [] } = data.map;
501
- const { type } = this.cloneItem;
502
- fieldList.forEach(item => {
503
- item.attrType = (item.settingObj && item.settingObj.attr) || '';
504
- });
505
- this.fieldList = fieldList;
506
- this.buttonList = buttonList;
507
- if (type == 'SELECT') {
508
- Object.assign(this.selectParams, {
509
- autograph: detailAutograph,
510
- tableId
511
- });
512
- } else if (type == 'SEARCH_CASCADE') {
513
- Object.assign(this.cascaderParams, {
514
- autograph: detailAutograph,
515
- tableId,
516
- primaryKey: primaryField,
517
- levelKey: relationField
518
- });
519
- }
520
- return { values, showField: this.showField };
521
- });
522
503
  },
523
- // 下拉组件查询列表字段值
524
- findTableData({ values, keyword }) {
525
- const url = '/tableReader/getTableData';
526
- delete this.selectParams.keyword;
527
- if (keyword) {
528
- Object.assign(this.selectParams, { keyword });
529
- }
530
- return axios.post(url, this.$qs.stringify(this.selectParams)).then(({ data }) => {
531
- const { rows } = data.map;
532
- const options = rows.map(row => {
533
- return Object.assign(row, {
534
- // label: row[showField],
535
- value: row[values]
504
+ handleDynamic2StaticOptions(options) {
505
+ if (!options || !options.length) return [];
506
+ return options.map(item => {
507
+ if ('cascadeData' in item) {
508
+ Object.assign(item, {
509
+ ...item.cascadeData
536
510
  });
537
- });
538
- let optionsList = this.uniqArrObj(options, 'value');
539
- optionsList = this.formatData({
540
- tableList: optionsList,
541
- fieldList: this.fieldList,
542
- btnList: this.buttonList,
543
- oldtableData: optionsList,
544
- showButtonTop: 0
545
- });
546
- this.curOptions = optionsList;
547
- });
548
- },
549
- // 级联组件查询列表数据
550
- findCascader({ values }) {
551
- const url = '/tableReader/getTableData';
552
- return axios.post(url, this.$qs.stringify(this.cascaderParams)).then(({ data }) => {
553
- const { rows } = data.map;
554
- this.curOptions = this.initTreeData(rows, values);
555
- });
556
- },
557
- // 初始化树
558
- initTreeData(rows, values) {
559
- return rows.map(row => {
560
- const valObj = { label: row[values], value: row[values], id: row.id };
561
- if (row.parent_id) {
562
- Object.assign(valObj, { parent_id: row.parent_id });
563
511
  }
564
- if (row.children) {
565
- Object.assign(valObj, {
566
- children: this.initTreeData(row.children, values)
567
- });
512
+ // 容错 没有配置的key 添加一个
513
+ if (!(this.columnKey in item)) {
514
+ item[this.columnKey] = item.value || item.label;
568
515
  }
569
- return valObj;
516
+ if (!(this.labelKey in item)) {
517
+ item[this.labelKey] = item.label;
518
+ }
519
+ return item;
570
520
  });
571
521
  },
572
- // 数组对象去重
573
- uniqArrObj(arr, name) {
574
- let obj = {};
575
- return arr.reduce((cur, next) => {
576
- obj[next[name]] ? '' : (obj[next[name]] = true && cur.push(next));
577
- return cur;
578
- }, []);
579
- },
580
522
  // 下拉组件搜索
581
523
  async handleSearch(value) {
582
524
  try {
583
525
  this.curOptions = await this.getSearchOptions(
584
526
  {
585
- values: this.columnName,
586
- showField: this.showField,
527
+ values: this.columnKey,
528
+ showField: this.labelKey,
587
529
  keyword: value
588
530
  },
589
531
  this.cloneItem
@@ -55,7 +55,7 @@
55
55
  <li v-if="isShowSetting('hideSearch') && !showRelatedTreeBtn" ref="inputSearchLi" class="baseSearch-input-search">
56
56
  <template v-if="outSearchFieldList && outSearchFieldList.length">
57
57
  <a-input
58
- :style="{ width: inputSearchW + 'px', margin: '0 8px 8px 0' }"
58
+ :style="{ width: (searchInputWidth || inputSearchW) + 'px', margin: '0 8px 8px 0' }"
59
59
  allowClear
60
60
  :placeholder="searchPlaceHolder"
61
61
  :value="currentValue"
@@ -76,7 +76,7 @@
76
76
  <a-input-search
77
77
  v-else
78
78
  class="my-input-search input-search-com"
79
- :style="{ width: inputSearchW + 'px' }"
79
+ :style="{ width: (searchInputWidth || inputSearchW) + 'px' }"
80
80
  @search="onSearch"
81
81
  allowClear
82
82
  :placeholder="searchPlaceHolder"
@@ -423,6 +423,10 @@ export default create({
423
423
  width: {
424
424
  default: '400px'
425
425
  },
426
+ searchInputWidth:{ // 设置检索框的宽度
427
+ type: Number,
428
+ default:0
429
+ },
426
430
  onSearch: Function,
427
431
  rowBtnList: {
428
432
  type: Array,
@@ -8,7 +8,7 @@
8
8
  :maxTagPlaceholder="handleMaxTag"
9
9
  showSearch
10
10
  multiple
11
- style="width: 160px"
11
+ :style="`width: ${item.advanceColWidth||160}px`"
12
12
  :class="[!showRemoveIcon && 'c-a-tree-select-show-hide-icon','c-a-quick-input-tree-mul']"
13
13
  :dropdown-style="{ maxHeight: '292px', overflow: 'auto' }"
14
14
  :tree-data="treeData"
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <a-select
3
- mode="multiple"
3
+ :mode="mode"
4
4
  v-if="item.com == 'SelectMui'"
5
5
  :placeholder="`请选择${item.alias || item.title}`"
6
- style="width: 160px"
6
+ :style="{width: `${item.advanceColWidth||160}px`}"
7
7
  :dropdownMatchSelectWidth="false"
8
8
  :maxTagCount="handleMaxTagCount(item)"
9
9
  :maxTagPlaceholder="handleMaxTag(item)"
@@ -78,7 +78,7 @@ export default {
78
78
  render: (h, ctx) => ctx.props.vnodes
79
79
  }
80
80
  },
81
- props: ['item', 'maxTagPlaceholder', 'outFilterChange', 'handleWordBookSearch', 'dropdownVisibleChange', 'source', 'fetchingWordbook'],
81
+ props: ['item', 'maxTagPlaceholder', 'outFilterChange', 'handleWordBookSearch', 'dropdownVisibleChange', 'source', 'fetchingWordbook',],
82
82
  data() {
83
83
  return {};
84
84
  },
@@ -123,6 +123,9 @@ export default {
123
123
  }
124
124
 
125
125
  return true;
126
+ },
127
+ mode(){
128
+ return String(this?.item?.advanceOptionSetting) == '0'? 'default' : 'multiple'
126
129
  }
127
130
  },
128
131
  watch: {},
@@ -135,6 +138,7 @@ export default {
135
138
  // 方法
136
139
  methods: {
137
140
  createSuffixIcon() {
141
+ if(this.mode === 'default') return;
138
142
  let refDom = this.$refs.quickInputSelect;
139
143
  if (!refDom) return;
140
144
  let selectDom = refDom.$el;
@@ -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("|#|");