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

Commit 85798bf3 authored by dongchun's avatar dongchun

修改表格内字段的展示

parent 32d369c4
......@@ -50,14 +50,8 @@
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
// var dicCouponBusiType = [[${@dict.getType('zhengzai_coupon_busi_type')}]];
// var dicCouponBindType = [[${@dict.getType('zhengzai_coupon_bind_type')}]];
var prefix = ctx + "stone/logs";
var prefix2 = ctx + "local";
// var viewMgtCouponFlag = [[${@permission.hasPermi('candy:coupon:mgt:detail')}]];
// var cancelMgtCouponFlag = [[${@permission.hasPermi('candy:coupon:mgt:cancel')}]];
var couType = [[${couType}]];
$(function () {
......@@ -66,9 +60,6 @@
pagination: true,
modalName: "积分",
columns: [
{
checkbox: false
},
{
field: 'activeName',
title: '活动名称'
......
......@@ -37,20 +37,30 @@
modalName: "积分",
queryParams: queryParams,
columns: [
{
checkbox: false
},
{
field: 'code',
title: '券码'
},
{
field: 'state',
title: '券状态'
title: '券状态',
formatter: function (value, row) {
if (value == 1) {
return '未兑换'
} else if (value == 2) {
return '已兑换'
} else {
return '已失效'
}
}
},
{
field: 'redeemUid',
title: '使用者ID'
},
{
field: 'createdAt',
title: '创建时间'
field: 'redeemAt',
title: '使用时间'
}]
};
$.table.init(options);
......
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