添加数据资源

This commit is contained in:
gongjiale 2022-10-13 19:15:20 +08:00
parent 8ec209162c
commit 23210070cd
1 changed files with 6 additions and 25 deletions

View File

@ -351,36 +351,17 @@
)?.attrValue || '组件服务', )?.attrValue || '组件服务',
})) }))
} else if (item.title === '数据资源') { } else if (item.title === '数据资源') {
arr = resource.map((res) => ({ arr = resource.map((res) => ({
id: res.resource.zycode, id: res.resource.resourceId,
name: res.resource.zyname, name: res.resource.resourceName,
dept: res.resource.TGBM, dept: res.resource.deptName,
platform: '数据资源', platform: '数据资源',
})) }))
} }
} }
if (item.title === '数据资源') {
// item.list.push({
// id: '1',
// name: '',
// dept: '',
// platform: '',
// })
// item.list.push({
// id: '2',
// name: '',
// dept: '',
// platform: '',
// })
// item.list.push({
// id: '3',
// name: '',
// dept: '',
// platform: '',
// })
} else {
item.list = arr item.list = arr
}
}) })
detailInfoObj.value.infoList = [] detailInfoObj.value.infoList = []
detailInfoObj.value.infoList.push(questionObj) detailInfoObj.value.infoList.push(questionObj)