BUG修改
This commit is contained in:
parent
fb78805786
commit
bab0c94093
|
@ -607,9 +607,7 @@ export default {
|
||||||
this.submitFrom.infoList = this.submitFrom.infoList.filter(
|
this.submitFrom.infoList = this.submitFrom.infoList.filter(
|
||||||
(item) => item.attrType !== obj.attrType
|
(item) => item.attrType !== obj.attrType
|
||||||
)
|
)
|
||||||
if (obj.attrValue) {
|
this.submitFrom.infoList.push(obj)
|
||||||
this.submitFrom.infoList.push(obj)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
changeAdd () {
|
changeAdd () {
|
||||||
const arr = []
|
const arr = []
|
||||||
|
@ -803,6 +801,8 @@ export default {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
this.submitFrom.infoList = newArr
|
this.submitFrom.infoList = newArr
|
||||||
|
// 检验是否有空值
|
||||||
|
this.submitFrom.infoList = this.submitFrom.infoList.filter(item => item.attrValue)
|
||||||
this.$http
|
this.$http
|
||||||
.put('/resource/update', this.submitFrom)
|
.put('/resource/update', this.submitFrom)
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
|
|
|
@ -581,9 +581,7 @@ export default {
|
||||||
},
|
},
|
||||||
changeInfoList (obj) {
|
changeInfoList (obj) {
|
||||||
this.submitFrom.infoList = this.submitFrom.infoList.filter((item) => item.attrType !== obj.attrType)
|
this.submitFrom.infoList = this.submitFrom.infoList.filter((item) => item.attrType !== obj.attrType)
|
||||||
if (obj.attrValue) {
|
this.submitFrom.infoList.push(obj)
|
||||||
this.submitFrom.infoList.push(obj)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
submitData () {
|
submitData () {
|
||||||
const arr = []
|
const arr = []
|
||||||
|
@ -711,6 +709,8 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log('编辑===============>', this.submitFrom)
|
console.log('编辑===============>', this.submitFrom)
|
||||||
|
// 检验是否有空值
|
||||||
|
this.submitFrom.infoList = this.submitFrom.infoList.filter(item => item.attrValue)
|
||||||
this.$http
|
this.$http
|
||||||
.put('/resource/update', this.submitFrom)
|
.put('/resource/update', this.submitFrom)
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
|
|
Loading…
Reference in New Issue