| | |
| | | <!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"> |
| | |
| | | <ul> |
| | | |
| | | <li> |
| | | <p>项目名称:</p> |
| | | <p>场地名称:</p> |
| | | <input type="text" name="fullName"/> |
| | | </li> |
| | | <li> |
| | | <p>项目编号:</p> |
| | | <p>场地编号:</p> |
| | | <input type="text" name="code"/> |
| | | </li> |
| | | <li> |
| | |
| | | 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 : '项目编号', |
| | | title : '场地编号', |
| | | sortable:true |
| | | }, |
| | | { |
| | | field : 'fullName', |
| | | title : '项目名称', |
| | | title : '场地名称', |
| | | formatter: function(value, row, index) { |
| | | return '<a onclick="navigate(\'' + row.ids + '\')">'+row.fullName+'</a>' |
| | | }, |
| | |
| | | }, |
| | | { |
| | | field : 'leaderName', |
| | | title : '项目负责人' |
| | | title : '场地负责人' |
| | | }, |
| | | { |
| | | field : 'createTime', |
| | |
| | | }, |
| | | { |
| | | field : 'status', |
| | | title : '项目状态', |
| | | title : '场地状态', |
| | | formatter: function(value, row, index) { |
| | | if(row.status =='0'){ |
| | | return "未验收"; |
| | |
| | | |
| | | function navigate(id){ |
| | | |
| | | $.modal.openTab("项目导航",ctx+"/geo/project/navigate?ids="+id); |
| | | $.modal.openTab("场地导航",ctx+"/geo/project/navigate?ids="+id); |
| | | } |
| | | </script> |
| | | </body> |