This commit is contained in:
fan 2020-12-16 10:55:25 +08:00
commit d5b0508467
2 changed files with 7 additions and 3 deletions

View File

@ -62,7 +62,7 @@
<el-dialog <el-dialog
title="切换客流数据" title="切换客流数据"
:visible.sync="flowDataShow" :visible.sync="flowDataShow"
top="50px" top="150px"
width="400px" width="400px"
:before-do-close="flowDataClose" :before-do-close="flowDataClose"
:close-on-click-modal="false" :close-on-click-modal="false"
@ -75,7 +75,7 @@
<el-option <el-option
v-for="item in flowDataList" v-for="item in flowDataList"
:key="item.id" :key="item.id"
:label="item.name" :label="item.name==currentFlowDataName?item.name+' [运行中]':item.name"
:value="item.id" :value="item.id"
/> />
</el-select> </el-select>
@ -178,6 +178,7 @@ export default {
}, },
'$store.state.socket.standPfiNum':function(val) { '$store.state.socket.standPfiNum':function(val) {
if (val) { if (val) {
console.log(val, 'standPfiNum');
const stationNumList = val; const stationNumList = val;
stationNumList.forEach(stationNum=>{ stationNumList.forEach(stationNum=>{
stationNum.deviceType = 'STAND'; stationNum.deviceType = 'STAND';
@ -188,6 +189,7 @@ export default {
}, },
'$store.state.socket.trainPfiNum':function(val) { '$store.state.socket.trainPfiNum':function(val) {
if (val) { if (val) {
console.log(val, 'trainPfiNum');
const trainNumList = this.$store.state.socket.trainPfiNum; const trainNumList = this.$store.state.socket.trainPfiNum;
trainNumList.forEach(stationNum=>{ trainNumList.forEach(stationNum=>{
stationNum.deviceType = 'TRAIN'; stationNum.deviceType = 'TRAIN';
@ -370,6 +372,8 @@ export default {
}, },
changeFlowData() { changeFlowData() {
this.flowDataShow = true; this.flowDataShow = true;
const currentFlowData = this.flowDataList.find(each=>{ return each.name == this.currentFlowDataName; });
if (currentFlowData) { this.currentFlowDataId = currentFlowData.id; }
}, },
end() { end() {
exitRunPlan(this.group).then(() => { exitRunPlan(this.group).then(() => {

View File

@ -253,7 +253,7 @@ export default {
</script> </script>
<style> <style>
.schema { .schema {
z-index: 8; z-index: 18;
display: inline; display: inline;
position: absolute; position: absolute;
right: 5px; right: 5px;