记得上下班打卡 | 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"> <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head> <head>
<th:block th:include="include :: header('代金券')" /> <th:block th:include="include :: header('折扣券')" />
</head> </head>
<body class="gray-bg"> <body class="gray-bg">
<div class="container-div"> <div class="container-div">
<div class="row"> <div class="row">
<div class="col-sm-12 search-collapse"> <div class="col-sm-12 search-collapse">
<form id="coupon-form"> <form id="coupon-form">
<div class="select-list"> <div class="select-list">
<ul> <ul>
<input type="hidden" name="couType" value="4" /> <input type="hidden" name="couType" value="1" />
<li> <li>
<input type="text" name="keyword" placeholder="搜索"/> <input type="text" name="keyword" placeholder="搜索"/>
</li> </li>
...@@ -36,8 +36,8 @@ coupon1.html<!DOCTYPE html> ...@@ -36,8 +36,8 @@ coupon1.html<!DOCTYPE html>
</div> </div>
<div class="btn-group-sm" id="toolbar" role="group"> <div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add(4)" shiro:hasPermission="candy:coupon:mgt:add"> <a class="btn btn-success" onclick="$.operate.addTab(4)" shiro:hasPermission="candy:coupon:mgt:add">
<i class="fa fa-plus"></i> 添加 <i class="fa fa-plus"></i> 新增
</a> </a>
</div> </div>
...@@ -45,9 +45,9 @@ coupon1.html<!DOCTYPE html> ...@@ -45,9 +45,9 @@ coupon1.html<!DOCTYPE html>
<table id="bootstrap-table"></table> <table id="bootstrap-table"></table>
</div> </div>
</div> </div>
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<script th:inline="javascript"> <script th:inline="javascript">
var couponCodeListFlag = [[${@permission.hasPermi('system:role:edit')}]]; var couponCodeListFlag = [[${@permission.hasPermi('system:role:edit')}]];
var prefix = ctx + "candy/coupon/mgt"; var prefix = ctx + "candy/coupon/mgt";
...@@ -64,8 +64,8 @@ coupon1.html<!DOCTYPE html> ...@@ -64,8 +64,8 @@ coupon1.html<!DOCTYPE html>
checkbox: true checkbox: true
}, },
{ {
field: 'valFace', field: 'discount',
title: '金额' title: '折扣'
}, },
{ {
field: 'eventAmt', field: 'eventAmt',
...@@ -108,7 +108,7 @@ coupon1.html<!DOCTYPE html> ...@@ -108,7 +108,7 @@ coupon1.html<!DOCTYPE html>
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; 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(''); return actions.join('');
} }
}] }]
...@@ -116,11 +116,11 @@ coupon1.html<!DOCTYPE html> ...@@ -116,11 +116,11 @@ coupon1.html<!DOCTYPE html>
$.table.init(options); $.table.init(options);
}); });
/* 券码列表 */ /* 查看码列表 */
function couponCodeList(couponId) { function couponCodeList(couponId) {
var url = prefix + '/code/' + couponId; var url = 'candy/coupon/code?couponId=' + couponId;
$.modal.openTab("查看码列表", url); $.modal.openTab("查看码列表", url);
} }
</script> </script>
</body> </body>
</html> </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