浏览代码

Merge branch 'fine_music_score' of http://git.dayaedu.com/yonge/dy-admin-manager into fine_music_score

mo 2 年之前
父节点
当前提交
243b7b9b1f
共有 1 个文件被更改,包括 15 次插入2 次删除
  1. 15 2
      src/views/main/baseinfo/modals/manageOrgan.vue

+ 15 - 2
src/views/main/baseinfo/modals/manageOrgan.vue

@@ -321,7 +321,8 @@ export default {
       values: "",
       handleStatus: false,
       organId: "",
-      dataCoop: []
+      dataCoop: [],
+      isClick: false
     };
   },
   mounted() {
@@ -333,6 +334,8 @@ export default {
       const that = this;
       charts.getZr().off("click"); //防止触发两次点击事件
       charts.getZr().on("click", async function(params) {
+        if (that.loading) return;
+
         let op = charts.getOption();
         // console.log(op, params);
         let pointInPixel = [params.offsetX, params.offsetY];
@@ -363,12 +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");