-
{{ fileName }}
-
{{ listQuery.task2__year }}年 1—12月质量目标双月报
+
{{ deptName }}
+
{{ listQuery.task2__year }}年 1—12月质量目标双月报
@@ -310,7 +310,6 @@
],
orgData:[],
barChart1:null,
- bar1option:{},
barchart2:null,
lineChart1:null,
lineChart2:null,
@@ -332,16 +331,31 @@
};
},
mounted() {
- this.getGroup();
+ this.supTate = this.checkPermission(["record_confirm"]);
+ if(this.supTate ){
+ }else{
+ let date = new Date();
+ this.listQuery.task2__year = date.getFullYear()+'';
+ this.deptName = this.$store.getters.dept_name;
+ this.listQuery.belong_dept = this.$store.getters.dept;
+ this.handleFilter();
+ }
this.optionSet();
+ this.getGroup();
},
methods: {
belongDeptChange(a){
- this.fileName = '';
let selectItem = this.orgData.filter(item=>{
return item.id==a
})
this.deptName = selectItem[0].name;
+ this.bar1Data=[];
+ this.bar2Data=[];
+ this.line1Data=[];
+ this.line2Data =[];
+ this.line3Data=[];
+ this.line4Data=[];
+ this.tableDatas=[[],[],[],[],[],[],[],[],[],[],[],[],[]];
},
optionSet(){
let chartDom1 = document.getElementById('bar1');
@@ -405,9 +419,11 @@
text: '报告/证书合格率(%)'
},
tooltip: {
- trigger: 'axis'
+ trigger: 'axis',
+
},
legend: {
+ right:30,
data: ['报告/证书合格率']
},
grid: {
@@ -454,6 +470,7 @@
trigger: 'axis'
},
legend: {
+ right:30,
data: ['报告/证书及时率']
},
grid: {
@@ -500,6 +517,7 @@
trigger: 'axis'
},
legend: {
+ right:30,
data: ['能力验证满意率']
},
grid: {
@@ -546,6 +564,7 @@
trigger: 'axis'
},
legend: {
+ right:30,
data: ['客户投诉处理满意率']
},
grid: {
@@ -593,7 +612,6 @@
that.line2Data = [];
that.line3Data = [];
that.line4Data = [];
- that.fileName = that.deptName;
that.tableData1 = [];
that.tableDatas = [ [],[],[],[],[],[],[],[],[],[],[],[],[]];
getTask2Do(that.listQuery).then(res=>{
@@ -746,7 +764,6 @@
}else{
this.$message.warning('请选择部门')
}
-
},
handlePrint() {
this.$PRINT('#myReport');
diff --git a/client/src/views/supervisionNew/taskdo.vue b/client/src/views/supervisionNew/taskdo.vue
index b0db175..75955ee 100644
--- a/client/src/views/supervisionNew/taskdo.vue
+++ b/client/src/views/supervisionNew/taskdo.vue
@@ -457,7 +457,7 @@