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

密卷购买量

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