Browse Source

修复部门复审错误

zmw 2 weeks ago
parent
commit
dd7eeaa8c6

+ 1 - 1
app/admin/controller/TalentTypeChange.php

@@ -179,7 +179,7 @@ class TalentTypeChange extends AdminController {
                 $list[$key]["otherDeptState"] = $otherDeptState;
             }
         }
-        return json(["rows" => $list, "count" => $count]);
+        return json(["rows" => $list, "total" => $count]);
     }
 
     public function toCommonCheck($id, $process) {

+ 1 - 1
public/static/modular/talentLibrary/talentTypeChange/talentTypeChange_dep.js

@@ -57,7 +57,7 @@ TalentTypeChange.initColumn = function () {
                 var depRow = row.otherDeptState;
                 var html = "<ul>";
                 if (typeof depRow != "undefined" && depRow != null && depRow.length > 0) {
-                    for (var i = 0; i < count(depRow); i++) {
+                    for (var i = 0; i < depRow.length; i++) {
                         switch (depRow[i].state) {
                             case 1:
                                 var stateStr = "待审核";