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 | 48 +++++++++++++++++++++++++++--------------------- 1 files changed, 27 insertions(+), 21 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 3384ce3..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 @@ -20,6 +20,13 @@ <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> 鎼滅储</a> <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 閲嶇疆</a> </li> @@ -48,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() { @@ -76,37 +84,33 @@ field : 'fullName', 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 : 'laborUnit', - title : '鍔冲姟鍗曚綅' + title : '鍔冲姟鍗曚綅', + visible: false }, { field : 'district', title : '鍖哄幙', }, { - field : 'leaderName', + field : 'leader', title : '鍦哄湴璐熻矗浜�' }, - { - field : 'createTime', - title : '鍒涘缓鏃堕棿' - }, - { - field : 'status', - title : '鍦哄湴鐘舵��', - formatter: function(value, row, index) { - if(row.status =='0'){ - return "鏈獙鏀�"; - }else{ - return "楠屾敹"; - } - } - }, + { + field : 'status', + title : '鍦哄湴鐘舵��', + formatter: function(value, row, index) { + return $.table.selectDictLabel(statusDatas, value); + } + }, { title: '鎿嶄綔', align: 'center', @@ -122,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