fix:禅道346

This commit is contained in:
shijing 2026-02-27 08:52:36 +08:00
parent fe96ccde0f
commit f3021a2357
1 changed files with 14 additions and 1 deletions

View File

@ -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);
})
}
});
},