|
|
|
@ -362,16 +362,16 @@
|
|
|
|
|
* */
|
|
|
|
|
callInter:function () {
|
|
|
|
|
//判断实例是否存在 如果存在先清除视图数据
|
|
|
|
|
let depEchart = echarts.getInstanceByDom(document.getElementById("deptRecordEchart"));
|
|
|
|
|
let placeEchart = echarts.getInstanceByDom(document.getElementById("placeEchart"));
|
|
|
|
|
let categoryEchart = echarts.getInstanceByDom(document.getElementById("categoryRecordEchart"));
|
|
|
|
|
if(depEchart){
|
|
|
|
|
if(document.getElementById("deptRecordEchart")){
|
|
|
|
|
let depEchart = echarts.getInstanceByDom(document.getElementById("deptRecordEchart"));
|
|
|
|
|
depEchart.clear();
|
|
|
|
|
}
|
|
|
|
|
if(placeEchart){
|
|
|
|
|
if(document.getElementById("placeEchart")){
|
|
|
|
|
let placeEchart = echarts.getInstanceByDom(document.getElementById("placeEchart"));
|
|
|
|
|
placeEchart.clear();
|
|
|
|
|
}
|
|
|
|
|
if(categoryEchart){
|
|
|
|
|
if(document.getElementById("categoryRecordEchart")){
|
|
|
|
|
let categoryEchart = echarts.getInstanceByDom(document.getElementById("categoryRecordEchart"));
|
|
|
|
|
categoryEchart.clear();
|
|
|
|
|
}
|
|
|
|
|
this.getDeptPieDiagram();
|
|
|
|
@ -391,7 +391,7 @@
|
|
|
|
|
* */
|
|
|
|
|
changeReportType:function (e) {
|
|
|
|
|
let reportType = e.target.checked;
|
|
|
|
|
this.containChild = reportType;
|
|
|
|
|
this.reportType = reportType;
|
|
|
|
|
this.callInter();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|