From 5b9d5e7c3b714b2ccb3e9e355a376e4c85bb9f8d Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期六, 06 十二月 2025 17:09:07 +0800
Subject: [PATCH] 添加第一版,电子巡更页面
---
fzzy-igdss-web/src/main/resources/templates/patrol/patrol.html | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 118 insertions(+), 0 deletions(-)
diff --git a/fzzy-igdss-web/src/main/resources/templates/patrol/patrol.html b/fzzy-igdss-web/src/main/resources/templates/patrol/patrol.html
new file mode 100644
index 0000000..1ec189f
--- /dev/null
+++ b/fzzy-igdss-web/src/main/resources/templates/patrol/patrol.html
@@ -0,0 +1,118 @@
+<!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 :: select2-css" />
+</head>
+<body class="gray-bg">
+<div class="container-div">
+ <div class="row">
+ <div class="col-sm-12 search-collapse">
+ <form id="property-form">
+ <div class="select-list">
+ <ul>
+ <li>
+ 鍚嶇О锛�<input type="text" name="name"/>
+ </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="web:patrol:add">
+ <i class="fa fa-plus"></i> 鏂板
+ </a>
+ <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="web:patrol:edit">
+ <i class="fa fa-edit"></i> 淇敼
+ </a>
+ <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="web:patrol:remove">
+ <i class="fa fa-remove"></i> 鍒犻櫎
+ </a>
+ <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="web:patrol:export">
+ <i class="fa fa-download"></i> 瀵煎嚭
+ </a>
+ <a class="btn btn-success" onclick="openPatrolConf()" shiro:hasPermission="web:patrol:patrolConf:edit">
+ <i class="fa fa-plus"></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" />
+<th:block th:include="include :: select2-js" />
+<script th:inline="javascript">
+ var editFlag = [[${@permission.hasPermi('web:patrol:edit')}]];
+ var removeFlag = [[${@permission.hasPermi('web:patrol:remove')}]];
+ var prefix = ctx + "patrol";
+
+ $(function() {
+
+ var options = {
+ url: prefix + "/list",
+ createUrl: prefix + "/add",
+ updateUrl: prefix + "/edit/{id}",
+ removeUrl: prefix + "/remove",
+ exportUrl: prefix + "/export",
+ sortName: "id",
+ sortOrder: "asc",
+ modalName: "鍙傛暟",
+ columns: [{
+ checkbox: true
+ },
+ {
+ field: 'id',
+ title: '涓婚敭',
+ visible: false,
+ },
+ {
+ field: 'deptId',
+ title: '鎵�灞炲簱鍖�',
+ align: 'left',
+ // formatter: function(value, row, index) {
+ // return $.table.tooltip(value);
+ // }
+ },
+ {
+ field: 'batchId',
+ title: '鐝缂栧彿',
+ align: 'left',
+ // formatter: function(value, row, index) {
+ // return $.table.tooltip(value);
+ // }
+ },
+ {
+ field: 'userName',
+ title: '宸¢�讳汉',
+ // formatter: function(value, row, index) {
+ // return $.table.tooltip(value);
+ // }
+ },
+ {
+ 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);
+ });
+
+ function openPatrolConf() {
+ var url = ctx + "patrol/patrolConf";
+ $.modal.openTab("宸℃洿閰嶇疆", url);
+ }
+
+</script>
+</body>
+</html>
\ No newline at end of file
--
Gitblit v1.9.3