<script id="oauthlist" type="text/html">
{{each data v i}}
<tr class="text-c" data-id="{{v.id}}">
<td><input type="checkbox" value="{{v.id}}" name="checkbox"></td>
<td>{{
v.name}}</td>
<td>{{v.schoolName}}</td>
<td>{{v.gradeName}}</td>
<td>{{v.className}}</td>
<td>{{v.courseName}}</td>
<td>{{v.userName}}</td>
<td>{{v.roleName}}</td>
<td>{{v.createTime}}</td>
<td class="td-manage" style="font-size:18px">
<button onclick="admin_edit({{v.id}})" class="layui-btn layui-btn-primary layui-btn-radius" style="text-decoration:none">编辑</button>
<a onclick="admin_del(this,‘{{v.id}}‘)" class="layui-btn layui-btn-primary layui-btn-radius" style="text-decoration:none">删除</a>
@*<a title="编辑" href="javascript:;" onclick="admin_edit({{v.RI_ID}})" class="ml-5" style="text-decoration:none">编辑<i class="Hui-iconfont"></i></a>
<a title="删除" href="javascript:;" onclick="admin_del(this,‘{{v.RI_ID}}‘)" class="ml-5" style="text-decoration:none">删除<i class="Hui-iconfont"></i></a>*@
</td>
</tr>
{{/each}}
</script>
//分页事件
function rgpage(totle) {
layui.use([‘laypage‘, ‘layer‘], function () {
var laypage = layui.laypage
, layer = layui.layer;
laypage.render({
elem: ‘page‘
, count: totle//$("#total").html()
, limit: 20
, curr: currentPageAllAppoint
, first: ‘首页‘
, last: ‘尾页‘
, prev: ‘<em>←</em>‘
, next: ‘<em>→</em>‘
, theme: ‘#1E9FFF‘
, jump: function (obj, first) {
currentPageAllAppoint = obj.curr;
if (!first) {
var gguid = $("#gradeid").find("option:selected").val();
var cguid = $("#classid").find("option:selected").val();
var courseid = $("#course").find("option:selected").val();
$RoleManage.getRoleGroupList(gguid, cguid, courseid, obj.curr, 20, $("#key").val());
}
}
});
});
}
$.get("/admin/RoleManage/GetRoleGroupList", data, function (out) {
//填充试题总数
var totle = out.message;
$("#total").html(totle);
var html = template(‘oauthlist‘, out);
$("#conlist").html(html);
//加载分页方法
rgpage(totle);
})
return "{\"code\":\"" + code + "\",\"message\":\"" + message + "\",\"data\":[" + data + "]}";