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