From 6662074ac2366a1068f54cefb1e46af7fca4fc81 Mon Sep 17 00:00:00 2001
From: zmk <496160012@qq.com>
Date: 星期六, 18 五月 2024 17:27:22 +0800
Subject: [PATCH] Merge branch 'master' of ssh://117.78.1.188:29418/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