更新8d处理和管理
This commit is contained in:
@@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user