From 65992a824e3a61f3cd755fa3e3076866b1bcc160 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Tue, 11 Jul 2023 13:29:12 +0800 Subject: [PATCH] 2023-7-11 --- src/components/Reception/Navbar.vue | 2 +- src/views/reception/home/index.vue | 20 ++++++++++++++++++-- src/views/reception/list1/index.vue | 20 ++++++++++++++++++-- 3 files changed, 37 insertions(+), 5 deletions(-) diff --git a/src/components/Reception/Navbar.vue b/src/components/Reception/Navbar.vue index b271d68..2e4fdb7 100644 --- a/src/components/Reception/Navbar.vue +++ b/src/components/Reception/Navbar.vue @@ -33,7 +33,7 @@ export default { background: #247EC3; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); - z-index: 999999; + z-index: 5000; position: sticky; top: 0; diff --git a/src/views/reception/home/index.vue b/src/views/reception/home/index.vue index 390ed9b..f0edfe1 100644 --- a/src/views/reception/home/index.vue +++ b/src/views/reception/home/index.vue @@ -203,6 +203,18 @@ + + + + @@ -213,6 +225,8 @@ import {home, tags, departments, detail} from '@/api/reception'; export default { data() { return { + codeUri: '', + showModal: false, load: false, uploadsList: [], loading: false, @@ -236,8 +250,10 @@ export default { }, methods: { open (e) { - let codeUri = encodeURIComponent(new Buffer(e.url).toString('base64')) - window.open(`http://view.ali251.langye.net:8012/onlinePreview?url=${codeUri}`) + this.codeUri = `http://view.ali251.langye.net:8012/onlinePreview?url=${encodeURIComponent(new Buffer(e.url).toString('base64'))}` + + this.showModal = true + //window.open(`http://view.ali251.langye.net:8012/onlinePreview?url=${codeUri}`) }, down (e) { download (e.url, 'get', {}, e.name) diff --git a/src/views/reception/list1/index.vue b/src/views/reception/list1/index.vue index 12bfdfd..4e8eb2e 100644 --- a/src/views/reception/list1/index.vue +++ b/src/views/reception/list1/index.vue @@ -87,6 +87,18 @@ }"> + + + + @@ -96,6 +108,8 @@ import { materials, detail } from "@/api/reception" export default { data() { return { + codeUri: '', + showModal: false, loading: false, select: { keyword: '', @@ -136,8 +150,10 @@ export default { }, open (e) { - let codeUri = encodeURIComponent(new Buffer(e.url).toString('base64')) - window.open(`http://view.ali251.langye.net:8012/onlinePreview?url=${codeUri}`) + this.codeUri = `http://view.ali251.langye.net:8012/onlinePreview?url=${encodeURIComponent(new Buffer(e.url).toString('base64'))}` + + this.showModal = true + //window.open(`http://view.ali251.langye.net:8012/onlinePreview?url=${codeUri}`) }, down (e) { download (e.url, 'get', {}, e.name)