tijian_tieying/web/dccdc/Views/Home/main.cshtml
2025-02-20 12:14:39 +08:00

69 lines
2.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@{
Page.Title = "首页";
Layout = "~/Views/Shared/_LayUILayout.cshtml";
}
@section scripts{
<script type="text/javascript">
function showmsg() {
top.layer.alert("ttttttttt");
}
</script>
}
@section css{
<style type="text/css">
/*鼠标最右侧滚动条到边框*/
.layui-table-view {
border-width: 0px;
margin:0px;
}
</style>
}
<div>
@*<a href="javascript:void(0);" onclick="showmsg();">xxxxx</a>*@
<div class="layui-row">
<table id="dateTable" lay-filter="dateTable" class="layui-table" lay-data="{height:'full-10',id: 'idTest', cellMinWidth: 80,even:true,
page: false, url:'@Url.Action("GetNoCompleteCountByGroup")'}">
<thead>
<tr>
<th lay-data="{field:'group_name', width:200}">分组</th>
@*<th lay-data="{field:'no_complete_count', width:200}">未完成人数</th>*@
<th lay-data="{field:'no_complete_count', width:200, sort: true,templet:'#No_Complete_TPL'}">未完成人数</th>
</tr>
</thead>
</table>
</div>
<script type="text/html" id="No_Complete_TPL">
<a href="javascript:void(0);" onclick="show_no_complete_list('{{ d.exam_group_maintain_id }}','{{ d.group_name }}');"><div style="width:80px">{{ d.no_complete_count }}</div></a>
@*<a href="/dccdc/PersonList_NoComplete?groupid={{ d.exam_group_maintain_id }}">{{ d.no_complete_count }}<a> *@
</script>
</div>
<script type="text/javascript">
var pdata = {};
// layui方法
layui.use(['table', 'jquery', 'layer'], function () {
// 操作对象
var table = layui.table
, layer = layui.layer
, $ = jQuery = layui.$;
});
function show_no_complete_list(group_id, group_name) {
top.layer.open({
title: "未完成人员列表(" + group_name+"",
type: 2,
area: ['900px', '700px'],
fixed: false, //不固定
maxmin: true,
shadeClose: true,
content: '/dccdc/home/PersonList_NoComplete?groupid=' + group_id
});
}
</script>