mode
This commit is contained in:
parent
82e9e8963f
commit
ab2fb202d9
|
@ -76,7 +76,7 @@ export default {
|
||||||
|
|
||||||
async submit() {
|
async submit() {
|
||||||
const res = await request.post("report_generation/create", this.form)
|
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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import request from "@/api/request";
|
||||||
import firstStep from "./firstStep";
|
import firstStep from "./firstStep";
|
||||||
import secondStep from "./secondStep";
|
import secondStep from "./secondStep";
|
||||||
import thirdStep from "./thirdStep"
|
import thirdStep from "./thirdStep"
|
||||||
|
@ -29,13 +30,18 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
|
this.getProcessNode()
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
setStep(value) {
|
setStep(value) {
|
||||||
this.id = value.id
|
this.id = value.id
|
||||||
this.active = value.active
|
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>
|
||||||
<el-row style="height: calc(100% - 60px)">
|
<el-row style="height: calc(100% - 60px)">
|
||||||
<fecr-table :page="form" :total="data.total" :slots="['状态', '操作']" :data="data.items"
|
<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">
|
<template slot="状态" slot-scope="value">
|
||||||
<span :style="{
|
<span :style="{
|
||||||
color:
|
color:
|
||||||
|
@ -71,7 +72,7 @@ import request from "@/api/request";
|
||||||
import FecrTable from "@/components/FecrTable";
|
import FecrTable from "@/components/FecrTable";
|
||||||
import FecrDialog from "@/components/FecrDialog"
|
import FecrDialog from "@/components/FecrDialog"
|
||||||
export default {
|
export default {
|
||||||
components: { FecrTable,FecrDialog },
|
components: { FecrTable, FecrDialog },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
|
|
Loading…
Reference in New Issue