修改详情流程错乱问题
This commit is contained in:
parent
f81c63f5f0
commit
4b153997d3
@ -34,8 +34,9 @@ export default {
|
||||
const res = await this.$API.orders.order.maintenance.info.post(this.params);
|
||||
if(res.code == 200){
|
||||
if(res.data.process_engine){
|
||||
res.data.process_engine = this.processList(res.data.process_engine).processedList;
|
||||
res.data.process_num = this.processList(res.data.process_engine).num;
|
||||
let obj = this.processList(res.data.process_engine);
|
||||
res.data.process_engine = obj.processedList;
|
||||
res.data.process_num = obj.num;
|
||||
}
|
||||
this.info = res.data;
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@
|
||||
<div class="title">流程进度</div>
|
||||
<div class="cardBody">
|
||||
<el-steps class="orderSteps" :active="info.process_num" align-center>
|
||||
<el-step :status="item.status" v-for="item in info.process_engine" :key="item" :title="item.description" />
|
||||
<el-step :status="item.status" v-for="(item,index) in info.process_engine" :key="index" :title="item.description" />
|
||||
</el-steps>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -47,8 +47,9 @@ export default {
|
||||
const res = await this.$API.orders.order.maintenance.info.post(this.params);
|
||||
if(res.code == 200){
|
||||
if(res.data.process_engine){
|
||||
res.data.process_engine = this.processList(res.data.process_engine).processedList;
|
||||
res.data.process_num = this.processList(res.data.process_engine).num;
|
||||
let obj = this.processList(res.data.process_engine);
|
||||
res.data.process_engine = obj.processedList;
|
||||
res.data.process_num = obj.num;
|
||||
}
|
||||
this.info = res.data;
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
<div class="title">流程进度</div>
|
||||
<div class="cardBody">
|
||||
<el-steps class="orderSteps" :active="info.process_num" align-center>
|
||||
<el-step :status="item.status" v-for="item in info.process_engine" :key="item" :title="item.description" />
|
||||
<el-step :status="item.status" v-for="(item,index) in info.process_engine" :key="index" :title="item.description" />
|
||||
</el-steps>
|
||||
</div>
|
||||
</div>
|
||||
@ -201,8 +201,9 @@ export default {
|
||||
const res = await this.$API.orders.order.maintenance.info.post(this.params);
|
||||
if(res.code == 200){
|
||||
if(res.data.process_engine){
|
||||
res.data.process_engine = this.processList(res.data.process_engine).processedList;
|
||||
res.data.process_num = this.processList(res.data.process_engine).num;
|
||||
let obj = this.processList(res.data.process_engine);
|
||||
res.data.process_engine = obj.processedList;
|
||||
res.data.process_num = obj.num;
|
||||
}
|
||||
this.info = res.data;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user