正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
@@ -7,7 +7,7 @@ use think\Db; | @@ -7,7 +7,7 @@ use think\Db; | ||
7 | use think\exception\DbException; | 7 | use think\exception\DbException; |
8 | use think\exception\PDOException; | 8 | use think\exception\PDOException; |
9 | use think\exception\ValidateException; | 9 | use think\exception\ValidateException; |
10 | - | 10 | +use think\Exception; |
11 | /** | 11 | /** |
12 | * 活动 | 12 | * 活动 |
13 | * | 13 | * |
@@ -62,7 +62,7 @@ class Activity extends Backend | @@ -62,7 +62,7 @@ class Activity extends Backend | ||
62 | ->paginate($limit); | 62 | ->paginate($limit); |
63 | 63 | ||
64 | foreach ($list as $row) { | 64 | foreach ($list as $row) { |
65 | - $row->visible(['id','title','verification_store_id','verification_coupon_ids','poster','image','createtime','updatetime','closetime','price','content','phone']); | 65 | + $row->visible(['id','title','verification_store_id','verification_coupon_ids','poster','image','createtime','updatetime','closetime','price','content','phone','status']); |
66 | $row->visible(['store']); | 66 | $row->visible(['store']); |
67 | $row->getRelation('store')->visible(['name']); | 67 | $row->getRelation('store')->visible(['name']); |
68 | $row->visible(['coupon']); | 68 | $row->visible(['coupon']); |
@@ -39,7 +39,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | @@ -39,7 +39,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | ||
39 | {field: 'phone', title: __('Phone'), operate: 'LIKE'}, | 39 | {field: 'phone', title: __('Phone'), operate: 'LIKE'}, |
40 | {field: 'store.name', title: __('Store.name'), operate: 'LIKE'}, | 40 | {field: 'store.name', title: __('Store.name'), operate: 'LIKE'}, |
41 | {field: 'coupon.name', title: __('Coupon.name'), operate: 'LIKE'}, | 41 | {field: 'coupon.name', title: __('Coupon.name'), operate: 'LIKE'}, |
42 | - {field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1')}, formatter: Table.api.formatter.toggle,yes:"1",no:"0"}, | 42 | + {field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1')}, formatter: Table.api.formatter.toggle,yes:"0",no:"1"}, |
43 | {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | 43 | {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} |
44 | ] | 44 | ] |
45 | ] | 45 | ] |
-
请 注册 或 登录 后发表评论