记得上下班打卡 | git大法好,push需谨慎

Commit a1c8039b authored by 张国柄's avatar 张国柄

+折扣券列表页面;

parent d900e685
coupon1.html<!DOCTYPE html>
<!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 :: header('折扣券')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="coupon-form">
<div class="select-list">
<ul>
<input type="hidden" name="couType" value="4" />
<input type="hidden" name="couType" value="1" />
<li>
<input type="text" name="keyword" placeholder="搜索"/>
</li>
......@@ -36,8 +36,8 @@ coupon1.html<!DOCTYPE html>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add(4)" shiro:hasPermission="candy:coupon:mgt:add">
<i class="fa fa-plus"></i> 添加
<a class="btn btn-success" onclick="$.operate.addTab(4)" shiro:hasPermission="candy:coupon:mgt:add">
<i class="fa fa-plus"></i> 新增
</a>
</div>
......@@ -45,9 +45,9 @@ coupon1.html<!DOCTYPE html>
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var couponCodeListFlag = [[${@permission.hasPermi('system:role:edit')}]];
var prefix = ctx + "candy/coupon/mgt";
......@@ -64,8 +64,8 @@ coupon1.html<!DOCTYPE html>
checkbox: true
},
{
field: 'valFace',
title: '金额'
field: 'discount',
title: '折扣'
},
{
field: 'eventAmt',
......@@ -108,7 +108,7 @@ coupon1.html<!DOCTYPE html>
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push("<a class='btn btn-default btn-xs " + couponCodeListFlag + "' href='javascript:void(0)' onclick='authUser(" + row.roleId + ")'><i class='fa fa-user'></i></a>");
actions.push('<a class="btn btn-info btn-xs" href="javascript:void(0)" onclick="couponCodeList(\'' + row.couponId + '\')"><i class="fa fa-list-ul"></i>查看码列表</a> ');
return actions.join('');
}
}]
......@@ -116,11 +116,11 @@ coupon1.html<!DOCTYPE html>
$.table.init(options);
});
/* 券码列表 */
/* 查看码列表 */
function couponCodeList(couponId) {
var url = prefix + '/code/' + couponId;
var url = 'candy/coupon/code?couponId=' + couponId;
$.modal.openTab("查看码列表", url);
}
</script>
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment