|
@@ -1283,6 +1283,12 @@ export function setAnalysisHandleSituation(ele,finishData,remindData,urgeData) {
|
|
|
setOptions(ele,HandleOption)
|
|
|
}
|
|
|
export function setAnalysisAverageTime(ele,dataX,TERM_BJ,TERM_SL,AVG_SL_TIME,AVG_BJ_TIME) {
|
|
|
+ let promise_optimize = [];
|
|
|
+ let ture_optimize = [];
|
|
|
+ for(let i=0;i<dataX.length;i++){
|
|
|
+ promise_optimize.push((TERM_SL[i]-AVG_SL_TIME[i]).toFixed(2));
|
|
|
+ ture_optimize.push((TERM_BJ[i]-AVG_BJ_TIME[i]).toFixed(2));
|
|
|
+ }
|
|
|
let averageOption = {
|
|
|
tooltip: {
|
|
|
trigger: 'axis',
|
|
@@ -1342,28 +1348,41 @@ export function setAnalysisAverageTime(ele,dataX,TERM_BJ,TERM_SL,AVG_SL_TIME,AVG
|
|
|
],
|
|
|
series: [
|
|
|
{
|
|
|
- name: '承诺受理',
|
|
|
- type: 'line',
|
|
|
- data: TERM_SL
|
|
|
- },
|
|
|
- {
|
|
|
- name: '实际受理',
|
|
|
+ name: '受理可优化',
|
|
|
type: 'line',
|
|
|
- data: AVG_SL_TIME
|
|
|
+ data: promise_optimize
|
|
|
},
|
|
|
{
|
|
|
- name: '承诺办结',
|
|
|
- type: 'line',
|
|
|
- data: TERM_BJ
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- name: '实际办结',
|
|
|
+ name: '办结可优化',
|
|
|
type: 'line',
|
|
|
- data: AVG_BJ_TIME
|
|
|
+ data: ture_optimize
|
|
|
},
|
|
|
|
|
|
]
|
|
|
+ // series: [
|
|
|
+ // {
|
|
|
+ // name: '承诺受理',
|
|
|
+ // type: 'line',
|
|
|
+ // data: TERM_SL
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // name: '实际受理',
|
|
|
+ // type: 'line',
|
|
|
+ // data: AVG_SL_TIME
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // name: '承诺办结',
|
|
|
+ // type: 'line',
|
|
|
+ // data: TERM_BJ
|
|
|
+ // },
|
|
|
+ //
|
|
|
+ // {
|
|
|
+ // name: '实际办结',
|
|
|
+ // type: 'line',
|
|
|
+ // data: AVG_BJ_TIME
|
|
|
+ // },
|
|
|
+ //
|
|
|
+ // ]
|
|
|
};
|
|
|
setOptions(ele,averageOption)
|
|
|
}
|