This commit is contained in:
xuyucheng 2023-03-16 10:06:11 +08:00
parent 82e9e8963f
commit ab2fb202d9
3 changed files with 11 additions and 4 deletions

View File

@ -76,7 +76,7 @@ export default {
async submit() {
const res = await request.post("report_generation/create", this.form)
this.$emit("setStep", { active: 1, id: res.report_generation_id })
this.$emit("setStep", { active: 1, id: res.content.report_flow_id })
},
},
};

View File

@ -10,6 +10,7 @@
</template>
<script>
import request from "@/api/request";
import firstStep from "./firstStep";
import secondStep from "./secondStep";
import thirdStep from "./thirdStep"
@ -29,13 +30,18 @@ export default {
},
created() {
this.getProcessNode()
},
methods: {
setStep(value) {
this.id = value.id
this.active = value.active
},
async getProcessNode(){
const res = await request.post("report_generation/get_node?flow_id="+this.id)
this.active = res.content.findIndex(item=> !item.status)
}
}
};

View File

@ -32,7 +32,8 @@
</el-row>
<el-row style="height: calc(100% - 60px)">
<fecr-table :page="form" :total="data.total" :slots="['状态', '操作']" :data="data.items"
:column="data.items.setColumn().concat({ prop: '操作', label: '操作' })" @handlePageChange="handlePageChange">
:column="data.items.length ? data.items.setColumn().concat({ prop: '操作', label: '操作' }) : []"
@handlePageChange="handlePageChange">
<template slot="状态" slot-scope="value">
<span :style="{
color: