From 7741e57329bd792da3f2b0f82b2ed6e9dca8ac99 Mon Sep 17 00:00:00 2001 From: sw <17615834396@163.com> Date: Wed, 20 Nov 2024 09:54:59 +0800 Subject: [PATCH] 11.19 --- .../src/views/Site/components/yearff.vue | 16 +++++++++++---- fuintAdmin_zt/src/views/Site/index.vue | 20 +++++++------------ 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/fuintAdmin_zt/src/views/Site/components/yearff.vue b/fuintAdmin_zt/src/views/Site/components/yearff.vue index c91346966..599ed824a 100644 --- a/fuintAdmin_zt/src/views/Site/components/yearff.vue +++ b/fuintAdmin_zt/src/views/Site/components/yearff.vue @@ -23,7 +23,8 @@ export default { } }, props: { - deptId: Number + deptId: Number, + status: Boolean }, created() { console.log("deptId",this.deptId) @@ -31,9 +32,16 @@ export default { }, methods: { getList() { - getYearListApi({deptId : this.deptId}).then(res => { - this.tableData = res.data.records - }) + console.log(this.status) + if(this.status){ + getYearListApi().then(res => { + this.tableData = res.data.records + }) + }else { + getYearListApi({deptId : this.deptId}).then(res => { + this.tableData = res.data.records + }) + } }, onSubmit() { console.log('表单提交', this.form); diff --git a/fuintAdmin_zt/src/views/Site/index.vue b/fuintAdmin_zt/src/views/Site/index.vue index fddd49fc5..80cd1e286 100644 --- a/fuintAdmin_zt/src/views/Site/index.vue +++ b/fuintAdmin_zt/src/views/Site/index.vue @@ -273,7 +273,7 @@ - + 无限制 年付费 @@ -282,7 +282,7 @@ - + 年付费 预付费 后付费 @@ -305,7 +305,7 @@