From c6f79f5720c5d4a700b8b759a93393559409fd1c Mon Sep 17 00:00:00 2001
From: chenhuan <czj123456>
Date: 星期一, 20 五月 2024 15:11:58 +0800
Subject: [PATCH] Merge branch 'master' of http://117.78.1.188:8089/r/dkyChenJiang

---
 javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/files.html |   69 ++++++++++++++++++++++++++++++++++
 1 files changed, 69 insertions(+), 0 deletions(-)

diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/files.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/files.html
new file mode 100644
index 0000000..a296a25
--- /dev/null
+++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/files.html
@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
+<head>
+    <th:block th:include="include :: header('璧勬枡鍒楄〃')" />
+    <th:block th:include="include :: bootstrap-fileinput-css" />
+</head>
+<body class="gray-bg">
+     <div class="container-div">
+        <div class="row">
+            <div class="col-sm-12 select-table table-striped">
+                <table id="bootstrap-table"></table>
+            </div>
+        </div>
+    </div>
+    <th:block th:include="include :: footer" />
+
+    <script th:inline="javascript">
+
+        var id =[[${id}]];
+        var prefix = ctx + "geo/projectData";
+
+        $(function() {
+            var options = {
+                showFooter: true,
+                showSearch: false,
+                showRefresh: false,
+                showToggle: false,
+                showColumns: false,
+                url: prefix + "/listFile?id=" + id,
+                modalName: "璧勬枡鍒楄〃",
+                columns: [{
+                    checkbox: true
+                },
+                {
+                    field : 'name',
+                    title : '鏂囦欢鍚嶇О'
+
+                },
+                    {
+                        field : 'path',
+                        title : '鏂囦欢璺緞',
+                        visible:false
+                    },
+                    {
+                        title: '鎿嶄綔',
+                        align: 'center',
+                        formatter: function(value, row, index) {
+                            var actions = [];
+                            actions.push('<a class="btn btn-warning btn-xs '  + '" href="javascript:void(0)" onclick="file(\'' + row.path + '\')"><i class="fa fa-eye"></i>鏌ョ湅</a> ');
+                            return actions.join('');
+                        }
+                    }
+                ]
+            };
+            $.table.init(options);
+        });
+
+        /**
+         * 鎵撳紑鏂囦欢
+         * @param path
+         */
+        function file(path) {
+            var url = "/bjfw/profile" + path;
+            window.open(url);
+        }
+    </script>
+</body>
+
+</html>
\ No newline at end of file

--
Gitblit v1.9.1