diff --git a/.env.development b/.env.development index 56074d9..f14882a 100644 --- a/.env.development +++ b/.env.development @@ -2,8 +2,8 @@ ENV = 'development' # base api -VUE_APP_DOMIAN=http://192.168.60.99:9003/ -#VUE_APP_DOMIAN=http://hdcontract.ali251.langye.net/ +#VUE_APP_DOMIAN=http://192.168.60.99:9003/ +VUE_APP_DOMIAN=http://hdcontract.ali251.langye.net/ VUE_APP_BASE_API = '' diff --git a/src/api/dashboard/notice.js b/src/api/dashboard/notice.js index d1a0038..d1300cb 100644 --- a/src/api/dashboard/notice.js +++ b/src/api/dashboard/notice.js @@ -15,3 +15,11 @@ export function readNotice(params){ params }) } + +export function statistic(data){ + return request({ + method:'get', + url:'/api/admin/notice/statistic', + data + }) +} diff --git a/src/views/statisticalReport/budgetProgress.vue b/src/views/statisticalReport/budgetProgress.vue index 3ecd1c1..5950367 100644 --- a/src/views/statisticalReport/budgetProgress.vue +++ b/src/views/statisticalReport/budgetProgress.vue @@ -10,9 +10,9 @@ 预算类型 - + + + @@ -177,10 +177,14 @@ export default { console.log(res) } }, - mounted() { - this.getType() - this.getDepartment() - this.getPlanProgress() + async mounted() { + await this.getType() + await this.getDepartment() + + this.select.department = Number(this.$route.query.departmentId) || '' + this.select.type = Number(this.$route.query.typeId) || '' + + await this.getPlanProgress() } }