mode
This commit is contained in:
parent
88c6731b59
commit
dd75e22eda
|
@ -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)
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -449,6 +449,7 @@ export default {
|
|||
input_form: this.data,
|
||||
}).then((res) => {
|
||||
this.$message.success(res.info);
|
||||
this.$router.push("/company")
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue