parent
c0c1ef8d05
commit
2524e45c42
@ -97,7 +97,7 @@
|
|||||||
<div class="content-row">
|
<div class="content-row">
|
||||||
<div class="cell btn">
|
<div class="cell btn">
|
||||||
<div class="btn-text">试灯按钮</div>
|
<div class="btn-text">试灯按钮</div>
|
||||||
<img
|
<div class="btn-sd btn-img"
|
||||||
:src="getIcon('green', 'btn')"
|
:src="getIcon('green', 'btn')"
|
||||||
@mousedown.left="btnClickHandler('SD')"
|
@mousedown.left="btnClickHandler('SD')"
|
||||||
@mouseup.left="btnClickHandler('SD')"
|
@mouseup.left="btnClickHandler('SD')"
|
||||||
@ -151,14 +151,11 @@ export default {
|
|||||||
initData(group, standCode) {
|
initData(group, standCode) {
|
||||||
getPslStatus(group, standCode)
|
getPslStatus(group, standCode)
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
console.log(resp);
|
|
||||||
if (resp.data) {
|
if (resp.data) {
|
||||||
this.data.indicators = resp.data;
|
this.indicators = resp.data;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {});
|
||||||
this.$message.error("获取PSL盘初始状态异常!");
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
doClose() {
|
doClose() {
|
||||||
@ -172,25 +169,20 @@ export default {
|
|||||||
: icons[type];
|
: icons[type];
|
||||||
},
|
},
|
||||||
btnClickHandler(btnType) {
|
btnClickHandler(btnType) {
|
||||||
// pressPslButton(group, standCode, btnType)
|
pressPslButton(group, standCode, btnType);
|
||||||
// .then(resp => {})
|
|
||||||
// .catch(err => {
|
|
||||||
// this.$message.error("PSL盘操作异常!");
|
|
||||||
// });
|
|
||||||
console.log(`${btnType} button clicked`)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$store.state.socket.simulationPslStatus': function(val){
|
"$store.state.socket.simulationPslStatus": function(val) {
|
||||||
if (val && val[standCode]) {
|
if (val && val[standCode]) {
|
||||||
console.log(`socket msg of psl: ${val[standCode]}`);
|
Object.assign(this.indicators, val[standCode])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style vars="{icons}" lang="scss" scoped>
|
||||||
.psl-title {
|
.psl-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -336,7 +336,8 @@ const socket = {
|
|||||||
simulationAlarmInfo: [], // 仿真报警信息
|
simulationAlarmInfo: [], // 仿真报警信息
|
||||||
deviceStateMessages: null, // 新版订阅设备状态消息
|
deviceStateMessages: null, // 新版订阅设备状态消息
|
||||||
simulationSpeed: 1, // 仿真倍速
|
simulationSpeed: 1, // 仿真倍速
|
||||||
simulationPause: false
|
simulationPause: false,
|
||||||
|
simulationPslStatus: [], //PSL面板按钮状态信息
|
||||||
},
|
},
|
||||||
getters: {
|
getters: {
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user