Commit 56549410 authored by 李苏's avatar 李苏 💬

/* */

        let ztarr=[]
         fields.forEach((fitem,index)=>{
          if(fitem.caption=='zt'){
            ztarr.push(index)
          }
        })
        if(ztarr.length==2){
          fields.splice(ztarr[1],1)
        }
        /* */
parent 06084c08
......@@ -210,6 +210,17 @@
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
/* */
let ztarr=[]
fields.forEach((fitem,index)=>{
if(fitem.caption=='zt'){
ztarr.push(index)
}
})
if(ztarr.length==2){
fields.splice(ztarr[1],1)
}
/* */
params.fields = JSON.stringify(fields)
},
......
......@@ -220,6 +220,17 @@
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
/* */
let ztarr=[]
fields.forEach((fitem,index)=>{
if(fitem.caption=='zt'){
ztarr.push(index)
}
})
if(ztarr.length==2){
fields.splice(ztarr[1],1)
}
/* */
params.fields = JSON.stringify(fields)
},
beforeEdit(val) {
......
......@@ -209,6 +209,17 @@
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
/* */
let ztarr=[]
fields.forEach((fitem,index)=>{
if(fitem.caption=='zt'){
ztarr.push(index)
}
})
if(ztarr.length==2){
fields.splice(ztarr[1],1)
}
/* */
params.fields = JSON.stringify(fields)
},
beforeEdit(val) {
......
......@@ -160,6 +160,17 @@
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
/* */
let ztarr=[]
fields.forEach((fitem,index)=>{
if(fitem.caption=='zt'){
ztarr.push(index)
}
})
if(ztarr.length==2){
fields.splice(ztarr[1],1)
}
/* */
params.fields = JSON.stringify(fields)
},
saveGw(form) {
......
......@@ -178,6 +178,17 @@
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
/* */
let ztarr=[]
fields.forEach((fitem,index)=>{
if(fitem.caption=='zt'){
ztarr.push(index)
}
})
if(ztarr.length==2){
fields.splice(ztarr[1],1)
}
/* */
params.fields = JSON.stringify(fields)
},
qxwc(ctx) {
......
......@@ -221,7 +221,17 @@
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
console.log(fields,'fields')
/* */
let ztarr=[]
fields.forEach((fitem,index)=>{
if(fitem.caption=='zt'){
ztarr.push(index)
}
})
if(ztarr.length==2){
fields.splice(ztarr[1],1)
}
/* */
params.fields = JSON.stringify(fields)
},
/* 示例*/
......
......@@ -226,6 +226,17 @@
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
/* */
let ztarr=[]
fields.forEach((fitem,index)=>{
if(fitem.caption=='zt'){
ztarr.push(index)
}
})
if(ztarr.length==2){
fields.splice(ztarr[1],1)
}
/* */
params.fields = JSON.stringify(fields)
},
tbxsth(ctx) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment