|
@@ -988,6 +988,8 @@
|
|
|
<script type="text/javascript" src="${path}/tc_ttp/common/function.js${resSuffix}"></script>
|
|
|
<script type="text/javascript" src="${path}/common/mCustomScrollbar/js/jquery.mCustomScrollbar.concat.min.js${resSuffix}"></script>
|
|
|
<script type="application/javascript">
|
|
|
+ var tempOpinion = '${tempOpinion}';
|
|
|
+ var tempAttachment = '${tempAttachment}';
|
|
|
$("#gdDiv").mCustomScrollbar({
|
|
|
autoHideScrollbar:true,
|
|
|
axis:"y"
|
|
@@ -1013,6 +1015,21 @@
|
|
|
$(this).hide();
|
|
|
});
|
|
|
}
|
|
|
+ //重写暂存
|
|
|
+ debugger;
|
|
|
+ if(tempOpinion){
|
|
|
+ $("#processForm2").find("#messageDiv2").find("#opinion2:first").val(tempOpinion);
|
|
|
+ showSize();
|
|
|
+ }
|
|
|
+ if(tempAttachment){
|
|
|
+ var attachmentArray = JSON.parse(tempAttachment);
|
|
|
+ var fileDiv = $("#processForm2").find("#messageDiv2").find("div[addFiles=addFiles]:first");
|
|
|
+ for(var i = 0; i < attachmentArray.length; i++){
|
|
|
+ attachmentArray[i].resouceType = 10020001;
|
|
|
+ addFileHtml(attachmentArray[i]);
|
|
|
+ //addFileHtml(attachmentArray[i], fileDiv);
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
window.onload = function () {
|
|
|
var fileLi = $(".mt-fileLi");
|
|
@@ -1887,7 +1904,7 @@
|
|
|
type: "POST",
|
|
|
url: url,
|
|
|
async: true,
|
|
|
- data: {data:data},
|
|
|
+ data: {data:JSON.stringify(data)},
|
|
|
dataType: "JSON",
|
|
|
traditional: true,
|
|
|
success: function (result) {
|
|
@@ -1921,6 +1938,7 @@
|
|
|
var fileResult = result.fileResult;
|
|
|
for(var i = 0; i < fileResult.length; i++) {
|
|
|
var file = fileResult[i];
|
|
|
+ debugger;
|
|
|
addFileHtml(file);
|
|
|
}
|
|
|
}});
|
|
@@ -1929,13 +1947,21 @@
|
|
|
function serialize(obj){
|
|
|
var o ={};
|
|
|
$.each(obj,function(){
|
|
|
- if(o[this.name]){
|
|
|
- if(!o[this.name].push){
|
|
|
- o[this.name]=[o[this.name]];
|
|
|
+ debugger;
|
|
|
+ if("attachment" === this.name){
|
|
|
+ if(!o[this.name]){
|
|
|
+ o[this.name] = [];
|
|
|
}
|
|
|
o[this.name].push(this.value||"");
|
|
|
- }else {
|
|
|
- o[this.name] = this.value || "";
|
|
|
+ }else{
|
|
|
+ if(o[this.name]){
|
|
|
+ if(!o[this.name].push){
|
|
|
+ o[this.name]=[o[this.name]];
|
|
|
+ }
|
|
|
+ o[this.name].push(this.value||"");
|
|
|
+ }else {
|
|
|
+ o[this.name] = this.value || "";
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
return o;
|