From 5bf3d2ca1e9ef3b6aa03a3bb6619f119cb6d3bad Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Sat, 18 Nov 2023 14:22:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=A1=E6=A0=B8=E6=9C=BA?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/user/validate/PositionCheck.php | 7 ++----- app/user/view/position/add.html | 8 ++++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/app/user/validate/PositionCheck.php b/app/user/validate/PositionCheck.php index a535cb7..f201988 100644 --- a/app/user/validate/PositionCheck.php +++ b/app/user/validate/PositionCheck.php @@ -13,7 +13,6 @@ class PositionCheck extends Validate { protected $rule = [ 'title' => 'require|unique:position', - 'work_price' => 'require|number', 'group_id' => 'require', 'id' => 'require' ]; @@ -21,14 +20,12 @@ class PositionCheck extends Validate protected $message = [ 'title.require' => '岗位名称不能为空', 'title.unique' => '同样的岗位名称已经存在', - 'work_price.require' => '岗位工时单价不能为空', - 'work_price.number' => '岗位工时单价只能是整数', 'group_id.require' => '至少要选择一个角色权限', 'id.require' => '缺少更新条件', ]; protected $scene = [ - 'add' => ['title', 'work_price', 'group_id'], - 'edit' => ['title', 'work_price', 'group_id', 'id'], + 'add' => ['title', 'group_id'], + 'edit' => ['title', 'group_id', 'id'], ]; } diff --git a/app/user/view/position/add.html b/app/user/view/position/add.html index 7cc3e78..59848f4 100644 --- a/app/user/view/position/add.html +++ b/app/user/view/position/add.html @@ -10,9 +10,9 @@ - 岗位工时单价(元)* + 岗位工时单价(元) - + @@ -44,9 +44,9 @@ - 岗位工时单价(元)* + 岗位工时单价(元) - +