9 changed files with 165 additions and 42 deletions
-
13app/Admin/Actions/Lazy/CsInfo.php
-
2app/Admin/Actions/Tools/SalesmanOption.php
-
17app/Admin/Common/Order.php
-
1app/Admin/Controllers/ImsCjdcOrderMainController.php
-
74app/Admin/Controllers/v3/Salesman.php
-
40app/Admin/Extensions/Salesman.php
-
47app/Admin/Repositories/v3/CsInfo.php
-
11app/Admin/Repositories/v3/Salesman.php
-
2app/Models/v3/SalesmanData.php
@ -0,0 +1,40 @@ |
|||||
|
<?php |
||||
|
namespace App\Admin\Extensions; |
||||
|
|
||||
|
|
||||
|
use App\Admin\Actions\Lazy\CsInfo; |
||||
|
use App\Admin\Forms\SelectHorseman; |
||||
|
|
||||
|
use Dcat\Admin\Grid\RowAction; |
||||
|
use Dcat\Admin\Widgets\Modal; |
||||
|
|
||||
|
class Salesman extends RowAction |
||||
|
{ |
||||
|
|
||||
|
protected $title; |
||||
|
protected $adminUid; |
||||
|
protected $name; |
||||
|
protected $option; |
||||
|
public function __construct($adminUid,$name,$option,$title=null) |
||||
|
{ |
||||
|
$this->title = $title; |
||||
|
$this->name = $name; |
||||
|
$this->option = $option; |
||||
|
$this->adminUid = $adminUid; |
||||
|
|
||||
|
parent::__construct($title); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public function render() |
||||
|
{ |
||||
|
// 实例化表单类并传递自定义参数
|
||||
|
$table = CsInfo::make(['admin_user_id'=>$this->adminUid,'name'=>$this->name,'option'=>$this->option]); |
||||
|
return Modal::make() |
||||
|
->lg() |
||||
|
->title('数据明细') |
||||
|
->body($table) |
||||
|
->button('详情'); |
||||
|
|
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue