组件服务-挂接

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

View File

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