cnhis-design-vue 0.2.49-beta → 0.2.52-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 (44) hide show
  1. package/es/age/index.js +2 -2
  2. package/es/big-table/index.js +66 -53
  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 +33 -31
  11. package/es/form-table/index.js +17 -17
  12. package/es/index/index.js +349 -312
  13. package/es/index/style.css +1 -1
  14. package/es/input/index.js +1 -1
  15. package/es/map/index.js +1 -1
  16. package/es/multi-chat/index.js +63 -49
  17. package/es/multi-chat/style.css +1 -1
  18. package/es/multi-chat-client/index.js +57 -43
  19. package/es/multi-chat-client/style.css +1 -1
  20. package/es/multi-chat-history/index.js +4 -4
  21. package/es/multi-chat-record/index.js +4 -4
  22. package/es/multi-chat-setting/index.js +20 -20
  23. package/es/multi-chat-sip/index.js +1 -1
  24. package/es/radio/index.js +1 -1
  25. package/es/scale-view/index.js +52 -49
  26. package/es/scale-view/style.css +1 -1
  27. package/es/select/index.js +3 -3
  28. package/es/select-label/index.js +3 -3
  29. package/es/select-person/index.js +2 -2
  30. package/es/table-filter/index.js +80 -75
  31. package/es/table-filter/style.css +1 -1
  32. package/es/tag/index.js +1 -1
  33. package/es/verification-code/index.js +2 -2
  34. package/lib/cui.common.js +472 -435
  35. package/lib/cui.umd.js +472 -435
  36. package/lib/cui.umd.min.js +29 -29
  37. package/package.json +2 -2
  38. package/packages/big-table/src/components/player-vod/player.vue +1 -0
  39. package/packages/big-table/src/components/player-vod/video-modal.vue +12 -1
  40. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +13 -11
  41. package/packages/multi-chat/chat/chatMain.vue +15 -3
  42. package/packages/table-filter/src/base-search-com/BaseSearch.vue +8 -2
  43. package/packages/table-filter/src/components/table-modal/TableModal.vue +2 -2
  44. package/src/component/player-vod/video-modal.vue +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "0.2.49-beta",
3
+ "version": "0.2.52-beta",
4
4
  "description": "基于 Ant Desgin Vue 的UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -95,4 +95,4 @@
95
95
  "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
96
96
  }
97
97
  }
98
- }
98
+ }
@@ -160,6 +160,7 @@ export default {
160
160
  // scoped
161
161
  // 进度显示当前播放时间
162
162
  .video-js {
163
+ height: 512px;
163
164
  .vjs-time-control {
164
165
  display: block;
165
166
  }
@@ -1,5 +1,15 @@
1
1
  <template>
2
- <a-modal :visible="previewVisible" :footer="null" @cancel="handleCancel" wrapClassName="image-modal" width="65vw" height="60vh">
2
+ <a-modal
3
+ :visible="previewVisible"
4
+ :footer="null"
5
+ @cancel="handleCancel"
6
+ wrapClassName="image-modal"
7
+ width="65vw"
8
+ :bodyStyle="{
9
+ height: '600px',
10
+ overflowY: 'auto'
11
+ }"
12
+ >
3
13
  <div class="preview-wrap">
4
14
  <div class="preview">
5
15
  <playerVod :playerOptions="playerOptions" v-if="fileList && fileList.length === 0"></playerVod>
@@ -91,6 +101,7 @@ export default {
91
101
  .preview {
92
102
  padding: 20px 0;
93
103
  width: 60vw;
104
+ height: 100%;
94
105
  // height: 60vh;
95
106
  // display: flex;
96
107
  // justify-content: center;
@@ -366,14 +366,15 @@ export default {
366
366
  const getTime = new Date(time).getTime();
367
367
  return getTime >= minMinute && getTime <= maxMinute;
368
368
  },
369
- // 创建危急值
370
- createCritical(polyline, polylineIndex, polylineType, polylineTypeId) {
371
- const { critical = null, list } = polyline;
372
- if (!critical?.max && !critical?.min) return;
369
+ // 创建危急值和差异值
370
+ createAttrVaule(attr, polyline, polylineIndex, polylineType, polylineTypeId) {
371
+ const { list } = polyline;
372
+ const valueObj = polyline[attr] || {};
373
+ if (!valueObj.max && !valueObj.min) return;
373
374
 
374
375
  const { originX, endX } = this.propItems;
375
- const isMax = critical?.max?.value && list.some(v => +v.value >= +critical.max.value && this.isLimit(v.time));
376
- const isMin = critical?.min?.value && list.some(v => +v.value <= +critical.min.value && this.isLimit(v.time));
376
+ const isMax = valueObj.max?.show && valueObj.max?.value && list.some(v => +v.value >= +valueObj.max.value && this.isLimit(v.time));
377
+ const isMin = valueObj.min?.show && valueObj.min?.value && list.some(v => +v.value <= +valueObj.min.value && this.isLimit(v.time));
377
378
  const lines = [];
378
379
 
379
380
  const drawLine = ({ value, lineStyle }) => {
@@ -392,14 +393,14 @@ export default {
392
393
  };
393
394
 
394
395
  if (isMax) {
395
- const line = drawLine(critical.max);
396
- const text = drawText(critical.max, line.top);
396
+ const line = drawLine(valueObj.max);
397
+ const text = drawText(valueObj.max, line.top);
397
398
  line.text = text;
398
399
  lines.push(line, text);
399
400
  }
400
401
  if (isMin) {
401
- const line = drawLine(critical.min);
402
- const text = drawText(critical.min, line.top);
402
+ const line = drawLine(valueObj.min);
403
+ const text = drawText(valueObj.min, line.top);
403
404
  line.text = text;
404
405
  lines.push(line, text);
405
406
  }
@@ -471,7 +472,8 @@ export default {
471
472
  this.canvas.requestRenderAll();
472
473
  });
473
474
 
474
- this.createCritical(polyline, polylineIndex, polylineType, polylineTypeId);
475
+ this.createAttrVaule('critical', polyline, polylineIndex, polylineType, polylineTypeId);
476
+ this.createAttrVaule('diffValue', polyline, polylineIndex, polylineType, polylineTypeId);
475
477
  },
476
478
  // 计算y轴坐标
477
479
  cumputedY(polylineType, linePointY) {
@@ -24,7 +24,7 @@
24
24
  <a-radio-button :value="item.id + '-' + item.fromId" v-for="item in sessionHistoryList" :key="item.id + item.fromId">{{ item.fromName }}</a-radio-button>
25
25
  </a-radio-group>
26
26
  </div>
27
- <div class="online-message" ref="message-wrapper" v-infinite-scroll="handleInfiniteOnLoad">
27
+ <div class="online-message" ref="message-wrapper" v-infinite-scroll="handleInfiniteOnLoad" @scroll="scrollEvent">
28
28
  <template v-for="(item, index) in msgList">
29
29
  <div :key="index" v-if="item">
30
30
  <p v-if="isNeedShowTime(item, index)" class="message-time">
@@ -227,6 +227,7 @@ import ReadRecord from '../components/read-record';
227
227
  import chatHeader from './chatHeader';
228
228
  import 'viewerjs/dist/viewer.css';
229
229
  import { component as Viewer } from "v-viewer";
230
+ // import Viewer from 'v-viewer/src/component.vue';
230
231
  import { getRecallText } from '../utils';
231
232
  import vexutils from '@/utils/vexutils';
232
233
  import ObserverScroll from '../utils/observer-scroll';
@@ -506,6 +507,9 @@ export default {
506
507
  if (scrollTo === 'current') {
507
508
  top = target.scrollHeight - this.scrollHeight;
508
509
  }
510
+ if(typeof scrollTo === 'number') {
511
+ top = scrollTo;
512
+ }
509
513
  target.scrollTo({
510
514
  left: 0,
511
515
  top,
@@ -895,8 +899,13 @@ export default {
895
899
  });
896
900
  this.contextMenuShow = true;
897
901
  },
902
+ scrollEvent(e) {
903
+ console.log("e.target.scrollTop->", e.target.scrollTop);
904
+ this._scrollTop = e.target.scrollTop;
905
+ },
898
906
  /* 事件绑定 */
899
907
  attachEvent() {
908
+ this.scrollEvent = vexutils.debounce(this.scrollEvent, 800);
900
909
  const handleClick = () => {
901
910
  this.contextMenuShow = false;
902
911
  };
@@ -1046,8 +1055,11 @@ export default {
1046
1055
  }
1047
1056
  }
1048
1057
  },
1049
- activatedTime(value) {
1050
- this.setScrollTo('bottom');
1058
+ activatedTime: {
1059
+ immediate: true,
1060
+ handler(value) {
1061
+ this.handleScrollTo(this._scrollTop);
1062
+ }
1051
1063
  },
1052
1064
  /**
1053
1065
  * 图片懒加载处理
@@ -1133,16 +1133,19 @@ export default create({
1133
1133
  });
1134
1134
  }
1135
1135
  let paramsData = utils.setParamsValue(params, this.paramsData);
1136
+ Object.assign(btn, {
1137
+ _index_: j
1138
+ })
1136
1139
  let btnData = {
1137
1140
  btnData: Object.assign(setData, {
1138
1141
  paramsData: paramsData,
1139
1142
  btnName: btn.name,
1140
- _params_data: this.paramsData
1143
+ _params_data: this.paramsData,
1141
1144
  }),
1142
1145
  indexList: indexList,
1143
1146
  btnConfig: JSON.parse(JSON.stringify(btn)),
1144
1147
  _params_data: this.paramsData,
1145
- _type_: btn.type
1148
+
1146
1149
  };
1147
1150
  this.$emit('btnEvent', btnData);
1148
1151
  },
@@ -1192,6 +1195,9 @@ export default create({
1192
1195
  this.$message.info('请点击要操作的数据' || this.$t('1.9.140'));
1193
1196
  return;
1194
1197
  }
1198
+ Object.assign(item, {
1199
+ _index_: j,
1200
+ })
1195
1201
  this.$emit('clickBtn', data, item, index);
1196
1202
  },
1197
1203
  clickGroupBtn(btn, j) {
@@ -58,7 +58,7 @@
58
58
  设置为默认
59
59
  <!-- {{ $t("1.1.3.2.3") }} -->
60
60
  </span>
61
- <span v-show="isAdmin" class="list-title-item">
61
+ <span v-show="isAdmin && type=='mananger'" class="list-title-item">
62
62
  设置公共首页
63
63
  <!-- {{ $t("1.9.113") }} -->
64
64
  </span>
@@ -95,7 +95,7 @@
95
95
  :checked="item.isDefault"
96
96
  /> -->
97
97
  </span>
98
- <span class="list-content-item" v-show="isAdmin">
98
+ <span class="list-content-item" v-show="isAdmin && type=='mananger'">
99
99
  <!-- isHead == 2 -->
100
100
 
101
101
  <a-switch @change="changecommonSwitch(item)" :checked="item.isCommon" />
@@ -5,7 +5,10 @@
5
5
  @cancel="handleCancel"
6
6
  wrapClassName="image-modal"
7
7
  width="65vw"
8
- height="60vh"
8
+ :bodyStyle="{
9
+ height: '600px',
10
+ overflowY: 'auto'
11
+ }"
9
12
  >
10
13
  <div class="preview-wrap">
11
14
  <div class="preview">
@@ -100,6 +103,7 @@ export default {
100
103
  .preview {
101
104
  padding: 20px 0;
102
105
  width: 60vw;
106
+ height: 100%;
103
107
  // height: 60vh;
104
108
  // display: flex;
105
109
  // justify-content: center;