xjc пре 4 година
родитељ
комит
9b3516abb0
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      src/views/message/MessageAnalyse.vue

+ 4 - 4
src/views/message/MessageAnalyse.vue

@@ -233,10 +233,6 @@ export default {
             },
           },
         });
-        dataPie = dataPie.filter(function(x){if(x.value==0){return false}return true})
-        dataPie.forEach((item,index)=>{
-          pieColors.push(item.color)
-        })
         dataBarX.push(item.label);
         dataBarY.push({
           sale: item.sale,
@@ -244,6 +240,10 @@ export default {
           itemStyle: { color: colors[index] },
         });
       });
+      dataPie = dataPie.filter(function(x){if(x.value==0){return false}return true})
+      dataPie.forEach((item,index)=>{
+          pieColors.push(item.color)
+        })
       let option = {
         title: {
           subtext: "填报次数",