From 715cb39dd2eaaa534b58d603380ffd404b1b18c5 Mon Sep 17 00:00:00 2001 From: he wei <858544502@qq.com> Date: 星期三, 26 四月 2023 15:12:17 +0800 Subject: [PATCH] UA win11服务问题修正 等测试反馈 --- src/App.vue | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index 49fb888..75718a1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,12 @@ <template> <div id="app"> - <div class="main"> + <div + class="main" + v-loading="loading" + :element-loading-text="loadingStr" + element-loading-spinner="el-icon-loading" + element-loading-background="rgba(0, 0, 0, 0.8)" + > <div class="left" ref="left"> <menu-list></menu-list> <btn-list></btn-list> @@ -87,10 +93,12 @@ TabsBar, AKeepAlive, FileInfo, - BtnList + BtnList, }, data() { return { + loading: false, + loadingStr: '鎷煎懡鍔犺浇涓�...', clickObj: {}, // fileInfoVisible: false, fileData: {}, @@ -182,6 +190,7 @@ // url: item1.fileUrl, fileId: item1.fileId, level: 3, + stationId: item.stationId, parent: [v.station1, val.station2, item.station3], })), level: 2, @@ -248,7 +257,7 @@ } }, openFile(obj) { - let { fileId, label } = obj; + let { fileId, label, stationId } = obj; getParamByFileId(fileId).then((res) => { const { code, data, data2 } = res.data; if (code && data) { @@ -256,6 +265,7 @@ this.fileData = data2; this.currFile.name = label; // this.currFile.url = url; + this.currFile.stationId = stationId; this.currFile.fileId = fileId; // 闇�姹備慨鏀逛负涓嶅脊鍙傛暟闈㈡澘 鐩存帴璺宠浆鍒拌В鏋愰〉闈� // this.fileInfoVisible = true; @@ -282,13 +292,14 @@ // this.toRes(); // }, toRes() { - const { name, url, fileId } = this.currFile; + const { name, url, fileId, stationId } = this.currFile; // debugger; this.$router.push({ path: "/result/" + name, query: { url, fileId, + stationId }, }); this.$bus.$emit("checkScroll"); @@ -363,6 +374,10 @@ handle.addEventListener("mousedown", this.onMouseDown); this.$bus.$on("clearCaches", this.updateCaches); this.$bus.$on("stationReload", this.reload); + this.$bus.$on("loading", (data) => { + this.loading = true; + this.loadingStr = data; + }); this.getStation(); }, }; -- Gitblit v1.9.1