From 8d00f769c1e5113e714cbb5e39752d1cf705f5aa Mon Sep 17 00:00:00 2001 From: zmk <496160012@qq.com> Date: 星期一, 20 五月 2024 18:56:12 +0800 Subject: [PATCH] 提交代码 --- javaweb-plus/javaweb-cms/src/main/resources/templates/geo/hole/hole.html | 56 +++++++++++++++++++++++++++++++------------------------- 1 files changed, 31 insertions(+), 25 deletions(-) diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/hole/hole.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/hole/hole.html index 7665a41..76d285e 100644 --- a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/hole/hole.html +++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/hole/hole.html @@ -82,8 +82,13 @@ }, { field : 'code', - title : '閽诲瓟缂栧彿' - }, + title : '閽诲瓟缂栧彿', + sortable:true + }, { + field : 'type', + title : '閽诲瓟绫诲瀷', + sortable:true + }, { field : 'elevation', title : '瀛斿彛楂樼▼锛坢锛�' @@ -104,30 +109,31 @@ }, { field : 'status', - title : '閽诲瓟鐘舵��', - formatter: function(value, row, index) { - return $.table.selectDictLabel(statusDatas, value); - } + title : '閽诲瓟鐘舵��' }, - { - 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%"; - } - } - }, + { + field : 'footage', + title : '鎬昏繘灏猴紙m锛�', + }, + { + field : 'footageCpl', + title : '宸插畬鎴愯繘灏猴紙m锛�', + + }, + { + field : 'rate', + title : '瀹屾垚杩涘害(%)', + sortable:true, + formatter: function(value, row, index) { + var proc =0; + if (row.rate !=null){ + proc= (row.rate*100).toFixed(0) ; + } + return `<div class="progress" style="margin-bottom: 0px;"> + <div class="progress-bar bg-danger" role="progressbar" style="width: ${proc}%;" aria-valuenow="${proc}" aria-valuemin="0" aria-valuemax="100">${proc}%</div> + </div>` + } + }, { title: '鎿嶄綔', align: 'center', -- Gitblit v1.9.1