feat: 后台友情链接管理

This commit is contained in:
xiongxiaoyang
2023-04-14 16:32:05 +08:00
parent 3b0edd8e1f
commit c76df15a7f
20 changed files with 1605 additions and 880 deletions

View File

@ -0,0 +1,67 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
<div class="row">
<div class="col-sm-12">
<div class="ibox float-e-margins">
<div class="ibox-content">
<form class="form-horizontal m-t" id="signupForm">
<div class="form-group">
<label class="col-sm-3 control-label">链接名:</label>
<div class="col-sm-8">
<input id="linkName" name="linkName"
class="form-control"
type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">链接url</label>
<div class="col-sm-8">
<input id="linkUrl" name="linkUrl"
class="form-control"
type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">排序号:</label>
<div class="col-sm-8">
<input id="sort" name="sort"
class="form-control"
type="number" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否开启:</label>
<div class="col-sm-8">
<select data-placeholder="--选择--" id="isOpen"
name="isOpen"
class="form-control chosen-select" tabindex="2"
dict-type="yes_no" required>
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-8 col-sm-offset-3">
<button type="submit" class="btn btn-primary">提交</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/wangEditor/release/wangEditor.js"></script>
<script type="text/javascript" src="/js/appjs/novel/friendLink/add.js">
</script>
</body>
</html>

View File

@ -0,0 +1,100 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
<div class="row">
<div class="col-sm-12">
<div class="ibox float-e-margins">
<div class="ibox-content">
<form class="form-horizontal m-t" id="signupForm">
<input id="id" name="id" th:value="${friendLink.id}"
type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">链接名:</label>
<div style="padding-top:8px" class="col-sm-8"
th:text="${friendLink.linkName}">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">链接url</label>
<div style="padding-top:8px" class="col-sm-8"
th:text="${friendLink.linkUrl}">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">排序号:</label>
<div style="padding-top:8px" class="col-sm-8"
th:text="${friendLink.sort}">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否开启0不开启1开启</label>
<div style="padding-top:8px" class="col-sm-8 dict-type" dict-type="yes_no"
th:attr="dict-value=${friendLink.isOpen}">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人id</label>
<div style="padding-top:8px" class="col-sm-8"
th:text="${friendLink.createUserId}">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建时间:</label>
<div style="padding-top:8px" class="col-sm-8"
th:text="${friendLink.createTime}==null?null:${#dates.format(friendLink.createTime,'yyyy-MM-dd HH:mm:ss')}">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新者用户id</label>
<div style="padding-top:8px" class="col-sm-8"
th:text="${friendLink.updateUserId}">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新时间:</label>
<div style="padding-top:8px" class="col-sm-8"
th:text="${friendLink.updateTime}==null?null:${#dates.format(friendLink.updateTime,'yyyy-MM-dd HH:mm:ss')}">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div th:include="include::footer"></div>
</body>
</html>

View File

@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
<div class="row">
<div class="col-sm-12">
<div class="ibox float-e-margins">
<div class="ibox-content">
<form class="form-horizontal m-t" id="signupForm">
<input id="id" name="id" th:value="${friendLink.id}"
type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">链接名:</label>
<div class="col-sm-8">
<input id="linkName" name="linkName"
th:value="${friendLink.linkName}"
class="form-control"
type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">链接url</label>
<div class="col-sm-8">
<input id="linkUrl" name="linkUrl"
th:value="${friendLink.linkUrl}"
class="form-control"
type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">排序号:</label>
<div class="col-sm-8">
<input id="sort" name="sort"
th:value="${friendLink.sort}"
class="form-control"
type="number" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否开启:</label>
<div class="col-sm-8">
<select data-placeholder="--选择--" id="isOpen"
name="isOpen"
class="form-control chosen-select" tabindex="2"
dict-type="yes_no"
th:attr="dict-value=${friendLink.isOpen}" required>
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-8 col-sm-offset-3">
<button type="submit" class="btn btn-primary">提交</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/wangEditor/release/wangEditor.js"></script>
<script type="text/javascript" src="/js/appjs/novel/friendLink/edit.js">
</script>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
<div class="col-sm-12">
<div class="ibox">
<div class="ibox-body">
<div class="fixed-table-toolbar">
<div class="columns pull-left">
<button shiro:hasPermission="novel:friendLink:add" type="button"
class="btn btn-primary" onclick="add()">
<i class="fa fa-plus" aria-hidden="true"></i>添加
</button>
<button shiro:hasPermission="novel:friendLink:batchRemove" type="button"
class="btn btn-danger"
onclick="batchRemove()">
<i class="fa fa-trash" aria-hidden="true"></i>删除
</button>
</div>
<div class="columns pull-right">
<button class="btn btn-success" onclick="reLoad()">查询</button>
</div>
</div>
<table id="exampleTable" data-mobile-responsive="true">
</table>
</div>
</div>
</div>
</div>
<!--shiro控制bootstraptable行内按钮看见性 -->
<div>
<script type="text/javascript">
var s_detail_h = 'hidden';
var s_edit_h = 'hidden';
var s_remove_h = 'hidden';
</script>
</div>
<div shiro:hasPermission="test:order:detail">
<script type="text/javascript">
s_detail_h = '';
</script>
</div>
<div shiro:hasPermission="novel:friendLink:edit">
<script type="text/javascript">
s_edit_h = '';
</script>
</div>
<div shiro:hasPermission="novel:friendLink:remove">
<script type="text/javascript">
var s_remove_h = '';
</script>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/js/appjs/novel/friendLink/friendLink.js"></script>
</body>
</html>