Initial commit
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
|
||||
</head>
|
||||
<body>
|
||||
<div class="layui-form timo-compile">
|
||||
<form th:action="@{/users/pets/save}">
|
||||
<input type="hidden" name="id" th:if="${pets1}" th:value="${pets1.id}">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">用户Id</label>
|
||||
<div class="layui-input-inline">
|
||||
<input class="layui-input" type="text" name="uid" placeholder="请输入用户Id" th:value="${pets1?.uid}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">宠物名称</label>
|
||||
<div class="layui-input-inline">
|
||||
<input class="layui-input" type="text" name="nickName" placeholder="请输入宠物名称" th:value="${pets1?.nickName}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">宠物头像类型</label>
|
||||
<div class="layui-input-inline">
|
||||
<input class="layui-input" type="text" name="headImgType" placeholder="请输入宠物头像类型" th:value="${pets1?.headImgType}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">宠物头像</label>
|
||||
<div class="layui-input-inline">
|
||||
<input class="layui-input" type="text" name="headImgUrl" placeholder="请输入宠物头像" th:value="${pets1?.headImgUrl}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">宠物描述</label>
|
||||
<div class="layui-input-inline">
|
||||
<input class="layui-input" type="text" name="desc" placeholder="请输入宠物描述" th:value="${pets1?.desc}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">注意事项</label>
|
||||
<div class="layui-input-inline">
|
||||
<input class="layui-input" type="text" name="precaution" placeholder="请输入注意事项" th:value="${pets1?.precaution}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">性别</label>
|
||||
<div class="layui-input-inline">
|
||||
<input class="layui-input" type="text" name="gender" placeholder="请输入性别" th:value="${pets1?.gender}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">生日</label>
|
||||
<div class="layui-input-inline">
|
||||
<input class="layui-input" type="text" name="birthday" placeholder="请输入生日" th:value="${pets1?.birthday}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">是否绝育</label>
|
||||
<div class="layui-input-inline">
|
||||
<input class="layui-input" type="text" name="eunuch" placeholder="请输入是否绝育" th:value="${pets1?.eunuch}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">最后服务时间</label>
|
||||
<div class="layui-input-inline">
|
||||
<input class="layui-input" type="text" name="lastServiceDate" placeholder="请输入最后服务时间" th:value="${pets1?.lastServiceDate}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">体重</label>
|
||||
<div class="layui-input-inline">
|
||||
<input class="layui-input" type="text" name="weight" placeholder="请输入体重" th:value="${pets1?.weight}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">创建时间</label>
|
||||
<div class="layui-input-inline">
|
||||
<input class="layui-input" type="text" name="createTime" placeholder="请输入创建时间" th:value="${pets1?.createTime}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item timo-finally">
|
||||
<button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
|
||||
<button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script th:replace="/common/template :: script"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,61 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
|
||||
</head>
|
||||
<body>
|
||||
<div class="timo-detail-page">
|
||||
<div class="timo-detail-title">基本信息</div>
|
||||
<table class="layui-table timo-detail-table">
|
||||
<colgroup>
|
||||
<col width="100px"><col>
|
||||
<col width="100px"><col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>主键ID</th>
|
||||
<td th:text="${pets1.id}"></td>
|
||||
<th>用户Id</th>
|
||||
<td th:text="${pets1.uid}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>宠物名称</th>
|
||||
<td th:text="${pets1.nickName}"></td>
|
||||
<th>宠物头像类型</th>
|
||||
<td th:text="${pets1.headImgType}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>宠物头像</th>
|
||||
<td th:text="${pets1.headImgUrl}"></td>
|
||||
<th>宠物描述</th>
|
||||
<td th:text="${pets1.desc}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>注意事项</th>
|
||||
<td th:text="${pets1.precaution}"></td>
|
||||
<th>性别</th>
|
||||
<td th:text="${pets1.gender}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>生日</th>
|
||||
<td th:text="${pets1.birthday}"></td>
|
||||
<th>是否绝育</th>
|
||||
<td th:text="${pets1.eunuch}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>最后服务时间</th>
|
||||
<td th:text="${pets1.lastServiceDate}"></td>
|
||||
<th>体重</th>
|
||||
<td th:text="${pets1.weight}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>创建时间</th>
|
||||
<td th:text="${pets1.createTime}"></td>
|
||||
<th>创建时间</th>
|
||||
<td th:text="${#dates.format(pets1.createDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<script th:replace="/common/template :: script"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,97 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:th="http://www.thymeleaf.org"
|
||||
xmlns:mo="http://www.thymeleaf.org">
|
||||
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
|
||||
</head>
|
||||
<body class="timo-layout-page">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header timo-card-header">
|
||||
<span><i class="fa fa-bars"></i> 用户宠物信息管理</span>
|
||||
<i class="layui-icon layui-icon-refresh refresh-btn"></i>
|
||||
</div>
|
||||
<div class="layui-card-body">
|
||||
<div class="layui-row timo-card-screen">
|
||||
<div class="pull-left layui-form-pane timo-search-box">
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">状态</label>
|
||||
<div class="layui-input-block timo-search-status">
|
||||
<select class="timo-search-select" name="status" mo:dict="SEARCH_STATUS" mo-selected="${param.status}"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">用户Id</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="uid" th:value="${param.uid}" placeholder="请输入用户Id" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">宠物生日</label>
|
||||
<div class="layui-input-inline">
|
||||
<input class="layui-input" type="text" id="birthday" name="birthday" placeholder="请输入宠物生日" th:value="${param?.birthday}" lay-key="1" >
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<button class="layui-btn timo-search-btn">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="timo-table-wrap">
|
||||
<table class="layui-table timo-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="timo-table-checkbox">
|
||||
<label class="timo-checkbox"><input type="checkbox">
|
||||
<i class="layui-icon layui-icon-ok"></i></label>
|
||||
</th>
|
||||
<th>用户Id</th>
|
||||
<th>宠物类型</th>
|
||||
<th>宠物名称</th>
|
||||
<th>宠物品种</th>
|
||||
<th>性别</th>
|
||||
<th>生日</th>
|
||||
<th>是否绝育</th>
|
||||
<th>最后服务时间</th>
|
||||
<th>体重</th>
|
||||
<th>宠物描述</th>
|
||||
<th>注意事项</th>
|
||||
<th>创建时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr th:each="item:${list}">
|
||||
<td><label class="timo-checkbox"><input type="checkbox" th:value="${item.id}">
|
||||
<i class="layui-icon layui-icon-ok"></i></label></td>
|
||||
<td th:text="${item.uid}">用户Id</td>
|
||||
<td th:text="${#dicts.petType(item.petBaseInfo.petType)}">宠物类型</td>
|
||||
<td th:text="${item.nickName}">宠物名称</td>
|
||||
<td th:text="${item.petBaseInfo.assortment}">宠物品种</td>
|
||||
<td th:text="${#dicts.petGender(item.gender)}">性别</td>
|
||||
<td th:text="${item.birthday}">生日</td>
|
||||
<td th:text="${#dicts.petEunuch(item.eunuch)}">是否绝育</td>
|
||||
<td th:text="${item.lastServiceDate}">最后服务时间</td>
|
||||
<td th:if="${item.petBaseInfo.petType == 1}" th:text="${#dicts.petCatWeight(item.weight)}">体重</td>
|
||||
<td th:if="${item.petBaseInfo.petType == 2}" th:text="${#dicts.petDogWeight(item.weight)}">体重</td>
|
||||
<td th:text="${item.desc}">宠物描述</td>
|
||||
<td th:text="${item.precaution}">注意事项</td>
|
||||
<td th:text="${item.createTime}">创建时间</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div th:replace="/common/fragment :: page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script th:replace="/common/template :: script"></script>
|
||||
<script type="text/javascript">
|
||||
layui.use(['laydate','form'], function () {
|
||||
var laydate = layui.laydate;
|
||||
// 渲染
|
||||
laydate.render({
|
||||
elem: '#birthday'
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user