大铁项目 ctc 车务管理端 列车固定路径 删除路径
This commit is contained in:
parent
ce67bb0a13
commit
caf5bca3c8
@ -145,6 +145,7 @@ export default {
|
||||
height: this.$store.state.app.height - 61,
|
||||
currentStationCode:'',
|
||||
filterSectionMap:{},
|
||||
currentRow:null,
|
||||
lineTypeMap:{
|
||||
1:'正线',
|
||||
2:'到发线'
|
||||
|
@ -12,7 +12,7 @@
|
||||
<el-button class="trainFixedPathButton" size="small">基本图导入</el-button>
|
||||
<el-button class="trainFixedPathButton" size="small">基本图申请</el-button>
|
||||
<el-button class="trainFixedPathButton" size="small">其他站导入</el-button>
|
||||
<el-button class="trainFixedPathButton" size="small">删除</el-button>
|
||||
<el-button class="trainFixedPathButton" size="small" @click="deleteRunplan">删除</el-button>
|
||||
<el-button class="trainFixedPathButton" size="small">全部清空</el-button>
|
||||
<el-button class="trainFixedPathButton" size="small">修改</el-button>
|
||||
<el-button class="trainFixedPathButton" size="small">查找</el-button>
|
||||
@ -39,6 +39,7 @@
|
||||
:height="(height-100)+'px'"
|
||||
highlight-current-row
|
||||
style="border:1px #ccc solid;"
|
||||
@row-click="selectedSection"
|
||||
>
|
||||
<!-- :height="(height-100)+'px'" -->
|
||||
<!-- @cell-click="selectedTripNumber" -->
|
||||
@ -290,6 +291,7 @@ export default {
|
||||
return {
|
||||
height: this.$store.state.app.height - 61,
|
||||
currentStationCode:'',
|
||||
currentRow:null,
|
||||
tableData:[],
|
||||
filterSectionMap:{}
|
||||
};
|
||||
@ -316,6 +318,9 @@ export default {
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
selectedSection(row, column, event) {
|
||||
this.currentRow = row;
|
||||
},
|
||||
loadStation() {
|
||||
this.$refs.terminalStationList.loadStation();
|
||||
},
|
||||
@ -336,6 +341,26 @@ export default {
|
||||
mapStationDirectionMap:this.mapStationDirectionData
|
||||
});
|
||||
},
|
||||
deleteRunplan() {
|
||||
if (this.currentRow) {
|
||||
const that = this;
|
||||
this.$confirm('确定删除该条列车路径数据?', '警告', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
// stationCode 车站编码
|
||||
const param = {stationCode:this.currentRow.stationCode, runPlanCode:this.currentRow.runPlanCode};
|
||||
commitOperate(menuOperate.CTC.deleteTrainFixedPath, param, 3).then(({valid})=>{
|
||||
if (valid) {
|
||||
that.$message.success('删除成功!');
|
||||
}
|
||||
}).catch(() => {
|
||||
that.$message.error('删除失败');
|
||||
});
|
||||
}).catch(e => {});
|
||||
}
|
||||
},
|
||||
noticeInfo() {
|
||||
this.$emit('noticeInfo');
|
||||
},
|
||||
@ -499,5 +524,9 @@ export default {
|
||||
border-color: #a5a5a5;
|
||||
}
|
||||
#trainFixedPathTableIn.el-table .cell{ padding-left: 5px;padding-right: 5px; text-align: center;font-size: 13px;}
|
||||
#trainFixedPathTableIn .el-table__body tr.current-row>td{
|
||||
background-color: #6aa8ec;
|
||||
color: #fff;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user