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

Commit 85798bf3 authored by dongchun's avatar dongchun

修改表格内字段的展示

parent 32d369c4
...@@ -50,14 +50,8 @@ ...@@ -50,14 +50,8 @@
</div> </div>
<th:block th:include="include :: footer"/> <th:block th:include="include :: footer"/>
<script th:inline="javascript"> <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 prefix = ctx + "stone/logs";
var prefix2 = ctx + "local"; var prefix2 = ctx + "local";
// var viewMgtCouponFlag = [[${@permission.hasPermi('candy:coupon:mgt:detail')}]];
// var cancelMgtCouponFlag = [[${@permission.hasPermi('candy:coupon:mgt:cancel')}]];
var couType = [[${couType}]]; var couType = [[${couType}]];
$(function () { $(function () {
...@@ -66,9 +60,6 @@ ...@@ -66,9 +60,6 @@
pagination: true, pagination: true,
modalName: "积分", modalName: "积分",
columns: [ columns: [
{
checkbox: false
},
{ {
field: 'activeName', field: 'activeName',
title: '活动名称' title: '活动名称'
......
...@@ -37,20 +37,30 @@ ...@@ -37,20 +37,30 @@
modalName: "积分", modalName: "积分",
queryParams: queryParams, queryParams: queryParams,
columns: [ columns: [
{
checkbox: false
},
{ {
field: 'code', field: 'code',
title: '券码' title: '券码'
}, },
{ {
field: 'state', 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', field: 'redeemAt',
title: '创建时间' title: '使用时间'
}] }]
}; };
$.table.init(options); $.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