代码调整

This commit is contained in:
joylink_cuiweidong 2022-06-17 13:27:16 +08:00
parent 5b4fb009a0
commit d6b42cc241

View File

@ -152,7 +152,7 @@
<template slot-scope="scope">
<div v-if="scope.row.arriveRunPlan&&scope.row.arriveRunPlan.adjacentMessage==1 && scope.row.passenger=='PASSENGER'" class="passagerTrain" />
<div v-if="scope.row.arriveRunPlan&&scope.row.arriveRunPlan.adjacentMessage==1 && scope.row.passenger=='GOODS_TRAIN'" class="goodTrain" />
<div v-if="scope.row.arriveRunPlan&&scope.row.arriveRunPlan.adjacentMessage==2 ">{{ coverTime(scope.row.arriveRunPlan.adjacentMessageTime) }}</div>
<div v-if="scope.row.arriveRunPlan&&scope.row.arriveRunPlan.adjacentMessage==2 ">{{ coverRealTime(scope.row.arriveRunPlan.adjacentMessageTime) }}</div>
</template>
</el-table-column>
<el-table-column width="70" prop="arriveRunPlan.adjacentDepart">
@ -324,7 +324,7 @@
<template slot-scope="scope">
<div v-if="scope.row.departRunPlan&&scope.row.departRunPlan.adjacentMessage==1 && scope.row.passenger=='PASSENGER'" class="passagerTrain" />
<div v-if="scope.row.departRunPlan&&scope.row.departRunPlan.adjacentMessage==1 && scope.row.passenger=='GOODS_TRAIN'" class="goodTrain" />
<div v-if="scope.row.departRunPlan&&scope.row.departRunPlan.adjacentMessage==2 ">{{ coverTime(scope.row.departRunPlan.adjacentMessageTime) }}</div>
<div v-if="scope.row.departRunPlan&&scope.row.departRunPlan.adjacentMessage==2 ">{{ coverRealTime(scope.row.departRunPlan.adjacentMessageTime) }}</div>
</template>
</el-table-column>
<el-table-column width="70" prop="departRunPlan.adjacentDepart">
@ -755,11 +755,11 @@ export default {
},
noticeInfo() {
this.$refs.noticeInfo.doShow();
},
coverRealTime(time) {
const date = new Date(time);
return date.getHours() + ':' + date.getMinutes();
}
// coverTime(time) {
// const date = new Date(time);
// return date.getHours() + ':' + date.getMinutes();
// }
}
};