Merge branch 'hi-ucs-dev' of http://124.222.94.39:3001/wuhongjian/hi-ucs into hi-ucs-dev

This commit is contained in:
guoyue 2022-07-14 14:17:09 +08:00
commit 337ee0a931
1 changed files with 7 additions and 7 deletions

View File

@ -518,6 +518,13 @@ export default {
} }
}) })
console.log('编辑===============>', this.submitFrom) console.log('编辑===============>', this.submitFrom)
console.log(this.submitFrom.infoList, '===============abc')
//
const newArr = this.submitFrom.infoList.filter((element, index, self) => {
return self.findIndex(x => x.attrType === element.attrType) === index
})
this.submitFrom.infoList = newArr
console.log(this.submitFrom.infoList, '====================================wpwpwp')
this.$http this.$http
.put('/resource/update', this.submitFrom) .put('/resource/update', this.submitFrom)
.then(({ data: res }) => { .then(({ data: res }) => {
@ -545,13 +552,6 @@ export default {
}, },
// //
UpdateData (item) { UpdateData (item) {
console.log(item.infoList, '====================================wpwpwp')
//
const newArr = item.infoList.filter((element, index, self) => {
return self.findIndex(x => x.attrType === element.attrType) === index
})
item.infoList = newArr
console.log(item.infoList, '====================================wpwpwp')
this.$http.get('/category/getCategoryTree').then(res => { this.$http.get('/category/getCategoryTree').then(res => {
this.insertList = res.data.data.filter(item => item.name === '组件服务一')[0] this.insertList = res.data.data.filter(item => item.name === '组件服务一')[0]
this.radio = item.infoList.filter(val => val.attrType === '组件类型')[0].attrValue this.radio = item.infoList.filter(val => val.attrType === '组件类型')[0].attrValue