From 135e9bddb7809973d250e33243ce82be9051240b Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 7 May 2020 11:20:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?iscs=20=E6=9C=BA=E7=94=B5=E4=BC=A0=E6=84=9F?= =?UTF-8?q?=E5=99=A8=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iscs/iscsSystem/config/bas/sensor.vue | 122 ++++++++++++++++++ src/views/iscs/iscsSystem/config/index.vue | 5 +- src/views/iscsSystem/index.vue | 2 - 3 files changed, 126 insertions(+), 3 deletions(-) create mode 100644 src/views/iscs/iscsSystem/config/bas/sensor.vue diff --git a/src/views/iscs/iscsSystem/config/bas/sensor.vue b/src/views/iscs/iscsSystem/config/bas/sensor.vue new file mode 100644 index 000000000..3e1b28349 --- /dev/null +++ b/src/views/iscs/iscsSystem/config/bas/sensor.vue @@ -0,0 +1,122 @@ + + + {{ $route.query.stationName }}机电传感器 + + + A端 + + + + + 模拟量 + 温度 ℃ + 湿度 % + + + {{ imitate.temperature }} + {{ imitate.temperature }} + {{ imitate.humidity }} + + + + + + + + + + diff --git a/src/views/iscs/iscsSystem/config/index.vue b/src/views/iscs/iscsSystem/config/index.vue index a47a57e76..7154a59b8 100644 --- a/src/views/iscs/iscsSystem/config/index.vue +++ b/src/views/iscs/iscsSystem/config/index.vue @@ -24,6 +24,7 @@ + @@ -52,6 +53,7 @@ import AFC from './afc/afc'; import stationHallACS from './acs/stationHallACS'; import standACS from './acs/standACS'; import doorFG from './fg/doorFG'; +import Sensor from './bas/sensor'; export default { components: { @@ -78,7 +80,8 @@ export default { AFC, stationHallACS, standACS, - doorFG + doorFG, + Sensor }, data() { return { diff --git a/src/views/iscsSystem/index.vue b/src/views/iscsSystem/index.vue index 7f37633fa..89242aacf 100644 --- a/src/views/iscsSystem/index.vue +++ b/src/views/iscsSystem/index.vue @@ -167,8 +167,6 @@ export default { }, reSize() { this.$nextTick(() => { - this.width = this.$store.state.config.width; - this.height = this.$store.state.config.height; this.$iscs && this.$iscs.resize({ width: this.width, height: this.height }); }); }, From 1c12b88d6d5c90812a4085e681bca936c4d3bdc7 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Thu, 7 May 2020 13:35:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=98=BE=E7=A4=BA=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/map.js | 11 +++++------ src/jmapNew/theme/ningbo_01/model.js | 9 +++++++++ src/jmapNew/transformHandleScreen.js | 11 +++++++++-- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index 1852c8715..f9cb6ed03 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -157,14 +157,13 @@ class Jlmap { } setUpdateScreen(opts) { + const scale = 0.3; this.$painter.updateTransform1( [ - { scaleRate: 0.3, offsetY: -100 }, - { scaleRate: 0.3, offsetY: -300 }, - { scaleRate: 0.3, offsetY: -500 }, - { scaleRate: 0.3, offsetY: -700 }, - { scaleRate: 0.3, offsetY: -900 }, - { scaleRate: 0.3, offsetY: -1100 } + { scaleRate: scale, offsetY: -100 }, + { scaleRate: scale, offsetY: -300 }, + { scaleRate: scale, offsetY: -500 }, + { scaleRate: scale, offsetY: -700 } ], {width: opts.width, height: opts.height}); } diff --git a/src/jmapNew/theme/ningbo_01/model.js b/src/jmapNew/theme/ningbo_01/model.js index b5f49ae6a..c696290aa 100644 --- a/src/jmapNew/theme/ningbo_01/model.js +++ b/src/jmapNew/theme/ningbo_01/model.js @@ -42,6 +42,15 @@ class Model { }; } + handleScreenProps(viewModel) { // 大屏隐藏元素 + const model = viewModel.model; + if (model._type == deviceType.OutFrame || + model._type == deviceType.Text || + model._type == deviceType.AutoTurnBack) { + return true; + } + } + initPublicProps(model) { if (model) { var modelInitial = this.public[model._type]; diff --git a/src/jmapNew/transformHandleScreen.js b/src/jmapNew/transformHandleScreen.js index 7d99e56ad..2fa289655 100644 --- a/src/jmapNew/transformHandleScreen.js +++ b/src/jmapNew/transformHandleScreen.js @@ -1,5 +1,7 @@ import {createTransform, createBoundingRect} from './utils/parser'; +import Vue from 'vue'; +import store from '@/store/index_APP_TARGET'; class TransformHandle { constructor(painter) { @@ -21,10 +23,15 @@ class TransformHandle { if (view) { for (let i = 0; i < this.transform.length; i++) { view.transform = this.transform[i]; - view.decomposeTransform(); + view.decomposeTransform(); // 修改 transform 后同步位置 + const propConvert = Vue.prototype.$theme.loadPropConvert(store.state.map.map.skinVO.code); + if (propConvert.handleScreenProps && propConvert.handleScreenProps(view)) { + view.hide(); + return; + } if (this.checkVisible(view)) { view.show(); return; } else { view.hide(); } } - view.dirty(); + view.dirty(); // 更新 } }