企标制修订计划管控-重新起草-企标类别回显 导致 起草页回显问题
This commit is contained in:
@@ -36,7 +36,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<component ref="childForm" v-if="isTrue" :message="JSON.parse(JSON.stringify(qbfsForm))" :is="comName"></component>
|
<component ref="childForm" v-if="isWrite" :message="qbfsForm" :is="comName"></component>
|
||||||
|
<component ref="childForm" v-else :message="JSON.parse(JSON.stringify(qbfsForm))" :is="comName"></component>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-collapse accordion>
|
<el-collapse accordion>
|
||||||
@@ -272,8 +273,12 @@ export default {
|
|||||||
delay,
|
delay,
|
||||||
cancel
|
cancel
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
console.log(!!this.$route.query.taskIds)
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isWrite:!this.$route.query.taskIds,
|
||||||
disabledXX:!!this.$route.query.disabledXX,
|
disabledXX:!!this.$route.query.disabledXX,
|
||||||
submitFlag: '',
|
submitFlag: '',
|
||||||
toggleType: '5',
|
toggleType: '5',
|
||||||
@@ -281,8 +286,9 @@ export default {
|
|||||||
active: "1",
|
active: "1",
|
||||||
commentText: "",
|
commentText: "",
|
||||||
comName: "establish",
|
comName: "establish",
|
||||||
qbfsForm: {},
|
|
||||||
isTrue:true,
|
isTrue:true,
|
||||||
|
qbfsForm: {},
|
||||||
|
componentKey:1,
|
||||||
formLoading: false,
|
formLoading: false,
|
||||||
approvalFlag: false,
|
approvalFlag: false,
|
||||||
showFlag: true,
|
showFlag: true,
|
||||||
@@ -379,7 +385,7 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
const processForm = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
this.getFormFieldList(JSON.parse(JSON.stringify(processForm)))
|
this.getFormFieldList(processForm)
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
})
|
})
|
||||||
@@ -426,11 +432,11 @@ export default {
|
|||||||
this.comName = "establish"
|
this.comName = "establish"
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
this.qbfsForm = item.qbfsForm || JSON.parse(JSON.stringify(item));
|
this.qbfsForm = item.qbfsForm || item
|
||||||
this.isTrue = false
|
// this.isTrue = false
|
||||||
this.$nextTick(()=>{
|
// this.$nextTick(()=>{
|
||||||
this.isTrue = true
|
// this.isTrue = true
|
||||||
})
|
// })
|
||||||
// if (this.qbfsForm.bussSort){
|
// if (this.qbfsForm.bussSort){
|
||||||
// if(this.qbfsForm.bussSort instanceof Array){
|
// if(this.qbfsForm.bussSort instanceof Array){
|
||||||
// // if(this.getType(this.qbfsForm.bussSort) === 'array'){
|
// // if(this.getType(this.qbfsForm.bussSort) === 'array'){
|
||||||
@@ -466,6 +472,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleTabs(name) {
|
handleTabs(name) {
|
||||||
this.active = name;
|
this.active = name;
|
||||||
|
this.isWrite = true
|
||||||
},
|
},
|
||||||
toggleComName(name) {
|
toggleComName(name) {
|
||||||
this.qbfsForm = {}
|
this.qbfsForm = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user