Browse Source

样式调整

zpf 1 năm trước cách đây
mục cha
commit
3674ba2363
2 tập tin đã thay đổi với 12 bổ sung6 xóa
  1. 7 1
      src/components/echartsTemplate/3dPie.vue
  2. 5 5
      src/views/cockpitNew1/tdsc.vue

+ 7 - 1
src/components/echartsTemplate/3dPie.vue

@@ -115,9 +115,13 @@ export default {
           `${item.name}`.includes(`${name}`)
         );
         if (sItem) {
+          console.log("name",name);
+          
           return `{name|${name}}  {value|${sItem.value}}  {unit|${_this.$props.unit}} `;
           // return name + 'sItem.value';
         } else {
+          console.log("name",name2);
+
           return name;
         }
       };
@@ -339,7 +343,9 @@ export default {
       return series;
     },
   },
-  mounted() {},
+  mounted() {
+
+  },
 };
 </script>
 <style lang="scss" scoped>

+ 5 - 5
src/views/cockpitNew1/tdsc.vue

@@ -56,7 +56,7 @@
       <div id="tdsc_echart_xzqh">
 
       </div> -->
-      <pie3d id="tdsc_echart" unit="km²" ref="echartRefTdsc"></pie3d>
+      <pie3d id="tdsc_echart" unit="公顷" ref="echartRefTdsc"></pie3d>
 
     </div>
 
@@ -574,9 +574,9 @@ export default {
       // this.initEchartXzqh();
 
       const optionsData = [
-        { name: "水田", value: 50 },
-        { name: "水浇地", value: 20 },
-        { name: "旱地", value: 30 },
+        { name: "征收", value: 15.33 },
+        { name: "收购", value: 4.6 },
+        { name: "回收", value: 39 },
       ];
       this.$nextTick(() => {
         this.$refs.echartRefTdsc.setOptions(optionsData);
@@ -673,7 +673,7 @@ export default {
 #tdsc_echart {
   left: -1rem;
   top: 0rem;
-  width: 28rem;
+  width: 23rem;
   height: 11rem;
 }