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

View File

@ -103,11 +103,25 @@
<div>{{ item.description || '--' }}</div>
</div>
<div class="bottom">
<div>
<!-- <div>
<div>浏览量{{ item.visits || 0 }}</div>
<div>申请量{{ item.applyCount || 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">
<a-tooltip placement="top" mouseEnterDelay="1">
<!-- <template #title>