Kaynağa Gözat

1、移除debugger;2、批示留言撤回功能,报错信息提示出来

wanyuan 9 ay önce
ebeveyn
işleme
04de4610af

+ 5 - 1
tip-front/src/main/webapp/tc_suite/taskmt/js/task.js

@@ -1679,7 +1679,11 @@ task.process.withdraw = function(event) {
 					}
 				});
 			}else{
-				$.error("撤回失败!");
+				if (result.message) {
+					$.error(result.message);
+				} else {
+					$.error("撤回失败!");
+				}
 			}
 		}
 	});

+ 0 - 4
tip-front/src/main/webapp/tc_suite/taskmt/taskMessageList.jsp

@@ -1016,7 +1016,6 @@
             });
         }
         //重写暂存
-        debugger;
         if(tempOpinion){
             $("#processForm2").find("#messageDiv2").find("#opinion2:first").val(tempOpinion);
             showSize();
@@ -1899,7 +1898,6 @@
             var array = $("#processForm2").serializeArray();
             var data = serialize(array);
             var url = '${path}/task/${taskId}/bbs/?m=tempSaveTaskProcess';
-            debugger;
             $.ajax({
                 type: "POST",
                 url: url,
@@ -1938,7 +1936,6 @@
                 var fileResult = result.fileResult;
                 for(var i = 0; i < fileResult.length; i++) {
                     var file = fileResult[i];
-                    debugger;
                     addFileHtml(file);
                 }
             }});
@@ -1947,7 +1944,6 @@
     function serialize(obj){
         var o ={};
         $.each(obj,function(){
-            debugger;
             if("attachment" === this.name){
                 if(!o[this.name]){
                     o[this.name] = [];