fix:禅道346
This commit is contained in:
parent
fe96ccde0f
commit
f3021a2357
|
|
@ -977,9 +977,12 @@ export default {
|
|||
// that.$API.bi.dataset.exec.req('batch_search', obj).then((res) => {
|
||||
let keys = 'configData'+index;
|
||||
that[keys] = that.deepCopy(configData);
|
||||
if(index!==4){
|
||||
that[keys].header.splice(2,1);
|
||||
}
|
||||
that[keys].data = [];
|
||||
that.$API.wpm.ana.batchwork.req({mgroup_name:name}).then((res) => {
|
||||
if(res.length>0){
|
||||
if(res.length>0&&index==4){
|
||||
//根据工段名称分组
|
||||
res.forEach((item) => {
|
||||
let arr = [];
|
||||
|
|
@ -990,6 +993,16 @@ export default {
|
|||
arr[4] = item.count_ok;
|
||||
that[keys].data.push(arr);
|
||||
})
|
||||
}else if(res.length>0&&index!==4){
|
||||
//根据工段名称分组
|
||||
res.forEach((item) => {
|
||||
let arr = [];
|
||||
arr[0] = item.batch;
|
||||
arr[1] = item.count_todo;
|
||||
arr[2] = item.count_real;
|
||||
arr[3] = item.count_ok;
|
||||
that[keys].data.push(arr);
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue