cnhis-design-vue 2.1.129 → 2.1.133

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 (47) hide show
  1. package/CHANGELOG.md +44 -2
  2. package/es/age/index.js +2 -2
  3. package/es/big-table/index.js +29 -27
  4. package/es/big-table/style.css +1 -1
  5. package/es/button/index.js +2 -2
  6. package/es/captcha/index.js +3 -3
  7. package/es/card-reader-sdk/index.js +1 -1
  8. package/es/checkbox/index.js +1 -1
  9. package/es/color-picker/index.js +1 -1
  10. package/es/drag-layout/index.js +3 -3
  11. package/es/editor/index.js +1 -1
  12. package/es/ellipsis/index.js +1 -1
  13. package/es/fabric-chart/index.js +104 -88
  14. package/es/form-table/index.js +20 -20
  15. package/es/full-calendar/index.js +4 -4
  16. package/es/index/index.js +324 -292
  17. package/es/index/style.css +1 -1
  18. package/es/input/index.js +1 -1
  19. package/es/map/index.js +1 -1
  20. package/es/multi-chat/index.js +25 -25
  21. package/es/multi-chat-client/index.js +19 -19
  22. package/es/multi-chat-history/index.js +4 -4
  23. package/es/multi-chat-record/index.js +4 -4
  24. package/es/multi-chat-setting/index.js +20 -20
  25. package/es/multi-chat-sip/index.js +1 -1
  26. package/es/radio/index.js +1 -1
  27. package/es/scale-container/index.js +1 -1
  28. package/es/scale-view/index.js +27 -27
  29. package/es/select/index.js +4 -4
  30. package/es/select-label/index.js +3 -3
  31. package/es/select-person/index.js +2 -2
  32. package/es/select-tag/index.js +4 -4
  33. package/es/shortcut-setter/index.js +2 -2
  34. package/es/slider-tree/index.js +1 -1
  35. package/es/table-filter/index.js +73 -59
  36. package/es/table-filter/style.css +1 -1
  37. package/es/tag/index.js +1 -1
  38. package/es/verification-code/index.js +2 -2
  39. package/lib/cui.common.js +348 -316
  40. package/lib/cui.umd.js +348 -316
  41. package/lib/cui.umd.min.js +8 -8
  42. package/package.json +2 -2
  43. package/packages/big-table/src/assets/style/table-base.less +17 -10
  44. package/packages/big-table/src/utils/headerFilter.js +2 -1
  45. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +66 -48
  46. package/packages/table-filter/src/base-search-com/BaseSearch.vue +6 -3
  47. package/packages/table-filter/src/mixins/mixins.js +9 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "2.1.129",
3
+ "version": "2.1.133",
4
4
  "description": "前端业务UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -114,4 +114,4 @@
114
114
  "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
115
115
  }
116
116
  }
117
- }
117
+ }
@@ -207,7 +207,7 @@ body {
207
207
  }
208
208
 
209
209
  .scan-multi-delete {
210
- color: #F06F64;
210
+ color: #f06f64;
211
211
  }
212
212
 
213
213
  .vxe-table--header {
@@ -233,13 +233,21 @@ body {
233
233
  &::-webkit-scrollbar {
234
234
  width: 10px;
235
235
  height: 10px;
236
- background-color: #f2f2f2;
236
+ background-color: transparent;
237
237
  }
238
- // &:hover {
239
- &::-webkit-scrollbar-thumb:hover {
238
+
239
+ &::-webkit-scrollbar-thumb {
240
240
  background-color: #b2b2b2;
241
+ background-clip: padding-box;
242
+ border-color: transparent;
243
+ border-style: dashed;
244
+ border-width: 3px;
245
+ border-radius: 5px;
246
+
247
+ &:hover {
248
+ background: #b2b2b2;
249
+ }
241
250
  }
242
- // }
243
251
  }
244
252
  .vxe-footer--row .vxe-footer--column {
245
253
  > .vxe-cell .vxe-cell--item {
@@ -329,10 +337,10 @@ body {
329
337
  }
330
338
 
331
339
  .no-transition_a-switch {
332
- .ant-switch{
333
- transition:none;
334
- &::after{
335
- transition:none;
340
+ .ant-switch {
341
+ transition: none;
342
+ &::after {
343
+ transition: none;
336
344
  }
337
345
  }
338
346
  }
@@ -409,7 +417,6 @@ body {
409
417
  }
410
418
  }
411
419
 
412
-
413
420
  /deep/.vxe-table--body .tooltip-checkbox-item {
414
421
  .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner {
415
422
  border-radius: 2px;
@@ -443,7 +443,8 @@ export default {
443
443
  this.$set(set, 'value', JSON.stringify(set.filter));
444
444
  });
445
445
  this.$set(el, 'CONVERT', []);
446
- if (!this.isApiTable) {
446
+ let isHandleFilterSettingMap = !this.isApiTable && (!el.filterSettingMap || !Object.keys(el.filterSettingMap).length);
447
+ if (isHandleFilterSettingMap) {
447
448
  let filterSettingMap = this.handleFieldListFilter(el);
448
449
  this.$set(el, 'filterSettingMap', filterSettingMap);
449
450
  }
@@ -506,54 +506,19 @@ export default {
506
506
 
507
507
  const _endY = this.extracorporealCirculationHeight ? endY + this.extracorporealCirculationHeight : endY;
508
508
  const baseY = _endY + 2; // 目前固定10像素的下边距
509
- const baseYLimit = endY - 2; // 目前固定10像素的上边距
509
+ const baseYTop = endY - 2; // 目前固定10像素的上边距
510
510
  const lineHeightText = (obj.style?.fontSize || 12) + 2;
511
511
  const lineHeightImg = (obj.iconStyle?.height || 12) + 2;
512
512
  const lineHeightSeq = (obj.seqStyle?.circle?.radius || 9) * 2 + 2;
513
- let prevLeft = originX;
514
- let prevCondition;
513
+ let prevLeft = 0;
515
514
  const pointerObj = {};
516
515
 
517
- const setTop = (item, lineHeight, i, condition) => {
518
- let _lineHeight = lineHeight;
519
- if (item.desc && obj.showDesc) {
520
- _lineHeight = lineHeight + lineHeightText;
521
- }
522
- if (!~condition.limitIndex) {
523
- condition.y += i === 0 ? _lineHeight / 2 : _lineHeight;
524
- if (condition.y >= endY + markHeight - _lineHeight / 2) {
525
- condition.limitIndex++;
526
- if (condition.limitIndex === 0) {
527
- condition.y = baseYLimit;
528
- condition.y -= _lineHeight / 2;
529
- }
530
- }
531
- } else {
532
- condition.y -= _lineHeight;
533
- }
534
- const y = condition.y;
535
- let y1,
536
- y2 = y;
537
- if (item.desc && obj.showDesc) {
538
- y1 = y + _lineHeight / 2 - lineHeight - lineHeightText / 2;
539
- y2 = y + _lineHeight / 2 - lineHeight / 2;
540
- }
541
- return { y1, y2 };
542
- };
543
516
  this.markData.forEach((item, index) => {
544
- const condition = {
545
- limitIndex: -1, // 标志点是否往上排列的标志,大于-1则表示需要往上排列
546
- y: baseY
547
- };
548
517
  const x = this.computedX(item[0]);
549
- // 相隔小于或等于一个小格的宽度就继承上个时间标记的高度继续计算定位,即错位显示
550
- const prevHasBelowShow = pointerObj[`x_${prevLeft}`]?.some(o => o > endY);
551
- if (x - prevLeft <= xCellWidth && prevHasBelowShow) {
552
- Object.assign(condition, prevCondition);
553
- }
554
518
  if (this.isLimit(item[0])) {
555
- const pointList = [];
556
519
  pointerObj[`x_${x}`] = [];
520
+ const pointList = [];
521
+ let startTop = baseY;
557
522
  item[1].forEach(async (v, i) => {
558
523
  const common = {
559
524
  data: v.data || {},
@@ -564,29 +529,82 @@ export default {
564
529
  objectCaching: false
565
530
  };
566
531
 
567
- let conditionRes;
532
+ let lineHeight;
568
533
  if (this.isObject(v) && !v.value) {
569
- conditionRes = setTop(v, lineHeightImg, i, condition);
570
- pointList.push(this.drawMarkPoint(v, common, obj, conditionRes, x));
534
+ lineHeight = lineHeightImg;
571
535
  } else if (v.value) {
572
536
  if (v.seq) {
573
- conditionRes = setTop(v, lineHeightSeq, i, condition);
574
- pointList.push(this.drawMarkPoint(v, common, obj, conditionRes, x));
537
+ lineHeight = lineHeightSeq;
575
538
  } else {
576
- conditionRes = setTop(v, lineHeightText, i, condition);
577
- pointList.push(this.drawMarkPoint(v, common, obj, conditionRes, x));
539
+ lineHeight = lineHeightText;
578
540
  }
579
541
  }
580
- pointerObj[`x_${x}`].push(conditionRes.y2);
542
+
543
+ if (lineHeight) {
544
+ const isShowDesc = v.desc && obj.showDesc;
545
+ // 错位显示处理
546
+ if (prevLeft && x - prevLeft <= xCellWidth) {
547
+ pointerObj[`x_${prevLeft}`].forEach(([y1, y2]) => {
548
+ if (startTop + lineHeight + (isShowDesc ? lineHeightText : 0) >= endY + markHeight) {
549
+ startTop = baseYTop;
550
+ }
551
+ if (y1 < y2 && startTop >= y1 && startTop < y2) {
552
+ startTop = y2;
553
+ }
554
+ if (y1 > y2 && startTop > y2 && startTop <= y1) {
555
+ startTop = y2;
556
+ }
557
+ });
558
+ }
559
+ const { topObj, startTop: _startTop, oldStartTop } = computedTop(isShowDesc, startTop, lineHeight);
560
+ startTop = _startTop;
561
+ pointerObj[`x_${x}`].push([oldStartTop, startTop]);
562
+ pointList.push(this.drawMarkPoint(v, common, obj, topObj, x));
563
+ }
581
564
  });
582
565
  prevLeft = x;
583
- prevCondition = condition;
584
566
  Promise.all(pointList).then(res => {
585
567
  this.markObjs.push(...res);
586
568
  this.canvas.add(...res);
587
569
  });
588
570
  }
589
571
  });
572
+
573
+ function computedTop(isShowDesc, startTop, lineHeight) {
574
+ const topObj = {};
575
+ let oldStartTop;
576
+ if (startTop > endY) {
577
+ let _top = startTop + lineHeight;
578
+ topObj.y2 = startTop + lineHeight / 2;
579
+ if (isShowDesc) {
580
+ _top += lineHeightText;
581
+ topObj.y1 = startTop + lineHeightText / 2;
582
+ topObj.y2 = startTop + lineHeightText + lineHeight / 2;
583
+ }
584
+ if (_top >= endY + markHeight) {
585
+ setTopY(baseYTop);
586
+ } else {
587
+ oldStartTop = startTop;
588
+ startTop = _top;
589
+ }
590
+ } else {
591
+ setTopY(startTop);
592
+ }
593
+
594
+ function setTopY(base) {
595
+ oldStartTop = base;
596
+ topObj.y2 = base - lineHeight / 2;
597
+ const _y = base - lineHeight;
598
+ if (isShowDesc) {
599
+ topObj.y1 = _y - lineHeightText / 2;
600
+ startTop = _y - lineHeightText;
601
+ } else {
602
+ startTop = _y;
603
+ }
604
+ }
605
+
606
+ return { topObj, startTop, oldStartTop };
607
+ }
590
608
  },
591
609
  async drawMarkPoint(v, option, obj, { y1, y2 }, x) {
592
610
  const positionObj = {
@@ -236,6 +236,7 @@
236
236
  <!-- v-if="item.type == 'ADD'" -->
237
237
  <li ref="rowTileBtnItem" class="rowTileBtn-item" :key="item.sid" v-if="showLi(item)" :data-key="item.sid" data-source="rowTile">
238
238
  <template v-if="isFrontendComponent(item) && !item.isHide">
239
+ <!-- 读卡 -->
239
240
  <slot name="frontendComponent" v-bind="$attrs" :curBtn="item"></slot>
240
241
  </template>
241
242
  <template v-else-if="item.type == 'ADD' || item.type == 'BATCH'">
@@ -318,7 +319,8 @@
318
319
  <a-menu slot="overlay">
319
320
  <template v-for="(b, j) in rowFoldBtnList">
320
321
  <template v-if="isFrontendComponent(b)">
321
- <a-sub-menu v-if="visibleBtn(b)" title="读卡" :key="b.sid">
322
+ <a-sub-menu v-if="visibleBtn(b)" :title="b.alias || b.name" :key="b.sid">
323
+ <!-- 读卡 -->
322
324
  <slot name="frontendComponent" v-bind="$attrs" comType="submenu" :curBtn="b"></slot>
323
325
  </a-sub-menu>
324
326
  </template>
@@ -349,7 +351,8 @@
349
351
  <template slot="title"></template>
350
352
  <template v-for="(b, j) in value.list">
351
353
  <template v-if="isFrontendComponent(b)">
352
- <a-sub-menu v-if="visibleBtn(b)" title="读卡" :key="b.sid">
354
+ <a-sub-menu v-if="visibleBtn(b)" :title="b.alias || b.name" :key="b.sid">
355
+ <!-- 读卡 -->
353
356
  <slot name="frontendComponent" v-bind="$attrs" comType="submenu" :curBtn="b"></slot>
354
357
  </a-sub-menu>
355
358
  </template>
@@ -2037,7 +2040,7 @@ export default create({
2037
2040
 
2038
2041
  if (result.method !== 'sync') return;
2039
2042
  // 同步刷新列表
2040
- this.editTableWrapper?.$refs?.editTable?.getTableList('', false, true, true);
2043
+ this.editTableWrapper?.$refs?.editTable?.getTableList({setNum: true, isResetCondiTionDigital: true});
2041
2044
  } catch (error) {
2042
2045
  console.log('error', error);
2043
2046
  }
@@ -440,7 +440,7 @@ export const outQuickSearchDefCommon = {
440
440
  if (promises.length) {
441
441
  await Promise.allSettled(promises);
442
442
  }
443
- let type = config?.type === 'reset' ? '' : 'outSearchInit';
443
+ let type = config?.type === 'reset' ? 'reset' : 'outSearchInit';
444
444
  this.outFilterChange({ type });
445
445
  } catch (err) {
446
446
  console.log(err);
@@ -732,6 +732,14 @@ export const outQuickSearchFn = {
732
732
  temp.value = useValue;
733
733
  }
734
734
  }
735
+ // 多选模式
736
+ if (String(advanceOptionSetting) === '1') {
737
+ // 多选模式非数组的值,转换为数组
738
+ if (!Array.isArray(useValue)) {
739
+ useValue = [useValue];
740
+ // temp.value = useValue;
741
+ }
742
+ }
735
743
  let hasArr = Array.isArray(useValue) && useValue.length > 0;
736
744
  if (item.comType == 'SelectMuiWordBook' && hasArr) {
737
745
  temp.value = useValue.join('|#|');