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/projectData2.html |  130 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 130 insertions(+), 0 deletions(-)

diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/projectData2.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/projectData2.html
new file mode 100644
index 0000000..aba6d71
--- /dev/null
+++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/projectData2.html
@@ -0,0 +1,130 @@
+<!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('椤圭洰璧勬枡鍒楄〃')" />
+</head>
+<body class="gray-bg">
+     <div class="container-div">
+        <div class="row">
+            <div class="col-sm-12 search-collapse">
+                <form id="formId">
+                    <div th:if="${type}=='3'" class="select-list">
+                        <ul>
+                            <li>
+                                <p>璧勬枡鍚嶇О锛�</p>
+                                <input type="text" name="name"/>
+                            </li>
+                            <li>
+                                <p>涓氬姟绫诲瀷锛�</p>
+                                <select name="fileType" th:with="type=${@dict.getType('project_data_file_type')}">
+                                    <option value="">鎵�鏈�</option>
+                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
+                                </select>
+                            </li>
+                            <li>
+                                <p>鏍囩锛�</p>
+                                <input type="text" name="labels"/>
+                            </li>
+                            <li>
+                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;鎼滅储</a>
+                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;閲嶇疆</a>
+                            </li>
+                        </ul>
+                    </div>
+                </form>
+            </div>
+
+            <div class="btn-group-sm" id="toolbar" role="group">
+                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="geo:projectData:add">
+                    <i class="fa fa-plus"></i> 娣诲姞
+                </a>
+                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="geo:projectData:edit">
+                    <i class="fa fa-edit"></i> 淇敼
+                </a>
+                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="geo:projectData:remove">
+                    <i class="fa fa-remove"></i> 鍒犻櫎
+                </a>
+
+            </div>
+            <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 editFlag = [[${@permission.hasPermi('geo:projectData:edit')}]];
+        var removeFlag = [[${@permission.hasPermi('geo:projectData:remove')}]];
+        var dataTypeDatas = [[${@dict.getType('project_data_type')}]];
+        var fileTypeDatas = [[${@dict.getType('project_data_file_type')}]];
+        var projectId=[[${projectId}]];
+        var type=[[${type}]];
+        var prefix = ctx + "geo/projectData";
+        console.log("type",type);
+
+        $(function() {
+            var options = {
+                url: prefix + "/list?projectId=" + projectId + "&dataType=" + type,
+                createUrl: prefix + "/add?projectId=" + projectId + "&dataType=" + type,
+                updateUrl: prefix + "/edit/{id}",
+                removeUrl: prefix + "/remove",
+                exportUrl: prefix + "/export",
+                modalName: "椤圭洰璧勬枡",
+                columns: [{
+                    checkbox: true
+                },
+                {
+                    field : 'id',
+                    title : '涓婚敭',
+                    visible: false
+                },
+                {
+                    field : 'name',
+                    title : '璧勬枡鍚嶇О'
+                },
+                {
+                    field : 'fileType',
+                    title : '涓氬姟绫诲瀷',
+                    formatter: function(value, row, index) {
+                       return $.table.selectDictLabel(fileTypeDatas, value);
+                    }
+                },
+                {
+                    field : 'labels',
+                    title : '鏍囩'
+                },
+                {
+                    field : 'remark',
+                    title : '澶囨敞'
+                },
+                {
+                    title: '鎿嶄綔',
+                    align: 'center',
+                    formatter: function(value, row, index) {
+                        var actions = [];
+                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>缂栬緫</a> ');
+                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>鍒犻櫎</a> ');
+                        actions.push('<a class="btn btn-info btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="uploadZIP(\'' + row.id + '\')"><i class="fa fa-upload"></i>涓婁紶</a> ');
+                        actions.push('<a class="btn btn-info btn-xs ' + '" href="javascript:void(0)" onclick="viewResource(\'' + row.id + '\' , \'' + row.id + '\')"><i class="glyphicon glyphicon-menu-hamburger"></i>鏌ョ湅闄勪欢</a>');
+
+                        return actions.join('');
+                    }
+                }]
+            };
+            $.table.init(options);
+        });
+
+        // 涓婁紶闄勪欢
+        function uploadZIP(id){
+            $.modal.open('涓婁紶闄勪欢', prefix + "/importImg?projectDataId="+id);
+        }
+
+
+        //鏌ョ湅璧勬枡
+        function viewResource(id){
+            $.modal.open("璧勬枡鍒楄〃",  prefix + "/projectDataFileList?id=" + id, 800, 600);
+        }
+
+    </script>
+</body>
+</html>
\ No newline at end of file

--
Gitblit v1.9.1