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