소스 검색

图书借书信息

“你lipengggit config --global user.name “你的名lipeng““ 3 년 전
부모
커밋
82837987b3

+ 11 - 0
mybusiness/src/main/java/com/sooka/system/controller/TGuijiLibraryBorrowController.java

@@ -125,4 +125,15 @@ public class TGuijiLibraryBorrowController extends BaseController
     {
         return toAjax(tGuijiLibraryBorrowService.deleteTGuijiLibraryBorrowByIds(ids));
     }
+
+    /**
+     * 借书详情
+     */
+    @GetMapping("/detail/{id}")
+    public String detail(@PathVariable("id") String id, ModelMap mmap)
+    {
+        TGuijiLibraryBorrow tGuijiLibraryBorrow = tGuijiLibraryBorrowService.selectTGuijiLibraryBorrowById(id);
+        mmap.put("tGuijiLibraryBorrow", tGuijiLibraryBorrow);
+        return prefix + "/detail";
+    }
 }

+ 3 - 1
mybusiness/src/main/resources/templates/system/library/borrow/borrow.html

@@ -82,6 +82,7 @@
 <script th:inline="javascript">
     var editFlag = [[${@permission.hasPermi('system:borrow:edit')}]];
     var removeFlag = [[${@permission.hasPermi('system:borrow:remove')}]];
+    var detailFlag = [[${@permission.hasPermi('system:borrow:detail')}]];
     var prefix = ctx + "system/library/borrow";
 
     $(function () {
@@ -89,6 +90,7 @@
             url: prefix + "/list",
             createUrl: prefix + "/add",
             updateUrl: prefix + "/edit/{id}",
+            detailUrl: prefix + "/detail/{id}",
             removeUrl: prefix + "/remove",
             exportUrl: prefix + "/export",
             modalName: "借书",
@@ -142,7 +144,7 @@
                     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-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-search"></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('');
                     }

+ 45 - 0
mybusiness/src/main/resources/templates/system/library/borrow/detail.html

@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
+<head>
+	<th:block th:include="include :: header('结束信息详细')" />
+	<th:block th:include="include :: jsonview-css" />
+</head>
+<body class="white-bg">
+	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
+		<form class="form-horizontal m" id="form-yhjbxx-edit" th:object="${tGuijiLibraryBorrow}">
+		<div class="form-group">
+			<label class="col-sm-2 control-label">读者证号:</label>
+			<div class="form-control-static" th:text="*{cardno}">
+			</div>
+		</div>
+		<div class="form-group">
+			<label class="col-sm-2 control-label">读者姓名:</label>
+			<div class="form-control-static" th:text="*{name}">
+			</div>
+		</div>
+		<div class="form-group">
+			<label class="col-sm-2 control-label">图书条形码:</label>
+			<div class="form-control-static" th:text="*{barcode}">
+			</div>
+		</div>
+		<div class="form-group">
+			<label class="col-sm-2 control-label">书籍题名:</label>
+			<div class="form-control-static" th:text="*{title}">
+			</div>
+		</div>
+		<div class="form-group">
+			<label class="col-sm-2 control-label">借出时间:</label>
+			<div class="form-control-static" th:text="*{operationdate}">
+			</div>
+		</div>
+		<div class="form-group">
+			<label class="col-sm-2 control-label">数据归集时间:</label>
+			<div class="form-control-static" th:text="*{cdTime}">
+			</div>
+		</div>
+		</form>
+    </div>
+    <th:block th:include="include :: footer" />
+    <th:block th:include="include :: jsonview-js" />
+</body>
+</html>