Forráskód Böngészése

检查图表显示判断调整

maxiaoxiao 1 éve
szülő
commit
b94a330570

+ 2 - 2
src/views/complianceAnalysis/components/scjg.vue

@@ -122,7 +122,7 @@ export default {
               isshow: false,
               scxstyle: e.scxstyle,
             });
-            if (e.scxstyle == 1) this.setEchart(c, e.scxbsm);
+            if (e.scxstyle == 0) this.setEchart(c, e.scxbsm);
             if (e.children) this.lForEach(e.children, "echart");
           });
           this.$emit("updateParent", "loading", false);
@@ -161,7 +161,7 @@ export default {
 
         if (
           fun == "echart" &&
-          child.scxstyle == 1 &&
+          child.scxstyle == 0 &&
           child.scxbsm.indexOf("GGFWSS") >= 0
         ) {
           child.id = child.scxbsm;

+ 2 - 2
src/views/complianceAnalysis/components/scjgContent.vue

@@ -2,13 +2,13 @@
   <div class="content">
     <!-- 图表 -->
     <pie
-      v-if="litem.scxstyle == 1"
+      v-if="litem.scxstyle == 0"
       :class="`echart${litem.dataList.length <= 6 ? '' : '_vertical'}`"
       unit="亩"
       @echartClick="(name, iseyes) => echartClick(name, iseyes)"
       :ref="`echartRef`"
     ></pie>
-    <div v-else-if="litem.scxstyle == 0">
+    <div v-else-if="litem.scxstyle == 1">
       <div v-for="ldata in litem.dataList" :key="ldata.scxbsm">
         <el-tooltip
           v-if="ldata.yslx_name && ldata.yslx_name.length > 0"