0
This commit is contained in:
1 parent
09622f12df
commit
812c21c5a0
2 files changed
+7
-5
No files matched your search
@@ -266,13 +266,14 @@ class Luru extends BaseController
|
||||
// 保存表格批量上传的成绩
|
||||
public function saveAll()
|
||||
{
|
||||
// set_time_limit(0);
|
||||
// 获以电子表格存储位置
|
||||
$url = input('post.url');
|
||||
// 获取表单数据
|
||||
$list = $this->request->only([
|
||||
'url'
|
||||
], 'POST');
|
||||
|
||||
// 读取表格数据
|
||||
$excel = new \app\renshi\controller\Myexcel;
|
||||
$cjinfo = $excel->readXls(public_path() . 'public\\uploads\\' . $url);
|
||||
$cjinfo = $excel->readXls(public_path() . 'public\\uploads\\' . $list['url']);
|
||||
|
||||
$kaoshi_id = $cjinfo[1][0]; #获取考号
|
||||
$nianji = $cjinfo[1][1]; #获取年级
|
||||
|
||||
@@ -88,6 +88,7 @@
|
||||
<input type="text" id="url" name="url" autocomplete="off" class="layui-input " value="" placeholder="地址" readonly>
|
||||
</div>
|
||||
</div>
|
||||
{:token_meta()}
|
||||
</form>
|
||||
<div class="layui-card-body layui-upload-drag" id="upload" style="min-height: 125px; width: 90%">
|
||||
<i class="layui-icon"></i>
|
||||
@@ -157,7 +158,7 @@ layui.use(['form','upload','cjgl'], function(){
|
||||
data:{
|
||||
"url":url
|
||||
},
|
||||
async:false,
|
||||
// async:true,
|
||||
success:function(result){
|
||||
if(result.val == 1)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user