组件服务-挂接

This commit is contained in:
gaoyuanwei 2022-07-20 15:04:52 +08:00
parent 9cdbc6ef61
commit 29a5016590
2 changed files with 34 additions and 34 deletions

View File

@ -109,11 +109,11 @@ export default {
}
console.log('数据列表', this.dataList, this.mixinViewModuleOptions.getDataListURL)
if (this.dataList[0].type === '组件服务') {
this.dataList.map(val => {
val.infoList = val.infoList.filter(item => item.attrType === '部署位置' || item.attrType === '组件类型' || item.attrType === '应用领域')
})
}
// if (this.dataList[0].type === '组件服务') {
// this.dataList.map(val => {
// val.infoList = val.infoList.filter(item => item.attrType === '部署位置' || item.attrType === '组件类型' || item.attrType === '应用领域')
// })
// }
if (this.mixinViewModuleOptions.requestCallback) {
this.mixinViewModuleOptions.requestCallback(res.data)
}

View File

@ -299,19 +299,19 @@ export default {
this.dataList = this.mixinViewModuleOptions.getDataListIsPage
? res.data.list
: res.data
this.dataList.map((item, index) => {
const dataListSinforList = []
item.infoList.map((itemson, indexson) => {
if (
itemson.attrType === '部署位置' ||
itemson.attrType === '组件类型' ||
itemson.attrType === '应用领域'
) {
dataListSinforList.push(itemson)
}
})
this.dataList[index].infoList = dataListSinforList
})
// this.dataList.map((item, index) => {
// const dataListSinforList = []
// item.infoList.map((itemson, indexson) => {
// if (
// itemson.attrType === '' ||
// itemson.attrType === '' ||
// itemson.attrType === ''
// ) {
// dataListSinforList.push(itemson)
// }
// })
// this.dataList[index].infoList = dataListSinforList
// })
console.log('this.dataList', this.dataList)
this.total = this.mixinViewModuleOptions.getDataListIsPage
? res.data.total