西安三道岔设置故障&iscs调整(未完)

This commit is contained in:
fan 2020-06-24 13:27:58 +08:00
parent 45b88d3a46
commit 9a620f8629
22 changed files with 260 additions and 119 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,6 +5,7 @@
<switch-cmd-control ref="switchCmdControl" />
<speed-cmd-control ref="speedCmdControl" />
<notice-info ref="noticeInfo" pop-class="xian-01__systerm" />
<set-fault ref="setFault" pop-class="xian-01__systerm" />
</div>
</template>

View File

@ -81,20 +81,34 @@ export default {
{
name: 'FAS界面',
mode: 'fas',
id: '1',
id: 'fas',
type: 'system',
children: [
{
name: '站厅报警',
mode: 'fas',
id: '11',
type: 'interface'
id: 'stationHall',
type: 'system',
children: [
{
name: '站厅报警',
mode: 'fas',
id: 'stationHall',
type: 'interface'
}
]
},
{
name: '站台报警',
mode: 'fas',
id: '14',
type: 'interface'
id: 'stand',
type: 'system',
children: {
name: '站台报警',
mode: 'fas',
id: 'stand',
type: 'interface'
}
},
{
name: '站台报警-公共',

View File

@ -18,7 +18,7 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('61');
this.$refs.iscsPlate.show('acs', 'acs', 'stand');
},
methods: {}
};

View File

@ -18,7 +18,7 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('62');
this.$refs.iscsPlate.show('acs', 'acs', 'stationHall');
},
methods: {}
};

View File

@ -18,7 +18,7 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('51');
this.$refs.iscsPlate.show('afc', 'afc', 'afc');
},
methods: {}
};

View File

@ -18,7 +18,7 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('21');
this.$refs.iscsPlate.show('bas', 'bigSystem', 'bigSystem');
},
methods: {

View File

@ -19,7 +19,7 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('26');
this.$refs.iscsPlate.show('bas', 'electricEscalator', 'electricEscalator');
},
methods: {

View File

@ -23,15 +23,15 @@ export default {
const device = this.$store.state.iscs.selected;
if (device && device._type === 'IscsButton' && device.function === 'GoEPS') {
this.width = 1520;
this.$refs.iscsPlate.iscsLoadData('25');
this.$refs.iscsPlate.iscsLoadData('bas', 'lightingSystem', 'epsSystem');
} else if (device && device._type === 'IscsButton' && device.function === 'GoBack') {
this.width = 1220;
this.$refs.iscsPlate.iscsLoadData('24');
this.$refs.iscsPlate.iscsLoadData('bas', 'lightingSystem', 'lightingSystem');
}
}
},
mounted() {
this.$refs.iscsPlate.show('24');
this.$refs.iscsPlate.show('bas', 'lightingSystem', 'lightingSystem');
},
methods: {

View File

@ -23,18 +23,18 @@ export default {
const device = this.$store.state.iscs.selected;
if (device && device._type === 'IscsButton' && device.function === 'GoBMiniSystem') { // B
this.width = 1400;
this.$refs.iscsPlate.iscsLoadData('22-1');
this.$refs.iscsPlate.iscsLoadData('bas', 'smallSystem', 'bSide');
} else if (device && device._type === 'IscsButton' && device.function === 'GoAMiniSystem1') { // A()
this.width = 1200;
this.$refs.iscsPlate.iscsLoadData('22');
this.$refs.iscsPlate.iscsLoadData('bas', 'smallSystem', 'aSideOne');
} else if (device && device._type === 'IscsButton' && device.function === 'GoAMiniSystem2') { // A()
this.width = 1200;
this.$refs.iscsPlate.iscsLoadData('22-2');
this.$refs.iscsPlate.iscsLoadData('bas', 'smallSystem', 'aSideTwo');
}
}
},
mounted() {
this.$refs.iscsPlate.show('22');
this.$refs.iscsPlate.show('bas', 'smallSystem', 'aSideOne');
},
methods: {

View File

@ -18,7 +18,7 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('210');
this.$refs.iscsPlate.show('bas', 'stationNet', 'stationNet');
},
methods: {

View File

@ -22,16 +22,15 @@ export default {
const device = this.$store.state.iscs.selected;
if (device && device._type === 'IscsButton' && device.function === 'GoJetFan') {
this.width = 1150;
this.$refs.iscsPlate.iscsLoadData('29');
this.$refs.iscsPlate.iscsLoadData('bas', 'tunnelVentilation', 'jetFan');
} else if (device && device._type === 'IscsButton' && device.function === 'GoBack') {
this.width = 1300;
this.$refs.iscsPlate.iscsLoadData('28');
this.$refs.iscsPlate.iscsLoadData('bas', 'tunnelVentilation', 'tunnelVentilation');
}
// console.log(this.width, '');
}
},
mounted() {
this.$refs.iscsPlate.show('28');
this.$refs.iscsPlate.show('bas', 'tunnelVentilation', 'tunnelVentilation');
},
methods: {

View File

@ -18,7 +18,7 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('27');
this.$refs.iscsPlate.show('bas', 'waterSupply', 'waterSupply');
},
methods: {

View File

@ -18,7 +18,7 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('23');
this.$refs.iscsPlate.show('bas', 'waterSystem', 'waterSystem');
},
methods: {

View File

@ -8,7 +8,7 @@
import Vue from 'vue';
import Iscs from '@/iscs/iscs';
import { parser } from '@/iscs/utils/parser';
import iscsData from '@/iscs/constant/iscsData';
import {getIscsData} from '@/iscs/constant/iscsData';
export default {
name: 'Iscs',
@ -78,8 +78,8 @@ export default {
this.iscsDestroy();
},
methods: {
show (deviceCode) {
if (!deviceCode) {
show (mode, system, part) {
if (!mode || !system || !part) {
return;
}
document.getElementById(this.iscsId).oncontextmenu = function (e) {
@ -87,7 +87,7 @@ export default {
};
this.iscsDestroy();
this.loading = true;
const data = parser(iscsData[deviceCode], {width: this.widthCanvas, height: this.canvasHeight});
const data = parser(getIscsData(mode, system, part), {width: this.widthCanvas, height: this.canvasHeight});
this.$iscs = new Iscs({
dom: document.getElementById(this.iscsId),
config: {
@ -109,8 +109,8 @@ export default {
if (this.$route.params.mode) {
this.$iscs.on('selected', this.onSelected, this);
}
this.setIscs(data, iscsData[deviceCode]);
this.$store.dispatch('iscs/setIscsData', iscsData[deviceCode]);
this.setIscs(data, getIscsData(mode, system, part));
this.$store.dispatch('iscs/setIscsData', getIscsData(mode, system, part));
window.document.oncontextmenu = function () {
return false;
};
@ -118,8 +118,8 @@ export default {
setIscs(data, oldData) {
this.$iscs.setIscs(oldData, data);
},
iscsLoadData(deviceCode) {
this.$iscs.loadData(parser(iscsData[deviceCode], {width: this.widthCanvas, height: this.canvasHeight}));
iscsLoadData(mode, system, part) {
this.$iscs.loadData(parser(getIscsData(mode, system, part), {width: this.widthCanvas, height: this.canvasHeight}));
},
//
onSelected(em) {

View File

@ -17,7 +17,7 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('43');
this.$refs.iscsPlate.show('cctv', 'centralDeviceState', 'centralDeviceState');
},
methods: {

View File

@ -102,9 +102,9 @@
</div>
<div class="cctv-box-content">
<div style="position: relative;width: 75px;left: 10px;">
<div id="cctv-41" class="cctv-box-content-btn" @click="changeCCTV('41')">站厅</div>
<div id="cctv-42" class="cctv-box-content-btn" @click="changeCCTV('42')">站台</div>
<div id="cctv-44" class="cctv-box-content-btn" @click="changeCCTV('44')">云台</div>
<div id="cctv-stationHall" class="cctv-box-content-btn" @click="changeCCTV('stationHall')">站厅</div>
<div id="cctv-stand" class="cctv-box-content-btn" @click="changeCCTV('stand')">站台</div>
<div id="cctv-holder" class="cctv-box-content-btn" @click="changeCCTV('holder')">云台</div>
</div>
<div class="cctv-box-content-draw" :style="{marginLeft: left, marginTop: top}">
<iscsSystem ref="iscsPlate" :width-canvas="width" :canvas-height="height" />
@ -132,7 +132,7 @@ export default {
},
data() {
return {
selectedCCTV: '41',
selectedCCTV: 'stationHall',
descriptionList: [],
textarea: '',
value: '',
@ -184,8 +184,8 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('41');
const cctvBtn = document.getElementById('cctv-41');
this.$refs.iscsPlate.show('cctv', 'cctv', 'stationHall');
const cctvBtn = document.getElementById('cctv-stationHall');
cctvBtn.setAttribute('class', 'cctv-box-content-btn active');
},
methods: {
@ -197,13 +197,13 @@ export default {
this.selectedCCTV = id;
this.left = '0px';
this.top = '0px';
if (id == '41') {
if (id == 'stationHall') {
this.width = 1490;
this.height = 330;
this.left = '-22px';
this.top = '-20px';
}
this.$refs.iscsPlate.iscsLoadData(id);
this.$refs.iscsPlate.iscsLoadData('cctv', 'cctv', id);
},
handleFrames(item) {
this.selectedFlag = item.value;

View File

@ -24,19 +24,19 @@ export default {
if (device && device._type === 'IscsButton' && device.function === 'PublicArea') {
this.width = 1520;
this.$nextTick(() => {
this.$refs.iscsPlate.iscsLoadData('12');
this.$refs.iscsPlate.iscsLoadData('fas', 'stand', 'standPublicArea');
});
console.log(this.width);
} else if (device && device._type === 'IscsButton' && device.function === 'GoBack') {
this.width = 1100;
this.$nextTick(() => {
this.$refs.iscsPlate.iscsLoadData('14');
this.$refs.iscsPlate.iscsLoadData('fas', 'stand', 'stand');
});
}
}
},
mounted() {
this.$refs.iscsPlate.show('14');
this.$refs.iscsPlate.show('fas', 'stand', 'stand');
},
methods: {

View File

@ -19,7 +19,7 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('11');
this.$refs.iscsPlate.show('fas', 'stationHall', 'stationHall');
},
methods: {

View File

@ -18,7 +18,7 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('13');
this.$refs.iscsPlate.show('fas', 'systemState', 'systemState');
},
methods: {

View File

@ -18,7 +18,7 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('71');
this.$refs.iscsPlate.show('net', 'netState', 'netState');
},
methods: {}
};

View File

@ -18,7 +18,7 @@ export default {
};
},
mounted() {
this.$refs.iscsPlate.show('31');
this.$refs.iscsPlate.show('psd', 'psd', 'psd');
},
methods: {}
};