cnhis-design-vue 0.1.85-beta → 0.1.86-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 (50) hide show
  1. package/es/age/index.js +2 -2
  2. package/es/big-table/index.js +59 -51
  3. package/es/big-table/style.css +1 -1
  4. package/es/button/index.js +2 -2
  5. package/es/captcha/index.js +3 -3
  6. package/es/checkbox/index.js +1 -1
  7. package/es/color-picker/index.js +1 -1
  8. package/es/drag-layout/index.js +3 -3
  9. package/es/editor/index.js +1 -1
  10. package/es/fabric-chart/index.js +9 -9
  11. package/es/index/index.js +267 -246
  12. package/es/index/style.css +1 -1
  13. package/es/input/index.js +1 -1
  14. package/es/map/index.js +1 -1
  15. package/es/multi-chat/index.js +43 -43
  16. package/es/multi-chat-client/index.js +37 -37
  17. package/es/multi-chat-history/index.js +4 -4
  18. package/es/multi-chat-record/index.js +6 -6
  19. package/es/multi-chat-setting/index.js +40 -40
  20. package/es/multi-chat-sip/index.js +1 -1
  21. package/es/radio/index.js +1 -1
  22. package/es/scale-view/index.js +24 -24
  23. package/es/select/index.js +3 -3
  24. package/es/select-label/index.js +2 -2
  25. package/es/select-person/index.js +2 -2
  26. package/es/table-filter/index.js +89 -76
  27. package/es/table-filter/style.css +1 -1
  28. package/es/tag/index.js +1 -1
  29. package/es/verification-code/index.js +2 -2
  30. package/lib/cui.common.js +180 -159
  31. package/lib/cui.umd.js +180 -159
  32. package/lib/cui.umd.min.js +17 -17
  33. package/package.json +1 -1
  34. package/packages/big-table/src/BigTable.vue +10 -4
  35. package/packages/table-filter/src/base-search-com/BaseSearch.vue +27 -34
  36. package/packages/table-filter/src/components/table-modal/TableModal.vue +4 -4
  37. package/es/img/audio.75c2c1ea.png +0 -0
  38. package/es/img/customer.a3b50156.png +0 -0
  39. package/es/img/customer_staff.426f87de.png +0 -0
  40. package/es/img/end-voice.cd63ae82.png +0 -0
  41. package/es/img/mute-audio.03ce245b.png +0 -0
  42. package/es/img/no-data.5ed2843c.png +0 -0
  43. package/es/img/no-data2.0ca9388b.png +0 -0
  44. package/es/img/notfound.3a1dabb7.png +0 -0
  45. package/es/img/receive.c4de18e9.png +0 -0
  46. package/es/img/to-session.8d3bf7b0.png +0 -0
  47. package/es/img/video-accept.2d7319b3.png +0 -0
  48. package/es/img/video_default_cover.bbbc9079.png +0 -0
  49. package/es/img/xb_big.7b2a9f5a.png +0 -0
  50. package/es/img/xb_small.dd9ba602.png +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "0.1.85-beta",
3
+ "version": "0.1.86-beta",
4
4
  "description": "基于 Ant Desgin Vue 的UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -848,7 +848,7 @@ export default create({
848
848
  key = temp.tooltip || temp.value; // temp.tooltip 日期的处理
849
849
  }
850
850
  }
851
- return [<a-switch checked={key == item.btnLinkSwitchDefVal} disabled={disabled} on-change={e => this.switchBtnOnChange(e, row, item)} />];
851
+ return [<a-switch checked={key == item.btnLinkSwitchDefVal} disabled={disabled} on-change={e => this.switchBtnOnChange(e, row, item, index)} />];
852
852
  },
853
853
  // 字段显示 jsx
854
854
  getField(row, item, index, isLink) {
@@ -2613,8 +2613,8 @@ export default create({
2613
2613
  if (!data) data = require('./assets/img/xb_big.png');
2614
2614
  this.$emit('handlePreView', data, i);
2615
2615
  },
2616
- switchBtnOnChange(e, r, i) {
2617
- this.$emit('switchBtnOnChange', e, r, i);
2616
+ switchBtnOnChange(e, r, i, index) {
2617
+ this.$emit('switchBtnOnChange', e, r, i, index);
2618
2618
  },
2619
2619
  hanldeCopyContent(e, value) {
2620
2620
  e.preventDefault();
@@ -2624,9 +2624,15 @@ export default create({
2624
2624
  // 链接按钮详情
2625
2625
  linkDetail(row, col, index, e) {
2626
2626
  if (this.isInlineOperating) return false;
2627
+ let vxeTable = this.$refs.xGrid;
2627
2628
  e.preventDefault();
2628
2629
  // e.stopPropagation();
2629
- this.$refs.xGrid.setCurrentRow(row);
2630
+ // 方晶晶验收2.5.12需求, 要求link字段第一次可选中checkbox, 第二次点击不取消选中
2631
+ let isCheckedByCheckboxRow = vxeTable.isCheckedByCheckboxRow(row);
2632
+ if (isCheckedByCheckboxRow) {
2633
+ e.stopPropagation();
2634
+ }
2635
+ vxeTable.setCurrentRow(row);
2630
2636
  this.$emit('setNestTableClick', this.isNestTable);
2631
2637
  this.$emit('setCurRowIndex', index);
2632
2638
  this.$emit('linkDetail', row, col, row[this.handlePrimaryKey], null, false, index);
@@ -8,17 +8,28 @@
8
8
  设置
9
9
  <!-- {{ $t("1.1.5.3") }} -->
10
10
  </a-button>
11
- <a-dropdown overlayClassName="viewList-dropdown" v-if="showViewList">
12
- <a-button class="viewList-button">
13
- <svg-icon :icon-class="'anniuqiehuanmoshi'" style="font-size: 22px"></svg-icon>
14
- </a-button>
15
- <a-menu slot="overlay">
16
- <a-menu-item v-for="(item, index) in viewList" :value="item.id" :key="index" @click="handlerSelectTemp(item.id)" :class="{ 'menu-active': currentTempId === item.id }">
17
- <span>{{ item.name }}</span>
18
- <!-- <a-icon v-if="currentTempId === item.id" type="check" /> -->
19
- </a-menu-item>
20
- </a-menu>
21
- </a-dropdown>
11
+ <template v-if="showViewList">
12
+ <a-popover v-model="viewListVisible" placement="bottom" overlayClassName="product-line-popover viewList-popover" >
13
+ <a-button class="viewList-button">
14
+ <svg-icon :icon-class="'anniuqiehuanmoshi'" style="font-size: 22px"></svg-icon>
15
+ </a-button>
16
+ <template slot="content">
17
+ <ul class="product-line-list">
18
+ <li
19
+ v-for="(item, index) in viewList"
20
+ :value="item.id"
21
+ :key="index"
22
+ @click="handlerSelectTemp(item.id)"
23
+ class="product-line-list-item"
24
+ :class="{ 'active': currentTempId === item.id }"
25
+ >
26
+ <span>{{ item.name }}</span>
27
+ <a-icon v-if="currentTempId === item.id" type="check" class="check-icon product-line-check-icon" />
28
+ </li>
29
+ </ul>
30
+ </template>
31
+ </a-popover>
32
+ </template>
22
33
  </div>
23
34
  <slot name="classification"></slot>
24
35
  <li v-if="isShowSetting('hideQuickSearch') && isRelatedSearchFold" ref="quickSearchLi">
@@ -760,7 +771,8 @@ export default create({
760
771
  groupBtnObj: {},
761
772
  btnObj: BTNOBJ,
762
773
  printBtnStrategys: [], // 打印按钮组策略list
763
- outRelationQuickSearch: [] // 关联表 筛选外显
774
+ outRelationQuickSearch: [], // 关联表 筛选外显
775
+ viewListVisible: false
764
776
  };
765
777
  },
766
778
  created() {
@@ -1183,6 +1195,7 @@ export default create({
1183
1195
  },
1184
1196
  handlerSelectTemp(e) {
1185
1197
  if (this.currentTempId === e) return;
1198
+ this.viewListVisible = false;
1186
1199
  this.currentTempId = e;
1187
1200
  const tab = e == 0 ? 'bigTable' : null;
1188
1201
  this.$emit('handlerChangeView', e, tab);
@@ -1565,7 +1578,7 @@ export default create({
1565
1578
 
1566
1579
  if (editTableWrapper.options && utils.isPlainObject(editTableWrapper.options.extendParams)) {
1567
1580
  // 有额外的参数
1568
- this.options?.extendParams && Object.assign(tableParams.form, this.options.extendParams);
1581
+ editTableWrapper.options?.extendParams && Object.assign(tableParams.form, editTableWrapper.options.extendParams);
1569
1582
  }
1570
1583
  const paramsData = Object.assign(tableParams, {
1571
1584
  table: btn
@@ -2281,27 +2294,7 @@ export default create({
2281
2294
  }
2282
2295
  }
2283
2296
  }
2284
- .viewList-dropdown {
2297
+ .viewList-popover {
2285
2298
  min-width: 120px;
2286
- .ant-dropdown-menu-item {
2287
- display: flex;
2288
- justify-content: space-between;
2289
- align-items: center;
2290
- color: #2e2e2e;
2291
- margin: 1px 0;
2292
- &:hover {
2293
- background: #f2f2f2;
2294
- }
2295
- > span {
2296
- display: inline;
2297
- width: 85%;
2298
- text-overflow: ellipsis;
2299
- white-space: nowrap;
2300
- overflow: hidden;
2301
- }
2302
- }
2303
- .ant-dropdown-menu-item.menu-active {
2304
- color: #2d7aff;
2305
- }
2306
2299
  }
2307
2300
  </style>
@@ -39,11 +39,11 @@
39
39
  <div class="list-title">
40
40
  <span class="list-title-item" style="width:6%"></span>
41
41
  <span class="list-title-item">
42
- 父类名称
42
+ 名称
43
43
  <!-- {{ $t("1.9.362") }} -->
44
44
  </span>
45
45
  <span class="list-title-item">
46
- 名称
46
+ 父类名称
47
47
  <!-- {{ $t("1.1.3.1.1") }} -->
48
48
  </span>
49
49
  <span class="list-title-item">
@@ -73,10 +73,10 @@
73
73
  </a-tooltip>
74
74
  </span>
75
75
  <span :title="item.displayCategory" class="list-content-item">
76
- {{ item.displayCategory }}
76
+ {{ item.name }}
77
77
  </span>
78
78
  <span :title="item.name" class="list-content-item">
79
- {{ item.name }}
79
+ {{ item.displayCategory }}
80
80
  </span>
81
81
  <!-- <span v-show="item.type == 'line'" class="list-content-line"
82
82
  ><span class="text">{{ item.name }}</span></span
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file