diff --git a/src/api/api_report.js b/src/api/api_report.js index fe83a5f..831374a 100644 --- a/src/api/api_report.js +++ b/src/api/api_report.js @@ -1,6 +1,6 @@ import http from '../utils/http' -// 获取侧边菜单栏 -export const apiGetOwnResult = params => { - return http({url: '/lz_management/report/own/result', method: 'get', params}) +// 业绩报表 +export const apiReportChart = data => { + return http({ url: '/lz_management/report/chart', method: 'get', params: data }) } diff --git a/src/api/api_staff.js b/src/api/api_staff.js index 6b34a1d..0f22292 100644 --- a/src/api/api_staff.js +++ b/src/api/api_staff.js @@ -56,4 +56,4 @@ export const apiUpdateLuck = data => { // 钉钉抽奖详情 export const apiDingtalkJump = params => { return http({ url: '/lz_management/dtlg/jump', method: 'get', params }) -} \ No newline at end of file +} diff --git a/src/views/modules/result/chart/componments/chart-form/index.vue b/src/views/modules/result/chart/componments/chart-form/index.vue index 6dd302e..5a7d05b 100644 --- a/src/views/modules/result/chart/componments/chart-form/index.vue +++ b/src/views/modules/result/chart/componments/chart-form/index.vue @@ -1,4 +1,3 @@ - \ No newline at end of file + .staff-archives-charts { + // width: 50%; + } + + + + diff --git a/src/views/modules/result/chart/index.vue b/src/views/modules/result/chart/index.vue index fbcb0bc..2bd7577 100644 --- a/src/views/modules/result/chart/index.vue +++ b/src/views/modules/result/chart/index.vue @@ -6,17 +6,17 @@
- - + + - - + + - - + + - - + +
@@ -28,7 +28,7 @@ import chartForm from './componments/chart-form' import queryForm from './componments/query-form' -import { apiEmployeessItuation } from '@/api/api_staff' +import { apiReportChart } from '@/api/api_report' export default { components: { chartForm, @@ -45,14 +45,14 @@ export default { mounted () { }, methods: { - async handleGetEmployeessItuation (data = {}) { + async handleGetReportChart (data = {}) { const loading = this.$loading({ lock: true, text: 'Loading', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.7)' }) - let result = await apiEmployeessItuation(data) + let result = await apiReportChart(data) setTimeout(() => { loading.close() }, 500) @@ -64,7 +64,7 @@ export default { }, submit (data, monthLetter) { this.monthLetter = monthLetter - this.handleGetEmployeessItuation(data) + this.handleGetReportChart(data) } }, watch: {} diff --git a/src/views/modules/staff/profile/componments/chart-form/index.vue b/src/views/modules/staff/profile/componments/chart-form/index.vue index 6dd302e..283d52d 100644 --- a/src/views/modules/staff/profile/componments/chart-form/index.vue +++ b/src/views/modules/staff/profile/componments/chart-form/index.vue @@ -90,4 +90,4 @@ export default { .staff-archives-charts { // width: 50%; } - \ No newline at end of file +