Commit 7b05117e by Mr. Lan

fix bug.

parent 45d723ce
Showing with 12 additions and 12 deletions
...@@ -90,29 +90,28 @@ ...@@ -90,29 +90,28 @@
</div> </div>
<div class="text item" style="text-align: center;margin-top:18px"> <div class="text item" style="text-align: center;margin-top:18px">
<div <div
v-if=" v-if="nodeStepList[activeIndex].activeOrder &&
!nodeStepList[activeIndex].activeOrder || processStructureValue.workOrder.state.length > 1"
processStructureValue.workOrder.state.length <= 1"
> >
<template v-for="(item, index) in processStructureValue.edges">
<el-button <el-button
v-if="item.source===nodeStepList[activeIndex].id && processStructureValue.workOrder.is_end===0" v-permisaction="['process:list:handle:active']"
:key="index"
type="primary" type="primary"
@click="submitAction(item)" @click="activeOrderActive"
> >
{{ item.label }} 主动接单
</el-button> </el-button>
</template>
</div> </div>
<div v-else> <div v-else>
<template v-for="(item, index) in processStructureValue.edges">
<el-button <el-button
v-permisaction="['process:list:handle:active']" v-if="item.source===nodeStepList[activeIndex].id && processStructureValue.workOrder.is_end===0"
:key="index"
type="primary" type="primary"
@click="activeOrderActive" @click="submitAction(item)"
> >
主动接单 {{ item.label }}
</el-button> </el-button>
</template>
</div> </div>
</div> </div>
</div> </div>
...@@ -231,6 +230,7 @@ export default { ...@@ -231,6 +230,7 @@ export default {
// 当前节点 // 当前节点
this.nodeStepList.push(this.processStructureValue.nodes[i]) this.nodeStepList.push(this.processStructureValue.nodes[i])
this.activeIndex = this.nodeStepList.length - 1 this.activeIndex = this.nodeStepList.length - 1
console.log(this.processStructureValue.workOrder.state.length, this.processStructureValue.workOrder.state.length <= 1)
if (i + 1 === this.processStructureValue.nodes.length) { if (i + 1 === this.processStructureValue.nodes.length) {
this.activeIndex = this.nodeStepList.length this.activeIndex = this.nodeStepList.length
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment