数据资源
This commit is contained in:
parent
7e1eaa8410
commit
0cfb08788a
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* @Author: hisense.wuhongjian
|
||||
* @Date: 2022-04-20 17:16:35
|
||||
* @LastEditors: hisense.wuhongjian
|
||||
* @LastEditTime: 2022-05-26 22:40:46
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-06-14 17:29:06
|
||||
* @Description: 告诉大家这是什么
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
@ -46,3 +46,21 @@ export function correct(params) {
|
|||
export function paddleocr(params) {
|
||||
return axios.post('http://15.72.183.90:7008/paddleocr', params, config2)
|
||||
}
|
||||
|
||||
export function getRecord(params) {
|
||||
return axios.get(
|
||||
'http://10.134.135.24:30090/api/share-portal/platform/catalogue/query?serviceName=' +
|
||||
params.serviceName +
|
||||
'&orderField=' +
|
||||
params.orderField +
|
||||
'&orderType=' +
|
||||
params.orderType +
|
||||
'&pageNum=' +
|
||||
params.pageNum +
|
||||
'&pageSize=' +
|
||||
params.pageSize +
|
||||
'&serviceType=' +
|
||||
params.serviceType,
|
||||
config2
|
||||
)
|
||||
}
|
||||
|
|
|
@ -366,6 +366,7 @@
|
|||
} from '@ant-design/icons-vue'
|
||||
import { selectDicStoreAll, pageWithAttrs, zywMessage } from '@/api/home.js'
|
||||
import { getSgcList } from '@/api/personalCenter'
|
||||
import { getRecord } from '@/api/file'
|
||||
import { useRouter } from 'vue-router'
|
||||
// import { useStore } from 'vuex'
|
||||
import HomeHeader from '@/views/home/components/header'
|
||||
|
@ -992,29 +993,11 @@
|
|||
const getAppResources = () => {
|
||||
paramsGetResources.name = searchValue.value
|
||||
paramsGetResources.type = Cardsname.value
|
||||
if(paramsGetResources.type=='组件服务' || paramsGetResources.type=='应用资源'){
|
||||
pageWithAttrs(paramsGetResources).then((res) => {
|
||||
console.log('查询列表============>', resourceList, res.data.data)
|
||||
resourceList.data = []
|
||||
videoList.data = []
|
||||
if (Cardsname.value === '基础设施') {
|
||||
// videoList.data = res.data.data.records || []
|
||||
resourceTotal.value = infrastructure.value.data.total || ''
|
||||
getShoppingCartList(infrastructure.value.data.records)
|
||||
console.log(
|
||||
'基础设施~~~~~~~~~~~',
|
||||
resourceTotal.value,
|
||||
resourceList.data
|
||||
)
|
||||
} else if (Cardsname.value === '数据资源') {
|
||||
resourceTotal.value = resourceData.value.data.total || ''
|
||||
getShoppingCartList(resourceData.value.data.records)
|
||||
console.log(
|
||||
'数据资源~~~~~~~~~~~',
|
||||
resourceTotal.value,
|
||||
resourceList.data
|
||||
)
|
||||
// debugger
|
||||
} else {
|
||||
// resourceList.data = res.data.data.records || []
|
||||
resourceTotal.value = res.data.data.total || ''
|
||||
getShoppingCartList(res.data.data.records)
|
||||
|
@ -1023,9 +1006,49 @@
|
|||
resourceList.data,
|
||||
resourceTotal.value
|
||||
)
|
||||
})
|
||||
}else if(paramsGetResources.type=='基础设施'){
|
||||
// videoList.data = res.data.data.records || []
|
||||
resourceTotal.value = infrastructure.value.data.total || ''
|
||||
getShoppingCartList(infrastructure.value.data.records)
|
||||
console.log(
|
||||
'基础设施~~~~~~~~~~~',
|
||||
resourceTotal.value,
|
||||
resourceList.data
|
||||
)
|
||||
}else if(paramsGetResources.type=='数据资源'){
|
||||
const obj ={
|
||||
serviceName:paramsGetResources.name,
|
||||
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 =>{
|
||||
val.name = val.serviceName
|
||||
val.createDate = val.updateTime
|
||||
val.id = val.serviceId
|
||||
// "requestNum": 0,
|
||||
// "requestQuantity": 0,
|
||||
// "starNum": 4,
|
||||
// "shareStatus": "2"
|
||||
})
|
||||
resourceList.data = res.data.data.list || []
|
||||
resourceTotal.value = resourceData.value.data.total || ''
|
||||
// getShoppingCartList(resourceData.value.data.records)
|
||||
console.log(
|
||||
'数据资源~~~~~~~~~~~',
|
||||
resourceTotal.value,
|
||||
resourceList.data
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
let shoppingCartList = ref([])
|
||||
// 获取申购车列表
|
||||
const getShoppingCartList = (list) => {
|
||||
|
|
|
@ -82,12 +82,15 @@
|
|||
<div class="header-right">
|
||||
<div>
|
||||
发布时间:
|
||||
<span>{{ item.createDate || '--' }}</span>
|
||||
<template v-if="item.createDate">
|
||||
<span>
|
||||
{{ item.createDate.substring(0, 10) + ' ' }}
|
||||
</span>
|
||||
<span>{{ item.createDate.substring(11, 19) }}</span>
|
||||
</template>
|
||||
<template v-else>--</template>
|
||||
<!-- <span>{{ item.createDate || '--' }}</span> -->
|
||||
</div>
|
||||
<!-- <div>
|
||||
更新时间:
|
||||
<span>{{ item.updateDate || '--' }}</span> -->
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="dec">
|
||||
|
@ -113,7 +116,7 @@
|
|||
<a-rate
|
||||
:value="item.score || 0"
|
||||
disabled
|
||||
v-if="item.score != 0"
|
||||
v-if="item.score && item.score != 0"
|
||||
/>
|
||||
</a-tooltip>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue