From 0caec92aff3b75e6b82801eabbde20713cde9cec Mon Sep 17 00:00:00 2001
From: suerwei <18810552194@163.com>
Date: 星期四, 23 五月 2024 11:49:35 +0800
Subject: [PATCH] 管材出入库统计_1
---
javaweb-plus/javaweb-cms/src/main/resources/templates/geo/project/info.html | 150 +++++++++++++++++++++++++++++++++++++------------
1 files changed, 112 insertions(+), 38 deletions(-)
diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/project/info.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/project/info.html
index 884d9e4..32e3404 100644
--- a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/project/info.html
+++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/project/info.html
@@ -54,51 +54,125 @@
</head>
<body class="white-bg">
<div id="container">
- <p class="project-name">
- <span class="name-label">椤圭洰鍚嶇О锛�</span>
- <span class="name-val" th:text="${project.fullName}"></span>
- </p>
- <table class="basic-info">
- <tr>
- <td>寤鸿鍗曚綅锛�</td>
- <td colspan="3" th:text="${project.companyName}"></td>
- <td>鍔冲姟鍗曚綅锛�</td>
- <td colspan="3" th:text="${project.laborUnit}"></td>
- </tr>
- <tr>
- <td>寤鸿鍦扮偣锛�</td>
- <td colspan="7" th:text="${project.address}"></td>
- </tr>
- <tr>
- <td>椤圭洰鍚嶇О锛�</td>
- <td colspan="5" th:text="${project.fullName}"></td>
- <td>椤圭洰缂栧彿锛�</td>
- <td th:text="${project.code}"></td>
- </tr>
- <tr>
- <td>鍕樻帰鐐逛釜鏁帮細</td>
- <td th:text="${project.holeNum}"></td>
- <td>寮�濮嬫椂闂达細</td>
- <td th:text="${#dates.format(project.createTime,'yyyy-MM-dd')}"></td>
- <td>缁堟鏃堕棿锛�</td>
- <td th:text="${#dates.format(project.endTime,'yyyy-MM-dd')}"></td>
- <td>璐熻矗浜猴細</td>
- <td th:text="${project.leaderName}"></td>
- </tr>
- </table>
- <div class="map-model">
- <button onclick="map()" type="button">鍦板浘妯″紡</button>
+
+ <div class="row">
+ <p class="project-name">
+ <h3>鍦哄湴淇℃伅</h3>
+<!-- <span class="name-label">鍦哄湴鍚嶇О锛�</span>-->
+<!-- <span class="name-val" th:text="${project.fullName}"></span>-->
+ </p>
+ <table class="basic-info">
+ <tr>
+ <td>寤鸿鍗曚綅锛�</td>
+ <td colspan="3" th:text="${project.companyName}"></td>
+ <td>鍔冲姟鍗曚綅锛�</td>
+ <td colspan="3" th:text="${project.laborUnit}"></td>
+ </tr>
+ <tr>
+ <td>寤鸿鍦扮偣锛�</td>
+ <td colspan="7" th:text="${project.address}"></td>
+ </tr>
+ <tr>
+ <td>鍦哄湴鍚嶇О锛�</td>
+ <td colspan="5" th:text="${project.fullName}"></td>
+ <td>鍦哄湴缂栧彿锛�</td>
+ <td th:text="${project.code}"></td>
+ </tr>
+ <tr>
+ <td>閽诲瓟涓暟锛�</td>
+ <td th:text="${project.holeNum}"></td>
+ <td>寮�濮嬫椂闂达細</td>
+ <td th:text="${#dates.format(project.createTime,'yyyy-MM-dd')}"></td>
+ <td>缁堟鏃堕棿锛�</td>
+ <td th:text="${#dates.format(project.endTime,'yyyy-MM-dd')}"></td>
+ <td>璐熻矗浜猴細</td>
+ <td th:text="${project.leaderName}"></td>
+ </tr>
+ </table>
+ <!-- <div class="map-model">-->
+ <!-- <button onclick="map()" type="button">鍦板浘妯″紡</button>-->
+ <!-- </div>-->
+ </div>
+
+ <div class="row" style="margin-top: 30px;">
+ <h3>鍦哄湴閽诲瓟鍒楄〃</h3>
+ </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" />
<th:block th:include="include :: datetimepicker-js" />
-
+
<script th:inline="javascript">
var project =[[${project}]];
+ var projectId=[[${projectId}]];
+ var statusDatas = [[${@dict.getType('hole_status')}]];
+ var prefix = ctx + "geo/hole";
- function map(){
- parent.$.modal.openTab("椤圭洰鍦板浘",ctx+"/geo/projectwork/map?id=" + project.ids);
- }
+ $(function() {
+ var options = {
+ url: prefix + "/list?projectId=" + projectId,
+ modalName: "閽诲瓟",
+ columns: [
+ {
+ field : 'code',
+ title : '閽诲瓟缂栧彿'
+ },
+ {
+ field : 'elevation',
+ title : '瀛斿彛楂樼▼锛坢锛�'
+ },
+ {
+ field : 'depth',
+ title : '璁捐瀛旀繁锛坢锛�'
+ },
+ {
+ field : 'longitude',
+ title : '閽诲瓟缁忓害',
+ visible: false
+ },
+ {
+ field : 'latitude',
+ title : '閽诲瓟绾害',
+ visible: false
+ },
+ {
+ field : 'status',
+ title : '閽诲瓟鐘舵��',
+ formatter: function(value, row, index) {
+ return $.table.selectDictLabel(statusDatas, value);
+ }
+ },
+ {
+ field : 'footage',
+ title : '鎬昏繘灏猴紙m锛�',
+ },
+ {
+ field : 'footageCpl',
+ title : '宸插畬鎴愯繘灏猴紙m锛�',
+ },
+ {
+ field : 'rate',
+ title : '瀹屾垚杩涘害(%)',
+ formatter: function(value, row, index) {
+ if (row.rate !=null){
+ return (row.rate*100).toFixed(2) + "%";
+ }else{
+ return "0%";
+ }
+ }
+ }
+ ]
+ };
+ $.table.init(options);
+ });
+ //
+ // function map(){
+ // parent.$.modal.openTab("椤圭洰鍦板浘",ctx+"/geo/projectwork/map?id=" + project.ids);
+ // }
</script>
</body>
</html>
\ No newline at end of file
--
Gitblit v1.9.1