fix:coding#4811.2任务进度
This commit is contained in:
parent
714e18e168
commit
7316da4504
|
@ -16,14 +16,14 @@ VUE_APP_PJ = ''
|
||||||
# VUE_APP_API_BASEURL = http://127.0.0.1:2226/api
|
# VUE_APP_API_BASEURL = http://127.0.0.1:2226/api
|
||||||
|
|
||||||
#测试环境
|
#测试环境
|
||||||
VUE_APP_API_BASEURL = http://10.50.211.228:2250/api
|
# VUE_APP_API_BASEURL = http://10.50.211.228:2250/api
|
||||||
#VUE_APP_API_BASEURL = http://127.0.0.1:2226/api
|
#VUE_APP_API_BASEURL = http://127.0.0.1:2226/api
|
||||||
VUE_APP_BASEURL = http://10.50.211.228:2250
|
# VUE_APP_BASEURL = http://10.50.211.228:2250
|
||||||
#VUE_APP_BASEURL = http://127.0.0.1:2226
|
#VUE_APP_BASEURL = http://127.0.0.1:2226
|
||||||
|
|
||||||
# #光子
|
# #光子
|
||||||
# VUE_APP_API_BASEURL = http://49.232.14.174:2250/api
|
VUE_APP_API_BASEURL = http://49.232.14.174:2226/api
|
||||||
# VUE_APP_BASEURL = http://49.232.14.174:2250
|
VUE_APP_BASEURL = http://49.232.14.174:2226
|
||||||
|
|
||||||
# 本地端口
|
# 本地端口
|
||||||
VUE_APP_PORT = 2800
|
VUE_APP_PORT = 2800
|
||||||
|
|
|
@ -584,7 +584,7 @@ export default {
|
||||||
formatter: "{b} : {c} ({d}%)",
|
formatter: "{b} : {c} ({d}%)",
|
||||||
},
|
},
|
||||||
data: [
|
data: [
|
||||||
{ value: 0, name: "已完成" },
|
{ value: 0, name: "合格数" },
|
||||||
{ value: 0, name: "未完成" },
|
{ value: 0, name: "未完成" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -681,18 +681,15 @@ export default {
|
||||||
that[names] = res;
|
that[names] = res;
|
||||||
console.log('names',names);
|
console.log('names',names);
|
||||||
console.log('that[names]',that[names]);
|
console.log('that[names]',that[names]);
|
||||||
let count_ok1 = 0;
|
let count_jh = 0,count_ok = 0,count_diff = 0;
|
||||||
let count_notok1 = 0;
|
|
||||||
if (res.length > 0) {
|
if (res.length > 0) {
|
||||||
res.forEach((item) => {
|
res.forEach((item) => {
|
||||||
if (item.count_ok >= item.count) {
|
count_jh+=item.count;
|
||||||
count_ok1++;
|
count_ok+=item.count_ok;
|
||||||
} else {
|
|
||||||
count_notok1++;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
option.series.data[0].value = count_ok1;
|
count_diff = count_jh - count_ok;
|
||||||
option.series.data[1].value = count_notok1;
|
option.series.data[0].value = count_ok;
|
||||||
|
option.series.data[1].value = count_diff;
|
||||||
let chartId = 'linechart'+mgroup_index;
|
let chartId = 'linechart'+mgroup_index;
|
||||||
that.setChart(chartId, option);
|
that.setChart(chartId, option);
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in New Issue