BUG修改

This commit is contained in:
a0049873 2022-06-14 18:57:55 +08:00
parent e1cc54f1a1
commit 37c22b5c25
2 changed files with 50 additions and 35 deletions

View File

@ -994,21 +994,24 @@
const getAppResources = () => { const getAppResources = () => {
paramsGetResources.name = searchValue.value paramsGetResources.name = searchValue.value
paramsGetResources.type = Cardsname.value paramsGetResources.type = Cardsname.value
if(paramsGetResources.type=='组件服务' || paramsGetResources.type=='应用资源'){ if (
paramsGetResources.type == '组件服务' ||
paramsGetResources.type == '应用资源'
) {
pageWithAttrs(paramsGetResources).then((res) => { pageWithAttrs(paramsGetResources).then((res) => {
console.log('查询列表============>', resourceList, res.data.data) console.log('查询列表============>', resourceList, res.data.data)
resourceList.data = [] resourceList.data = []
videoList.data = [] videoList.data = []
// resourceList.data = res.data.data.records || [] // resourceList.data = res.data.data.records || []
resourceTotal.value = res.data.data.total || '' resourceTotal.value = res.data.data.total || ''
getShoppingCartList(res.data.data.records) getShoppingCartList(res.data.data.records)
console.log( console.log(
'其他~~~~~~~~~~~', '其他~~~~~~~~~~~',
resourceList.data, resourceList.data,
resourceTotal.value resourceTotal.value
) )
}) })
}else if(paramsGetResources.type=='基础设施'){ } else if (paramsGetResources.type == '基础设施') {
// videoList.data = res.data.data.records || [] // videoList.data = res.data.data.records || []
// resourceTotal.value = infrastructure.value.data.total || '' // resourceTotal.value = infrastructure.value.data.total || ''
// getShoppingCartList(infrastructure.value.data.records) // getShoppingCartList(infrastructure.value.data.records)
@ -1017,34 +1020,32 @@
// resourceTotal.value, // resourceTotal.value,
// resourceList.data // resourceList.data
// ) // )
const params = { const params = {
name: searchValue.value || '', name: searchValue.value || '',
pageNo: paramsGetResources.pageNum, pageNo: paramsGetResources.pageNum,
pageSize: paramsGetResources.pageSize pageSize: paramsGetResources.pageSize,
} }
getVideoList(params).then((res) => { getVideoList(params).then((res) => {
// //
res.data.data.list.forEach(val =>{ res.data.data.list.forEach((val) => {
val.name = val.serviceName
val.createDate = val.updateTime
val.id = val.serviceId val.id = val.serviceId
}) })
resourceTotal.value = res.data.data.total resourceTotal.value = res.data.data.total
resourceList.data = res.data.data.list resourceList.data = res.data.data.list
}) })
}else if(paramsGetResources.type=='数据资源'){ } else if (paramsGetResources.type == '数据资源') {
const obj ={ const obj = {
serviceName:searchValue.value, serviceName: searchValue.value,
orderField:'updateTime', orderField: 'updateTime',
orderType:'desc', orderType: 'desc',
pageNum:paramsGetResources.pageNum, pageNum: paramsGetResources.pageNum,
pageSize:paramsGetResources.pageSize, pageSize: paramsGetResources.pageSize,
serviceType:'data', serviceType: 'data',
// rq=1655196484308.0234 // rq=1655196484308.0234
} }
getRecord(obj).then(res => { getRecord(obj).then((res) => {
if(res.data.data){ if (res.data.data) {
res.data.data.list.forEach(val =>{ res.data.data.list.forEach((val) => {
val.name = val.serviceName val.name = val.serviceName
val.createDate = val.updateTime val.createDate = val.updateTime
val.id = val.serviceId val.id = val.serviceId
@ -1054,7 +1055,7 @@
// "shareStatus": "2" // "shareStatus": "2"
}) })
resourceList.data = res.data.data.list || [] resourceList.data = res.data.data.list || []
resourceTotal.value = resourceData.value.data.total || '' resourceTotal.value = res.data.data.total || ''
// getShoppingCartList(resourceData.value.data.records) // getShoppingCartList(resourceData.value.data.records)
console.log( console.log(
'数据资源~~~~~~~~~~~', '数据资源~~~~~~~~~~~',

View File

@ -103,11 +103,25 @@
<div>{{ item.description || '--' }}</div> <div>{{ item.description || '--' }}</div>
</div> </div>
<div class="bottom"> <div class="bottom">
<div> <!-- <div>
<div>浏览量{{ item.visits || 0 }}</div> <div>浏览量{{ item.visits || 0 }}</div>
<div>申请量{{ item.applyCount || 0 }}</div> <div>申请量{{ item.applyCount || 0 }}</div>
<div>收藏量{{ item.collectCount || 0 }}</div> <div>收藏量{{ item.collectCount || 0 }}</div>
</div> </div> -->
<template v-if="cardType == '基础设施'">
<div>浏览量{{ item.visits || 0 }}</div>
<div>申请量{{ item.applyCount || 0 }}</div>
<div>收藏量{{ item.collectCount || 0 }}</div>
</template>
<template v-else-if="cardType == '数据资源'">
<div>请求量{{ item.requestNum || 0 }}</div>
<div>数据容量{{ item.requestQuantity || 0 }}</div>
</template>
<template v-else>
<div>浏览量{{ item.visits || 0 }}</div>
<div>申请量{{ item.applyCount || 0 }}</div>
<div>收藏量{{ item.collectCount || 0 }}</div>
</template>
<div class="pingfen"> <div class="pingfen">
<a-tooltip placement="top" mouseEnterDelay="1"> <a-tooltip placement="top" mouseEnterDelay="1">
<!-- <template #title> <!-- <template #title>