From 502239ac2ed95826b9aab40d0896ab8dc092edc4 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 25 Feb 2022 11:46:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A2=E5=8D=95=E8=AE=B0=E5=BD=95=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppFinanceProduct/productDetail.vue | 2 +- .../AppFinancingNeeds/needsDetail.vue | 2 +- .../apps/financing/AppGrabLog/AppGrabLog.vue | 5 +- .../apps/financing/AppGrabLog/grabDetail.vue | 79 +++++++++++++------ .../apps/financing/AppGrabLog/grabList.vue | 36 +++++---- 5 files changed, 76 insertions(+), 48 deletions(-) diff --git a/project/xiushan/apps/finance/AppFinanceProduct/productDetail.vue b/project/xiushan/apps/finance/AppFinanceProduct/productDetail.vue index 9a0cafd9..06dee23e 100644 --- a/project/xiushan/apps/finance/AppFinanceProduct/productDetail.vue +++ b/project/xiushan/apps/finance/AppFinanceProduct/productDetail.vue @@ -84,7 +84,7 @@ export default { return this.detail.status == "0" }, isAdmin() { - return this.user.financeUser.type == 1 + return this.user.financeUser.userRole == 1 } }, data() { diff --git a/project/xiushan/apps/financing/AppFinancingNeeds/needsDetail.vue b/project/xiushan/apps/financing/AppFinancingNeeds/needsDetail.vue index f217c97d..c8c13844 100644 --- a/project/xiushan/apps/financing/AppFinancingNeeds/needsDetail.vue +++ b/project/xiushan/apps/financing/AppFinancingNeeds/needsDetail.vue @@ -50,7 +50,7 @@ export default { computed: { ...mapState(['user']), isFinanceUser() { - return this.user.financeUser?.type != null + return !!this.user.financeUser?.id } }, data() { diff --git a/project/xiushan/apps/financing/AppGrabLog/AppGrabLog.vue b/project/xiushan/apps/financing/AppGrabLog/AppGrabLog.vue index 06f3508d..b7b41ced 100644 --- a/project/xiushan/apps/financing/AppGrabLog/AppGrabLog.vue +++ b/project/xiushan/apps/financing/AppGrabLog/AppGrabLog.vue @@ -23,11 +23,8 @@ export default { return !!this.$route.query.id ? GrabDetail : GrabList } }, - data() { - return {} - }, created() { - this.dict.load("enterpriseName") + this.dict.load("financingDemandStatus", "productRepaymentTimeline", "financialFundPurpose") } } diff --git a/project/xiushan/apps/financing/AppGrabLog/grabDetail.vue b/project/xiushan/apps/financing/AppGrabLog/grabDetail.vue index be056713..972b1752 100644 --- a/project/xiushan/apps/financing/AppGrabLog/grabDetail.vue +++ b/project/xiushan/apps/financing/AppGrabLog/grabDetail.vue @@ -1,8 +1,8 @@