ZhiYeJianKang/职业健康平台后端/target/dzzyb/webpage/modules/assessment/execution/wenti.jsp
2025-02-20 15:25:59 +08:00

85 lines
2.1 KiB
Plaintext

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<html>
<head>
<title>执行任务</title>
<meta name="decorator" content="default"/>
<%-- 引入layui的css--%>
<%-- <link rel="stylesheet" href="${ctxStatic}/layui/css/layui.css">--%>
<link rel="stylesheet" href="${ctxStatic}/layui-v2.4.5/layui/css/layui.css" media="all">
</head>
<style type="text/css">
.xline {
border-bottom: solid 2px #7A378B;
height: 5px;
}
</style>
<body>
<table class="layui-table" id="userTable" lay-filter="orders_list" ></table>
<script src="${ctxStatic}/layui-v2.4.5/layui/layui.js"></script>
<script type="text/javascript">
layui.use(['table', 'layer'], function () {
var table = layui.table;
var layer = layui.layer;
//渲染数据表格
table.render({
elem: '#userTable' //渲染的目标对象
, id: 'testReload'
, title: '用户数据表'//数据导出来的标题
, height: '500'
, cellMinWidth: 200 //设置列的最小默认宽度
, page: true //是否启用分页
, cols: [[ //列表数据
{type:'checkbox'}
, {field: 'description', title: '问题反馈列表'}
]]
})
table.reload('testReload', {
url: '${ctx}/sys/dict/queryAllProblem',
page: {
curr: 1 //重新从第 1 页开始
}
});
table.on('checkbox(orders_list)', function(obj){
console.log(obj)
var checkStatus = table.checkStatus('testReload');
console.log(checkStatus)
console.log(checkStatus.data[0].description)//选中行数据
console.log(checkStatus.data.length)
});
})
function woshi() {
var a= layui.table.checkStatus('userTable').data;
alert("ddddd"+a+"aabb")
}
</script>
</body>
</html>