Commit 93cc1f2d by 宁成龙

完善转让翻译

parent 54c57f90
...@@ -19,22 +19,16 @@ class UserTransferAction extends BatchAction ...@@ -19,22 +19,16 @@ class UserTransferAction extends BatchAction
protected $htmlClasses = ['btn btn-primary btn-sm btn-mini']; protected $htmlClasses = ['btn btn-primary btn-sm btn-mini'];
// 注意action的构造方法参数一定要给默认值 // 注意action的构造方法参数一定要给默认值
public function __construct($title = null, $action = 1) public function __construct()
{ {
$this->title = $title; $this->title = trans('user.labels.transfer');
$this->action = $action; $this->action = 1;
}
// 确认弹窗信息
public function confirm()
{
return '您确定要已选中的文章吗?';
} }
public function render() public function render()
{ {
$form = AssignUserHandle::make(); $form = AssignUserHandle::make();
$buttonName = trans('user.labels.handle'); $buttonName = trans('user.labels.transfer');
return Modal::make()->lg()->title($this->title)->body($form->payload([]))->onLoad($this->getModalScript())->button('<button class="btn btn-primary"> return Modal::make()->lg()->title($this->title)->body($form->payload([]))->onLoad($this->getModalScript())->button('<button class="btn btn-primary">
<i class="feather icon-check-circle"></i><span class="d-none d-sm-inline" style="margin-left: 5px">' . $buttonName . '</span> <i class="feather icon-check-circle"></i><span class="d-none d-sm-inline" style="margin-left: 5px">' . $buttonName . '</span>
</button>'); </button>');
...@@ -62,14 +56,7 @@ JS; ...@@ -62,14 +56,7 @@ JS;
// 处理请求 // 处理请求
public function handle(Request $request) public function handle(Request $request)
{ {
// 获取选中的文章ID数组 $message = admin_trans("succeeded");
$keys = $this->getKey();
// 获取请求参数
$action = $request->get('action');
$message = $action ? '文章发布成功' : '文章下线成功';
return $this->response()->success($message)->refresh(); return $this->response()->success($message)->refresh();
} }
......
...@@ -59,8 +59,8 @@ class UserService ...@@ -59,8 +59,8 @@ class UserService
public static function userListTool(Grid $grid) public static function userListTool(Grid $grid)
{ {
$grid->tools([ $grid->tools([
new UserTransferAction("转让销售"), new UserTransferAction(),
new UserAssignAction("分配销售"), new UserAssignAction(),
]); ]);
} }
......
<?php <?php
return [ return [
'labels' => [ 'labels' => [
'User' => 'User', 'User' => 'User',
'user' => 'User', 'user' => 'User',
'user_detail' => 'User Detail',
'handle' => 'Handle',
'transfer' => 'Transfer',
'assign' => 'Assign',
], ],
'fields' => [ 'fields' => [
'user_sn' => '客户编码', 'user_sn' => '客户编码',
...@@ -28,17 +33,17 @@ return [ ...@@ -28,17 +33,17 @@ return [
] ]
], ],
'options' => [ 'options' => [
"status"=>[ "status" => [
"1"=>"正常", "1" => "正常",
"-1"=>"禁用" "-1" => "禁用"
], ],
"reg_source"=>[ "reg_source" => [
"1"=>"网站", "1" => "网站",
"2"=>"人工新增" "2" => "人工新增"
], ],
"account_properties"=>[ "account_properties" => [
"1"=>"个人", "1" => "个人",
"2"=>"企业" "2" => "企业"
], ],
], ],
]; ];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment