From 37bac6155c62ce77859e1a4fcb95c7db50fa3e39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=BE=E6=A0=91?= Date: Mon, 8 Feb 2021 06:37:08 +0800 Subject: [PATCH] 0 --- app/chengji/model/TongjiNj.php | 6 +++--- app/kaoshi/view/index/tongji.html | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/chengji/model/TongjiNj.php b/app/chengji/model/TongjiNj.php index 537a1f17..b9cb80f0 100755 --- a/app/chengji/model/TongjiNj.php +++ b/app/chengji/model/TongjiNj.php @@ -20,9 +20,9 @@ class TongjiNj extends BaseModel $more = new \app\kaohao\model\SearchMore; $schoolList = $cy->school($src); - if(count($schoolList) == 0){ - return false; - } + // if(count($schoolList) == 0){ + // return false; + // } // 查询要统计的年级 $ksset = new \app\kaoshi\model\KaoshiSet; $njList = $ksset->srcGrade($kaoshi_id); diff --git a/app/kaoshi/view/index/tongji.html b/app/kaoshi/view/index/tongji.html index 6cdb2e76..c783f9b9 100644 --- a/app/kaoshi/view/index/tongji.html +++ b/app/kaoshi/view/index/tongji.html @@ -77,12 +77,16 @@ $('#showtd' + val).text('正在统计'); $('#showtd' + val).append(""); }, + complete: function () { + $('#showtd' + val).children("i").remove(); + }, success:function(result){ $('#showtd' + val).text(result.msg); }, error:function(result){ $('#showtd' + val).text(result.msg); }, + }); }