diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step1.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step1.vue
index 85134bb16..2fbf2dd7a 100644
--- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step1.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step1.vue
@@ -11,11 +11,11 @@
-
+
+
基础信息
@@ -36,7 +36,7 @@
-
+
@@ -282,6 +282,7 @@ export default {
commentText: "",
comName: "establish",
qbfsForm: {},
+ isTrue:true,
formLoading: false,
approvalFlag: false,
showFlag: true,
@@ -378,12 +379,29 @@ export default {
}).then(res => {
if (res) {
const processForm = JSON.parse(res.mesg)
- this.getFormFieldList(processForm)
+ this.getFormFieldList(JSON.parse(JSON.stringify(processForm)))
}
}).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: 动态表单读取
*/
@@ -408,25 +426,30 @@ export default {
this.comName = "establish"
break
}
- this.qbfsForm = item.qbfsForm || item;
- if (this.qbfsForm.bussSort) {
- if(this.qbfsForm.bussSort instanceof Array){
- this.qbfsForm.bussSort = this.qbfsForm.bussSort[0]
- }else {
- let val = this.qbfsForm.bussSort.replace('//',"").replace('["',"").replace('"]',"").toString()
- if (val !== '' && val !== null && typeof (val) !== 'undefined') {
- if (val instanceof Array) {
- this.qbfsForm.bussSort = this.form.bussSort.join(",")[0];
- } else {
- this.qbfsForm.bussSort = val
- }
- } else if (val === '') {
- this.qbfsForm.bussSort = ""
- }
- }
- } else {
- this.qbfsForm.bussSort = ""
- }
+ this.qbfsForm = item.qbfsForm || JSON.parse(JSON.stringify(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'){
+ // this.qbfsForm.bussSort = this.qbfsForm.bussSort[0]
+ // }else {
+ // let val = this.qbfsForm.bussSort.replace('//',"").replace('["',"").replace('"]',"").toString()
+ // if (val !== '' && val !== null && typeof (val) !== 'undefined') {
+ // if (val instanceof Array) {
+ // this.qbfsForm.bussSort = this.form.bussSort.join(",")[0];
+ // } else {
+ // this.qbfsForm.bussSort = val
+ // }
+ // } else if (val === '') {
+ // this.qbfsForm.bussSort = ""
+ // }
+ // }
+ // } else {
+ // this.qbfsForm.bussSort = ""
+ // }
this.formLoading = false;
// this.commentText = item.commentText
this.roleForm.dockUser = item.dockUser || item.roleForm.dockUser;