From 5a344f9791f1498f788d0b1bef7c3999bcd3c819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Tue, 14 Apr 2020 15:01:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=A6=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/teach/model/Xueqi.php | 4 ++-- app/teach/view/xueqi/index.html | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/app/teach/model/Xueqi.php b/app/teach/model/Xueqi.php index 7ed4c21c..10dc9145 100644 --- a/app/teach/model/Xueqi.php +++ b/app/teach/model/Xueqi.php @@ -37,7 +37,7 @@ class Xueqi extends BaseModel return $this->belongsTo('\app\system\model\Category', 'category_id', 'id'); } - // 查询所有单位 + // 根据条件查询学期 public function search($srcfrom) { // 整理变量 @@ -57,7 +57,7 @@ class Xueqi extends BaseModel { $src['enddate'] = $srcfrom['enddate']; }else{ - $src['enddate'] = date("Y-m-d", strtotime("+1 day")); + $src['enddate'] = date("Y-m-d", strtotime("+10 year")); } // 查询数据 diff --git a/app/teach/view/xueqi/index.html b/app/teach/view/xueqi/index.html index 666744be..3dd71c9e 100644 --- a/app/teach/view/xueqi/index.html +++ b/app/teach/view/xueqi/index.html @@ -20,6 +20,19 @@ autocomplete="off" class="layui-input"> +
+
+ +
+ +
+
+ +
+
+
{/block} {block name="table"}