This commit is contained in:
xuyucheng 2022-04-22 10:54:38 +08:00
parent 88c6731b59
commit dd75e22eda
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<template>
<el-row>
<el-col :span="4" :offset="4">
<el-col :span="5" :offset="4">
<el-row type="flex" justify="space-between">
<el-tag
v-for="(item, index) in labelGather"
@ -35,6 +35,7 @@
</div>
</div>
</el-card>
</el-col>
<el-col :span="15" :offset="1">
<div v-if="questionnaire.length !== 0">
@ -144,6 +145,13 @@ export default {
methods: {
init() {
get("/input/questionnaire").then((res) => {
if(this.data['经营问卷'].length === 0){
res.result.forEach(item=>{
item.children.forEach(()=>{
this.data['经营问卷'].push(null)
})
})
}
const state = this.data["经营问卷"].every((item) => {
return item !== null && item !== "" && item.length !== 0
? true
@ -169,7 +177,6 @@ export default {
});
});
this.questionnaire = res.result;
console.log(this.questionnaire)
});
},

View File

@ -449,6 +449,7 @@ export default {
input_form: this.data,
}).then((res) => {
this.$message.success(res.info);
this.$router.push("/company")
});
},