You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
3.4 KiB
92 lines
3.4 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title></title>
|
|
<script src="js/jquery-2.1.3.min.js"></script>
|
|
<link href="layui/css/layui.css" rel="stylesheet" />
|
|
<script src="layui/layui.js"></script>
|
|
<script src="js/echarts.min.js"></script>
|
|
<style type="text/css">
|
|
html {
|
|
height: 98%;
|
|
}
|
|
|
|
body {
|
|
height: 98%;
|
|
padding-right: 10px;
|
|
}
|
|
|
|
|
|
.divInfo {
|
|
border-radius: 15px;
|
|
width: 90%;
|
|
margin: 0 auto;
|
|
padding: 10px 10px 10px 20px;
|
|
line-height: 50px;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
layui.use(['laydate', 'table','form'], function () {
|
|
var laydate = layui.laydate;
|
|
var table = layui.table;
|
|
var form = layui.form;
|
|
|
|
form.on('switch(switchTest)', function (data) {
|
|
//console.log(data.elem); //得到checkbox原始DOM对象
|
|
//console.log(data.elem.checked); //开关是否开启,true或者false
|
|
if (data.elem.checked) {
|
|
$("#divRemark").hide();
|
|
} else {
|
|
$("#divRemark").show();
|
|
}
|
|
//console.log(data.value); //开关value值,也可以通过data.elem.value得到
|
|
//console.log(data.othis); //得到美化后的DOM对象
|
|
});
|
|
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
<div style="width:500px; height:860px; margin:0 auto; border:1px solid #a4a1a1;">
|
|
<div style="height:80px; background-color:#0062fc; text-align:center;">
|
|
<br />
|
|
<br />
|
|
<h3 style="color:#ffffff;">任务详情</h3>
|
|
</div>
|
|
<div class="divInfo">
|
|
|
|
<form class="layui-form" action="">
|
|
<h2><b>任务标题:</b>待办任务1</h2>
|
|
<h2><b>截止时间:</b>2022-11-15 15:30:00</h2>
|
|
<h2><b>创建时间:</b>2022-11-15 15:30:00</h2>
|
|
<h2><b>任务描述:</b>选拔和培养有能力的基层管理人员</h2>
|
|
<h2><b>任务职责:</b><span style="color:#0062fc;">查看详情</span></h2>
|
|
<h2><b>任务流程:</b><span style="color:#0062fc;">查看详情</span></h2>
|
|
|
|
|
|
<div class="layui-form-item" pane="">
|
|
<label class="layui-form-label" style="width:120px; margin-left:-30px;"><h2><b> 完成情况:</b></h2></label>
|
|
<div class="layui-input-block">
|
|
<input type="checkbox" checked="" name="open" lay-skin="switch" lay-filter="switchTest" lay-text="完成|未完成">
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item layui-form-text" id="divRemark" style="display:none;">
|
|
<label class="layui-form-label" style="width:120px; margin-left:-30px;"><h2><b> 情况说明:</b></h2></label>
|
|
<div class="layui-input-block">
|
|
<textarea placeholder="请输入未完成情况说明" class="layui-textarea"></textarea>
|
|
</div>
|
|
</div>
|
|
<div style="text-align:center;">
|
|
<br />
|
|
<button type="button" class="layui-btn layui-btn-normal" style="width:300px;height:50px; font-size:24px;">确认</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|