From 3e69a81966d80e4cb612905261e0ee2009687dc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com> Date: Thu, 8 Jun 2023 09:09:20 +0800 Subject: [PATCH] 6/8 --- src/views/main/tmsaip/tmsTenantRelationTF/index.vue | 11 ++++++++--- src/views/main/tmsaip/tmsTenantRelationTT/index.vue | 12 +++++++++--- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/views/main/tmsaip/tmsTenantRelationTF/index.vue b/src/views/main/tmsaip/tmsTenantRelationTF/index.vue index bb68137..7b6e9e0 100644 --- a/src/views/main/tmsaip/tmsTenantRelationTF/index.vue +++ b/src/views/main/tmsaip/tmsTenantRelationTF/index.vue @@ -198,9 +198,14 @@ export default { methods: { ...mapActions(['setCtnallList']), FnClickStatus(data) { - tmsTenantRelationInfo(data.id).then(res => { - console.log(res) - }) + if (data.status == 3) { + tmsTenantRelationInfo(data.id).then(res => { + this.$notification.open({ + message: '驳回原因', + description: `${res.data.reject_reason}` + }) + }) + } }, FnStatus(data) { let Rdata = '-' diff --git a/src/views/main/tmsaip/tmsTenantRelationTT/index.vue b/src/views/main/tmsaip/tmsTenantRelationTT/index.vue index e642fec..21caac0 100644 --- a/src/views/main/tmsaip/tmsTenantRelationTT/index.vue +++ b/src/views/main/tmsaip/tmsTenantRelationTT/index.vue @@ -104,6 +104,7 @@ import { tmsTenantRelationApproved, tmsTenantRelationReject } from '@/api/modular/main/tmsaip/tmsTenantRelationTT' +import { tmsTenantRelationInfo } from '@/api/modular/main/tmsaip/tmsTenantRelationTF' import addForm from './addForm.vue' import editForm from './editForm.vue' export default { @@ -242,9 +243,14 @@ export default { } }, FnClickStatus(data) { - tmsTenantRelationInfo(data.id).then(res => { - console.log(res) - }) + if (data.status == 3) { + tmsTenantRelationInfo(data.id).then(res => { + this.$notification.open({ + message: '驳回原因', + description: `${res.data.reject_reason}` + }) + }) + } }, FnStatus(data) { let Rdata = '-'