BUG修改
This commit is contained in:
parent
3b6d6a38c7
commit
2b79dd385d
|
@ -1017,13 +1017,31 @@
|
||||||
) {
|
) {
|
||||||
getDataResource({
|
getDataResource({
|
||||||
serviceName: paramsGetResources.name, //资源名称
|
serviceName: paramsGetResources.name, //资源名称
|
||||||
orderField: paramsGetResources.orderField, //排序字段
|
orderField: whoShow1.value.itShowQingDao
|
||||||
|
? paramsGetResources.orderField == 'applyCount'
|
||||||
|
? 'syqk'
|
||||||
|
: 'fbrq'
|
||||||
|
: paramsGetResources.orderField == 'applyCount'
|
||||||
|
? 'requestCount'
|
||||||
|
: 'createTime', //排序字段
|
||||||
orderType: paramsGetResources.orderType.toLowerCase(), //排序方式:desc,asc
|
orderType: paramsGetResources.orderType.toLowerCase(), //排序方式:desc,asc
|
||||||
pageNum: paramsGetResources.pageNum, //页码
|
pageNum: paramsGetResources.pageNum, //页码
|
||||||
pageSize: paramsGetResources.pageSize, //分页大小
|
pageSize: paramsGetResources.pageSize, //分页大小
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log('数据资源==================>', res.data.data)
|
console.log('数据资源==================>', res.data.data)
|
||||||
if (whoShow1.value.itShowQingDao) {
|
if (whoShow1.value.itShowQingDao) {
|
||||||
|
res.data.data.data.forEach((val) => {
|
||||||
|
val.id = val.guid // id
|
||||||
|
val.name = val.zyname // 名字
|
||||||
|
val.sjlCount = val.sjcczl // 数据量
|
||||||
|
val.applyCount = val.syqk // 申请量
|
||||||
|
val.deptName = val.TGBM // 部门
|
||||||
|
val.createDate = val.fbrq // 发布时间
|
||||||
|
})
|
||||||
|
resourceList.data = res.data.data.data || []
|
||||||
|
resourceTotal.value = res.data.data.rows || ''
|
||||||
|
loading.value = false
|
||||||
|
} else if (whoShow1.value.itShowXiHaiAn) {
|
||||||
res.data.data.list.forEach((val) => {
|
res.data.data.list.forEach((val) => {
|
||||||
val.id = val.serviceId // id
|
val.id = val.serviceId // id
|
||||||
val.name = val.serviceName // 名字
|
val.name = val.serviceName // 名字
|
||||||
|
@ -1036,17 +1054,6 @@
|
||||||
resourceList.data = res.data.data.list || []
|
resourceList.data = res.data.data.list || []
|
||||||
resourceTotal.value = res.data.data.total || ''
|
resourceTotal.value = res.data.data.total || ''
|
||||||
loading.value = false
|
loading.value = false
|
||||||
} else if (whoShow1.value.itShowXiHaiAn) {
|
|
||||||
res.data.data.data.forEach((val) => {
|
|
||||||
val.id = val.guid // id
|
|
||||||
val.name = val.zyname // 名字
|
|
||||||
val.sjlCount = val.sjcczl // 数据量
|
|
||||||
val.applyCount = val.ygxdsjccl // 申请量
|
|
||||||
val.deptName = val.TGBM // 部门
|
|
||||||
})
|
|
||||||
resourceList.data = res.data.data.data || []
|
|
||||||
resourceTotal.value = res.data.data.rows || ''
|
|
||||||
loading.value = false
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else if (paramsGetResources.type !== '数据资源') {
|
} else if (paramsGetResources.type !== '数据资源') {
|
||||||
|
|
Loading…
Reference in New Issue