运行图代码调整
This commit is contained in:
parent
b312371a64
commit
0f3c1e9ab8
@ -133,14 +133,14 @@
|
||||
<!-- prop="stopTime" -->
|
||||
<el-table-column :label="this.$t('planMonitor.stopTime')">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.stopTime" placeholder="请输入时间" size="mini" @input="changeStopTime(scope.$index, scope.row.stopTime)" />
|
||||
<el-input v-model="scope.row.stopTime" placeholder="请输入时间" :disabled="scope.row.isDisabled" size="mini" @input="changeStopTime(scope.$index, scope.row.stopTime)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="departureTime" :label="this.$t('planMonitor.departureTime')" />
|
||||
<el-table-column :label="this.$t('planMonitor.runLevel')">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.speedLevel }}
|
||||
<el-input v-model="scope.row.speedLevelTime" placeholder="请输入运行等级" size="mini" @input="changeSpeedLevelTime(scope.$index, scope.row.speedLevelTime)" />
|
||||
<el-input v-model="scope.row.speedLevelTime" placeholder="请输入运行等级" :disabled="scope.row.isDisabled" size="mini" @input="changeSpeedLevelTime(scope.$index, scope.row.speedLevelTime)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -387,8 +387,14 @@ export default {
|
||||
},
|
||||
handleClick(row, column, event) {
|
||||
const arriveConfigList = [];
|
||||
row.parkSectionCodeList.forEach(parkSectionCode=>{
|
||||
arriveConfigList.push({arriveTime:'', departureTime:'', sectionCode:parkSectionCode.sectionCode, stationCode:parkSectionCode.stationCode});
|
||||
row.parkSectionCodeList.forEach((parkSectionCode, index)=>{
|
||||
// const length = row.parkSectionCodeList.length - 1;
|
||||
// if ((index == 0 && parkSectionCode.stationCode == row.parkSectionCodeList[1].stationCode) ||
|
||||
// (index == length && parkSectionCode.stationCode == row.parkSectionCodeList[length].stationCode)) {
|
||||
// arriveConfigList.push({arriveTime:'', departureTime:'', sectionCode:parkSectionCode.sectionCode, stationCode:parkSectionCode.stationCode, isDisabled:true});
|
||||
// } else {
|
||||
arriveConfigList.push({arriveTime:'', departureTime:'', sectionCode:parkSectionCode.sectionCode, stationCode:parkSectionCode.stationCode, isDisabled:false});
|
||||
// }
|
||||
});
|
||||
this.$set(this.addModel, 'arriveConfigList', arriveConfigList);
|
||||
this.addModel.startStationCode = row.startStationCode;
|
||||
|
@ -293,9 +293,11 @@ export default {
|
||||
const op = this.myChart.getOption();
|
||||
op.series.forEach((item, index) => {
|
||||
item.lineStyle.color = '#000';
|
||||
item.lineStyle.width = 0.5;
|
||||
switch (item.name) {
|
||||
case serviceNumber: {
|
||||
item.lineStyle.color = 'red';
|
||||
item.lineStyle.width = 1;
|
||||
break;
|
||||
}
|
||||
case 'trainLabel': {
|
||||
@ -327,6 +329,8 @@ export default {
|
||||
data.push(nor);
|
||||
}
|
||||
});
|
||||
// item.lineStyle.color = '#000';
|
||||
item.lineStyle.width = 0.5;
|
||||
break;
|
||||
}
|
||||
case 'trainLabel': {
|
||||
@ -339,7 +343,8 @@ export default {
|
||||
op.series.push({
|
||||
name: 'trainLabel',
|
||||
lineStyle: {
|
||||
color: 'green'
|
||||
color: 'green',
|
||||
width:2
|
||||
},
|
||||
type: 'line',
|
||||
data: data
|
||||
|
Loading…
Reference in New Issue
Block a user