From d875196da818420c690113e6a27314002b759509 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 7 Dec 2023 11:47:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- package.json | 3 + src/components/UploadFile/src/Preview.vue | 98 +++++++++++++------ src/components/UploadFile/src/UploadFile.vue | 9 +- src/main.ts | 5 +- src/utils/globalConst.js | 3 +- .../templateItemDetails.data.ts | 11 ++- 7 files changed, 89 insertions(+), 44 deletions(-) diff --git a/.env.development b/.env.development index 651af1b..661e703 100644 --- a/.env.development +++ b/.env.development @@ -4,11 +4,11 @@ NODE_ENV=development VITE_DEV=false # 请求路径 -VITE_BASE_URL='http://localhost:12080' +VITE_BASE_URL='http://192.168.0.165:12080' # 上传路径 #VITE_UPLOAD_URL='http://localhost:12080/admin-api/spc/template-item-details/upload' -VITE_UPLOAD_URL='http://localhost:12080/admin-api/infra/file/upload' +VITE_UPLOAD_URL='http://192.168.0.165:12080/admin-api/infra/file/upload' # 接口前缀 VITE_API_BASEPATH=/dev-api diff --git a/package.json b/package.json index 2d240fe..97b46a1 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "crypto-js": "^4.1.1", "dayjs": "^1.11.10", "diagram-js": "^12.3.0", + "docx-preview": "^0.1.4", "echarts": "^5.4.3", "echarts-wordcloud": "^2.1.0", "element-plus": "2.3.14", @@ -37,6 +38,7 @@ "highlight.js": "^11.8.0", "intro.js": "^7.2.0", "jsencrypt": "^3.3.2", + "jszip": "^3.10.1", "lodash-es": "^4.17.21", "min-dash": "^4.1.1", "mitt": "^3.0.1", @@ -54,6 +56,7 @@ "vue-router": "^4.2.5", "vue-types": "^5.1.1", "vue-video-player": "^5.0.1", + "vue3-video-play": "^1.3.2", "vuedraggable": "^4.1.0", "web-storage-cache": "^1.1.1", "xml-js": "^1.6.11" diff --git a/src/components/UploadFile/src/Preview.vue b/src/components/UploadFile/src/Preview.vue index d683d10..1ac4f00 100644 --- a/src/components/UploadFile/src/Preview.vue +++ b/src/components/UploadFile/src/Preview.vue @@ -1,10 +1,15 @@