作者 何书鹏
1 个管道 的构建 通过 耗费 1 秒

密卷购买量

... ... @@ -63,7 +63,7 @@ class Secret extends Backend
->select();
foreach ($list as $row) {
$row->visible(['id','title','current_price','original_price','do_num_virtual','do_num_real','updatetime']);
$row->visible(['id','title','current_price','original_price','do_num_virtual','do_num_real','updatetime','pay_num']);
}
$list = collection($list)->toArray();
... ...
... ... @@ -9,5 +9,6 @@ return [
'Do_num_real' => '真实答题人数',
'Description' => '试卷介绍',
'Createtime' => '创建时间',
'Updatetime' => '修改时间'
'Updatetime' => '修改时间',
'Pay_num' => '购买量'
];
... ...
... ... @@ -30,7 +30,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'original_price', title: __('Original_price'), operate:'BETWEEN'},
{field: 'do_num_virtual', title: __('Do_num_virtual')},
{field: 'do_num_real', title: __('Do_num_real')},
{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'pay_num', title: __('Pay_num')},
//操作栏,默认有编辑、删除或排序按钮,可自定义配置buttons来扩展按钮
{
field: 'operate',
... ...