Commit 7b05117e by Mr. Lan

fix bug.

parent 45d723ce
Showing with 12 additions and 12 deletions
......@@ -90,29 +90,28 @@
</div>
<div class="text item" style="text-align: center;margin-top:18px">
<div
v-if="
!nodeStepList[activeIndex].activeOrder ||
processStructureValue.workOrder.state.length <= 1"
v-if="nodeStepList[activeIndex].activeOrder &&
processStructureValue.workOrder.state.length > 1"
>
<template v-for="(item, index) in processStructureValue.edges">
<el-button
v-if="item.source===nodeStepList[activeIndex].id && processStructureValue.workOrder.is_end===0"
:key="index"
v-permisaction="['process:list:handle:active']"
type="primary"
@click="submitAction(item)"
@click="activeOrderActive"
>
{{ item.label }}
主动接单
</el-button>
</template>
</div>
<div v-else>
<template v-for="(item, index) in processStructureValue.edges">
<el-button
v-permisaction="['process:list:handle:active']"
v-if="item.source===nodeStepList[activeIndex].id && processStructureValue.workOrder.is_end===0"
:key="index"
type="primary"
@click="activeOrderActive"
@click="submitAction(item)"
>
主动接单
{{ item.label }}
</el-button>
</template>
</div>
</div>
</div>
......@@ -231,6 +230,7 @@ export default {
// 当前节点
this.nodeStepList.push(this.processStructureValue.nodes[i])
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) {
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