From 52d5a1a72f7c160f92d8825b89d2364964179569 Mon Sep 17 00:00:00 2001
From: xy <271556543@qq.com>
Date: Wed, 23 Aug 2023 14:55:44 +0800
Subject: [PATCH] 2023-8-23
---
src/views/component/detail.vue | 52 ++++++++++++++++++++++++++++++++--
1 file changed, 50 insertions(+), 2 deletions(-)
diff --git a/src/views/component/detail.vue b/src/views/component/detail.vue
index 5fcb2c0..49ee35a 100644
--- a/src/views/component/detail.vue
+++ b/src/views/component/detail.vue
@@ -68,8 +68,12 @@
detail.id_assets_file_files_file_id_relation.length > 0
"
>
-
@@ -144,6 +148,24 @@
+
+
+
+
+
+
+
@@ -152,10 +174,13 @@ import { show, index } from "@/api/system/baseForm";
import { show as formShow } from "@/api/system/customForm";
import { getparameter } from "@/api/system/dictionary";
import { listdept } from "@/api/system/department";
+import { download } from "@/utils/downloadRequest";
export default {
name: "detail",
data() {
return {
+ showModal:false,
+ codeUri: "",
center: [120.283692, 31.614211],
marker: {},
@@ -178,6 +203,18 @@ export default {
};
},
methods: {
+ open(url) {
+ this.codeUri = `http://view.ali251.langye.net:8012/onlinePreview?url=${encodeURIComponent(
+ new Buffer(url).toString("base64")
+ )}`;
+
+ this.showModal = true;
+ },
+
+ down(e) {
+ download(e.url, "get", {}, e.original_name);
+ },
+
init() {
this.map = new AMap.Map("detail-map", {
center: this.center,
@@ -374,6 +411,17 @@ export default {
::v-deep .el-empty__image {
width: 120px;
}
+
+a {
+ color: red;
+ text-decoration: none;
+ transition: all 0.2s;
+}
+
+a:hover {
+ color: red;
+ text-decoration: underline;
+}