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

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

@@ -333,6 +333,9 @@ 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;
+
         let op = charts.getOption();
         // console.log(op, params);
         let pointInPixel = [params.offsetX, params.offsetY];
@@ -350,6 +353,7 @@ export default {
               that.organId = item.organId;
             }
           });
+          this.loading = true;
           await that.FetchDetail();
         }
       });
@@ -365,6 +369,7 @@ export default {
         });
         this.dataCoop = res.data || [];
         this.handleStatus = true;
+        this.loading = false;
       } catch (error) {
         console.log(error);
       }