From e8406a4dc63dee04b2ecd8e75d60acd4594d5150 Mon Sep 17 00:00:00 2001 From: suerwei <18810552194@163.com> Date: 星期四, 16 五月 2024 15:39:38 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- javaweb-plus/javaweb-cms/src/main/resources/templates/geo/device/device.html | 139 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 139 insertions(+), 0 deletions(-) diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/device/device.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/device/device.html new file mode 100644 index 0000000..2dd10eb --- /dev/null +++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/device/device.html @@ -0,0 +1,139 @@ +<!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('璁惧搴撳垪琛�')" /> +</head> +<body class="gray-bg"> + <div class="container-div"> + <div class="row"> + <div class="col-sm-12 search-collapse"> + <form id="formId"> + <div class="select-list"> + <ul> + <li> + <p>璁惧缂栧彿锛�</p> + <input type="text" name="code"/> + </li> + <li> + <p>鍚嶅瓧锛�</p> + <input type="text" name="name"/> + </li> + <li> + <p>鍨嬪彿锛�</p> + <input type="text" name="type"/> + </li> + <li class="select-time"> + <p>璐拱鏃ユ湡锛�</p> + <input type="text" class="time-input" id="startTime" placeholder="寮�濮嬫椂闂�" name="params[beginBuyDate]"/> + <span>-</span> + <input type="text" class="time-input" id="endTime" placeholder="缁撴潫鏃堕棿" name="params[endBuyDate]"/> + </li> + <li> + <p>璁惧鐘舵�侊細</p> + <select name="status" th:with="type=${@dict.getType('device_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> + </ul> + </div> + </form> + </div> + + <div class="btn-group-sm" id="toolbar" role="group"> + <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="geo:device:add"> + <i class="fa fa-plus"></i> 娣诲姞 + </a> + <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="geo:device:edit"> + <i class="fa fa-edit"></i> 淇敼 + </a> + <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="geo:device:remove"> + <i class="fa fa-remove"></i> 鍒犻櫎 + </a> + <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="geo:device:export"> + <i class="fa fa-download"></i> 瀵煎嚭 + </a> + </div> + <div class="col-sm-12 select-table table-striped"> + <table id="bootstrap-table"></table> + </div> + </div> + </div> + <th:block th:include="include :: footer" /> + <script th:inline="javascript"> + var editFlag = [[${@permission.hasPermi('geo:device:edit')}]]; + var removeFlag = [[${@permission.hasPermi('geo:device:remove')}]]; + var statusDatas = [[${@dict.getType('device_status')}]]; + var prefix = ctx + "geo/device"; + + $(function() { + var options = { + url: prefix + "/list", + createUrl: prefix + "/add", + updateUrl: prefix + "/edit/{id}", + removeUrl: prefix + "/remove", + exportUrl: prefix + "/export", + modalName: "璁惧搴�", + columns: [{ + checkbox: true + }, + { + field : 'id', + title : '涓婚敭', + visible: false + }, + { + field : 'code', + title : '璁惧缂栧彿' + }, + { + field : 'name', + title : '鍚嶅瓧' + }, + { + field : 'type', + title : '鍨嬪彿' + }, + { + field : 'manufacturer', + title : '鐢熶骇鍟�' + }, + { + field : 'buyDate', + title : '璐拱鏃ユ湡' + }, + { + field : 'price', + title : '浠锋牸' + }, + { + field : 'status', + title : '璁惧鐘舵��', + formatter: function(value, row, index) { + return $.table.selectDictLabel(statusDatas, value); + } + }, + { + field : 'storageAddress', + title : '瀛樻斁浣嶇疆' + }, + { + title: '鎿嶄綔', + align: 'center', + formatter: function(value, row, index) { + var actions = []; + actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>缂栬緫</a> '); + actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>鍒犻櫎</a>'); + return actions.join(''); + } + }] + }; + $.table.init(options); + }); + </script> +</body> +</html> \ No newline at end of file -- Gitblit v1.9.1