cnhis-design-vue 0.2.18-beta → 0.2.19-beta

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 (122) hide show
  1. package/es/affix/index.js +8 -8
  2. package/es/age/index.js +10 -10
  3. package/es/alert/index.js +8 -8
  4. package/es/anchor/index.js +8 -8
  5. package/es/auto-complete/index.js +8 -8
  6. package/es/avatar/index.js +8 -8
  7. package/es/back-top/index.js +8 -8
  8. package/es/badge/index.js +8 -8
  9. package/es/base/index.js +8 -8
  10. package/es/big-table/index.js +434 -211
  11. package/es/big-table/style.css +1 -1
  12. package/es/breadcrumb/index.js +8 -8
  13. package/es/button/index.js +102 -65
  14. package/es/button/style.css +1 -1
  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 +9 -9
  35. package/es/form/index.js +8 -8
  36. package/es/form-model/index.js +8 -8
  37. package/es/index/index.js +1505 -872
  38. package/es/index/style.css +1 -1
  39. package/es/input/index.js +9 -9
  40. package/es/input-number/index.js +8 -8
  41. package/es/layout/index.js +8 -8
  42. package/es/list/index.js +8 -8
  43. package/es/locale-provider/index.js +8 -8
  44. package/es/map/index.js +9 -9
  45. package/es/mentions/index.js +8 -8
  46. package/es/menu/index.js +8 -8
  47. package/es/message/index.js +8 -8
  48. package/es/multi-chat/index.js +650 -247
  49. package/es/multi-chat/style.css +1 -1
  50. package/es/multi-chat-client/index.js +570 -195
  51. package/es/multi-chat-client/style.css +1 -1
  52. package/es/multi-chat-history/index.js +4 -4
  53. package/es/multi-chat-record/index.js +14 -14
  54. package/es/multi-chat-setting/index.js +330 -79
  55. package/es/multi-chat-setting/style.css +1 -1
  56. package/es/multi-chat-sip/index.js +1 -1
  57. package/es/notification/index.js +8 -8
  58. package/es/page-header/index.js +8 -8
  59. package/es/pagination/index.js +8 -8
  60. package/es/popconfirm/index.js +8 -8
  61. package/es/popover/index.js +8 -8
  62. package/es/progress/index.js +8 -8
  63. package/es/radio/index.js +9 -9
  64. package/es/rate/index.js +8 -8
  65. package/es/result/index.js +8 -8
  66. package/es/row/index.js +8 -8
  67. package/es/scale-view/index.js +92 -77
  68. package/es/scale-view/style.css +1 -1
  69. package/es/select/index.js +11 -11
  70. package/es/select-label/index.js +10 -10
  71. package/es/select-person/index.js +2 -2
  72. package/es/skeleton/index.js +8 -8
  73. package/es/slider/index.js +8 -8
  74. package/es/space/index.js +8 -8
  75. package/es/spin/index.js +8 -8
  76. package/es/statistic/index.js +8 -8
  77. package/es/steps/index.js +8 -8
  78. package/es/switch/index.js +8 -8
  79. package/es/table-filter/index.js +241 -143
  80. package/es/table-filter/style.css +1 -1
  81. package/es/tabs/index.js +8 -8
  82. package/es/tag/index.js +9 -9
  83. package/es/time-picker/index.js +8 -8
  84. package/es/timeline/index.js +8 -8
  85. package/es/tooltip/index.js +8 -8
  86. package/es/transfer/index.js +8 -8
  87. package/es/tree/index.js +8 -8
  88. package/es/tree-select/index.js +8 -8
  89. package/es/upload/index.js +8 -8
  90. package/es/utils/UniRTCv2.js +586 -0
  91. package/es/verification-code/index.js +2 -2
  92. package/lib/cui.common.js +2412 -1225
  93. package/lib/cui.umd.js +2412 -1225
  94. package/lib/cui.umd.min.js +61 -61
  95. package/package.json +3 -3
  96. package/packages/big-table/src/BigTable.vue +71 -16
  97. package/packages/big-table/src/assets/style/table-base.less +5 -0
  98. package/packages/big-table/src/components/TextOverTooltip.vue +23 -10
  99. package/packages/big-table/src/utils/batchEditing.js +1 -1
  100. package/packages/big-table/src/utils/bigTableProps.js +2 -1
  101. package/packages/button/src/ButtonPrint/index.vue +49 -14
  102. package/packages/multi-chat/chat/audio.vue +22 -0
  103. package/packages/multi-chat/chat/calling.vue +6 -0
  104. package/packages/multi-chat/chat/chatFooter.vue +43 -3
  105. package/packages/multi-chat/chat/client/clientChat.vue +13 -1
  106. package/packages/multi-chat/chat/index.vue +16 -3
  107. package/packages/multi-chat/chat/mixins/uniRTCAPI.js +77 -0
  108. package/packages/multi-chat/chat/multiVideo.vue +14 -0
  109. package/packages/multi-chat/chat/scrollList.vue +7 -1
  110. package/packages/multi-chat/chat/video.vue +4 -0
  111. package/packages/multi-chat/components/user-status.vue +50 -45
  112. package/packages/multi-chat/setting/baseInfo/index.vue +3 -3
  113. package/packages/multi-chat/setting/configuration/index.vue +38 -1
  114. package/packages/multi-chat/store/actions.js +76 -0
  115. package/packages/multi-chat/store/getters.js +9 -0
  116. package/packages/multi-chat/store/mutation.js +9 -0
  117. package/packages/multi-chat/store/state.js +4 -1
  118. package/packages/scale-view/answerParse.vue +27 -14
  119. package/packages/scale-view/scaleView.vue +18 -8
  120. package/packages/table-filter/src/base-search-com/BaseSearch.vue +74 -7
  121. package/packages/table-filter/src/quick-search/QuickSearch.vue +31 -18
  122. package/src/utils/UniRTCv2.js +561 -0
@@ -36,15 +36,15 @@
36
36
  >
37
37
  <div class="totalScore-warp" v-if="hasScore">
38
38
  <div>
39
- 测评分数:<span>{{ config.totalScore }}分</span>
39
+ 测评总分:<span>{{ maxScore }}分</span>
40
40
  </div>
41
41
  <div>
42
- 测评总分:<span>{{ maxScore }}分</span>
42
+ 测评分数:<span :style="{ color: getEvaResColor }">{{ config.totalScore }}分</span>
43
43
  </div>
44
44
  <template v-if="hasEvaluateSetting">
45
45
  <div>
46
46
  测评结果:
47
- <span class="score-result">{{ config.evaluateResult }}</span>
47
+ <span class="score-result" :style="{ color: getEvaResColor }">{{ config.evaluateResult }}</span>
48
48
  </div>
49
49
  <div>
50
50
  结果说明:<span>{{ config.evaluateResultExplain }}</span>
@@ -517,6 +517,16 @@ export default create({
517
517
  return function(item) {
518
518
  return item.databaseTitle || item.title;
519
519
  };
520
+ },
521
+ getEvaResColor() {
522
+ let { evaluateResultConfig, totalScore } = this.config;
523
+ totalScore = +totalScore || 0;
524
+ if (!evaluateResultConfig.length || !totalScore) return "#2474FF";
525
+ let matchItem = evaluateResultConfig.find(
526
+ item => item.startScore <= totalScore && totalScore <= item.endScore
527
+ );
528
+ if (!matchItem) return "#2474FF";
529
+ return matchItem.color || "#2474FF";
520
530
  }
521
531
  },
522
532
  watch: {
@@ -1242,12 +1252,12 @@ export default create({
1242
1252
  const { relation_logic_is, condition, relation_logic } = relationLogicObj;
1243
1253
  if (relation_logic_is) {
1244
1254
  const results = condition.map(c => {
1245
- const { title } = this.formArray.filter(f => f.seq == c.subject_seq)[0];
1246
- if (utils.isString(form[title])) {
1247
- return c.value.includes(form[title]);
1255
+ let key = this.formKey(this.formArray.filter(f => f.seq == c.subject_seq)[0]);
1256
+ if (utils.isString(form[key])) {
1257
+ return c.value.includes(form[key]);
1248
1258
  } else {
1249
- if (utils.isArray(form[title])) {
1250
- return form[title].some(v => c.value.includes(v));
1259
+ if (utils.isArray(form[key])) {
1260
+ return form[key].some(v => c.value.includes(v));
1251
1261
  }
1252
1262
  }
1253
1263
  });
@@ -44,25 +44,42 @@
44
44
  <li v-if="isShowSetting('hideSearch') && !showRelatedTreeBtn" ref="inputSearchLi" class="baseSearch-input-search">
45
45
  <template v-if="outSearchFieldList && outSearchFieldList.length">
46
46
  <a-input
47
- :style="{ width, margin: '0 8px 8px 0' }"
47
+ :style="{ width: inputSearchW + 'px', margin: '0 8px 8px 0' }"
48
48
  allowClear
49
- placeholder="请输入关键字搜索"
49
+ :placeholder="searchPlaceHolder"
50
50
  :value="currentValue"
51
51
  @input="$emit('input', $event.target.value)"
52
52
  @pressEnter="outFilterChange"
53
+ class="input-search-com"
53
54
  >
55
+ <template slot="prefix" v-if="showPlaceholderPrefix">
56
+ <a-tooltip
57
+ :title="searchPlaceHolder"
58
+ overlayClassName="basesearch-placeholder-tooltip"
59
+ >
60
+ <a-icon type="info-circle" />
61
+ </a-tooltip>
62
+ </template>
54
63
  </a-input>
55
64
  </template>
56
65
  <a-input-search
57
66
  v-else
58
- class="my-input-search"
59
- :style="{ width }"
67
+ class="my-input-search input-search-com"
68
+ :style="{ width: inputSearchW + 'px' }"
60
69
  @search="onSearch"
61
70
  allowClear
62
- placeholder="请输入关键字搜索"
71
+ :placeholder="searchPlaceHolder"
63
72
  :value="currentValue"
64
73
  @input="$emit('input', $event.target.value)"
65
74
  >
75
+ <template slot="prefix" v-if="showPlaceholderPrefix">
76
+ <a-tooltip
77
+ :title="searchPlaceHolder"
78
+ overlayClassName="basesearch-placeholder-tooltip"
79
+ >
80
+ <a-icon type="info-circle" />
81
+ </a-tooltip>
82
+ </template>
66
83
  <a-button slot="enterButton" type="primary">
67
84
  <svg-icon icon-class="xitongtubiaosousuo"></svg-icon>
68
85
  </a-button>
@@ -312,6 +329,10 @@
312
329
  >{{ item.name }} {{ countTabCondition == 1 && (item.digital || item.digital === 0) ? '(' + (item.digital || 0) + ')' : '' }}</div
313
330
  >
314
331
  </div>
332
+ <!-- palceholder 文字宽度计算 -->
333
+ <span class="baseSearchPlaceholderSpan" ref="baseSearchPlaceholderSpan">
334
+ {{ searchPlaceHolder }}
335
+ </span>
315
336
  </div>
316
337
  </template>
317
338
 
@@ -535,7 +556,8 @@ export default create({
535
556
  filterApiConfigOutSearch: {
536
557
  type: Object,
537
558
  default: () => ({})
538
- }
559
+ },
560
+ useFieldList: Array
539
561
  },
540
562
  components: {
541
563
  [Button.name]: Button,
@@ -713,6 +735,18 @@ export default create({
713
735
  return function(key) {
714
736
  return this.$attrs.tableOptions?.[key];
715
737
  }
738
+ },
739
+ searchPlaceHolder() {
740
+ if (!this.useFieldList?.length) return "请输入关键字搜索";
741
+ let str = "";
742
+ let strList = this.useFieldList
743
+ ?.map(item => {
744
+ if (item.isSearch != 1) return "";
745
+ return item.formTitle || item.alias || item.title;
746
+ })
747
+ .filter(Boolean);
748
+ str = strList.join("/");
749
+ return str || "请输入关键字搜索";
716
750
  }
717
751
  },
718
752
  data() {
@@ -760,7 +794,9 @@ export default create({
760
794
  groupBtnObj: {},
761
795
  btnObj: BTNOBJ,
762
796
  printBtnStrategys: [], // 打印按钮组策略list
763
- outRelationQuickSearch: [] // 关联表 筛选外显
797
+ outRelationQuickSearch: [], // 关联表 筛选外显
798
+ inputSearchW: 200,
799
+ showPlaceholderPrefix: false
764
800
  };
765
801
  },
766
802
  created() {
@@ -2043,6 +2079,25 @@ export default create({
2043
2079
  });
2044
2080
  }
2045
2081
  }
2082
+ },
2083
+ searchPlaceHolder: {
2084
+ immediate: true,
2085
+ handler(val) {
2086
+ if (!val) return;
2087
+ this.$nextTick(() => {
2088
+ this.showPlaceholderPrefix = false;
2089
+ let dom = this.$refs.baseSearchPlaceholderSpan;
2090
+ let w = dom.offsetWidth;
2091
+ console.log(w, "wwww");
2092
+ let maxW = this.showOutSearch ? 284 : 244;
2093
+ this.inputSearchW = w > maxW ? 300 : w < 200 ? 200 : w;
2094
+ if (w > maxW) {
2095
+ this.showPlaceholderPrefix = true;
2096
+ }
2097
+ this.onResize();
2098
+ console.log(this.inputSearchW);
2099
+ });
2100
+ }
2046
2101
  }
2047
2102
  }
2048
2103
  });
@@ -2214,6 +2269,13 @@ export default create({
2214
2269
  }
2215
2270
  }
2216
2271
  }
2272
+ .baseSearch-input-search {
2273
+ .input-search-com {
2274
+ input {
2275
+ padding: 4px 8px;
2276
+ }
2277
+ }
2278
+ }
2217
2279
  }
2218
2280
  /deep/ .num-picker {
2219
2281
  position: relative;
@@ -2308,6 +2370,11 @@ export default create({
2308
2370
  /* Internet Explorer 10+ */
2309
2371
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
2310
2372
  }
2373
+ .baseSearchPlaceholderSpan {
2374
+ visibility: hidden;
2375
+ position: absolute;
2376
+ z-index: -1;
2377
+ }
2311
2378
  }
2312
2379
  </style>
2313
2380
  <style lang="less">
@@ -69,20 +69,20 @@
69
69
  </div>
70
70
  <div class="label-unfold-btn" v-if="v.itemList && v.isShowBtn">
71
71
  <!-- {{ v.isUnfold }} -->
72
- <span>
73
- <a-icon
74
- type="up-square"
75
- theme="filled"
76
- style="color: #2d7aff"
77
- @click.stop="handleLabelUpfold(v)"
78
- v-if="v.isUnfold"
79
- />
80
- <a-icon
81
- v-else
82
- type="down-square"
83
- class="label-unfold-btn-down"
84
- @click.stop="handleLabelUpfold(v)"
85
- />
72
+ <span @click.stop="handleLabelUpfold(v)">
73
+ <template v-if="v.isUnfold">
74
+ <span>收起</span>
75
+ <a-icon
76
+ type="up-square"
77
+
78
+ />
79
+ </template>
80
+ <template v-else>
81
+ <span>展开</span>
82
+ <a-icon
83
+ type="down-square"
84
+ />
85
+ </template>
86
86
  </span>
87
87
  </div>
88
88
  </div>
@@ -1693,6 +1693,7 @@ export default create({
1693
1693
  },
1694
1694
 
1695
1695
  handleLabelUpfold(v) {
1696
+ console.log('触发---isUnfold');
1696
1697
  v.isUnfold = !v.isUnfold;
1697
1698
  },
1698
1699
 
@@ -1888,11 +1889,23 @@ export default create({
1888
1889
  padding: 0;
1889
1890
  }
1890
1891
  .label-unfold-btn {
1891
- padding: 0px 15px;
1892
+ margin: 8px 0;
1893
+ color: rgba(0, 0, 0, 0.6);
1894
+ cursor: pointer;
1895
+ >span {
1896
+ display: flex;
1897
+ align-items: center;
1898
+ line-height: 1;
1899
+ }
1900
+ .anticon {
1901
+ font-size: 16px;
1902
+ margin-left: 8px;
1903
+ }
1892
1904
  &:hover {
1893
- .label-unfold-btn-down {
1894
- color: #2d7aff;
1895
- }
1905
+ color: #2d7aff;
1906
+ }
1907
+ &:active {
1908
+ color: #2d7aff;
1896
1909
  }
1897
1910
  }
1898
1911
  }