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 @@