diff --git a/src/views/ask/analysis.vue b/src/views/ask/analysis.vue index 2eefeb4..642efb3 100644 --- a/src/views/ask/analysis.vue +++ b/src/views/ask/analysis.vue @@ -149,10 +149,10 @@ align="center" > + > - + import { formatDate, deepClone, downloadFile } from "utils"; +import BusEvent from "@/utils/busEvent"; export default { data() { return { @@ -512,6 +519,20 @@ export default { this.query.endDay = new Date(); } }, + activated() { + const that = this; + BusEvent.$on("keepAlive", async function () { + that.query.subjectNames = that.role == "ROLE_BANZHUREN" ? [] : ""; + await that._QueryClassList(); + await that._QuerySubjectList(); + await that.setDate(1); + let startDay = that.query?.startDay; + if (!startDay) { + that.query.startDay = new Date(); + that.query.endDay = new Date(); + } + }); + }, methods: { changeSub(val) { let sub; diff --git a/src/views/device/index.vue b/src/views/device/index.vue index ebc3970..c1df4e5 100644 --- a/src/views/device/index.vue +++ b/src/views/device/index.vue @@ -327,6 +327,11 @@ @selection-change="handleSelectionChange" > +