From 2b79dd385d25f41e8b9d7849edb389ec0b5899d5 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Wed, 22 Jun 2022 16:30:07 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/DetailsPageconetent.vue | 31 ++++++++++++-------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/front/src/views/home/DetailsPageconetent.vue b/front/src/views/home/DetailsPageconetent.vue index 7f17ae98..1c2d79ec 100644 --- a/front/src/views/home/DetailsPageconetent.vue +++ b/front/src/views/home/DetailsPageconetent.vue @@ -1017,13 +1017,31 @@ ) { getDataResource({ 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 pageNum: paramsGetResources.pageNum, //页码 pageSize: paramsGetResources.pageSize, //分页大小 }).then((res) => { console.log('数据资源==================>', res.data.data) 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) => { val.id = val.serviceId // id val.name = val.serviceName // 名字 @@ -1036,17 +1054,6 @@ resourceList.data = res.data.data.list || [] resourceTotal.value = res.data.data.total || '' 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 !== '数据资源') {