Commit 1f4f1d60 by caojingji

在布控保存界面和伴随任务发送界面添加loadding提示框

parent 351c43fa
...@@ -119,7 +119,10 @@ public class BkServiceImpl implements BkService{ ...@@ -119,7 +119,10 @@ public class BkServiceImpl implements BkService{
resultVO = ResultVOUtil.success(result); resultVO = ResultVOUtil.success(result);
}catch(Exception e){ }catch(Exception e){
e.printStackTrace(); e.printStackTrace();
resultVO = ResultVOUtil.error(ResultEnum.RESULT_ERROR.getCode(),ResultEnum.RESULT_ERROR.getMessage()); result.put("id", "0");
result.put("status", ResultEnum.PARAM_ERROR.getCode());
result.put("message", "数据已存在,不可重复!");
resultVO = ResultVOUtil.success(result);
} }
return resultVO; return resultVO;
......
...@@ -11,4 +11,21 @@ body .datagrid-cell{ ...@@ -11,4 +11,21 @@ body .datagrid-cell{
white-space: inherit; white-space: inherit;
word-wrap: inherit; word-wrap: inherit;
overflow: inherit; overflow: inherit;
} }
\ No newline at end of file /**/
.zdy-loading{
display: none;
position:fixed;
top:50%;
left:50%;
width:120px;
padding-top: 10px;
margin-top:-60px;
margin-left:-60px;
text-align:center;
background: #fff;
border-radius:5px;
border:1px solid #ccc;
}
.zdy-loading i{font-size: 64px;color:#5683e9;}
.send-p{line-height:28px;font-weight: 600;}
\ No newline at end of file
...@@ -20,8 +20,8 @@ li { ...@@ -20,8 +20,8 @@ li {
/*****header*****/ /*****header*****/
#header { #header {
width: 100%; width: 100%;
height: 80px; height: 65px;
line-height: 80px; line-height: 65px;
background: url(../images/banner.jpg); background: url(../images/banner.jpg);
color: #fff; color: #fff;
position: relative; position: relative;
...@@ -75,7 +75,7 @@ li { ...@@ -75,7 +75,7 @@ li {
.h_title3 { .h_title3 {
background: url(../images/skgjpz.png); background: url(../images/skgjpz.png);
} }
.h_title4{background: url(../images/qypzrwlb.png);} .h_title4{background: url(../images/qypzrwlb.png); position: relative;top: -5px;}
.h_title5{background: url(../images/skgjbsrwlb.png);width: 340px;} .h_title5{background: url(../images/skgjbsrwlb.png);width: 340px;}
.color1{color:#ec704c;} .color1{color:#ec704c;}
.datebox-h{width:228px;height:24px;line-height: 24px;} .datebox-h{width:228px;height:24px;line-height: 24px;}
......
...@@ -112,14 +112,18 @@ ...@@ -112,14 +112,18 @@
console.info($('#form1').serializeArray()) console.info($('#form1').serializeArray())
if($('#form1').form('enableValidation').form('validate')){ if($('#form1').form('enableValidation').form('validate')){
$(".zdy-loading").show();
$.ajax({ $.ajax({
method : 'post', method : 'post',
url : 'saveBkxx', url : 'saveBkxx',
dateType:'json', dateType:'json',
data : $('#form1').serializeArray(), data : $('#form1').serializeArray(),
success:function(data){ success:function(data){
$(".zdy-loading").hide();
if(data.data.id!=null){ if(data.data.id!=null){
$.messager.alert({title:'提示',msg:'保存成功'}); $.messager.alert({title:'提示',msg:'保存成功'});
}else if(data.data.id!="0"){
$.messager.alert({title:'提示',msg:'保存失败'});
}else{ }else{
$.messager.alert({title:'提示',msg:'数据已存在,不可重复提交'}); $.messager.alert({title:'提示',msg:'数据已存在,不可重复提交'});
} }
......
...@@ -44,12 +44,14 @@ function submit() { ...@@ -44,12 +44,14 @@ function submit() {
console.info($('#form1').serialize()) console.info($('#form1').serialize())
console.info($('#form1').serializeArray()) console.info($('#form1').serializeArray())
if($('#form1').form('enableValidation').form('validate')){ if($('#form1').form('enableValidation').form('validate')){
$(".zdy-loading").show();
$.ajax({ $.ajax({
method : 'post', method : 'post',
url : 'sendTrackTogetherTask?fsrjh='+fsrjh+"&fsrIdentity="+fsrIdentity+"&taskCaseId="+taskCaseId, url : 'sendTrackTogetherTask?fsrjh='+fsrjh+"&fsrIdentity="+fsrIdentity+"&taskCaseId="+taskCaseId,
dateType:'json', dateType:'json',
data : $('#form1').serializeArray(), data : $('#form1').serializeArray(),
success:function(data){ success:function(data){
$(".zdy-loading").hide();
if(data=="1"){ if(data=="1"){
$.messager.show({title:'提示',msg:'任务发送成功!'}); $.messager.show({title:'提示',msg:'任务发送成功!'});
}else{ }else{
......
...@@ -190,6 +190,7 @@ ...@@ -190,6 +190,7 @@
</div> </div>
</article> </article>
<div class="zdy-loading"><i class="fa fa-spinner fa-pulse fa-fw"></i><p class="send-p">发送中...</p></div>
<script src="/js/jquery.min.js" type="text/javascript"></script> <script src="/js/jquery.min.js" type="text/javascript"></script>
<!--- 代码框--> <!--- 代码框-->
<script type="text/javascript" src="/common/easyui-window/js/jquery.min.js"></script> <script type="text/javascript" src="/common/easyui-window/js/jquery.min.js"></script>
......
...@@ -114,6 +114,7 @@ ...@@ -114,6 +114,7 @@
</div> </div>
</article> </article>
<div class="zdy-loading"><i class="fa fa-spinner fa-pulse fa-fw"></i><p class="send-p">发送中...</p></div>
<script src="/js/jquery.min.js" type="text/javascript"></script> <script src="/js/jquery.min.js" type="text/javascript"></script>
<!--- 代码框--> <!--- 代码框-->
<script type="text/javascript" src="/common/easyui-window/js/jquery.min.js"></script> <script type="text/javascript" src="/common/easyui-window/js/jquery.min.js"></script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment