cnhis-design-vue 0.2.50-beta → 0.2.53-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.
- package/es/fabric-chart/index.js +25 -23
- package/es/index/index.js +151 -130
- package/es/index/style.css +1 -1
- package/es/multi-chat/index.js +40 -26
- package/es/multi-chat/style.css +1 -1
- package/es/multi-chat-client/index.js +40 -26
- package/es/multi-chat-client/style.css +1 -1
- package/es/scale-view/index.js +25 -25
- package/es/scale-view/style.css +1 -1
- package/es/table-filter/index.js +61 -56
- package/es/table-filter/style.css +1 -1
- package/lib/cui.common.js +253 -232
- package/lib/cui.umd.js +253 -232
- package/lib/cui.umd.min.js +21 -21
- package/package.json +1 -1
- package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +13 -11
- package/packages/multi-chat/chat/chatMain.vue +15 -3
- package/packages/scale-view/scaleView.vue +11 -2
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +8 -2
- package/packages/table-filter/src/components/table-modal/TableModal.vue +2 -2
package/package.json
CHANGED
|
@@ -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
|
-
|
|
371
|
-
const {
|
|
372
|
-
|
|
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 =
|
|
376
|
-
const isMin =
|
|
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(
|
|
396
|
-
const text = drawText(
|
|
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(
|
|
402
|
-
const text = drawText(
|
|
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.
|
|
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
|
|
1050
|
-
|
|
1058
|
+
activatedTime: {
|
|
1059
|
+
immediate: true,
|
|
1060
|
+
handler(value) {
|
|
1061
|
+
this.handleScrollTo(this._scrollTop);
|
|
1062
|
+
}
|
|
1051
1063
|
},
|
|
1052
1064
|
/**
|
|
1053
1065
|
* 图片懒加载处理
|
|
@@ -444,12 +444,21 @@ export default create({
|
|
|
444
444
|
!this.isPreviewScale &&
|
|
445
445
|
this.showEvaluatePage &&
|
|
446
446
|
this.showEvaluateSettingWrap &&
|
|
447
|
-
!this.isFinished
|
|
447
|
+
!this.isFinished &&
|
|
448
|
+
!this.noBtn &&
|
|
449
|
+
!this.hideBtn
|
|
448
450
|
);
|
|
449
451
|
},
|
|
450
452
|
// 是否展示倒计时
|
|
451
453
|
showEvaluateCoundownPage() {
|
|
452
|
-
return
|
|
454
|
+
return (
|
|
455
|
+
!this.isPreviewScale &&
|
|
456
|
+
!this.showEvaluateEntry &&
|
|
457
|
+
this.showEvaluateCountdownWrap &&
|
|
458
|
+
!this.isFinished &&
|
|
459
|
+
!this.noBtn &&
|
|
460
|
+
!this.hideBtn
|
|
461
|
+
);
|
|
453
462
|
},
|
|
454
463
|
// 是否设置 evaluateResultSetting
|
|
455
464
|
hasEvaluateResultSetting() {
|
|
@@ -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
|
-
|
|
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" />
|