大铁项目 代码调整

This commit is contained in:
joylink_cuiweidong 2022-06-08 17:05:44 +08:00
parent 3167b551b9
commit 9425ef8239

View File

@ -72,12 +72,14 @@
<div class="runplanContentR">
<el-table
id="runplanContentTable"
ref="runplanContentTable"
:data="tableData"
border
height="695"
highlight-current-row
style="width: 100%;border:1px #ccc solid"
@cell-click="selectedTripNumber"
@current-change="handleCurrentChange"
>
<!-- @row-click="selected" -->
<el-table-column
@ -564,6 +566,16 @@ export default {
// * @param arriveSectionCode
// * @param departSectionCode
// * @param force 0:1
// CTC_BATCH_MODIFY_RUN_PLAN
//
// stationCode
// planParamList
// [{
// runPlanCode //
// arriveSectionCode //
// departSectionCode //
// }]
// force 0:1
},
closeDialog() {
this.closeFlash();
@ -574,9 +586,14 @@ export default {
document.getElementById('sendRunplan').className = sendRunplan.replace('active', '');
},
selectedTripNumber(row, column, cell, event) {
// if (column.property == 'tripNumber') {
// this.$refs.singleTable.setCurrentRow(row);
// }
if (column.property == 'tripNumber') {
console.log(this.currentRow);
} else {
this.$refs.runplanContentTable.setCurrentRow();
}
},
handleCurrentChange(val) {
this.currentRow = val;
}
}
};
@ -854,4 +871,12 @@ export default {
#runplanContentTable .el-input__icon{
width: 17px;
}
#runplanContentTable .el-table__body tr.current-row>td {
background-color: #6aa8ec;
color: #fff;
}
#runplanContentTable .el-table__body tr.current-row>td .el-input--mini .el-input__inner{
background-color: #6aa8ec;
color: #fff;
}
</style>