刘翔宇-旅管家 4 years ago
parent 9ff778ee0a
commit 2e347769c9

@ -16,10 +16,10 @@ export function readNotice(params){
}) })
} }
export function statistic(data){ export function statistic(params){
return request({ return request({
method:'get', method:'get',
url:'/api/admin/notice/statistic', url:'/api/admin/notice/statistic',
data params
}) })
} }

@ -219,7 +219,7 @@
} }
} }
return { return {
userList: ["liuxiangyu", "zhushulan","admin"], userList: ["liuxiangyu", "zhushulan","admin","jiangjiao"],
user: null, user: null,
adminEdit: false, adminEdit: false,
isFocus: false, isFocus: false,

@ -7,6 +7,8 @@
<el-card class="box-card" style="margin: 20px 0;"> <el-card class="box-card" style="margin: 20px 0;">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>预算总体进展情况</span> <span>预算总体进展情况</span>
<DatePicker :value="select.year" placeholder="选择所属年份" placement="bottom" style="width: 130px;float: right;" type="year"
@on-change="changeYear"></DatePicker>
</div> <router-link :to="`/statisticalReport/budgetProgress`"> </div> <router-link :to="`/statisticalReport/budgetProgress`">
<div class="progress-card" > <div class="progress-card" >
<div class="progress-card-item"> <div class="progress-card-item">
@ -120,6 +122,9 @@ export default {
}, },
data() { data() {
return { return {
select:{
year:'2022'
},
statistic:'', statistic:'',
department_id: [], department_id: [],
userIds: [], userIds: [],
@ -235,8 +240,13 @@ export default {
}).catch(error => {}) }).catch(error => {})
}, },
methods: { methods: {
changeYear(e){
this.select.year=e;
this.getStatistic()
},
async getStatistic(){ async getStatistic(){
const res = await statistic() const res = await statistic(this.select)
console.log(res) console.log(res)
this.statistic = res this.statistic = res
}, },

Loading…
Cancel
Save