企标制修订计划管控-重新起草-企标类别 回显
This commit is contained in:
@@ -11,11 +11,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="content" v-show="active === '1'">
|
<div class="content" v-show="active === '1'">
|
||||||
<div style="flex: auto; overflow: auto">
|
<div style="flex: auto; overflow: auto">
|
||||||
<process-title v-if="showFlag">
|
<!-- <process-title v-if="showFlag">-->
|
||||||
|
<process-title>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</process-title>
|
</process-title>
|
||||||
<el-form
|
<el-form
|
||||||
v-if="showFlag"
|
|
||||||
class="label-input-form prc-content-border"
|
class="label-input-form prc-content-border"
|
||||||
label-width="150px"
|
label-width="150px"
|
||||||
>
|
>
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<component ref="childForm" :message="qbfsForm" :is="comName"></component>
|
<component ref="childForm" v-if="isTrue" :message="JSON.parse(JSON.stringify(qbfsForm))" :is="comName"></component>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-collapse accordion>
|
<el-collapse accordion>
|
||||||
@@ -282,6 +282,7 @@ export default {
|
|||||||
commentText: "",
|
commentText: "",
|
||||||
comName: "establish",
|
comName: "establish",
|
||||||
qbfsForm: {},
|
qbfsForm: {},
|
||||||
|
isTrue:true,
|
||||||
formLoading: false,
|
formLoading: false,
|
||||||
approvalFlag: false,
|
approvalFlag: false,
|
||||||
showFlag: true,
|
showFlag: true,
|
||||||
@@ -378,12 +379,29 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
const processForm = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
this.getFormFieldList(processForm)
|
this.getFormFieldList(JSON.parse(JSON.stringify(processForm)))
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
deepClone(orig) {
|
||||||
|
var copy = Object.create(Object.getPrototypeOf(orig))
|
||||||
|
this.copyOwnPropertiesFrom(copy,orig);
|
||||||
|
return copy;
|
||||||
|
},
|
||||||
|
copyOwnPropertiesFrom(target, source) {
|
||||||
|
Object.getOwnPropertyNames(source)
|
||||||
|
.forEach(ele =>{
|
||||||
|
// 获取到每个属性的所有描述,然后重新定义对象的属性并返回此对象。
|
||||||
|
var desc = Object.getOwnPropertyDescriptor(source,ele);
|
||||||
|
Object.defineProperty(target,ele,desc)
|
||||||
|
});
|
||||||
|
return target;
|
||||||
|
},
|
||||||
|
getType(target){
|
||||||
|
return Object.prototype.toString.call(target).toLowerCase().slice(8,-1)
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 动态表单读取
|
* @description: 动态表单读取
|
||||||
*/
|
*/
|
||||||
@@ -408,25 +426,30 @@ export default {
|
|||||||
this.comName = "establish"
|
this.comName = "establish"
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
this.qbfsForm = item.qbfsForm || item;
|
this.qbfsForm = item.qbfsForm || JSON.parse(JSON.stringify(item));
|
||||||
if (this.qbfsForm.bussSort) {
|
this.isTrue = false
|
||||||
if(this.qbfsForm.bussSort instanceof Array){
|
this.$nextTick(()=>{
|
||||||
this.qbfsForm.bussSort = this.qbfsForm.bussSort[0]
|
this.isTrue = true
|
||||||
}else {
|
})
|
||||||
let val = this.qbfsForm.bussSort.replace('//',"").replace('["',"").replace('"]',"").toString()
|
// if (this.qbfsForm.bussSort){
|
||||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
// if(this.qbfsForm.bussSort instanceof Array){
|
||||||
if (val instanceof Array) {
|
// // if(this.getType(this.qbfsForm.bussSort) === 'array'){
|
||||||
this.qbfsForm.bussSort = this.form.bussSort.join(",")[0];
|
// this.qbfsForm.bussSort = this.qbfsForm.bussSort[0]
|
||||||
} else {
|
// }else {
|
||||||
this.qbfsForm.bussSort = val
|
// let val = this.qbfsForm.bussSort.replace('//',"").replace('["',"").replace('"]',"").toString()
|
||||||
}
|
// if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||||
} else if (val === '') {
|
// if (val instanceof Array) {
|
||||||
this.qbfsForm.bussSort = ""
|
// this.qbfsForm.bussSort = this.form.bussSort.join(",")[0];
|
||||||
}
|
// } else {
|
||||||
}
|
// this.qbfsForm.bussSort = val
|
||||||
} else {
|
// }
|
||||||
this.qbfsForm.bussSort = ""
|
// } else if (val === '') {
|
||||||
}
|
// this.qbfsForm.bussSort = ""
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// this.qbfsForm.bussSort = ""
|
||||||
|
// }
|
||||||
this.formLoading = false;
|
this.formLoading = false;
|
||||||
// this.commentText = item.commentText
|
// this.commentText = item.commentText
|
||||||
this.roleForm.dockUser = item.dockUser || item.roleForm.dockUser;
|
this.roleForm.dockUser = item.dockUser || item.roleForm.dockUser;
|
||||||
|
|||||||
Reference in New Issue
Block a user