From a0d493483597526a006db67549fd9bb5d1d5bf06 Mon Sep 17 00:00:00 2001 From: 梁保满 Date: Thu, 12 Jan 2023 09:49:33 +0800 Subject: [PATCH] 授课端管理添加设备编码,随堂问、即时测缓存状态 --- src/views/ask/analysis.vue | 4 ++-- src/views/ask/index.vue | 23 ++++++++++++++++++++++- src/views/device/index.vue | 5 +++++ src/views/layout/aside/aside.vue | 22 ++++++++++++++++------ src/views/layout/layout.vue | 8 ++++---- src/views/login/index.vue | 8 ++++---- src/views/test/analysis.vue | 2 +- src/views/test/index.vue | 16 +++++++++++++++- 8 files changed, 69 insertions(+), 19 deletions(-) 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" > +