zxr 3 年之前
父节点
当前提交
20273130d9
共有 1 个文件被更改,包括 4 次插入9 次删除
  1. 4 9
      src/views/taishi/tanshi1.vue

+ 4 - 9
src/views/taishi/tanshi1.vue

@@ -1270,12 +1270,7 @@ export default {
   mounted() {
     this.$forceUpdate();
     //各单位在位情况
-    gedanweizaiweiqingkaung().then(res => {
-      if (res.code == 200) {
-        this.zwqklist = res.data;
-        this.center2();
-      }
-    });
+   this.center2();
     //外出人员占比
     waichurenyuanzhanbi().then(res => {
       this.wclist = res.data;
@@ -1316,12 +1311,12 @@ export default {
       function c() {
         if (s == datav.length - 1) {
           s = 4;
-          z = -1;
+          z = 0;
         } else {
           s += 1;
           z += 1;
         }
-
+       
         var data2 = datav.slice(z, s + 1);
         var data=className.slice(z, s + 1);
         console.log(data2)
@@ -1369,7 +1364,7 @@ export default {
             left: 10,
             right: 30,
             bottom: 5,
-            top: 1,
+            top: -8,
             containLabel: true
           },
           tooltip: {