From 280001d476b92bf2d14052518e6f69bee9dee43d Mon Sep 17 00:00:00 2001
From: zmk <496160012@qq.com>
Date: 星期四, 18 七月 2024 16:13:15 +0800
Subject: [PATCH] 提交代码

---
 javaweb-plus/javaweb-cms/src/main/resources/templates/geo/project/project.html |  139 +++++++++++++++++-----------------------------
 1 files changed, 52 insertions(+), 87 deletions(-)

diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/project/project.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/project/project.html
index b9be8f5..7f0a1f3 100644
--- a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/project/project.html
+++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/project/project.html
@@ -1,7 +1,7 @@
 <!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 :: header('鍦哄湴鍒楄〃')" />
 </head>
 <body class="gray-bg">
      <div class="container-div">
@@ -12,8 +12,19 @@
                         <ul>
        
                             <li>
-                                <p>椤圭洰鍚嶇О锛�</p>
+                                <p>鍦哄湴鍚嶇О锛�</p>
                                 <input type="text" name="fullName"/>
+                            </li>
+                            <li>
+                                <p>鍦哄湴缂栧彿锛�</p>
+                                <input type="text" name="code"/>
+                            </li>
+                            <li>
+                                <p>椤圭洰鐘舵�侊細</p>
+                                <select name="status" th:with="type=${@dict.getType('project_status')}">
+                                    <option value="">鎵�鏈�</option>
+                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
+                                </select>
                             </li>
                             <li>
                                 <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;鎼滅储</a>
@@ -25,9 +36,9 @@
             </div>
 
             <div class="btn-group-sm" id="toolbar" role="group">
-<!--                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="geo:project:add">-->
-<!--                    <i class="fa fa-plus"></i> 娣诲姞-->
-<!--                </a>-->
+                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="geo:project:add">
+                    <i class="fa fa-plus"></i> 娣诲姞
+                </a>
                 <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="geo:project:edit">
                     <i class="fa fa-edit"></i> 淇敼
                 </a>
@@ -44,6 +55,7 @@
     <script th:inline="javascript">
         var editFlag = [[${@permission.hasPermi('geo:project:edit')}]];
         var removeFlag = [[${@permission.hasPermi('geo:project:remove')}]];
+        var statusDatas = [[${@dict.getType('project_status')}]];
         var prefix = ctx + "geo/project";
 
         $(function() {
@@ -53,101 +65,52 @@
                 updateUrl: prefix + "/edit/{id}",
                 removeUrl: prefix + "/remove",
                 exportUrl: prefix + "/export",
-                modalName: "椤圭洰",
+                modalName: "鍦哄湴",
+                pageSize:50,
                 columns: [{
                     checkbox: true
                 },
+                    {
+                        field : 'ids',
+                        title : '涓婚敭',
+                        visible: false
+                    },
+                {
+                        field : 'code',
+                        title : '鍦哄湴缂栧彿',
+                        sortable:true
+                },
                 {
                     field : 'fullName', 
-                    title : '椤圭洰鍚嶇О',
+                    title : '鍦哄湴鍚嶇О',
                     formatter: function(value, row, index) {
-                      return '<a onclick="navigate(\'' + row.ids + '\')">'+row.fullName+'</a>'                    
+                        var id = row.ids;
+                        var code = row.code;
+                        var str = id + "," + code;
+                      return '<a onclick="navigate(\'' + str + '\')">'+row.fullName+'</a>'
                    },           
                    sortable:true           
                 },
                 {
-                    field : 'companyName',
-                    title : '鍕樺療鍗曚綅'
-                },
-                {
                     field : 'laborUnit', 
-                    title : '鍔冲姟鍗曚綅'
+                    title : '鍔冲姟鍗曚綅',
+                    visible: false
                 },
                 {
                     field : 'district',
                     title : '鍖哄幙',
-                    formatter: function(value, row, index) {
-                        if(row.district === 1){
-                            return "涓滃煄鍖�";
-                        }else if(row.district === 17){
-                            return "瀵嗕簯鍘�";
-                        }else if(row.district === 16){
-                            return "骞宠胺鍖�";
-                        }else if(row.district === 15){
-                            return "鎬�鏌斿尯";
-                        }else if(row.district === 14){
-                            return "澶у叴鍖�";
-                        }else if(row.district === 13){
-                            return "鏄屽钩鍖�";
-                        }else if(row.district === 12){
-                            return "椤轰箟鍖�";
-                        }else if(row.district === 11){
-                            return "閫氬窞鍖�";
-                        }else if(row.district === 10){
-                            return "鎴垮北鍖�";
-                        }else if(row.district === 9){
-                            return "闂ㄥご娌熷尯";
-                        }else if(row.district === 8){
-                            return "娴锋穩鍖�";
-                        }else if(row.district === 7){
-                            return "鐭虫櫙灞卞尯";
-                        }else if(row.district === 6){
-                            return "涓板彴鍖�";
-                        }else if(row.district === 5){
-                            return "鏈濋槼鍖�";
-                        }else if(row.district === 4){
-                            return "瀹f鍖�";
-                        }else if(row.district === 3){
-                            return "宕囨枃鍖�";
-                        }else if(row.district === 2){
-                            return "瑗垮煄鍖�";
-                        }else if(row.district === 18){
-                            return "寤跺簡鍘�";
-                        }else if(row.district === 99){
-                            return "澶栧煚";
-                        }else {
-                            return "";
+                },
+                {
+                    field : 'leader',
+                    title : '鍦哄湴璐熻矗浜�'
+                },
+                    {
+                        field : 'status',
+                        title : '鍦哄湴鐘舵��',
+                        formatter: function(value, row, index) {
+                            return $.table.selectDictLabel(statusDatas, value);
                         }
-                    }
-                },
-                {
-                    field : 'owner', 
-                    title : '涓氫富鍚嶇О'
-                },
-                     
-                {
-                    field : 'leaderName',
-                    title : '椤圭洰璐熻矗浜�'
-                },
-                {
-                    field : 'createTime', 
-                    title : '鍒涘缓鏃堕棿'
-                },
-                {
-                    field : 'status', 
-                    title : '椤圭洰鐘舵��',
-                    formatter: function(value, row, index) {
-                       if(row.status =='0'){
-                           return "鏈獙鏀�";
-                       }else{
-                           return "楠屾敹";
-                       }
-                    }
-                },
-                {
-                    field : 'dataSource',
-                    title : '鏁版嵁鏉ユ簮'
-                },
+                    },
                 {
                     title: '鎿嶄綔',
                     align: 'center',
@@ -163,9 +126,11 @@
         });
         
         
-       function navigate(id){   
-            
-            $.modal.openTab("椤圭洰瀵艰埅",ctx+"/geo/project/navigate?ids="+id);
+       function navigate(idcode){
+            var strs = idcode.split(",");
+            var id =strs[0];
+            var code = strs[1];
+            $.modal.openTab(code + " 鍦哄湴瀵艰埅",ctx+"/geo/project/navigate?ids="+id);
         }
     </script>
 </body>

--
Gitblit v1.9.1