From a6fcea59b26e392bfcceb5022d0cd17f71438f03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=BB=BA=E8=B6=85?= <3182967682@qq.com> Date: Sun, 27 Sep 2020 17:54:53 +0800 Subject: [PATCH] fix --- config/index.js | 3 +- src/api/api_report.js | 4 +-- .../chart/componments/query-form/index.vue | 3 -- .../report/componments/query-form/index.vue | 29 +++++++++++-------- src/views/modules/result/report/index.vue | 15 ++++++---- 5 files changed, 31 insertions(+), 23 deletions(-) diff --git a/config/index.js b/config/index.js index b360797..67328aa 100644 --- a/config/index.js +++ b/config/index.js @@ -13,7 +13,8 @@ module.exports = { assetsPublicPath: '/', proxyTable: { '/lz_management': { - target: 'https://tlzmanagement.ldxinyong.com', + // target: 'https://tlzmanagement.ldxinyong.com', + target: 'http://localhost:8080/', changeOrigin: true } }, diff --git a/src/api/api_report.js b/src/api/api_report.js index de4151d..b9ee7f3 100644 --- a/src/api/api_report.js +++ b/src/api/api_report.js @@ -5,7 +5,7 @@ export const apiResultChart = data => { return http({ url: '/lz_management/result/chart', method: 'get', params: data }) } -// 业绩列表 +// 绩效列表 export const apiResultReport = data => { return http({ url: '/lz_management/result/report', method: 'post', params: data }) } @@ -16,5 +16,5 @@ export const apiResultDistribution = data => { } export const apiDepartmentSelfList = data => { - return http({ url: '/lz_management/result/departmentTreeByStaffId', method: 'post', data }) + return http({ url: '/lz_management/result/departmentTreeByStaffId', method: 'get', data }) } diff --git a/src/views/modules/result/chart/componments/query-form/index.vue b/src/views/modules/result/chart/componments/query-form/index.vue index 62dca0b..94c242b 100644 --- a/src/views/modules/result/chart/componments/query-form/index.vue +++ b/src/views/modules/result/chart/componments/query-form/index.vue @@ -76,9 +76,6 @@ this.handleChangeData() }, mounted () {}, - beforeUpdate () { - // this.selectMonthTime = this.monthTime - }, methods: { async handleChangeData () { this.onSubmit() diff --git a/src/views/modules/result/report/componments/query-form/index.vue b/src/views/modules/result/report/componments/query-form/index.vue index d0c5dd4..4fdfbbe 100644 --- a/src/views/modules/result/report/componments/query-form/index.vue +++ b/src/views/modules/result/report/componments/query-form/index.vue @@ -2,8 +2,8 @@