<!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/webupload.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("1","操作",
|
{},
|
{"width":40,"height":40,"noclose":true},
|
[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
|
|
return true;
|
}});
|
|
$("#reason").formValidator({onshow:"问题根本原因不能为空",onFocus:"问题根本原因不能为空"}).functionValidator({
|
fun:function(val,elem){
|
var text = reason.isEmpty();
|
if(text) {
|
return "请输入问题根本原因";
|
}
|
return true;
|
}
|
});
|
|
$("#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 = suggest.isEmpty();
|
if(text) {
|
return "请输入优化建议";
|
}
|
return true;
|
}
|
});
|
|
|
});
|
|
|
</script>
|
|
</head>
|
|
<body class="end_task_body">
|
<div class="end_task">
|
<form id="myform" action="/business/pages/question/questionZdReport.html" method="post">
|
<input type="hidden" name="flowId" value='${RequestParameters.flowId}'>
|
<input type="hidden" name="id" value='${zdMsg.ID}'>
|
<input type="hidden" name="type" value='${type}'>
|
<table>
|
|
<tr><td><label class="required">问题根本原因:</label></td>
|
</tr>
|
|
<tr><td style="border-bottom:0px;">
|
[@htmleditor id="reason" simple="true" class="general" height="200px;" value="${zdMsg.REASON}"/]
|
<div id="reasonTip" style="display:inline-block;"></div>
|
</td></tr>
|
|
<tr><td><label class="required">解决方案:</label></td>
|
</tr>
|
|
<tr><td style="border-bottom:0px;">
|
[@htmleditor id="resolve" simple="true" class="general" height="200px;" value="${zdMsg.RESOLVE}"/]
|
<div id="resolveTip" style="display:inline-block;"></div>
|
</td></tr>
|
|
<tr><td><label class="required">优化建议:</label></td>
|
</tr>
|
|
<tr><td style="border-bottom:0px;">
|
[@htmleditor id="suggest" simple="true" class="general" height="200px;" value="${zdMsg.SUGGEST}"/]
|
<div id="suggestTip" style="display:inline-block;"></div>
|
</td></tr>
|
</table>
|
<div class="edit_txt">
|
<div class="edit_btn clearfix">
|
<div class="upload_file" style="position:relative">
|
[@webupload id="files" multiple="true" extensions="*" fileList=fileList /]
|
</div>
|
</div>
|
</div>
|
</form>
|
</div>
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
var solveWayName = $(":radio:checked").parent().next("span").text();
|
$("#solveWayName").val(solveWayName);
|
if(btnID == "btnSure"){
|
$("#myform").submit();
|
}
|
}
|
</script>
|
|
</body>
|
</html>
|