mode
This commit is contained in:
parent
82e9e8963f
commit
ab2fb202d9
|
@ -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 })
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue