作者 chencheng

kaquana-6

... ... @@ -7,7 +7,7 @@ use think\Db;
use think\exception\DbException;
use think\exception\PDOException;
use think\exception\ValidateException;
use think\Exception;
/**
* 活动
*
... ... @@ -62,7 +62,7 @@ class Activity extends Backend
->paginate($limit);
foreach ($list as $row) {
$row->visible(['id','title','verification_store_id','verification_coupon_ids','poster','image','createtime','updatetime','closetime','price','content','phone']);
$row->visible(['id','title','verification_store_id','verification_coupon_ids','poster','image','createtime','updatetime','closetime','price','content','phone','status']);
$row->visible(['store']);
$row->getRelation('store')->visible(['name']);
$row->visible(['coupon']);
... ...
... ... @@ -39,7 +39,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'phone', title: __('Phone'), operate: 'LIKE'},
{field: 'store.name', title: __('Store.name'), operate: 'LIKE'},
{field: 'coupon.name', title: __('Coupon.name'), operate: 'LIKE'},
{field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1')}, formatter: Table.api.formatter.toggle,yes:"1",no:"0"},
{field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1')}, formatter: Table.api.formatter.toggle,yes:"0",no:"1"},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
]
... ...