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

Commit 76ec3216 authored by 张国柄's avatar 张国柄

页面调整;

parent 096d44cf
...@@ -24,10 +24,11 @@ ...@@ -24,10 +24,11 @@
updateUrl: prefix + "/info/{id}", updateUrl: prefix + "/info/{id}",
sortName: "memberId", sortName: "memberId",
sortOrder: "asc", sortOrder: "asc",
modalName: "设置", modalName: "会员设置",
columns: [{ columns: [
checkbox: true // {
}, // checkbox: true
// },
{ {
field: 'memberId', field: 'memberId',
title: '会员卡ID' title: '会员卡ID'
......
...@@ -92,9 +92,10 @@ ...@@ -92,9 +92,10 @@
createUrl: prefix + "/add", createUrl: prefix + "/add",
detailUrl: prefix + "/detail/{id}", detailUrl: prefix + "/detail/{id}",
modalName: "会员订单", modalName: "会员订单",
columns: [{ columns: [
checkbox: true, // {
}, // checkbox: true,
// },
{ {
field: 'orderNo', field: 'orderNo',
title: '订单号', title: '订单号',
...@@ -124,15 +125,18 @@ ...@@ -124,15 +125,18 @@
}, },
{ {
field: 'paymentAt', field: 'paymentAt',
title: '支付时间' title: '支付时间',
// formatter: function(value, row, index) { formatter: function (value, row, index) {
// return [[${#dates.format(value, 'yyyy-MM-dd')}]]; return $.common.sprintf("<span>%s</span>", value.substring(0, 19));
// } }
}, },
{ {
field: 'createdAt', field: 'createdAt',
title: '创建时间' title: '创建时间',
},+ formatter: function (value, row, index) {
return $.common.sprintf("<span>%s</span>", value.substring(0, 19));
}
},
{ {
field: 'uid', field: 'uid',
title: '用户ID' title: '用户ID'
......
...@@ -4,124 +4,130 @@ ...@@ -4,124 +4,130 @@
<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" th:value="${couType}" /> <input type="hidden" name="couType" th:value="${couType}"/>
<li> <li>
<input type="text" name="keyword" placeholder="搜索"/> <input type="text" name="keyword" placeholder="搜索"/>
</li> </li>
<li> <li>
类型:<select name="bindType" th:with="type=${@dict.getType('zhengzai_coupon_bind_type')}"> 类型:<select name="bindType" th:with="type=${@dict.getType('zhengzai_coupon_bind_type')}">
<option value="">所有</option> <option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</li> </li>
<li> <li>
适用范围:<select name="busiType" th:with="type=${@dict.getType('zhengzai_coupon_busi_type')}"> 适用范围:<select name="busiType" th:with="type=${@dict.getType('zhengzai_coupon_busi_type')}">
<option value="">所有</option> <option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}"th:value="${dict.dictValue}"></option>
</select> </select>
</li> </li>
<li> <li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a> <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a> <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li> </li>
</ul> </ul>
</div> </div>
</form> </form>
</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" th:onclick="$.operate.add([[${couType}]])" shiro:hasPermission="candy:coupon:mgt:add"> <a class="btn btn-success" th:onclick="$.operate.addTab([[${couType}]])" shiro:hasPermission="candy:coupon:mgt:add">
<i class="fa fa-plus"></i> 新增 <i class="fa fa-plus"></i> 新增
</a> </a>
</div> </div>
<div class="col-sm-12 select-table table-striped"> <div class="col-sm-12 select-table table-striped">
<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";
$(function() { $(function () {
var options = { var options = {
url: prefix + "/list", url: prefix + "/list",
createUrl: prefix + "/add/{id}", createUrl: prefix + "/add/{id}",
// updateUrl: prefix + "/edit/{id}", // updateUrl: prefix + "/edit/{id}",
// removeUrl: prefix + "/remove", // removeUrl: prefix + "/remove",
// exportUrl: prefix + "/export", // exportUrl: prefix + "/export",
sortName: "createdAt", sortName: "createdAt",
modalName: "代金券", modalName: "代金券",
columns: [ columns: [
// { // {
// checkbox: true // checkbox: true
// }, // },
{ {
field: 'valFace', field: 'valFace',
title: '金额' title: '金额',
}, formatter: function (value, row, index) {
{ return '¥' + value;
field: 'eventAmt', }
title: '数量', },
}, {
{ field: 'eventAmt',
field: 'bindType', title: '数量'
title: '类型', },
sortable: true {
}, field: 'bindType',
{ title: '类型'
field: 'busiType', },
title: '适用范围', {
sortable: true field: 'busiType',
}, title: '适用范围'
{ },
field: 'title', {
title: '标题', field: 'title',
}, title: '标题'
{ },
field: 'notice', {
title: '描述', field: 'notice',
}, title: '描述'
{ },
field: 'operator', {
title: '创建人', field: 'operator',
}, title: '创建人'
{ },
field: 'createdAt', {
title: '生成时间', field: 'createdAt',
sortable: true title: '生成时间',
}, sortable: true,
{ formatter: function (value, row, index) {
field: 'expireAt', return $.common.sprintf("<span>%s</span>", value.substring(0, 19));
title: '失效时间', }
sortable: true },
}, {
{ field: 'expireAt',
title: '操作', title: '失效时间',
align: 'center', formatter: function (value, row, index) {
formatter: function(value, row, index) { return $.common.sprintf("<span>%s</span>", value);
var actions = []; }
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(''); {
} title: '操作',
}] align: 'center',
}; formatter: function (value, row, index) {
$.table.init(options); var actions = [];
}); 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('');
/* 查看码列表 */ }
function couponCodeList(couponId) { }]
var url = 'candy/coupon/code?couponId=' + couponId; };
$.modal.openTab("查看码列表", url); $.table.init(options);
} });
</script>
/* 查看码列表 */
function couponCodeList(couponId) {
var url = 'candy/coupon/code?couponId=' + couponId;
$.modal.openTab("查看码列表", url);
}
</script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</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" th:onclick="$.operate.add([[${couType}]])" shiro:hasPermission="candy:coupon:mgt:add"> <a class="btn btn-success" th:onclick="$.operate.addTab([[${couType}]])" shiro:hasPermission="candy:coupon:mgt:add">
<i class="fa fa-plus"></i> 新增 <i class="fa fa-plus"></i> 新增
</a> </a>
</div> </div>
...@@ -66,43 +66,49 @@ ...@@ -66,43 +66,49 @@
// }, // },
{ {
field: 'valFace', field: 'valFace',
title: '金额' title: '金额',
formatter: function (value, row, index) {
return '¥' + value;
}
}, },
{ {
field: 'eventAmt', field: 'eventAmt',
title: '数量', title: '数量'
}, },
{ {
field: 'bindType', field: 'bindType',
title: '类型', title: '类型'
sortable: true
}, },
{ {
field: 'busiType', field: 'busiType',
title: '适用范围', title: '适用范围'
sortable: true
}, },
{ {
field: 'title', field: 'title',
title: '标题', title: '标题'
}, },
{ {
field: 'notice', field: 'notice',
title: '描述', title: '描述'
}, },
{ {
field: 'operator', field: 'operator',
title: '创建人', title: '创建人'
}, },
{ {
field: 'createdAt', field: 'createdAt',
title: '生成时间', title: '生成时间',
sortable: true sortable: true,
formatter: function (value, row, index) {
return $.common.sprintf("<span>%s</span>", value.substring(0, 19));
}
}, },
{ {
field: 'expireAt', field: 'expireAt',
title: '失效时间', title: '失效时间',
sortable: true formatter: function (value, row, index) {
return $.common.sprintf("<span>%s</span>", value);
}
}, },
{ {
title: '操作', title: '操作',
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</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" th:onclick="$.operate.add([[${couType}]])" shiro:hasPermission="candy:coupon:mgt:add"> <a class="btn btn-success" th:onclick="$.operate.addTab([[${couType}]])" shiro:hasPermission="candy:coupon:mgt:add">
<i class="fa fa-plus"></i> 新增 <i class="fa fa-plus"></i> 新增
</a> </a>
</div> </div>
...@@ -70,29 +70,34 @@ ...@@ -70,29 +70,34 @@
}, },
{ {
field: 'eventAmt', field: 'eventAmt',
title: '数量', title: '数量'
}, },
{ {
field: 'title', field: 'title',
title: '标题', title: '标题'
}, },
{ {
field: 'notice', field: 'notice',
title: '描述', title: '描述'
}, },
{ {
field: 'operator', field: 'operator',
title: '创建人', title: '创建人'
}, },
{ {
field: 'createdAt', field: 'createdAt',
title: '生成时间', title: '生成时间',
sortable: true sortable: true,
formatter: function (value, row, index) {
return $.common.sprintf("<span>%s</span>", value.substring(0, 19));
}
}, },
{ {
field: 'expireAt', field: 'expireAt',
title: '失效时间', title: '失效时间',
sortable: true formatter: function (value, row, index) {
return $.common.sprintf("<span>%s</span>", value);
}
}, },
{ {
title: '操作', title: '操作',
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</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" th:onclick="$.operate.add([[${couType}]])" shiro:hasPermission="candy:coupon:mgt:add"> <a class="btn btn-success" th:onclick="$.operate.addTab([[${couType}]])" shiro:hasPermission="candy:coupon:mgt:add">
<i class="fa fa-plus"></i> 新增 <i class="fa fa-plus"></i> 新增
</a> </a>
</div> </div>
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
field: 'discount', field: 'discount',
title: '折扣', title: '折扣',
formatter: function (value, row, index) { formatter: function (value, row, index) {
return '<span class="nav-label">' + value*10 + '折</span>'; return '<span>' + value*10 + '折</span>';
} }
}, },
{ {
...@@ -77,13 +77,11 @@ ...@@ -77,13 +77,11 @@
}, },
{ {
field: 'bindType', field: 'bindType',
title: '类型', title: '类型'
sortable: true
}, },
{ {
field: 'busiType', field: 'busiType',
title: '适用范围', title: '适用范围'
sortable: true
}, },
{ {
field: 'title', field: 'title',
...@@ -100,12 +98,17 @@ ...@@ -100,12 +98,17 @@
{ {
field: 'createdAt', field: 'createdAt',
title: '生成时间', title: '生成时间',
sortable: true sortable: true,
formatter: function (value, row, index) {
return $.common.sprintf("<span>%s</span>", value.substring(0, 19));
}
}, },
{ {
field: 'expireAt', field: 'expireAt',
title: '失效时间', title: '失效时间',
sortable: true formatter: function (value, row, index) {
return $.common.sprintf("<span>%s</span>", value);
}
}, },
{ {
title: '操作', title: '操作',
......
...@@ -28,10 +28,10 @@ public class CandyMgtCouponInfoDto implements Serializable { ...@@ -28,10 +28,10 @@ public class CandyMgtCouponInfoDto implements Serializable {
private Integer overlayLevel; private Integer overlayLevel;
private Integer validity; private Integer validity;
private Integer redeemValidity; private Integer redeemValidity;
private LocalDateTime redeemStart; private String redeemStart;
private LocalDateTime redeemStop; private String redeemStop;
private LocalDateTime effectAt; private String effectAt;
private LocalDateTime expireAt; private String expireAt;
//private String operator; //private String operator;
//private LocalDateTime createdAt; //private LocalDateTime createdAt;
//private LocalDateTime updatedAt; //private LocalDateTime updatedAt;
...@@ -44,10 +44,10 @@ public class CandyMgtCouponInfoDto implements Serializable { ...@@ -44,10 +44,10 @@ public class CandyMgtCouponInfoDto implements Serializable {
private Integer eventAmt; private Integer eventAmt;
private Integer eventType; private Integer eventType;
private String eventLimit; private String eventLimit;
private LocalDateTime eventAt; private String eventAt;
private String operator; private String operator;
private LocalDateTime createdAt; private String createdAt;
private LocalDateTime updatedAt; private String updatedAt;
//private String comment; //private String comment;
// 适用演出名称 // 适用演出名称
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
<result column="overlay_level" jdbcType="TINYINT" property="overlayLevel"/> <result column="overlay_level" jdbcType="TINYINT" property="overlayLevel"/>
<result column="validity" jdbcType="INTEGER" property="validity"/> <result column="validity" jdbcType="INTEGER" property="validity"/>
<result column="redeem_validity" jdbcType="INTEGER" property="redeemValidity"/> <result column="redeem_validity" jdbcType="INTEGER" property="redeemValidity"/>
<result column="redeem_start" jdbcType="TIMESTAMP" property="redeemStart"/> <result column="redeem_start" jdbcType="VARCHAR" property="redeemStart"/>
<result column="redeem_stop" jdbcType="TIMESTAMP" property="redeemStop"/> <result column="redeem_stop" jdbcType="VARCHAR" property="redeemStop"/>
<result column="effect_at" jdbcType="TIMESTAMP" property="effectAt"/> <result column="effect_at" jdbcType="VARCHAR" property="effectAt"/>
<result column="expire_at" jdbcType="TIMESTAMP" property="expireAt"/> <result column="expire_at" jdbcType="VARCHAR" property="expireAt"/>
<!-- <result column="operator" jdbcType="VARCHAR" property="operator" />--> <!-- <result column="operator" jdbcType="VARCHAR" property="operator" />-->
<!-- <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />--> <!-- <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />-->
<!-- <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />--> <!-- <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />-->
...@@ -36,10 +36,10 @@ ...@@ -36,10 +36,10 @@
<result column="event_amt" jdbcType="INTEGER" property="eventAmt"/> <result column="event_amt" jdbcType="INTEGER" property="eventAmt"/>
<result column="event_type" jdbcType="TINYINT" property="eventType"/> <result column="event_type" jdbcType="TINYINT" property="eventType"/>
<result column="event_limit" jdbcType="VARCHAR" property="eventLimit"/> <result column="event_limit" jdbcType="VARCHAR" property="eventLimit"/>
<result column="event_at" jdbcType="TIMESTAMP" property="eventAt"/> <result column="event_at" jdbcType="VARCHAR" property="eventAt"/>
<result column="operator" jdbcType="VARCHAR" property="operator"/> <result column="operator" jdbcType="VARCHAR" property="operator"/>
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt"/> <result column="created_at" jdbcType="VARCHAR" property="createdAt"/>
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt"/> <result column="updated_at" jdbcType="VARCHAR" property="updatedAt"/>
<!-- <result column="comment" jdbcType="VARCHAR" property="comment" />--> <!-- <result column="comment" jdbcType="VARCHAR" property="comment" />-->
</resultMap> </resultMap>
......
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