完善班级移动

This commit is contained in:
cxdbz committed 2018-11-02 21:39:31 +08:00
1 parent 85bd291abc
commit 602bb16899
3 files changed
+22 -7

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ class Banji extends Base
$cnt = BJ::count();
//查询数据
$data =BJ::field('id,school,ruxuenian,paixu,status')
->order([$order_field=>$order])
->order([$order_field=>$order,'ruxuenian','paixu'])
->limit($limit_start,$limit_length)
->all();
+15 -2
View File
@@ -36,6 +36,7 @@
<thead>
<tr>
<th><input type="checkbox" name="" value=""></th>
<th>ID</th>
<th>班级名称</th>
<th>学校</th>
<th>入学年</th>
@@ -64,6 +65,7 @@
// 定义列参数
var mycolumns = [
{ "data": "id" },
{ "data": "id" },
{ "data": "title" },
{ "data": "school" },
{ "data": "ruxuenian"},
@@ -97,9 +99,9 @@
endbut = '<a title="后移" href="javascript:void(0);" onclick=yidong(this,"/banji/'+row.id+'/yidong",1) class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6d7;</i></a>';
if(row.status == '已停用')
{
buts = startbut + editbut + bfbut + endbut;
buts = startbut + bfbut + endbut;
}else{
buts = stopbut + editbut + bfbut + endbut;
buts = stopbut + bfbut + endbut;
}
return buts;
@@ -136,6 +138,17 @@
},
dataType: 'json',
success: function(data){
if(data.val == true && caozuo == -1)
{
yd = $(obj).parents("tr").html();
$(obj).parents("tr").prev().before('<tr>' + yd + '</tr>');
$(obj).parents("tr").remove();
}else{
yd = $(obj).parents("tr").html();
$(obj).parents("tr").next().after('<tr>' + yd + '</tr>');
$(obj).parents("tr").remove();
}
layer.alert(data.msg);
},
error:function(data) {
+6 -4
View File
@@ -76,10 +76,12 @@ class Rule extends Seeder
['title'=>'状态','name'=>'teach/Index/status','paixu'=>5,'pid'=>41],
// 学生管理权限
['title'=>'添加','name'=>'teach/Student/create','paixu' =>1,'pid'=>42],
['title'=>'删除','name'=>'teach/Student/delete','paixu'=>2,'pid'=>42],
['title'=>'编辑','name'=>'teach/Student/edit','paixu'=>3,'pid'=>42,],
['title'=>'查看','name'=>'teach/Student/read','paixu'=>4,'pid'=>42,],
['title'=>'状态','name'=>'teach/Student/status','paixu'=>5,'pid'=>42],
['title'=>'状态','name'=>'teach/Student/status','paixu'=>2,'pid'=>42],
['title'=>'移动','name'=>'teach/Student/yidong','paixu'=>3,'pid'=>42],
// ['title'=>'删除','name'=>'teach/Student/delete','paixu'=>2,'pid'=>42],
// ['title'=>'编辑','name'=>'teach/Student/edit','paixu'=>3,'pid'=>42,],
// ['title'=>'查看','name'=>'teach/Student/read','paixu'=>4,'pid'=>42,],
// ['title'=>'状态','name'=>'teach/Student/status','paixu'=>5,'pid'=>42],
// 系统设置