From 138d371a23f0de48b4327f40d5df9b654306271f Mon Sep 17 00:00:00 2001 From: duanliangtao Date: Wed, 29 Nov 2023 17:05:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=85=E6=B0=91=E9=A2=84=E8=AD=A6=E7=9A=84?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=8A=A0=E9=9D=9E=E7=A9=BA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dataBoard/renfang/cpts/rkyj.vue | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/views/dataBoard/renfang/cpts/rkyj.vue b/src/views/dataBoard/renfang/cpts/rkyj.vue index f15a48db9..fe83f4280 100644 --- a/src/views/dataBoard/renfang/cpts/rkyj.vue +++ b/src/views/dataBoard/renfang/cpts/rkyj.vue @@ -134,17 +134,19 @@ export default { level:"agency", }; - const { data, code, msg } = await requestPost( - url, - params - ); + if(params.org_id){ + const { data, code, msg } = await requestPost( + url, + params + ); - if (code === 0) { - if (data && Array.isArray(data)) { - this.list = data; + if (code === 0) { + if (data && Array.isArray(data)) { + this.list = data; + } + } else { + this.$message.error(msg); } - } else { - this.$message.error(msg); } }, },