Ver código fonte

修复预备人才库中公布不通过存在提示需要批次

sugangqiang 1 ano atrás
pai
commit
7bebc00165

+ 1 - 5
app/admin/controller/Talent.php

@@ -807,14 +807,10 @@ class Talent extends AdminController {
             $state = TalentState::PUBLISH_FAIL;
             $msg = "公布审核不通过:" . $msg;
         }
-        if (!$batch || !strtotime($batch))
+        if ($checkState == 1 && (!$batch || !strtotime($batch)))
             return json(["msg" => "公布批次时间错误"]);
         if (!$msg)
             return json(["msg" => "请填写审核意见"]);
-        $state = TalentState::PUBLISH_PASS; //公示再审核通过
-        $batch = $params["batch"];
-        if (!strtotime($batch))
-            return json(["msg" => "公布批次时间错误"]);
         $talent_info = VerifyApi::getOne($id);
         if ($talent_info["checkState"] != TalentState::ANNOUNCED_REVERIFY_PASS) {
             return json(["msg" => "当前记录不是公示再审核通过状态,无法审核"]);

+ 1 - 1
public/static/modular/talentIdentify/talentInfo/talentInfo_prepare.js

@@ -704,7 +704,7 @@ TalentInfo.singlePublishSubmit = function () {
         Feng.info("请选择审核状态");
         return;
     }
-    if (Feng.isEmptyStr(month)) {
+    if (checkState == 1 && Feng.isEmptyStr(month)) {
         Feng.info("请填写公布批次");
         return;
     }