任务逻辑修改
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
</el-row>
|
||||
<div v-if="taskSeq.length > 0" class="task_wraper">
|
||||
<div class="task_content">
|
||||
<div class="step_item" v-for="(e, i) in taskSeq" :key="i" :class="{'step_actived': i <= currentStep, 'step_active': i === currentStep + 1}">
|
||||
<div class="step_item" v-for="(e, i) in taskSeq" :key="i" :class="{'step_actived': i <= currentStep - 1, 'step_active': i === currentStep}">
|
||||
<div v-show="i !== 0" class="step_arrow"><img src="../../images/new/arrow.png"></div>
|
||||
<div class="step_name">{{ e }}</div>
|
||||
</div>
|
||||
@@ -88,6 +88,7 @@ export default {
|
||||
// y: -10.001812, // 车辆y坐标
|
||||
// task_seq: '点位1,点位2,work point 3,顶地方的方法顶顶顶点位3',
|
||||
// task_point: '点位2',
|
||||
// task_seq_index: 2,
|
||||
// anomalyLevel: 1,
|
||||
// errorData: [
|
||||
// {
|
||||
@@ -138,8 +139,7 @@ export default {
|
||||
// this.$store.dispatch('setAgvObj', this.topInfo)
|
||||
// if (this.topInfo.task_seq) {
|
||||
// this.taskSeq = this.topInfo.task_seq.split(',')
|
||||
// const target = this.topInfo.task_point
|
||||
// this.currentStep = this.taskSeq.findIndex(item => item === target)
|
||||
// this.currentStep = this.topInfo.task_seq_index
|
||||
// } else {
|
||||
// this.taskSeq = []
|
||||
// this.currentStep = null
|
||||
@@ -254,8 +254,7 @@ export default {
|
||||
this.topInfo = res.data
|
||||
if (this.topInfo.task_seq) {
|
||||
this.taskSeq = this.topInfo.task_seq.split(',')
|
||||
const target = this.topInfo.task_point
|
||||
this.currentStep = this.taskSeq.findIndex(item => item === target)
|
||||
this.currentStep = this.topInfo.task_seq_index
|
||||
} else {
|
||||
this.taskSeq = []
|
||||
this.currentStep = null
|
||||
|
||||
Reference in New Issue
Block a user