更新8d处理和管理

This commit is contained in:
2023-07-14 14:42:31 +08:00
parent 37bd4fd532
commit e27ef93af9
30 changed files with 614 additions and 234 deletions

View File

@@ -23,6 +23,10 @@ export default {
return [];
},
},
eType: {
type: Number,
default: 0
}
},
data() {
return {
@@ -81,12 +85,11 @@ export default {
this.dataList.forEach((item) => {
const i = option.series.findIndex((c) => c.id === item.productTypeId);
if (i >= 0) {
option.series[i].data.push(item.productTypeNumber);
option.series[i].data.push(this.eType?item.problemTypeNumber:item.productTypeNumber);
} else {
console.log(item.productTypeName)
const obj = {
name: item.productTypeName,
id: item.productTypeId,
name: this.eType?item.problemTypeName:item.productTypeName,
id: this.eType?item.problemTypeId:item.productTypeId,
type: "bar",
stack: "total",
label: {
@@ -97,7 +100,7 @@ export default {
},
data: [],
};
obj.data.push(item.productTypeNumber);
obj.data.push(this.eType?item.problemTypeNumber:item.productTypeNumber);
option.series.push(obj);
}
})