From 9db396cb483a76abbccab7eab8f2849cdeed4b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=BE=E6=A0=91?= Date: Fri, 26 Apr 2019 13:32:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common.php | 7 ++++--- application/http/middleware/YanZheng.php | 2 +- application/kaoshi/view/index/create.html | 4 ++-- application/keti/controller/KetiInfo.php | 3 +-- application/keti/view/keti_info/create.html | 2 +- application/keti/view/keti_info/index.html | 4 ++++ application/renshi/controller/Index.php | 5 +---- application/renshi/controller/Student.php | 2 -- application/rongyu/controller/DwRongyu.php | 12 ++++++------ application/rongyu/controller/JsRongyuInfo.php | 2 +- application/rongyu/view/js_rongyu_info/create.html | 2 +- database/seeds/Rule.php | 2 +- 12 files changed, 23 insertions(+), 24 deletions(-) diff --git a/application/common.php b/application/common.php index fd5e19aa..76e9c852 100644 --- a/application/common.php +++ b/application/common.php @@ -196,6 +196,9 @@ function teacherNames($list = array()) // 上传文件 function upload($list,$file,$isSave=false) { + // 实例化文件数据模型 + $field = new \app\system\model\Fields; + // 移动到框架应用根目录/uploads/ 目录下 $info = $file->move($list['serurl']); @@ -213,9 +216,7 @@ function upload($list,$file,$isSave=false) $list['hash'] = $info->hash('sha1'); $list['userid'] = session('userid'); - // 实例化文件数据模型 - $field = new \app\system\model\Fields; - + // 如果需要保存文件 if($isSave == true){ // 判断文件是否已经上传,如果已经上传则退出 diff --git a/application/http/middleware/YanZheng.php b/application/http/middleware/YanZheng.php index d1fd1431..b6fae027 100644 --- a/application/http/middleware/YanZheng.php +++ b/application/http/middleware/YanZheng.php @@ -61,7 +61,7 @@ class YanZheng extends Controller // 下载成绩表、下载成绩统计表 'dwchengjixls','dwBanjixls','dwNianjixls', //保存考号、下载试卷标签、下载成绩采集表 - 'kaohaosave','biaoqianXls','dwcaiji', + 'updateset','kaohaosave','biaoqianXls','dwcaiji', //课题结题图片上传和更新 'jtupload','jtupdate', ); diff --git a/application/kaoshi/view/index/create.html b/application/kaoshi/view/index/create.html index 77f7ed54..f5b056d0 100644 --- a/application/kaoshi/view/index/create.html +++ b/application/kaoshi/view/index/create.html @@ -74,10 +74,10 @@ *考试时间
- +
- +
diff --git a/application/keti/controller/KetiInfo.php b/application/keti/controller/KetiInfo.php index 111013f1..728901be 100644 --- a/application/keti/controller/KetiInfo.php +++ b/application/keti/controller/KetiInfo.php @@ -114,7 +114,7 @@ class KetiInfo extends Base 'webtitle'=>'添加课题册', 'butname'=>'添加', 'formpost'=>'POST', - 'url'=>'/ktinfo', + 'url'=>'/ktinfo', 'ketice'=>$ketice ); @@ -136,7 +136,6 @@ class KetiInfo extends Base $list = request()->only(['ketice','title','bianhao','fzdanweiid','subject','category','jhjtshijian','hjteachers'],'POST'); - // 实例化验证类 $validate = new \app\keti\validate\KetiInfo; // 验证表单数据 diff --git a/application/keti/view/keti_info/create.html b/application/keti/view/keti_info/create.html index 57ff8b1e..bd58dde9 100644 --- a/application/keti/view/keti_info/create.html +++ b/application/keti/view/keti_info/create.html @@ -155,7 +155,7 @@ autocomplete="off" class="layui-input " value="{$list.data.jhjtshijian|default=''}" placeholder="计划结题时间"> - +
- +