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