瀏覽代碼

add - 查询/新增/编辑 特证

刘观赐 1 年之前
父節點
當前提交
8719ce533b

+ 1 - 1
app/adminapi/lists/master_worker_register/MasterWorkerRegisterLists.php

@@ -38,7 +38,7 @@ class MasterWorkerRegisterLists extends BaseAdminDataLists implements ListsSearc
     public function setSearch(): array
     {
         return [
-            '=' => ['maintain_exp_type', 'other_exp_type', 'city', 'vehicle_type', 'status'],
+            '=' => ['maintain_exp_type', 'other_exp_type', 'city', 'vehicle_type', 'status','is_credential'],
             '%like%' => ['name', 'mobile'],
             'between' => ['age'],
 

+ 4 - 0
app/adminapi/logic/master_worker_register/MasterWorkerRegisterLogic.php

@@ -52,6 +52,8 @@ class MasterWorkerRegisterLogic extends BaseLogic
                 'age' => $params['age'],
                 'mobile' => $params['mobile'],
                 'status' => $params['status'],
+                'is_credential' => $params['is_credential'],
+                'credential_name' => $params['is_credential']?$params['credential_name']:'',
             ]);
 
             Db::commit();
@@ -84,6 +86,8 @@ class MasterWorkerRegisterLogic extends BaseLogic
                 'age' => $params['age'],
                 'mobile' => $params['mobile'],
                 'status' => $params['status'],
+                'is_credential' => $params['is_credential'],
+                'credential_name' => $params['is_credential']?$params['credential_name']:'',
             ];
 
             //审批通过逻辑处理