<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Tracking\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Admin\Concern\HasAdminQuickCRUD; use ModStart\Admin\Layout\AdminCRUDBuilder; use ModStart\Form\Form; use ModStart\Grid\GridFilter; use ModStart\Support\Concern\HasFields; use Module\Tracking\Util\TrackingCodeProcessUtil; class CodeProcessController extends Controller { use HasAdminQuickCRUD; protected function crud(AdminCRUDBuilder $P0Vsm) { $P0Vsm->init('tracking_code_process')->field(function ($P0Vsm) { $P0Vsm->id('id', 'ID'); $P0Vsm->text('title', '名称'); $P0Vsm->display('created_at', L('Created At'))->listable(false); $P0Vsm->display('updated_at', L('Updated At'))->listable(false); })->gridFilter(function (GridFilter $roX32) { $roX32->eq('id', L('ID')); $roX32->like('title', L('Title')); })->hookChanged(function (Form $ypG_B) { TrackingCodeProcessUtil::clearCache(); })->title('溯源流程')->asTree()->treeMaxLevel(1); } }