组件服务-挂接
This commit is contained in:
parent
9cdbc6ef61
commit
29a5016590
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue