This commit is contained in:
joylink_cuiweidong 2020-11-11 17:00:13 +08:00
commit 2b51f077fc

View File

@ -3,7 +3,7 @@
<el-dialog v-dialogDrag title="场景列表" :visible.sync="dialogVisible" width="900px" center> <el-dialog v-dialogDrag title="场景列表" :visible.sync="dialogVisible" width="900px" center>
<el-tabs v-model="activeName" type="card" style="height: 500px;"> <el-tabs v-model="activeName" type="card" style="height: 500px;">
<el-tab-pane label="主场景列表" name="first"> <el-tab-pane label="主场景列表" name="first">
<el-table :data="mainSceneData" border :span-method="objectSpanMethod" stripe :cell-style="{padding: '8px 0'}"> <el-table :data="mainSceneData" border :span-method="objectSpanMethod" style="overflow: auto;height: 440px;" stripe :cell-style="{padding: '8px 0'}">
<el-table-column type="index" width="50" label="序号" /> <el-table-column type="index" width="50" label="序号" />
<el-table-column prop="type" width="200" label="类别" /> <el-table-column prop="type" width="200" label="类别" />
<el-table-column prop="scene" width="350" label="场景" /> <el-table-column prop="scene" width="350" label="场景" />
@ -66,7 +66,8 @@ export default {
{type: '车站机电设备故障', scene: '站台门故障', result:[]}, {type: '车站机电设备故障', scene: '站台门故障', result:[]},
// {type: '', scene: '', result:[]}, // {type: '', scene: '', result:[]},
{type: '限速', scene: '列车限速', result:[]}, {type: '限速', scene: '列车限速', result:[]},
{type: '轨道故障', scene: '线路故障影响列车运行', result:[]} {type: '轨道故障', scene: '线路故障影响列车运行', result:[]},
{type: '在区域控制器故障', scene: '线路故障多车降级', result:[]}
], ],
deputySceneData: [ deputySceneData: [
{ scene: '列车在站停车超时' }, { scene: '列车在站停车超时' },
@ -97,6 +98,8 @@ export default {
this.mainSceneData[5].result.push({id:each.id, name:'场景8', description: each.description, disposalProcesses: each.disposalProcesses}); this.mainSceneData[5].result.push({id:each.id, name:'场景8', description: each.description, disposalProcesses: each.disposalProcesses});
} else if (each.name == '场景10') { } else if (each.name == '场景10') {
this.mainSceneData[7].result.push({id:each.id, name:'场景10', description: each.description, disposalProcesses: each.disposalProcesses}); this.mainSceneData[7].result.push({id:each.id, name:'场景10', description: each.description, disposalProcesses: each.disposalProcesses});
} else if (each.name == '场景12') {
this.mainSceneData[9].result.push({id:each.id, name:'场景12', description: each.description, disposalProcesses: each.disposalProcesses});
} }
}); });
} }