chuweiqiang 1 gadu atpakaļ
vecāks
revīzija
c45a27b4f4
1 mainītis faili ar 15 papildinājumiem un 0 dzēšanām
  1. 15 0
      app/admin/controller/Recruitment.php

+ 15 - 0
app/admin/controller/Recruitment.php

@@ -84,6 +84,21 @@ class Recruitment extends Controller
         DataRecruitment::mForm('form');
     }
 
+    /**
+     * 表单结果处理
+     * @param boolean $result
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\DbException
+     * @throws \think\db\exception\ModelNotFoundException
+     */
+    protected function _form_result(bool $result)
+    {
+        if ($result && $this->request->isPost()) {
+//            GoodsService::stock(input('code'));
+            $this->success('恭喜,数据保存成功!', 'javascript:history.back()');
+        }
+    }
+
     public function _form_filter($vo){
         if ($this->request->isGet()) {