From bf72c7b0caff2b949bcf9fcf03d8821b7dae9f84 Mon Sep 17 00:00:00 2001
From: zmk <496160012@qq.com>
Date: 星期三, 03 七月 2024 18:03:12 +0800
Subject: [PATCH] 提交代码
---
javaweb-plus/javaweb-cms/src/main/resources/templates/geo/TubLog/TubLog.html | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/TubLog/TubLog.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/TubLog/TubLog.html
index 434ae3e..381b34c 100644
--- a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/TubLog/TubLog.html
+++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/TubLog/TubLog.html
@@ -109,6 +109,13 @@
field : 'unit',
title : '鏁版嵁鍗曚綅'
},
+ {
+ field : 'documentPath',
+ title : '鍥剧墖/鎵弿浠�',
+ formatter: function(value, row, index) {
+ return `<a onclick="viewTubLogFile('${row.fileUrl}')" href="#">鍥剧墖/鎵弿浠�</a>`;
+ }
+ },
{
field : 'remark',
title : '澶囨敞'
@@ -133,6 +140,11 @@
window.location.href = ctx + "common/download?fileName=" + encodeURI(filename) + "&delete=" + false;
}
+ //鏌ョ湅璇佷欢鐓х墖
+ function viewTubLogFile(path) {
+ var filepath = "/bjfw/"+path;
+ window.open(filepath)
+ }
</script>
</body>
--
Gitblit v1.9.1