From 5a1dc222489e45588470b21b62ffbbda5fc681d6 Mon Sep 17 00:00:00 2001
From: zhangmeng <1810979988@qq.com>
Date: Wed, 26 Aug 2020 12:15:28 +0800
Subject: [PATCH] 附件管理开发

---
 src/web/Public/Scripts/PSI/Attachment/AttachmentList.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/web/Public/Scripts/PSI/Attachment/AttachmentList.js b/src/web/Public/Scripts/PSI/Attachment/AttachmentList.js
index ccf617b..357f42b 100644
--- a/src/web/Public/Scripts/PSI/Attachment/AttachmentList.js
+++ b/src/web/Public/Scripts/PSI/Attachment/AttachmentList.js
@@ -50,7 +50,13 @@
         header: "附件名",
         dataIndex: "fileName",
         width: 300,
-        menuDisabled: true
+        menuDisabled: true,
+        renderer: function (value, md, record) {
+          return "<a href='"
+            + PSI.Const.BASE_URL
+            + record.get("fullName")
+            + "' target='_blank'>" + record.get("fileName") + "</a>";
+        }
       }, {
         header: "附件类型",
         dataIndex: "fileType",

--
Gitblit v1.8.0