Browse Source

部门审核修复

sugangqiang 2 years ago
parent
commit
c1ff71a2ee

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

@@ -385,7 +385,7 @@ class Talent extends AdminController {
         $logs = TalentLogApi::getListLogByTime($talent_info["id"], $talent_info["first_dept_check_time"]);
         for ($i = 0; $i < count($logs); $i++) {
             $over += $logs[$i]["active"] == 1 ? 1 : 0;
-            if ($logs["new_state"] == TalentState::SCND_SUBMIT) {
+            if ($logs[$i]["new_state"] == TalentState::SCND_SUBMIT) {
                 $error++;
             }
         }
@@ -632,4 +632,14 @@ class Talent extends AdminController {
         }
     }
 
+    public function getPhones() {
+        $list = VerifyApi::getList($this->request);
+        $phones = array_column($list["rows"], "phone");
+        return json(["code" => 200, "obj" => implode(",", $phones)]);
+    }
+
+    public function getEnterprisePhones() {
+        return json(["code" => 200, "obj" => $phones]);
+    }
+
 }

+ 2 - 2
public/static/modular/talentIdentify/talentInfo/talentInfo_base.js

@@ -394,7 +394,7 @@ TalentInfo.sourceCheckd = function (context) {
 }
 
 TalentInfo.getPhones = function () {
-    var ajax = new $ax(Feng.ctxPath + "/talentInfo/getPhones", function (data) {
+    var ajax = new $ax("/admin/talent/getPhones", function (data) {
         if (data.code == 200) {
             layer.open({
                 type: 1,
@@ -416,7 +416,7 @@ TalentInfo.getPhones = function () {
 
 
 TalentInfo.getEnterprisePhones = function () {
-    var ajax = new $ax(Feng.ctxPath + "/talentInfo/getEnterprisePhones", function (data) {
+    var ajax = new $ax("/admin/talent/getEnterprisePhones", function (data) {
         if (data.code == 200) {
             layer.open({
                 type: 1,