瀏覽代碼

处理欧姐覅

lex 2 年之前
父節點
當前提交
41e41a2fb5
共有 1 個文件被更改,包括 13 次插入5 次删除
  1. 13 5
      src/views/main/baseinfo/modals/manageOrgan.vue

+ 13 - 5
src/views/main/baseinfo/modals/manageOrgan.vue

@@ -321,7 +321,8 @@ export default {
       values: "",
       handleStatus: false,
       organId: "",
-      dataCoop: []
+      dataCoop: [],
+      isClick: false
     };
   },
   mounted() {
@@ -333,8 +334,7 @@ export default {
       const that = this;
       charts.getZr().off("click"); //防止触发两次点击事件
       charts.getZr().on("click", async function(params) {
-        console.log(this.loading, this.handleStatus, "handleStatus");
-        if (this.loading) return;
+        if (that.loading) return;
 
         let op = charts.getOption();
         // console.log(op, params);
@@ -353,7 +353,6 @@ export default {
               that.organId = item.organId;
             }
           });
-          this.loading = true;
           await that.FetchDetail();
         }
       });
@@ -367,13 +366,22 @@ export default {
           ...getTimes(this.mdate1, ["startTime", "endTime"]),
           organId: this.organId
         });
-        this.dataCoop = res.data || [];
+        const tempData = res.data || [];
+        // 只显示前10的数据
+        tempData.forEach((item, index) => {
+          // console.log(item, index);
+          if (index <= 9) {
+            this.dataCoop.push(item);
+          }
+        });
+        // this.dataCoop = res.data || [];
         this.handleStatus = true;
         this.loading = false;
       } catch (error) {
         console.log(error);
       }
       this.loading = false;
+      this.isClick = false;
     },
     init() {
       // this.$refs.searchHeader.initStatue("month");