From 6376ba7005148656b0f979c385de6bec6938f056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Thu, 30 Mar 2023 11:35:46 +0800 Subject: [PATCH] up --- .env.development | 4 +- src/views/daily/components/viewInfo.vue | 35 +++++++++++++--- src/views/daily/components/viewUpInfo.vue | 49 ++++++++++++++++++----- src/views/daily/index.vue | 28 ++++++------- 4 files changed, 83 insertions(+), 33 deletions(-) diff --git a/.env.development b/.env.development index f15a303..e4f9680 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,6 @@ ENV = 'development' # base api -VUE_APP_BASE_API = 'http://safety.115.langye.net/' +#VUE_APP_BASE_API = 'http://safety.115.langye.net/' -#VUE_APP_BASE_API = http://192.168.60.99:9001/ +VUE_APP_BASE_API = http://192.168.60.99:9001/ diff --git a/src/views/daily/components/viewInfo.vue b/src/views/daily/components/viewInfo.vue index 1e0504a..49f1e7c 100644 --- a/src/views/daily/components/viewInfo.vue +++ b/src/views/daily/components/viewInfo.vue @@ -18,10 +18,23 @@ -
- - {{item.original_name}} - +
+ +
+ + {{item.original_name}} + +
+ + 预览 + + + 下载 + +
+
+
@@ -32,6 +45,7 @@ + @@ -41,19 +55,28 @@ getdaily } from "../../../api/daily/index.js"; + import viewFile from '@/components/viewFile/viewFile.vue' export default { + components: { + viewFile + }, data() { return { dialogFormVisible: false, form: {}, fileList: [], - clientHeight: 0 + clientHeight: 0,isShowViewFile: false, + fileUrl: "" } }, created() { - this.clientHeight = document.documentElement.clientHeight*.6; + this.clientHeight = document.documentElement.clientHeight * .6; }, methods: { + toshowFile(url) { + this.fileUrl = url; + this.isShowViewFile = true; + }, async getinfo(id) { var that = this; diff --git a/src/views/daily/components/viewUpInfo.vue b/src/views/daily/components/viewUpInfo.vue index fd9c9ae..fbbbb18 100644 --- a/src/views/daily/components/viewUpInfo.vue +++ b/src/views/daily/components/viewUpInfo.vue @@ -1,25 +1,42 @@