升级到v5128lts

This commit is contained in:
cxdbz committed 2018-11-28 22:00:19 +08:00
1 parent a139519dec
commit dbefa7f320
30 files changed
+184 -117

No files matched your search

+41
View File
@@ -230,6 +230,47 @@ class Index extends Base
}
// 删除成绩
public function delete($id)
{
if($id == 'm')
{
$id = request()->delete('ids/a');// 获取delete请求方式传送过来的数据并转换成数据
}
$data = Chengji::destroy($id);
// 根据更新结果设置返回提示信息
$data ? $data=['msg'=>'删除成功','val'=>1] : $data=['msg'=>'数据处理错误','val'=>0];
// 返回信息
return json($data);
}
// 设置成绩状态
public function setStatus()
{
// 获取id变量
$id = request()->post('id');
$value = request()->post('value');
// 获取班级信息
$data = Chengji::where('id',$id)->update(['status'=>$value]);
// 根据更新结果设置返回提示信息
$data ? $data=['msg'=>'状态设置成功','val'=>1] : $data=['msg'=>'数据处理错误','val'=>0];
// 返回信息
return json($data);
}
@@ -108,11 +108,9 @@
// 启用按钮
startbut = '<a style="text-decoration:none" onClick="start(this,'+ row.id +')" href="javascript:;" title="启用"><i class="Hui-iconfont">&#xe6e1;</i></a>';
// 编辑按钮
editbut = '<a title="编辑" href="javascript:void(0);" onclick=addfull("编辑","/kaoshi/'+row.id+'/edit") class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe60c;</i></a>';
editbut = '<a title="编辑" href="javascript:void(0);" onclick=addfull("编辑","/chengji/'+row.id+'/edit") class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe60c;</i></a>';
// 删除按钮
delbut = '<a title="删除" href="javascript:void(0);" onclick=del(this,"/kaoshi/'+row.id+'") class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>';
// 生成考号
morebut = '<a title="更多操作" data-href="kaoshi/'+ row.id +'/more" data-title="' + row.title + '·操作" onClick="Hui_admin_tab(this)" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe68b;</i></a>';
delbut = '<a title="删除" href="javascript:void(0);" onclick=del(this,"/chengji/'+row.id+'") class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>';
if(row.status == '已停用')
{
@@ -120,7 +118,7 @@
}else{
buts = stopbut;
}
buts = buts + editbut + delbut + morebut;
buts = buts + editbut + delbut;
return buts;
}
Generated
+5 -5
View File
@@ -1054,16 +1054,16 @@
},
{
"name": "topthink/framework",
"version": "v5.1.28",
"version": "v5.1.29",
"source": {
"type": "git",
"url": "https://github.com/top-think/framework.git",
"reference": "b5077520855a1f406205687c73cdeaee1ed618c2"
"reference": "f1d8ee3a91e8f504507edb5dcc49c50c47b4500f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/framework/zipball/b5077520855a1f406205687c73cdeaee1ed618c2",
"reference": "b5077520855a1f406205687c73cdeaee1ed618c2",
"url": "https://api.github.com/repos/top-think/framework/zipball/f1d8ee3a91e8f504507edb5dcc49c50c47b4500f",
"reference": "f1d8ee3a91e8f504507edb5dcc49c50c47b4500f",
"shasum": "",
"mirrors": [
{
@@ -1107,7 +1107,7 @@
"orm",
"thinkphp"
],
"time": "2018-10-29T02:52:45+00:00"
"time": "2018-11-11T01:17:33+00:00"
},
{
"name": "topthink/think-captcha",
Loaded 3 of 30 files, more files were not shown because too many files have changed in this diff. Show more