<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>填写解决方法</title>
|
[#include "/business/pages/include/static.html" /]
|
[#include "/component/HtmlEditor.html" /]
|
[#include "/component/DatePicker.html" /]
|
<script type="text/javascript">
|
$(document).ready(function() {
|
$.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
|
if(!(window.top.openConfirm("确定要提交吗?"))) {
|
return false;
|
}
|
document.getElementById("myform").target = window.top.openDialog("jiejue","事件升级",
|
{},
|
{"width":60,"height":80,"noclose":true},
|
[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
return true;
|
}});
|
// $("#startDate").formValidator({
|
// empty: false,
|
// onShow: "请选择开始时间",
|
// onFocus: "请选择开始时间"
|
// }).inputValidator({min: 1, onError: "开始时间不能为空"});
|
// $("#endDate").formValidator({
|
// empty: false,
|
// onShow: "请选择结束时间",
|
// onFocus: "请选择结束时间"
|
// }).inputValidator({min: 1, onError: "结束时间不能为空"});
|
$("#resolve").formValidator({onshow:"解决方案不能为空",onFocus:"解决方案不能为空"}).functionValidator({
|
fun:function(val,elem){
|
var text = resolve.isEmpty();
|
if(text) {
|
return "请输入解决方案";
|
}
|
return true;
|
}
|
});
|
$("#suggest").formValidator({onshow:"优化建议不能为空",onFocus:"优化建议不能为空"}).functionValidator({
|
fun:function(val,elem){
|
var text = resolve.isEmpty();
|
if(text) {
|
return "请输入优化建议";
|
}
|
return true;
|
}
|
});
|
|
$("#bz").formValidator({empty: true}).inputValidator({min: 0,max:500, onError: "流转备注不能超过250个汉字!"});
|
/*
|
niceform(":radio[name='solve']").on("click",function() {
|
$(".way").hide();
|
$(this).parent().next(".way").show();
|
|
var $this = $(this).find(":radio");
|
if($this.val()==1) {
|
$("#solveWay").attr("disabled",false).unFormValidator(false);
|
$("#noSolveWay").attr("disabled",true).unFormValidator(true);
|
} else {
|
$("#noSolveWay").attr("disabled",false).unFormValidator(false);
|
$("#solveWay").attr("disabled",true).unFormValidator(true);
|
}
|
|
})*/
|
|
|
|
});
|
|
|
</script>
|
|
</head>
|
|
<body class="end_task_body">
|
<div class="end_task">
|
<form id="myform" action="${base}/business/pages/incident/endTask.html" method="post">
|
<input type="hidden" name="incidentId" value='${RequestParameters.incidentId}'>
|
<table>
|
<tr>
|
<th><label class="required">解决方式:</label></th>
|
<td id="solveWrap" colspan="3">
|
[#if ways?? && ways?size>0]
|
[#list ways as way]
|
<p style="float:left;margin-right:10px;">
|
<input class="ropos" [#if way_index==0]checked[/#if] name="solveWay" type="radio" value="${way.DATAKEY}"/><span>${way.DATAVALUE}</span>
|
</p>
|
[/#list]
|
<input type="hidden" name="solveWayName" id="solveWayName" >
|
[/#if]
|
</tr>
|
<tr><th><label class="required">解决方案:</label></th>
|
<td colspan="3">
|
[@htmleditor id="resolve" simple="true" class="general" height="200px;" width="625px"/]
|
<div id="resolveTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
|
<tr><th><label class="required">优化建议:</label></th>
|
<td colspan="3">
|
[@htmleditor id="suggest" simple="true" class="general" height="200px;" width="625px"/]
|
<div id="suggestTip" style="display:inline-block;"></div>
|
</td></tr>
|
|
<tr><th>流转备注:</th>
|
<td colspan="3">
|
<textarea class="general" style="width:615px;" id="bz" name="bz"></textarea>
|
<div id="bzTip" style="display:inline-block;"></div>
|
</td></tr>
|
|
</table>
|
</form>
|
</div>
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
var solveWayName = $(":radio:checked").next("span").text();
|
$("#solveWayName").val(solveWayName);
|
if(btnID == "tipBtnSure"){
|
// var startDate=$("#startDate").val();
|
// var endDate=$("#endDate").val();
|
// if(startDate==''){
|
// popupTips("请先选择开始时间");
|
// return;
|
// }
|
// if(endDate==''){
|
// popupTips("请先选择结束时间");
|
// return;
|
// }
|
// if(startDate>=endDate){
|
// popupTips("结束时间应大于开始时间");
|
// return;
|
// }
|
$("#myform").submit();
|
}
|
}
|
|
</script>
|
<style>
|
input.general,.onShow{
|
height: 20px;
|
line-height: 20px;
|
}
|
</style>
|
</body>
|
</html>
|