diff --git a/src/api/statistics.js b/src/api/statistics.js index f1bb8df..20dcd08 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -6,7 +6,7 @@ // 按事件类型统计工单 export function getCaseStatisticsByType(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/eorcStatistic', method: 'get', params }) @@ -14,7 +14,7 @@ // 按事件来源统计工单 export function getCaseStatisticsBySource(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -22,7 +22,8 @@ // 按满意度统计工单 export function getCaseStatisticsByStatisfied(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/statisfiedStatistics', + // url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -30,7 +31,7 @@ // 工单总情况统计 export function getCaseStatisticsAll(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/stateStatistic', method: 'get', params }) @@ -38,27 +39,33 @@ // 工单年统计 export function getCaseStatisticsByYear(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/yearStatistic', method: 'get', params }) } // 工单月统计 -export function getCaseStatisticsByMonth(year) { +export function getCaseStatisticsByMonth(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/monthStatistic', method: 'get', - params: { - year: year - } + params }) } // 部门效能统计 export function deptStatistics(params) { return request({ - url: '/sound/soundList', + url: '/urge/departmentEffectiveStatistics', method: 'get', params }) } - +// 部门效能统计 +export function seatStatistics(params) { + return request({ + url: '/urge/departmentEffectiveStatistics', + // url: '/urge/seatEffectiveStatistics', + method: 'get', + params + }) +} diff --git a/src/api/statistics.js b/src/api/statistics.js index f1bb8df..20dcd08 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -6,7 +6,7 @@ // 按事件类型统计工单 export function getCaseStatisticsByType(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/eorcStatistic', method: 'get', params }) @@ -14,7 +14,7 @@ // 按事件来源统计工单 export function getCaseStatisticsBySource(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -22,7 +22,8 @@ // 按满意度统计工单 export function getCaseStatisticsByStatisfied(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/statisfiedStatistics', + // url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -30,7 +31,7 @@ // 工单总情况统计 export function getCaseStatisticsAll(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/stateStatistic', method: 'get', params }) @@ -38,27 +39,33 @@ // 工单年统计 export function getCaseStatisticsByYear(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/yearStatistic', method: 'get', params }) } // 工单月统计 -export function getCaseStatisticsByMonth(year) { +export function getCaseStatisticsByMonth(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/monthStatistic', method: 'get', - params: { - year: year - } + params }) } // 部门效能统计 export function deptStatistics(params) { return request({ - url: '/sound/soundList', + url: '/urge/departmentEffectiveStatistics', method: 'get', params }) } - +// 部门效能统计 +export function seatStatistics(params) { + return request({ + url: '/urge/departmentEffectiveStatistics', + // url: '/urge/seatEffectiveStatistics', + method: 'get', + params + }) +} diff --git a/src/views/statistic/caseStatistic/caseStatisticMonth.vue b/src/views/statistic/caseStatistic/caseStatisticMonth.vue index 32266e4..0c7bf53 100644 --- a/src/views/statistic/caseStatistic/caseStatisticMonth.vue +++ b/src/views/statistic/caseStatistic/caseStatisticMonth.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -57,7 +57,7 @@ data() { return { listQuery: { - year: '' + year: new Date().getFullYear() + '' }, columns: [ { @@ -135,30 +135,14 @@ getCaseStatisticsByMonth(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 5, - 'month': '2020-01', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-02', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 15, - 'month': '2020-03', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-04', - 'monthErlier': '0%', - 'yearErlier': '0%' - }] - this.chartData.rows = this.data + this.data = response.data + // this.data = [ + // { 'caseNum': 5, 'month': '2020-01', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-02', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 15, 'month': '2020-03', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-04', 'monthErlier': '0%', 'yearErlier': '0%' } + // ] + this.chartData.rows = response.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { this.extend.yAxis = { max: 10 } diff --git a/src/api/statistics.js b/src/api/statistics.js index f1bb8df..20dcd08 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -6,7 +6,7 @@ // 按事件类型统计工单 export function getCaseStatisticsByType(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/eorcStatistic', method: 'get', params }) @@ -14,7 +14,7 @@ // 按事件来源统计工单 export function getCaseStatisticsBySource(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -22,7 +22,8 @@ // 按满意度统计工单 export function getCaseStatisticsByStatisfied(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/statisfiedStatistics', + // url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -30,7 +31,7 @@ // 工单总情况统计 export function getCaseStatisticsAll(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/stateStatistic', method: 'get', params }) @@ -38,27 +39,33 @@ // 工单年统计 export function getCaseStatisticsByYear(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/yearStatistic', method: 'get', params }) } // 工单月统计 -export function getCaseStatisticsByMonth(year) { +export function getCaseStatisticsByMonth(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/monthStatistic', method: 'get', - params: { - year: year - } + params }) } // 部门效能统计 export function deptStatistics(params) { return request({ - url: '/sound/soundList', + url: '/urge/departmentEffectiveStatistics', method: 'get', params }) } - +// 部门效能统计 +export function seatStatistics(params) { + return request({ + url: '/urge/departmentEffectiveStatistics', + // url: '/urge/seatEffectiveStatistics', + method: 'get', + params + }) +} diff --git a/src/views/statistic/caseStatistic/caseStatisticMonth.vue b/src/views/statistic/caseStatistic/caseStatisticMonth.vue index 32266e4..0c7bf53 100644 --- a/src/views/statistic/caseStatistic/caseStatisticMonth.vue +++ b/src/views/statistic/caseStatistic/caseStatisticMonth.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -57,7 +57,7 @@ data() { return { listQuery: { - year: '' + year: new Date().getFullYear() + '' }, columns: [ { @@ -135,30 +135,14 @@ getCaseStatisticsByMonth(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 5, - 'month': '2020-01', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-02', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 15, - 'month': '2020-03', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-04', - 'monthErlier': '0%', - 'yearErlier': '0%' - }] - this.chartData.rows = this.data + this.data = response.data + // this.data = [ + // { 'caseNum': 5, 'month': '2020-01', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-02', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 15, 'month': '2020-03', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-04', 'monthErlier': '0%', 'yearErlier': '0%' } + // ] + this.chartData.rows = response.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { this.extend.yAxis = { max: 10 } diff --git a/src/views/statistic/caseStatistic/caseStatisticYear.vue b/src/views/statistic/caseStatistic/caseStatisticYear.vue index 8a2a52f..30ffa47 100644 --- a/src/views/statistic/caseStatistic/caseStatisticYear.vue +++ b/src/views/statistic/caseStatistic/caseStatisticYear.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -127,16 +127,15 @@ }, fetchData() { this.listLoading = true - getCaseStatisticsByYear(this.listQuery).then(response => { + getCaseStatisticsByYear().then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 1, - 'year': '2020', - 'rate': '100%' - }] + this.data = response.data + // this.data = [{ + // 'caseNum': 1, + // 'year': '2020', + // 'rate': '100%' + // }] this.chartData.rows = this.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { diff --git a/src/api/statistics.js b/src/api/statistics.js index f1bb8df..20dcd08 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -6,7 +6,7 @@ // 按事件类型统计工单 export function getCaseStatisticsByType(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/eorcStatistic', method: 'get', params }) @@ -14,7 +14,7 @@ // 按事件来源统计工单 export function getCaseStatisticsBySource(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -22,7 +22,8 @@ // 按满意度统计工单 export function getCaseStatisticsByStatisfied(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/statisfiedStatistics', + // url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -30,7 +31,7 @@ // 工单总情况统计 export function getCaseStatisticsAll(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/stateStatistic', method: 'get', params }) @@ -38,27 +39,33 @@ // 工单年统计 export function getCaseStatisticsByYear(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/yearStatistic', method: 'get', params }) } // 工单月统计 -export function getCaseStatisticsByMonth(year) { +export function getCaseStatisticsByMonth(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/monthStatistic', method: 'get', - params: { - year: year - } + params }) } // 部门效能统计 export function deptStatistics(params) { return request({ - url: '/sound/soundList', + url: '/urge/departmentEffectiveStatistics', method: 'get', params }) } - +// 部门效能统计 +export function seatStatistics(params) { + return request({ + url: '/urge/departmentEffectiveStatistics', + // url: '/urge/seatEffectiveStatistics', + method: 'get', + params + }) +} diff --git a/src/views/statistic/caseStatistic/caseStatisticMonth.vue b/src/views/statistic/caseStatistic/caseStatisticMonth.vue index 32266e4..0c7bf53 100644 --- a/src/views/statistic/caseStatistic/caseStatisticMonth.vue +++ b/src/views/statistic/caseStatistic/caseStatisticMonth.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -57,7 +57,7 @@ data() { return { listQuery: { - year: '' + year: new Date().getFullYear() + '' }, columns: [ { @@ -135,30 +135,14 @@ getCaseStatisticsByMonth(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 5, - 'month': '2020-01', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-02', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 15, - 'month': '2020-03', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-04', - 'monthErlier': '0%', - 'yearErlier': '0%' - }] - this.chartData.rows = this.data + this.data = response.data + // this.data = [ + // { 'caseNum': 5, 'month': '2020-01', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-02', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 15, 'month': '2020-03', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-04', 'monthErlier': '0%', 'yearErlier': '0%' } + // ] + this.chartData.rows = response.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { this.extend.yAxis = { max: 10 } diff --git a/src/views/statistic/caseStatistic/caseStatisticYear.vue b/src/views/statistic/caseStatistic/caseStatisticYear.vue index 8a2a52f..30ffa47 100644 --- a/src/views/statistic/caseStatistic/caseStatisticYear.vue +++ b/src/views/statistic/caseStatistic/caseStatisticYear.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -127,16 +127,15 @@ }, fetchData() { this.listLoading = true - getCaseStatisticsByYear(this.listQuery).then(response => { + getCaseStatisticsByYear().then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 1, - 'year': '2020', - 'rate': '100%' - }] + this.data = response.data + // this.data = [{ + // 'caseNum': 1, + // 'year': '2020', + // 'rate': '100%' + // }] this.chartData.rows = this.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { diff --git a/src/views/statistic/caseStatistic/components/caseSource.vue b/src/views/statistic/caseStatistic/components/caseSource.vue index 3ee13f0..aaab13a 100644 --- a/src/views/statistic/caseStatistic/components/caseSource.vue +++ b/src/views/statistic/caseStatistic/components/caseSource.vue @@ -64,14 +64,14 @@ fetchData() { getCaseStatisticsBySource(this.listQuery).then(response => { this.chartData.rows = response.data - this.chartData.rows = [ - { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, - { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, - { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, - { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, - { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, - { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } - ] + // this.chartData.rows = [ + // { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, + // { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, + // { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, + // { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, + // { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, + // { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } + // ] }) } } diff --git a/src/api/statistics.js b/src/api/statistics.js index f1bb8df..20dcd08 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -6,7 +6,7 @@ // 按事件类型统计工单 export function getCaseStatisticsByType(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/eorcStatistic', method: 'get', params }) @@ -14,7 +14,7 @@ // 按事件来源统计工单 export function getCaseStatisticsBySource(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -22,7 +22,8 @@ // 按满意度统计工单 export function getCaseStatisticsByStatisfied(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/statisfiedStatistics', + // url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -30,7 +31,7 @@ // 工单总情况统计 export function getCaseStatisticsAll(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/stateStatistic', method: 'get', params }) @@ -38,27 +39,33 @@ // 工单年统计 export function getCaseStatisticsByYear(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/yearStatistic', method: 'get', params }) } // 工单月统计 -export function getCaseStatisticsByMonth(year) { +export function getCaseStatisticsByMonth(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/monthStatistic', method: 'get', - params: { - year: year - } + params }) } // 部门效能统计 export function deptStatistics(params) { return request({ - url: '/sound/soundList', + url: '/urge/departmentEffectiveStatistics', method: 'get', params }) } - +// 部门效能统计 +export function seatStatistics(params) { + return request({ + url: '/urge/departmentEffectiveStatistics', + // url: '/urge/seatEffectiveStatistics', + method: 'get', + params + }) +} diff --git a/src/views/statistic/caseStatistic/caseStatisticMonth.vue b/src/views/statistic/caseStatistic/caseStatisticMonth.vue index 32266e4..0c7bf53 100644 --- a/src/views/statistic/caseStatistic/caseStatisticMonth.vue +++ b/src/views/statistic/caseStatistic/caseStatisticMonth.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -57,7 +57,7 @@ data() { return { listQuery: { - year: '' + year: new Date().getFullYear() + '' }, columns: [ { @@ -135,30 +135,14 @@ getCaseStatisticsByMonth(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 5, - 'month': '2020-01', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-02', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 15, - 'month': '2020-03', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-04', - 'monthErlier': '0%', - 'yearErlier': '0%' - }] - this.chartData.rows = this.data + this.data = response.data + // this.data = [ + // { 'caseNum': 5, 'month': '2020-01', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-02', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 15, 'month': '2020-03', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-04', 'monthErlier': '0%', 'yearErlier': '0%' } + // ] + this.chartData.rows = response.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { this.extend.yAxis = { max: 10 } diff --git a/src/views/statistic/caseStatistic/caseStatisticYear.vue b/src/views/statistic/caseStatistic/caseStatisticYear.vue index 8a2a52f..30ffa47 100644 --- a/src/views/statistic/caseStatistic/caseStatisticYear.vue +++ b/src/views/statistic/caseStatistic/caseStatisticYear.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -127,16 +127,15 @@ }, fetchData() { this.listLoading = true - getCaseStatisticsByYear(this.listQuery).then(response => { + getCaseStatisticsByYear().then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 1, - 'year': '2020', - 'rate': '100%' - }] + this.data = response.data + // this.data = [{ + // 'caseNum': 1, + // 'year': '2020', + // 'rate': '100%' + // }] this.chartData.rows = this.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { diff --git a/src/views/statistic/caseStatistic/components/caseSource.vue b/src/views/statistic/caseStatistic/components/caseSource.vue index 3ee13f0..aaab13a 100644 --- a/src/views/statistic/caseStatistic/components/caseSource.vue +++ b/src/views/statistic/caseStatistic/components/caseSource.vue @@ -64,14 +64,14 @@ fetchData() { getCaseStatisticsBySource(this.listQuery).then(response => { this.chartData.rows = response.data - this.chartData.rows = [ - { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, - { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, - { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, - { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, - { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, - { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } - ] + // this.chartData.rows = [ + // { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, + // { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, + // { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, + // { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, + // { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, + // { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } + // ] }) } } diff --git a/src/views/statistic/caseStatistic/components/caseTable.vue b/src/views/statistic/caseStatistic/components/caseTable.vue index f750990..e7aba06 100644 --- a/src/views/statistic/caseStatistic/components/caseTable.vue +++ b/src/views/statistic/caseStatistic/components/caseTable.vue @@ -103,18 +103,17 @@ getCaseStatisticsAll(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - this.list = response.data.rows - this.total = response.data.total - this.data = [{ - 'callNum': 1, - 'caseNum': 2, - 'urgeNum': 3, - 'superviseNum': 4, - 'monitorNum': 5, - 'delayNum': 6, - 'overCaseNum': '0/0%', - 'noOverCaseNum': '0/0%' - }] + this.data = [response.data] + // this.data = [{ + // 'callNum': 1, + // 'caseNum': 2, + // 'urgeNum': 3, + // 'superviseNum': 4, + // 'monitorNum': 5, + // 'delayNum': 6, + // 'overCaseNum': '0/0%', + // 'noOverCaseNum': '0/0%' + // }] } }) } diff --git a/src/api/statistics.js b/src/api/statistics.js index f1bb8df..20dcd08 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -6,7 +6,7 @@ // 按事件类型统计工单 export function getCaseStatisticsByType(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/eorcStatistic', method: 'get', params }) @@ -14,7 +14,7 @@ // 按事件来源统计工单 export function getCaseStatisticsBySource(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -22,7 +22,8 @@ // 按满意度统计工单 export function getCaseStatisticsByStatisfied(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/statisfiedStatistics', + // url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -30,7 +31,7 @@ // 工单总情况统计 export function getCaseStatisticsAll(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/stateStatistic', method: 'get', params }) @@ -38,27 +39,33 @@ // 工单年统计 export function getCaseStatisticsByYear(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/yearStatistic', method: 'get', params }) } // 工单月统计 -export function getCaseStatisticsByMonth(year) { +export function getCaseStatisticsByMonth(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/monthStatistic', method: 'get', - params: { - year: year - } + params }) } // 部门效能统计 export function deptStatistics(params) { return request({ - url: '/sound/soundList', + url: '/urge/departmentEffectiveStatistics', method: 'get', params }) } - +// 部门效能统计 +export function seatStatistics(params) { + return request({ + url: '/urge/departmentEffectiveStatistics', + // url: '/urge/seatEffectiveStatistics', + method: 'get', + params + }) +} diff --git a/src/views/statistic/caseStatistic/caseStatisticMonth.vue b/src/views/statistic/caseStatistic/caseStatisticMonth.vue index 32266e4..0c7bf53 100644 --- a/src/views/statistic/caseStatistic/caseStatisticMonth.vue +++ b/src/views/statistic/caseStatistic/caseStatisticMonth.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -57,7 +57,7 @@ data() { return { listQuery: { - year: '' + year: new Date().getFullYear() + '' }, columns: [ { @@ -135,30 +135,14 @@ getCaseStatisticsByMonth(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 5, - 'month': '2020-01', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-02', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 15, - 'month': '2020-03', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-04', - 'monthErlier': '0%', - 'yearErlier': '0%' - }] - this.chartData.rows = this.data + this.data = response.data + // this.data = [ + // { 'caseNum': 5, 'month': '2020-01', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-02', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 15, 'month': '2020-03', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-04', 'monthErlier': '0%', 'yearErlier': '0%' } + // ] + this.chartData.rows = response.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { this.extend.yAxis = { max: 10 } diff --git a/src/views/statistic/caseStatistic/caseStatisticYear.vue b/src/views/statistic/caseStatistic/caseStatisticYear.vue index 8a2a52f..30ffa47 100644 --- a/src/views/statistic/caseStatistic/caseStatisticYear.vue +++ b/src/views/statistic/caseStatistic/caseStatisticYear.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -127,16 +127,15 @@ }, fetchData() { this.listLoading = true - getCaseStatisticsByYear(this.listQuery).then(response => { + getCaseStatisticsByYear().then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 1, - 'year': '2020', - 'rate': '100%' - }] + this.data = response.data + // this.data = [{ + // 'caseNum': 1, + // 'year': '2020', + // 'rate': '100%' + // }] this.chartData.rows = this.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { diff --git a/src/views/statistic/caseStatistic/components/caseSource.vue b/src/views/statistic/caseStatistic/components/caseSource.vue index 3ee13f0..aaab13a 100644 --- a/src/views/statistic/caseStatistic/components/caseSource.vue +++ b/src/views/statistic/caseStatistic/components/caseSource.vue @@ -64,14 +64,14 @@ fetchData() { getCaseStatisticsBySource(this.listQuery).then(response => { this.chartData.rows = response.data - this.chartData.rows = [ - { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, - { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, - { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, - { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, - { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, - { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } - ] + // this.chartData.rows = [ + // { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, + // { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, + // { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, + // { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, + // { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, + // { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } + // ] }) } } diff --git a/src/views/statistic/caseStatistic/components/caseTable.vue b/src/views/statistic/caseStatistic/components/caseTable.vue index f750990..e7aba06 100644 --- a/src/views/statistic/caseStatistic/components/caseTable.vue +++ b/src/views/statistic/caseStatistic/components/caseTable.vue @@ -103,18 +103,17 @@ getCaseStatisticsAll(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - this.list = response.data.rows - this.total = response.data.total - this.data = [{ - 'callNum': 1, - 'caseNum': 2, - 'urgeNum': 3, - 'superviseNum': 4, - 'monitorNum': 5, - 'delayNum': 6, - 'overCaseNum': '0/0%', - 'noOverCaseNum': '0/0%' - }] + this.data = [response.data] + // this.data = [{ + // 'callNum': 1, + // 'caseNum': 2, + // 'urgeNum': 3, + // 'superviseNum': 4, + // 'monitorNum': 5, + // 'delayNum': 6, + // 'overCaseNum': '0/0%', + // 'noOverCaseNum': '0/0%' + // }] } }) } diff --git a/src/views/statistic/caseStatistic/components/satisfiedPie.vue b/src/views/statistic/caseStatistic/components/satisfiedPie.vue index 4ff08c6..2f8b113 100644 --- a/src/views/statistic/caseStatistic/components/satisfiedPie.vue +++ b/src/views/statistic/caseStatistic/components/satisfiedPie.vue @@ -57,13 +57,13 @@ getCaseStatisticsByStatisfied(this.listQuery).then(response => { const data = response.data this.chartData.rows = data - this.chartData.rows = [ - { 'type': '非常满意', 'num': 0 }, - { 'type': '满意', 'num': 0 }, - { 'type': '一般', 'num': 0 }, - { 'type': '不满意', 'num': 0 }, - { 'type': '未评价', 'num': 0 } - ] + // this.chartData.rows = [ + // { 'type': '非常满意', 'num': 0 }, + // { 'type': '满意', 'num': 0 }, + // { 'type': '一般', 'num': 0 }, + // { 'type': '不满意', 'num': 0 }, + // { 'type': '未评价', 'num': 0 } + // ] }) } } diff --git a/src/api/statistics.js b/src/api/statistics.js index f1bb8df..20dcd08 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -6,7 +6,7 @@ // 按事件类型统计工单 export function getCaseStatisticsByType(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/eorcStatistic', method: 'get', params }) @@ -14,7 +14,7 @@ // 按事件来源统计工单 export function getCaseStatisticsBySource(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -22,7 +22,8 @@ // 按满意度统计工单 export function getCaseStatisticsByStatisfied(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/statisfiedStatistics', + // url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -30,7 +31,7 @@ // 工单总情况统计 export function getCaseStatisticsAll(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/stateStatistic', method: 'get', params }) @@ -38,27 +39,33 @@ // 工单年统计 export function getCaseStatisticsByYear(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/yearStatistic', method: 'get', params }) } // 工单月统计 -export function getCaseStatisticsByMonth(year) { +export function getCaseStatisticsByMonth(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/monthStatistic', method: 'get', - params: { - year: year - } + params }) } // 部门效能统计 export function deptStatistics(params) { return request({ - url: '/sound/soundList', + url: '/urge/departmentEffectiveStatistics', method: 'get', params }) } - +// 部门效能统计 +export function seatStatistics(params) { + return request({ + url: '/urge/departmentEffectiveStatistics', + // url: '/urge/seatEffectiveStatistics', + method: 'get', + params + }) +} diff --git a/src/views/statistic/caseStatistic/caseStatisticMonth.vue b/src/views/statistic/caseStatistic/caseStatisticMonth.vue index 32266e4..0c7bf53 100644 --- a/src/views/statistic/caseStatistic/caseStatisticMonth.vue +++ b/src/views/statistic/caseStatistic/caseStatisticMonth.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -57,7 +57,7 @@ data() { return { listQuery: { - year: '' + year: new Date().getFullYear() + '' }, columns: [ { @@ -135,30 +135,14 @@ getCaseStatisticsByMonth(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 5, - 'month': '2020-01', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-02', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 15, - 'month': '2020-03', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-04', - 'monthErlier': '0%', - 'yearErlier': '0%' - }] - this.chartData.rows = this.data + this.data = response.data + // this.data = [ + // { 'caseNum': 5, 'month': '2020-01', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-02', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 15, 'month': '2020-03', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-04', 'monthErlier': '0%', 'yearErlier': '0%' } + // ] + this.chartData.rows = response.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { this.extend.yAxis = { max: 10 } diff --git a/src/views/statistic/caseStatistic/caseStatisticYear.vue b/src/views/statistic/caseStatistic/caseStatisticYear.vue index 8a2a52f..30ffa47 100644 --- a/src/views/statistic/caseStatistic/caseStatisticYear.vue +++ b/src/views/statistic/caseStatistic/caseStatisticYear.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -127,16 +127,15 @@ }, fetchData() { this.listLoading = true - getCaseStatisticsByYear(this.listQuery).then(response => { + getCaseStatisticsByYear().then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 1, - 'year': '2020', - 'rate': '100%' - }] + this.data = response.data + // this.data = [{ + // 'caseNum': 1, + // 'year': '2020', + // 'rate': '100%' + // }] this.chartData.rows = this.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { diff --git a/src/views/statistic/caseStatistic/components/caseSource.vue b/src/views/statistic/caseStatistic/components/caseSource.vue index 3ee13f0..aaab13a 100644 --- a/src/views/statistic/caseStatistic/components/caseSource.vue +++ b/src/views/statistic/caseStatistic/components/caseSource.vue @@ -64,14 +64,14 @@ fetchData() { getCaseStatisticsBySource(this.listQuery).then(response => { this.chartData.rows = response.data - this.chartData.rows = [ - { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, - { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, - { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, - { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, - { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, - { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } - ] + // this.chartData.rows = [ + // { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, + // { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, + // { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, + // { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, + // { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, + // { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } + // ] }) } } diff --git a/src/views/statistic/caseStatistic/components/caseTable.vue b/src/views/statistic/caseStatistic/components/caseTable.vue index f750990..e7aba06 100644 --- a/src/views/statistic/caseStatistic/components/caseTable.vue +++ b/src/views/statistic/caseStatistic/components/caseTable.vue @@ -103,18 +103,17 @@ getCaseStatisticsAll(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - this.list = response.data.rows - this.total = response.data.total - this.data = [{ - 'callNum': 1, - 'caseNum': 2, - 'urgeNum': 3, - 'superviseNum': 4, - 'monitorNum': 5, - 'delayNum': 6, - 'overCaseNum': '0/0%', - 'noOverCaseNum': '0/0%' - }] + this.data = [response.data] + // this.data = [{ + // 'callNum': 1, + // 'caseNum': 2, + // 'urgeNum': 3, + // 'superviseNum': 4, + // 'monitorNum': 5, + // 'delayNum': 6, + // 'overCaseNum': '0/0%', + // 'noOverCaseNum': '0/0%' + // }] } }) } diff --git a/src/views/statistic/caseStatistic/components/satisfiedPie.vue b/src/views/statistic/caseStatistic/components/satisfiedPie.vue index 4ff08c6..2f8b113 100644 --- a/src/views/statistic/caseStatistic/components/satisfiedPie.vue +++ b/src/views/statistic/caseStatistic/components/satisfiedPie.vue @@ -57,13 +57,13 @@ getCaseStatisticsByStatisfied(this.listQuery).then(response => { const data = response.data this.chartData.rows = data - this.chartData.rows = [ - { 'type': '非常满意', 'num': 0 }, - { 'type': '满意', 'num': 0 }, - { 'type': '一般', 'num': 0 }, - { 'type': '不满意', 'num': 0 }, - { 'type': '未评价', 'num': 0 } - ] + // this.chartData.rows = [ + // { 'type': '非常满意', 'num': 0 }, + // { 'type': '满意', 'num': 0 }, + // { 'type': '一般', 'num': 0 }, + // { 'type': '不满意', 'num': 0 }, + // { 'type': '未评价', 'num': 0 } + // ] }) } } diff --git a/src/views/statistic/deptStatistic/deptStatistic.vue b/src/views/statistic/deptStatistic/deptStatistic.vue index 98df801..3642cc7 100644 --- a/src/views/statistic/deptStatistic/deptStatistic.vue +++ b/src/views/statistic/deptStatistic/deptStatistic.vue @@ -5,8 +5,9 @@ --> @@ -45,10 +47,12 @@ import AppContainer from '../../../components/layout/AppContainer' import DeptSelect from '../../../components/DeptSelect/index' import { deptStatistics } from '@/api/statistics' +import ChartTools from '../components/chartTools' +import BorderFrame from '../../../components/frame/borderFrame' export default { name: 'CaseStatisticYear', - components: { DeptSelect, AppContainer, SearchItem, SearchArea, NormalTable }, + components: { BorderFrame, ChartTools, DeptSelect, AppContainer, SearchItem, SearchArea, NormalTable }, data() { return { listQuery: { @@ -147,15 +151,14 @@ deptStatistics(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - this.data = response.data.rows - this.total = response.data.total - this.data = [ - { deptName: '社管局', caseTotalCount: 20, delayOneCount: 0, delayTwoCount: 0, normalfinished: 20, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '城管执法分局', caseTotalCount: 21, delayOneCount: 0, delayTwoCount: 0, normalfinished: 21, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '蓉江新区交通大队', caseTotalCount: 10, delayOneCount: 0, delayTwoCount: 0, normalfinished: 10, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '环卫所', caseTotalCount: 5, delayOneCount: 0, delayTwoCount: 0, normalfinished: 5, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '住建局', caseTotalCount: 3, delayOneCount: 0, delayTwoCount: 0, normalfinished: 3, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 } - ] + this.data = response.data + // this.data = [ + // { deptName: '社管局', caseTotalCount: 20, delayOneCount: 0, delayTwoCount: 0, normalfinished: 20, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '城管执法分局', caseTotalCount: 21, delayOneCount: 0, delayTwoCount: 0, normalfinished: 21, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '蓉江新区交通大队', caseTotalCount: 10, delayOneCount: 0, delayTwoCount: 0, normalfinished: 10, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '环卫所', caseTotalCount: 5, delayOneCount: 0, delayTwoCount: 0, normalfinished: 5, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '住建局', caseTotalCount: 3, delayOneCount: 0, delayTwoCount: 0, normalfinished: 3, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 } + // ] } }) }, @@ -168,6 +171,9 @@ this.listQuery.offset = val.page } this.fetchData() + }, + changeTime(val) { + this.timeRange = val } } } diff --git a/src/api/statistics.js b/src/api/statistics.js index f1bb8df..20dcd08 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -6,7 +6,7 @@ // 按事件类型统计工单 export function getCaseStatisticsByType(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/eorcStatistic', method: 'get', params }) @@ -14,7 +14,7 @@ // 按事件来源统计工单 export function getCaseStatisticsBySource(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -22,7 +22,8 @@ // 按满意度统计工单 export function getCaseStatisticsByStatisfied(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/statisfiedStatistics', + // url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -30,7 +31,7 @@ // 工单总情况统计 export function getCaseStatisticsAll(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/stateStatistic', method: 'get', params }) @@ -38,27 +39,33 @@ // 工单年统计 export function getCaseStatisticsByYear(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/yearStatistic', method: 'get', params }) } // 工单月统计 -export function getCaseStatisticsByMonth(year) { +export function getCaseStatisticsByMonth(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/monthStatistic', method: 'get', - params: { - year: year - } + params }) } // 部门效能统计 export function deptStatistics(params) { return request({ - url: '/sound/soundList', + url: '/urge/departmentEffectiveStatistics', method: 'get', params }) } - +// 部门效能统计 +export function seatStatistics(params) { + return request({ + url: '/urge/departmentEffectiveStatistics', + // url: '/urge/seatEffectiveStatistics', + method: 'get', + params + }) +} diff --git a/src/views/statistic/caseStatistic/caseStatisticMonth.vue b/src/views/statistic/caseStatistic/caseStatisticMonth.vue index 32266e4..0c7bf53 100644 --- a/src/views/statistic/caseStatistic/caseStatisticMonth.vue +++ b/src/views/statistic/caseStatistic/caseStatisticMonth.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -57,7 +57,7 @@ data() { return { listQuery: { - year: '' + year: new Date().getFullYear() + '' }, columns: [ { @@ -135,30 +135,14 @@ getCaseStatisticsByMonth(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 5, - 'month': '2020-01', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-02', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 15, - 'month': '2020-03', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-04', - 'monthErlier': '0%', - 'yearErlier': '0%' - }] - this.chartData.rows = this.data + this.data = response.data + // this.data = [ + // { 'caseNum': 5, 'month': '2020-01', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-02', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 15, 'month': '2020-03', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-04', 'monthErlier': '0%', 'yearErlier': '0%' } + // ] + this.chartData.rows = response.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { this.extend.yAxis = { max: 10 } diff --git a/src/views/statistic/caseStatistic/caseStatisticYear.vue b/src/views/statistic/caseStatistic/caseStatisticYear.vue index 8a2a52f..30ffa47 100644 --- a/src/views/statistic/caseStatistic/caseStatisticYear.vue +++ b/src/views/statistic/caseStatistic/caseStatisticYear.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -127,16 +127,15 @@ }, fetchData() { this.listLoading = true - getCaseStatisticsByYear(this.listQuery).then(response => { + getCaseStatisticsByYear().then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 1, - 'year': '2020', - 'rate': '100%' - }] + this.data = response.data + // this.data = [{ + // 'caseNum': 1, + // 'year': '2020', + // 'rate': '100%' + // }] this.chartData.rows = this.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { diff --git a/src/views/statistic/caseStatistic/components/caseSource.vue b/src/views/statistic/caseStatistic/components/caseSource.vue index 3ee13f0..aaab13a 100644 --- a/src/views/statistic/caseStatistic/components/caseSource.vue +++ b/src/views/statistic/caseStatistic/components/caseSource.vue @@ -64,14 +64,14 @@ fetchData() { getCaseStatisticsBySource(this.listQuery).then(response => { this.chartData.rows = response.data - this.chartData.rows = [ - { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, - { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, - { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, - { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, - { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, - { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } - ] + // this.chartData.rows = [ + // { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, + // { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, + // { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, + // { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, + // { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, + // { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } + // ] }) } } diff --git a/src/views/statistic/caseStatistic/components/caseTable.vue b/src/views/statistic/caseStatistic/components/caseTable.vue index f750990..e7aba06 100644 --- a/src/views/statistic/caseStatistic/components/caseTable.vue +++ b/src/views/statistic/caseStatistic/components/caseTable.vue @@ -103,18 +103,17 @@ getCaseStatisticsAll(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - this.list = response.data.rows - this.total = response.data.total - this.data = [{ - 'callNum': 1, - 'caseNum': 2, - 'urgeNum': 3, - 'superviseNum': 4, - 'monitorNum': 5, - 'delayNum': 6, - 'overCaseNum': '0/0%', - 'noOverCaseNum': '0/0%' - }] + this.data = [response.data] + // this.data = [{ + // 'callNum': 1, + // 'caseNum': 2, + // 'urgeNum': 3, + // 'superviseNum': 4, + // 'monitorNum': 5, + // 'delayNum': 6, + // 'overCaseNum': '0/0%', + // 'noOverCaseNum': '0/0%' + // }] } }) } diff --git a/src/views/statistic/caseStatistic/components/satisfiedPie.vue b/src/views/statistic/caseStatistic/components/satisfiedPie.vue index 4ff08c6..2f8b113 100644 --- a/src/views/statistic/caseStatistic/components/satisfiedPie.vue +++ b/src/views/statistic/caseStatistic/components/satisfiedPie.vue @@ -57,13 +57,13 @@ getCaseStatisticsByStatisfied(this.listQuery).then(response => { const data = response.data this.chartData.rows = data - this.chartData.rows = [ - { 'type': '非常满意', 'num': 0 }, - { 'type': '满意', 'num': 0 }, - { 'type': '一般', 'num': 0 }, - { 'type': '不满意', 'num': 0 }, - { 'type': '未评价', 'num': 0 } - ] + // this.chartData.rows = [ + // { 'type': '非常满意', 'num': 0 }, + // { 'type': '满意', 'num': 0 }, + // { 'type': '一般', 'num': 0 }, + // { 'type': '不满意', 'num': 0 }, + // { 'type': '未评价', 'num': 0 } + // ] }) } } diff --git a/src/views/statistic/deptStatistic/deptStatistic.vue b/src/views/statistic/deptStatistic/deptStatistic.vue index 98df801..3642cc7 100644 --- a/src/views/statistic/deptStatistic/deptStatistic.vue +++ b/src/views/statistic/deptStatistic/deptStatistic.vue @@ -5,8 +5,9 @@ --> @@ -45,10 +47,12 @@ import AppContainer from '../../../components/layout/AppContainer' import DeptSelect from '../../../components/DeptSelect/index' import { deptStatistics } from '@/api/statistics' +import ChartTools from '../components/chartTools' +import BorderFrame from '../../../components/frame/borderFrame' export default { name: 'CaseStatisticYear', - components: { DeptSelect, AppContainer, SearchItem, SearchArea, NormalTable }, + components: { BorderFrame, ChartTools, DeptSelect, AppContainer, SearchItem, SearchArea, NormalTable }, data() { return { listQuery: { @@ -147,15 +151,14 @@ deptStatistics(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - this.data = response.data.rows - this.total = response.data.total - this.data = [ - { deptName: '社管局', caseTotalCount: 20, delayOneCount: 0, delayTwoCount: 0, normalfinished: 20, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '城管执法分局', caseTotalCount: 21, delayOneCount: 0, delayTwoCount: 0, normalfinished: 21, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '蓉江新区交通大队', caseTotalCount: 10, delayOneCount: 0, delayTwoCount: 0, normalfinished: 10, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '环卫所', caseTotalCount: 5, delayOneCount: 0, delayTwoCount: 0, normalfinished: 5, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '住建局', caseTotalCount: 3, delayOneCount: 0, delayTwoCount: 0, normalfinished: 3, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 } - ] + this.data = response.data + // this.data = [ + // { deptName: '社管局', caseTotalCount: 20, delayOneCount: 0, delayTwoCount: 0, normalfinished: 20, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '城管执法分局', caseTotalCount: 21, delayOneCount: 0, delayTwoCount: 0, normalfinished: 21, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '蓉江新区交通大队', caseTotalCount: 10, delayOneCount: 0, delayTwoCount: 0, normalfinished: 10, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '环卫所', caseTotalCount: 5, delayOneCount: 0, delayTwoCount: 0, normalfinished: 5, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '住建局', caseTotalCount: 3, delayOneCount: 0, delayTwoCount: 0, normalfinished: 3, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 } + // ] } }) }, @@ -168,6 +171,9 @@ this.listQuery.offset = val.page } this.fetchData() + }, + changeTime(val) { + this.timeRange = val } } } diff --git a/src/views/statistic/seatStatistic/components/callTimeLine.vue b/src/views/statistic/seatStatistic/components/callTimeLine.vue new file mode 100644 index 0000000..ffd0d55 --- /dev/null +++ b/src/views/statistic/seatStatistic/components/callTimeLine.vue @@ -0,0 +1,86 @@ + + + + + + diff --git a/src/api/statistics.js b/src/api/statistics.js index f1bb8df..20dcd08 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -6,7 +6,7 @@ // 按事件类型统计工单 export function getCaseStatisticsByType(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/eorcStatistic', method: 'get', params }) @@ -14,7 +14,7 @@ // 按事件来源统计工单 export function getCaseStatisticsBySource(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -22,7 +22,8 @@ // 按满意度统计工单 export function getCaseStatisticsByStatisfied(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/statisfiedStatistics', + // url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -30,7 +31,7 @@ // 工单总情况统计 export function getCaseStatisticsAll(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/stateStatistic', method: 'get', params }) @@ -38,27 +39,33 @@ // 工单年统计 export function getCaseStatisticsByYear(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/yearStatistic', method: 'get', params }) } // 工单月统计 -export function getCaseStatisticsByMonth(year) { +export function getCaseStatisticsByMonth(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/monthStatistic', method: 'get', - params: { - year: year - } + params }) } // 部门效能统计 export function deptStatistics(params) { return request({ - url: '/sound/soundList', + url: '/urge/departmentEffectiveStatistics', method: 'get', params }) } - +// 部门效能统计 +export function seatStatistics(params) { + return request({ + url: '/urge/departmentEffectiveStatistics', + // url: '/urge/seatEffectiveStatistics', + method: 'get', + params + }) +} diff --git a/src/views/statistic/caseStatistic/caseStatisticMonth.vue b/src/views/statistic/caseStatistic/caseStatisticMonth.vue index 32266e4..0c7bf53 100644 --- a/src/views/statistic/caseStatistic/caseStatisticMonth.vue +++ b/src/views/statistic/caseStatistic/caseStatisticMonth.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -57,7 +57,7 @@ data() { return { listQuery: { - year: '' + year: new Date().getFullYear() + '' }, columns: [ { @@ -135,30 +135,14 @@ getCaseStatisticsByMonth(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 5, - 'month': '2020-01', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-02', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 15, - 'month': '2020-03', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-04', - 'monthErlier': '0%', - 'yearErlier': '0%' - }] - this.chartData.rows = this.data + this.data = response.data + // this.data = [ + // { 'caseNum': 5, 'month': '2020-01', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-02', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 15, 'month': '2020-03', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-04', 'monthErlier': '0%', 'yearErlier': '0%' } + // ] + this.chartData.rows = response.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { this.extend.yAxis = { max: 10 } diff --git a/src/views/statistic/caseStatistic/caseStatisticYear.vue b/src/views/statistic/caseStatistic/caseStatisticYear.vue index 8a2a52f..30ffa47 100644 --- a/src/views/statistic/caseStatistic/caseStatisticYear.vue +++ b/src/views/statistic/caseStatistic/caseStatisticYear.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -127,16 +127,15 @@ }, fetchData() { this.listLoading = true - getCaseStatisticsByYear(this.listQuery).then(response => { + getCaseStatisticsByYear().then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 1, - 'year': '2020', - 'rate': '100%' - }] + this.data = response.data + // this.data = [{ + // 'caseNum': 1, + // 'year': '2020', + // 'rate': '100%' + // }] this.chartData.rows = this.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { diff --git a/src/views/statistic/caseStatistic/components/caseSource.vue b/src/views/statistic/caseStatistic/components/caseSource.vue index 3ee13f0..aaab13a 100644 --- a/src/views/statistic/caseStatistic/components/caseSource.vue +++ b/src/views/statistic/caseStatistic/components/caseSource.vue @@ -64,14 +64,14 @@ fetchData() { getCaseStatisticsBySource(this.listQuery).then(response => { this.chartData.rows = response.data - this.chartData.rows = [ - { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, - { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, - { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, - { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, - { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, - { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } - ] + // this.chartData.rows = [ + // { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, + // { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, + // { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, + // { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, + // { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, + // { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } + // ] }) } } diff --git a/src/views/statistic/caseStatistic/components/caseTable.vue b/src/views/statistic/caseStatistic/components/caseTable.vue index f750990..e7aba06 100644 --- a/src/views/statistic/caseStatistic/components/caseTable.vue +++ b/src/views/statistic/caseStatistic/components/caseTable.vue @@ -103,18 +103,17 @@ getCaseStatisticsAll(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - this.list = response.data.rows - this.total = response.data.total - this.data = [{ - 'callNum': 1, - 'caseNum': 2, - 'urgeNum': 3, - 'superviseNum': 4, - 'monitorNum': 5, - 'delayNum': 6, - 'overCaseNum': '0/0%', - 'noOverCaseNum': '0/0%' - }] + this.data = [response.data] + // this.data = [{ + // 'callNum': 1, + // 'caseNum': 2, + // 'urgeNum': 3, + // 'superviseNum': 4, + // 'monitorNum': 5, + // 'delayNum': 6, + // 'overCaseNum': '0/0%', + // 'noOverCaseNum': '0/0%' + // }] } }) } diff --git a/src/views/statistic/caseStatistic/components/satisfiedPie.vue b/src/views/statistic/caseStatistic/components/satisfiedPie.vue index 4ff08c6..2f8b113 100644 --- a/src/views/statistic/caseStatistic/components/satisfiedPie.vue +++ b/src/views/statistic/caseStatistic/components/satisfiedPie.vue @@ -57,13 +57,13 @@ getCaseStatisticsByStatisfied(this.listQuery).then(response => { const data = response.data this.chartData.rows = data - this.chartData.rows = [ - { 'type': '非常满意', 'num': 0 }, - { 'type': '满意', 'num': 0 }, - { 'type': '一般', 'num': 0 }, - { 'type': '不满意', 'num': 0 }, - { 'type': '未评价', 'num': 0 } - ] + // this.chartData.rows = [ + // { 'type': '非常满意', 'num': 0 }, + // { 'type': '满意', 'num': 0 }, + // { 'type': '一般', 'num': 0 }, + // { 'type': '不满意', 'num': 0 }, + // { 'type': '未评价', 'num': 0 } + // ] }) } } diff --git a/src/views/statistic/deptStatistic/deptStatistic.vue b/src/views/statistic/deptStatistic/deptStatistic.vue index 98df801..3642cc7 100644 --- a/src/views/statistic/deptStatistic/deptStatistic.vue +++ b/src/views/statistic/deptStatistic/deptStatistic.vue @@ -5,8 +5,9 @@ --> @@ -45,10 +47,12 @@ import AppContainer from '../../../components/layout/AppContainer' import DeptSelect from '../../../components/DeptSelect/index' import { deptStatistics } from '@/api/statistics' +import ChartTools from '../components/chartTools' +import BorderFrame from '../../../components/frame/borderFrame' export default { name: 'CaseStatisticYear', - components: { DeptSelect, AppContainer, SearchItem, SearchArea, NormalTable }, + components: { BorderFrame, ChartTools, DeptSelect, AppContainer, SearchItem, SearchArea, NormalTable }, data() { return { listQuery: { @@ -147,15 +151,14 @@ deptStatistics(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - this.data = response.data.rows - this.total = response.data.total - this.data = [ - { deptName: '社管局', caseTotalCount: 20, delayOneCount: 0, delayTwoCount: 0, normalfinished: 20, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '城管执法分局', caseTotalCount: 21, delayOneCount: 0, delayTwoCount: 0, normalfinished: 21, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '蓉江新区交通大队', caseTotalCount: 10, delayOneCount: 0, delayTwoCount: 0, normalfinished: 10, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '环卫所', caseTotalCount: 5, delayOneCount: 0, delayTwoCount: 0, normalfinished: 5, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '住建局', caseTotalCount: 3, delayOneCount: 0, delayTwoCount: 0, normalfinished: 3, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 } - ] + this.data = response.data + // this.data = [ + // { deptName: '社管局', caseTotalCount: 20, delayOneCount: 0, delayTwoCount: 0, normalfinished: 20, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '城管执法分局', caseTotalCount: 21, delayOneCount: 0, delayTwoCount: 0, normalfinished: 21, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '蓉江新区交通大队', caseTotalCount: 10, delayOneCount: 0, delayTwoCount: 0, normalfinished: 10, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '环卫所', caseTotalCount: 5, delayOneCount: 0, delayTwoCount: 0, normalfinished: 5, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '住建局', caseTotalCount: 3, delayOneCount: 0, delayTwoCount: 0, normalfinished: 3, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 } + // ] } }) }, @@ -168,6 +171,9 @@ this.listQuery.offset = val.page } this.fetchData() + }, + changeTime(val) { + this.timeRange = val } } } diff --git a/src/views/statistic/seatStatistic/components/callTimeLine.vue b/src/views/statistic/seatStatistic/components/callTimeLine.vue new file mode 100644 index 0000000..ffd0d55 --- /dev/null +++ b/src/views/statistic/seatStatistic/components/callTimeLine.vue @@ -0,0 +1,86 @@ + + + + + + diff --git a/src/views/statistic/seatStatistic/components/callTotalBar.vue b/src/views/statistic/seatStatistic/components/callTotalBar.vue new file mode 100644 index 0000000..8bcd3f7 --- /dev/null +++ b/src/views/statistic/seatStatistic/components/callTotalBar.vue @@ -0,0 +1,84 @@ + + + + + + diff --git a/src/api/statistics.js b/src/api/statistics.js index f1bb8df..20dcd08 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -6,7 +6,7 @@ // 按事件类型统计工单 export function getCaseStatisticsByType(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/eorcStatistic', method: 'get', params }) @@ -14,7 +14,7 @@ // 按事件来源统计工单 export function getCaseStatisticsBySource(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -22,7 +22,8 @@ // 按满意度统计工单 export function getCaseStatisticsByStatisfied(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/statisfiedStatistics', + // url: '/caseStatistic/sourceStatistic', method: 'get', params }) @@ -30,7 +31,7 @@ // 工单总情况统计 export function getCaseStatisticsAll(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/stateStatistic', method: 'get', params }) @@ -38,27 +39,33 @@ // 工单年统计 export function getCaseStatisticsByYear(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/yearStatistic', method: 'get', params }) } // 工单月统计 -export function getCaseStatisticsByMonth(year) { +export function getCaseStatisticsByMonth(params) { return request({ - url: '/sound/soundList', + url: '/caseStatistic/monthStatistic', method: 'get', - params: { - year: year - } + params }) } // 部门效能统计 export function deptStatistics(params) { return request({ - url: '/sound/soundList', + url: '/urge/departmentEffectiveStatistics', method: 'get', params }) } - +// 部门效能统计 +export function seatStatistics(params) { + return request({ + url: '/urge/departmentEffectiveStatistics', + // url: '/urge/seatEffectiveStatistics', + method: 'get', + params + }) +} diff --git a/src/views/statistic/caseStatistic/caseStatisticMonth.vue b/src/views/statistic/caseStatistic/caseStatisticMonth.vue index 32266e4..0c7bf53 100644 --- a/src/views/statistic/caseStatistic/caseStatisticMonth.vue +++ b/src/views/statistic/caseStatistic/caseStatisticMonth.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -57,7 +57,7 @@ data() { return { listQuery: { - year: '' + year: new Date().getFullYear() + '' }, columns: [ { @@ -135,30 +135,14 @@ getCaseStatisticsByMonth(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 5, - 'month': '2020-01', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-02', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 15, - 'month': '2020-03', - 'monthErlier': '0%', - 'yearErlier': '0%' - }, { - 'caseNum': 10, - 'month': '2020-04', - 'monthErlier': '0%', - 'yearErlier': '0%' - }] - this.chartData.rows = this.data + this.data = response.data + // this.data = [ + // { 'caseNum': 5, 'month': '2020-01', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-02', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 15, 'month': '2020-03', 'monthErlier': '0%', 'yearErlier': '0%' }, + // { 'caseNum': 10, 'month': '2020-04', 'monthErlier': '0%', 'yearErlier': '0%' } + // ] + this.chartData.rows = response.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { this.extend.yAxis = { max: 10 } diff --git a/src/views/statistic/caseStatistic/caseStatisticYear.vue b/src/views/statistic/caseStatistic/caseStatisticYear.vue index 8a2a52f..30ffa47 100644 --- a/src/views/statistic/caseStatistic/caseStatisticYear.vue +++ b/src/views/statistic/caseStatistic/caseStatisticYear.vue @@ -30,13 +30,13 @@ :options="tableOption.options" :tools-option="tableOption.toolsOption" @change="changePage"> - + + + + + + + @@ -127,16 +127,15 @@ }, fetchData() { this.listLoading = true - getCaseStatisticsByYear(this.listQuery).then(response => { + getCaseStatisticsByYear().then(response => { if (response.code === 200) { this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - this.data = [{ - 'caseNum': 1, - 'year': '2020', - 'rate': '100%' - }] + this.data = response.data + // this.data = [{ + // 'caseNum': 1, + // 'year': '2020', + // 'rate': '100%' + // }] this.chartData.rows = this.data const maxValue = Math.max.apply(Math, this.data.map(function(item) { return item.caseNum })) if (maxValue < 10) { diff --git a/src/views/statistic/caseStatistic/components/caseSource.vue b/src/views/statistic/caseStatistic/components/caseSource.vue index 3ee13f0..aaab13a 100644 --- a/src/views/statistic/caseStatistic/components/caseSource.vue +++ b/src/views/statistic/caseStatistic/components/caseSource.vue @@ -64,14 +64,14 @@ fetchData() { getCaseStatisticsBySource(this.listQuery).then(response => { this.chartData.rows = response.data - this.chartData.rows = [ - { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, - { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, - { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, - { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, - { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, - { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } - ] + // this.chartData.rows = [ + // { 'source': '热线电话', 'caseNum': 1393, '下单用户': 1093, '下单率': 0.32 }, + // { 'source': '微信', 'caseNum': 3530, '下单用户': 3230, '下单率': 0.26 }, + // { 'source': '微博', 'caseNum': 2923, '下单用户': 2623, '下单率': 0.76 }, + // { 'source': '邮箱', 'caseNum': 1723, '下单用户': 1423, '下单率': 0.49 }, + // { 'source': '短信', 'caseNum': 3792, '下单用户': 3492, '下单率': 0.323 }, + // { 'source': '其他平台', 'caseNum': 353, '下单用户': 4293, '下单率': 0.78 } + // ] }) } } diff --git a/src/views/statistic/caseStatistic/components/caseTable.vue b/src/views/statistic/caseStatistic/components/caseTable.vue index f750990..e7aba06 100644 --- a/src/views/statistic/caseStatistic/components/caseTable.vue +++ b/src/views/statistic/caseStatistic/components/caseTable.vue @@ -103,18 +103,17 @@ getCaseStatisticsAll(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - this.list = response.data.rows - this.total = response.data.total - this.data = [{ - 'callNum': 1, - 'caseNum': 2, - 'urgeNum': 3, - 'superviseNum': 4, - 'monitorNum': 5, - 'delayNum': 6, - 'overCaseNum': '0/0%', - 'noOverCaseNum': '0/0%' - }] + this.data = [response.data] + // this.data = [{ + // 'callNum': 1, + // 'caseNum': 2, + // 'urgeNum': 3, + // 'superviseNum': 4, + // 'monitorNum': 5, + // 'delayNum': 6, + // 'overCaseNum': '0/0%', + // 'noOverCaseNum': '0/0%' + // }] } }) } diff --git a/src/views/statistic/caseStatistic/components/satisfiedPie.vue b/src/views/statistic/caseStatistic/components/satisfiedPie.vue index 4ff08c6..2f8b113 100644 --- a/src/views/statistic/caseStatistic/components/satisfiedPie.vue +++ b/src/views/statistic/caseStatistic/components/satisfiedPie.vue @@ -57,13 +57,13 @@ getCaseStatisticsByStatisfied(this.listQuery).then(response => { const data = response.data this.chartData.rows = data - this.chartData.rows = [ - { 'type': '非常满意', 'num': 0 }, - { 'type': '满意', 'num': 0 }, - { 'type': '一般', 'num': 0 }, - { 'type': '不满意', 'num': 0 }, - { 'type': '未评价', 'num': 0 } - ] + // this.chartData.rows = [ + // { 'type': '非常满意', 'num': 0 }, + // { 'type': '满意', 'num': 0 }, + // { 'type': '一般', 'num': 0 }, + // { 'type': '不满意', 'num': 0 }, + // { 'type': '未评价', 'num': 0 } + // ] }) } } diff --git a/src/views/statistic/deptStatistic/deptStatistic.vue b/src/views/statistic/deptStatistic/deptStatistic.vue index 98df801..3642cc7 100644 --- a/src/views/statistic/deptStatistic/deptStatistic.vue +++ b/src/views/statistic/deptStatistic/deptStatistic.vue @@ -5,8 +5,9 @@ --> @@ -45,10 +47,12 @@ import AppContainer from '../../../components/layout/AppContainer' import DeptSelect from '../../../components/DeptSelect/index' import { deptStatistics } from '@/api/statistics' +import ChartTools from '../components/chartTools' +import BorderFrame from '../../../components/frame/borderFrame' export default { name: 'CaseStatisticYear', - components: { DeptSelect, AppContainer, SearchItem, SearchArea, NormalTable }, + components: { BorderFrame, ChartTools, DeptSelect, AppContainer, SearchItem, SearchArea, NormalTable }, data() { return { listQuery: { @@ -147,15 +151,14 @@ deptStatistics(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false - this.data = response.data.rows - this.total = response.data.total - this.data = [ - { deptName: '社管局', caseTotalCount: 20, delayOneCount: 0, delayTwoCount: 0, normalfinished: 20, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '城管执法分局', caseTotalCount: 21, delayOneCount: 0, delayTwoCount: 0, normalfinished: 21, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '蓉江新区交通大队', caseTotalCount: 10, delayOneCount: 0, delayTwoCount: 0, normalfinished: 10, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '环卫所', caseTotalCount: 5, delayOneCount: 0, delayTwoCount: 0, normalfinished: 5, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { deptName: '住建局', caseTotalCount: 3, delayOneCount: 0, delayTwoCount: 0, normalfinished: 3, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 } - ] + this.data = response.data + // this.data = [ + // { deptName: '社管局', caseTotalCount: 20, delayOneCount: 0, delayTwoCount: 0, normalfinished: 20, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '城管执法分局', caseTotalCount: 21, delayOneCount: 0, delayTwoCount: 0, normalfinished: 21, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '蓉江新区交通大队', caseTotalCount: 10, delayOneCount: 0, delayTwoCount: 0, normalfinished: 10, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '环卫所', caseTotalCount: 5, delayOneCount: 0, delayTwoCount: 0, normalfinished: 5, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, + // { deptName: '住建局', caseTotalCount: 3, delayOneCount: 0, delayTwoCount: 0, normalfinished: 3, delayfinished: 0, onCount: 0, delayUnfinishedCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 } + // ] } }) }, @@ -168,6 +171,9 @@ this.listQuery.offset = val.page } this.fetchData() + }, + changeTime(val) { + this.timeRange = val } } } diff --git a/src/views/statistic/seatStatistic/components/callTimeLine.vue b/src/views/statistic/seatStatistic/components/callTimeLine.vue new file mode 100644 index 0000000..ffd0d55 --- /dev/null +++ b/src/views/statistic/seatStatistic/components/callTimeLine.vue @@ -0,0 +1,86 @@ + + + + + + diff --git a/src/views/statistic/seatStatistic/components/callTotalBar.vue b/src/views/statistic/seatStatistic/components/callTotalBar.vue new file mode 100644 index 0000000..8bcd3f7 --- /dev/null +++ b/src/views/statistic/seatStatistic/components/callTotalBar.vue @@ -0,0 +1,84 @@ + + + + + + diff --git a/src/views/statistic/seatStatistic/seatStatistic.vue b/src/views/statistic/seatStatistic/seatStatistic.vue index 5e4f1c8..3ea412b 100644 --- a/src/views/statistic/seatStatistic/seatStatistic.vue +++ b/src/views/statistic/seatStatistic/seatStatistic.vue @@ -7,6 +7,7 @@
+ + + + + + + + + + + + +
@@ -40,12 +53,15 @@ import SearchArea from '../../../components/SearchArea/SearchArea' import SearchItem from '../../../components/SearchArea/SearchItem' import AppContainer from '../../../components/layout/AppContainer' -import DeptSelect from '../../../components/DeptSelect/index' -import { deptStatistics } from '@/api/statistics' +import { seatStatistics } from '@/api/statistics' +import ChartTools from '../components/chartTools' +import CallTotalBar from './components/callTotalBar' +import BorderFrame from '../../../components/frame/borderFrame' +import CallTimeLine from './components/callTimeLine' export default { name: 'CaseStatisticYear', - components: { DeptSelect, AppContainer, SearchItem, SearchArea, NormalTable }, + components: { CallTimeLine, BorderFrame, CallTotalBar, ChartTools, AppContainer, SearchItem, SearchArea, NormalTable }, data() { return { listQuery: { @@ -84,7 +100,7 @@ value: 'directReplyCount' }, { - text: '交办数', + text: '协同申请数', value: 'assignCount' }, { @@ -93,14 +109,10 @@ }, { text: '回访重办数', - value: 'returnDoCount' + value: 'onLineInTime' }, { - text: '会签数', - value: 'countersignCount' - }, - { - text: '在线接入时长(分)', + text: '在线呼入时长(分)', value: 'onLineInTime' }, { @@ -116,12 +128,20 @@ value: 'redoOneCount' }, { - text: '总忙置时长(分)', - value: 'onLineFreeTime' + text: '总置忙时长(分)', + value: 'busyTotalTime' }, { text: '总签入时长(分)', - value: 'onLineFreeTime' + value: 'callInTotalTime' + }, + { + text: '平均呼入时长(分)', + value: 'callInAvgTime' + }, + { + text: '平均呼出时长(分)', + value: 'callOutAvgTime' } ], // 显示列 data: [], // 列表数据 @@ -153,17 +173,16 @@ }, fetchData() { this.listLoading = true - deptStatistics(this.listQuery).then(response => { + seatStatistics(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false this.data = response.data.rows this.total = response.data.total this.data = [ - { userName: '社管局', seat: 20, delayOneCount: 0, delayTwoCount: 0, normalfinished: 20, delayfinished: 0, onCount: 0, acceptCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { userName: '城管执法分局', seat: 21, delayOneCount: 0, delayTwoCount: 0, normalfinished: 21, delayfinished: 0, onCount: 0, acceptCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { userName: '蓉江新区交通大队', seat: 10, delayOneCount: 0, delayTwoCount: 0, normalfinished: 10, delayfinished: 0, onCount: 0, acceptCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { userName: '环卫所', seat: 5, delayOneCount: 0, delayTwoCount: 0, normalfinished: 5, delayfinished: 0, onCount: 0, acceptCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 }, - { userName: '住建局', seat: 3, delayOneCount: 0, delayTwoCount: 0, normalfinished: 3, delayfinished: 0, onCount: 0, acceptCount: 0, feedBackCount: 0, delayOneUrgeCount: 0, delayTwoUrgeCount: 0, delayTwoMoreUrgeCount: 0, redoOneCount: 0, redoTwoCount: 0 } + { userName: '坐席1', seat: '001', callInCount: 0, callOutCount: 0, callTotalCount: 20, acceptCount: 0, directReplyCount: 0, assignCount: 0, storagyCount: 0, onLineInTime: 0, onLineFreeTime: 0, redoOneCount: 0, redoTwoCount: 0 }, + { userName: '坐席2', seat: '002', callInCount: 0, callOutCount: 0, callTotalCount: 21, acceptCount: 0, directReplyCount: 0, assignCount: 0, storagyCount: 0, onLineInTime: 0, onLineFreeTime: 0, redoOneCount: 0, redoTwoCount: 0 }, + { userName: '坐席3', seat: '003', callInCount: 0, callOutCount: 0, callTotalCount: 10, acceptCount: 0, directReplyCount: 0, assignCount: 0, storagyCount: 0, onLineInTime: 0, onLineFreeTime: 0, redoOneCount: 0, redoTwoCount: 0 }, + { userName: '坐席4', seat: '004', callInCount: 0, callOutCount: 0, callTotalCount: 5, acceptCount: 0, directReplyCount: 0, assignCount: 0, storagyCount: 0, onLineInTime: 0, onLineFreeTime: 0, redoOneCount: 0, redoTwoCount: 0 } ] } }) @@ -177,6 +196,9 @@ this.listQuery.offset = val.page } this.fetchData() + }, + changeTime(val) { + this.timeRange = val } } }