From 689d308864c92e3ff14386d45dc95352d4436c48 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Mon, 28 Nov 2022 14:53:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=8E=A5=E5=8F=A3=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../personalCenter/components/MyApply.vue | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/front/src/views/personalCenter/components/MyApply.vue b/front/src/views/personalCenter/components/MyApply.vue index 4f4c5cf0..2e4c5ea6 100644 --- a/front/src/views/personalCenter/components/MyApply.vue +++ b/front/src/views/personalCenter/components/MyApply.vue @@ -484,6 +484,10 @@ yaweiApproveDetails({ applyGuid: item.GUID }) .then((res) => { console.log('详情===========>', res.data.data) + if (res.data.code !== 0) { + message.error('数据请求失败!') + return + } res.data.data.map((val) => { val.clsj = moment(val.clsj).format('YYYY-MM-DD HH:mm:ss') }) @@ -717,6 +721,14 @@ } else if (typeName.value == '数据资源申请') { yaweiApproveStatus({ page: page.value, size: 4, title: '' }).then( (res) => { + if (res.data.code !== 0) { + num.value = [] + total.value = 0 + contentList.data = [] + contentList2.data = [] + showType.value = '' + return + } console.log('数据资源申请===============>', res.data.data) contentList.data = res.data.data.data num.value = [] @@ -727,6 +739,14 @@ } else if (typeName.value == '云资源申请') { getResourceBusinessList({ userAccount: userName.value }).then((res) => { console.log('数据资源申请===============>', res.data.data) + if (res.data.code !== 0) { + num.value = [] + total.value = 0 + contentList.data = [] + contentList2.data = [] + showType.value = '' + return + } contentList.data = res.data.data contentList2.data = res.data.data num.value = [] @@ -735,6 +755,14 @@ }) } else if (typeName.value == '云视频申请') { getVideoBusinessList({ userAccount: userName.value }).then((res) => { + if (res.data.code !== 0) { + num.value = [] + total.value = 0 + contentList.data = [] + contentList2.data = [] + showType.value = '' + return + } console.log('数据资源申请===============>', res.data.data) contentList.data = res.data.data contentList2.data = res.data.data