+
{{ scope.row.count01 }}
-
{{ scope.row.count02 }}
-
{{ scope.row.count03 }}
+
{{ item.count_ok }}
+
{{ item.count_real }}
@@ -375,23 +377,22 @@ export default {
let endDate = year+'-'+month+'-'+day;
this.query.date = [startDate,endDate];
let heights = document.getElementById('topContainer').clientHeight;
- console.log('heights',heights)
this.topHeight = (heights-45)+'px';
this.bottomHeight = (heights-65)+'px';
},
methods: {
// 动态绑定Class
bindClass(row){
- let count01 = row.count01;
- let count02 = row.count02;
- let count03 = row.count03;
+ let count = row.count;
+ let countok = row.count_ok;
+ let countreal = row.count_real;
let classInfo = {countBlock:true, redColor: false, greenColor: false, orangeColor:false };
- if(count01+count02
=count){
classInfo.greenColor = true;
- }else if(count01+count02>count03){
+ }else if(countreal>=count){
classInfo.orangeColor = true;
+ }else{
+ classInfo.redColor = true;
}
return classInfo
},
@@ -523,6 +524,24 @@ export default {
this.apiObj = this.$API.pm.mtask.list;
this.visibleRecord = true;
},
+ rowclick(val){
+ let that = this;
+ console.log(val);
+ let utask = val.id;
+ that.dataList.push(val)
+ this.$API.pm.mtask.list.req({utask:utask,page:0}).then(res=>{
+ res.forEach(item=>{
+ console.log(item)
+ let obj = {};
+ obj.data = item.start_date;
+ obj.count = item.count;
+ obj.count_ok = item.count_ok;
+ obj.count_real = item.count_real;
+ obj.count_notok = item.count_notok;
+ that.columList.push(obj);
+ })
+ })
+ },
},
};