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.
168 lines
5.7 KiB
168 lines
5.7 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>添加--添加标记</title>
|
|
<meta name="renderer" content="webkit" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="format-detection" content="telephone=no" />
|
|
|
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
|
|
<meta http-equiv="Pragma" content="no-cache" />
|
|
<meta http-equiv="Expires" content="0" />
|
|
<meta http-equiv="Cache" content="no-cache" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<link rel="stylesheet" href="/layui/css/layui.css" media="all" />
|
|
<link rel="stylesheet" href="/css/public.css" media="all" />
|
|
<link rel="stylesheet" href="/iconfont/iconfont.css" media="all" />
|
|
<link rel="stylesheet" href="/css/bulletframe.css" media="all" />
|
|
<script src="/js/jquery-2.1.3.min.js" type="text/javascript"></script>
|
|
<script src="/js/jquery.cookie.js" type="text/javascript"></script>
|
|
<script type="text/javascript" src="/js/jq_extend.js"></script>
|
|
|
|
|
|
<style>
|
|
|
|
.layui-input-inline {
|
|
width: 360px;
|
|
}
|
|
|
|
.layui-inline {
|
|
line-height: 50px;
|
|
}
|
|
|
|
.driverdisplay {
|
|
display: none;
|
|
}
|
|
|
|
.redflag {
|
|
color: red;
|
|
}
|
|
|
|
.layui-upload-list {
|
|
margin: 10px 40px;
|
|
}
|
|
|
|
.layui-form-checkbox[lay-skin=primary] span {
|
|
color: #fff;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="childrenBody">
|
|
<form class="layui-form" style=" width: 100%;">
|
|
<input class="layui-input ID" type="hidden" />
|
|
<input class="layui-input Action" type="hidden" />
|
|
<input id="during_access_period_hidden" class="layui-input" type="hidden" />
|
|
<br />
|
|
|
|
<div style="width:95%;">
|
|
<div class="layui-form-item layui-row layui-col-xs12">
|
|
<label class="layui-form-label">说明</label>
|
|
<div class="layui-input-block">
|
|
<textarea placeholder="请输入内容" class="layui-textarea" id="ipt_remark" maxlength="80" style="height:40px;"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="clear: both;"></div>
|
|
<div class="layui-center">
|
|
<a class="layui-btn layui-btn-normal" style="margin-top:20px;" id="btn_save">提交</a>
|
|
</div>
|
|
<br />
|
|
</form>
|
|
<script type="text/javascript" src="/layui/layui.js"></script>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
layui.config({
|
|
base: './'
|
|
}).extend({
|
|
selectM: '../../layui/layui_extends/selectM',
|
|
}).use(['form', 'layer', 'table'], function () {
|
|
var form = layui.form,
|
|
layer = parent.layer === undefined ? layui.layer : top.layer,
|
|
$ = layui.jquery;
|
|
|
|
|
|
var userModel = JSON.parse(window.sessionStorage.getItem("userInfo"));
|
|
var OpEid = userModel.EmpId;
|
|
var OrgId = userModel.OrgID;
|
|
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
type: "post",
|
|
url: "/ashx/OaExerciseTaskHandler.ashx",
|
|
data: {
|
|
Action: "GetExerciseTaskByID",
|
|
tid: getUrlParam('tid')
|
|
},
|
|
dataType: "json",
|
|
success: function (result) {
|
|
console.log(result);
|
|
if (result.code == "1") {
|
|
if (result.data.length > 0) {
|
|
var itemObj = result.data[0];
|
|
$("#ipt_remark").val(itemObj.MARK_REMARK);
|
|
$("#spEmp").val(itemObj.MARK_IS_DRILL);
|
|
|
|
form.render('select');
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
$("#btn_save").click(function () {
|
|
// 判断是否输入操作说明
|
|
if ($("#ipt_remark").val().length < 1) {
|
|
layer.open({ title: '信息提示', content: "请输入说明" });
|
|
return;
|
|
}
|
|
//load提交
|
|
var index = layer.msg('数据提交中,请稍候', { icon: 16, time: false, shade: 0.8 });
|
|
|
|
|
|
$.ajax({
|
|
type: "post",
|
|
url: "/ashx/AlarmDataHandler.ashx",
|
|
data: {
|
|
Action: "Cancel",
|
|
id: getUrlParam('tid'),
|
|
MARK_REMARK: $("#ipt_remark").val(),
|
|
},
|
|
dataType: "json",
|
|
success: function (result) {
|
|
//console.log(result);
|
|
//layer.close();
|
|
layer.closeAll();
|
|
parent.layer.closeAll();
|
|
}
|
|
});
|
|
|
|
//layer.close(index);
|
|
//layer.close(indexload);
|
|
return false;
|
|
})
|
|
|
|
|
|
|
|
//获取url中的参数
|
|
function getUrlParam(name) {
|
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
|
|
var r = window.location.search.substr(1).match(reg); //匹配目标参数
|
|
if (r != null) return unescape(r[2]); return ''; //返回参数值
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|