sugangqiang 2 năm trước cách đây
mục cha
commit
8614e2319f

+ 3 - 1
app/admin/view/policy/index.html

@@ -80,6 +80,7 @@ and open the template in the editor.
                     } else {
                     } else {
                         lines = $("tbody tr[data-level]");
                         lines = $("tbody tr[data-level]");
                     }
                     }
+                    var chks = 0;
                     for (var i = 0; i < lines.length; i++) {
                     for (var i = 0; i < lines.length; i++) {
                         let line = lines.eq(i);
                         let line = lines.eq(i);
                         let d = {};
                         let d = {};
@@ -87,8 +88,9 @@ and open the template in the editor.
                         d.checked = line.find("[data-id]").is(":checked") ? 1 : 2;
                         d.checked = line.find("[data-id]").is(":checked") ? 1 : 2;
                         d.files = line.find("textarea.files").val();
                         d.files = line.find("textarea.files").val();
                         data.push(d);
                         data.push(d);
+                        chks += d.checked == 1 ? 1 : 0;
                     }
                     }
-                    if (confirm("确定提交当前页面共" + data.length + "条人才认定标准?")) {
+                    if (confirm("确定提交当前页面共" + data.length + "条(勾选" + chks + "条)人才认定标准?")) {
                         $.ajax({
                         $.ajax({
                             url: "/admin/policy/submit",
                             url: "/admin/policy/submit",
                             type: "post",
                             type: "post",

+ 2 - 0
app/enterprise/controller/Talent.php

@@ -105,6 +105,8 @@ class Talent extends EnterpriseController {
      * @return type
      * @return type
      */
      */
     public function second(\think\Request $request) {
     public function second(\think\Request $request) {
+        if($this->user["type"] != 1)
+            return "此入口仅供晋江市人才申报,晋江集成电路人才请使用新统一申报入口";
         $params = $request->param();
         $params = $request->param();
         $id = $params["id"];
         $id = $params["id"];
         $info = \app\common\api\VerifyApi::getTalentInfoById($id);
         $info = \app\common\api\VerifyApi::getTalentInfoById($id);