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