|
@@ -40,8 +40,8 @@ function ftlUploadWithSts(storeAs, file,attachmentId,attachmentFlag,uploadPath,d
|
|
fileName = fileName.replace(/—/g,"-")
|
|
fileName = fileName.replace(/—/g,"-")
|
|
var dfl=new File([file],fileName,{type:file.type});
|
|
var dfl=new File([file],fileName,{type:file.type});
|
|
file = dfl
|
|
file = dfl
|
|
- console.log(file.name.indexOf("—")!=-1);
|
|
|
|
- console.log("-----------------------start");
|
|
|
|
|
|
+ /*console.log(file.name.indexOf("—")!=-1);
|
|
|
|
+ console.log("-----------------------start");*/
|
|
ftlMultitest(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size, cpt);
|
|
ftlMultitest(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size, cpt);
|
|
};
|
|
};
|
|
|
|
|
|
@@ -52,8 +52,8 @@ function multipartUploadWithSts(storeAs, file,attachmentId,attachmentFlag,upload
|
|
fileName = fileName.replace(/—/g,"-")
|
|
fileName = fileName.replace(/—/g,"-")
|
|
var dfl=new File([file],fileName,{type:file.type});
|
|
var dfl=new File([file],fileName,{type:file.type});
|
|
file = dfl
|
|
file = dfl
|
|
- console.log(file.name.indexOf("—")!=-1);
|
|
|
|
- console.log("-----------------------start");
|
|
|
|
|
|
+ /*console.log(file.name.indexOf("—")!=-1);
|
|
|
|
+ console.log("-----------------------start");*/
|
|
if(cpt == 1)
|
|
if(cpt == 1)
|
|
multitestFlag(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size, cpt,"",prefix);
|
|
multitestFlag(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size, cpt,"",prefix);
|
|
else
|
|
else
|
|
@@ -66,8 +66,8 @@ function multipartUploadWithSts(storeAs, file,attachmentId,attachmentFlag,upload
|
|
fileName = fileName.replace(/—/g,"-")
|
|
fileName = fileName.replace(/—/g,"-")
|
|
var dfl=new File([file],fileName,{type:file.type});
|
|
var dfl=new File([file],fileName,{type:file.type});
|
|
file = dfl
|
|
file = dfl
|
|
- console.log(file.name.indexOf("—")!=-1);
|
|
|
|
- console.log("-----------------------start");
|
|
|
|
|
|
+ /*console.log(file.name.indexOf("—")!=-1);
|
|
|
|
+ console.log("-----------------------start");*/
|
|
if(cpt == 1)
|
|
if(cpt == 1)
|
|
multitestFlag(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size, cpt,idx,prefix,currentUser);
|
|
multitestFlag(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size, cpt,idx,prefix,currentUser);
|
|
else
|
|
else
|
|
@@ -81,8 +81,8 @@ function fBmultipartUploadWithSts(storeAs, file,attachmentId,attachmentFlag,uplo
|
|
fileName = fileName.replace(/—/g,"-")
|
|
fileName = fileName.replace(/—/g,"-")
|
|
var dfl=new File([file],fileName,{type:file.type});
|
|
var dfl=new File([file],fileName,{type:file.type});
|
|
file = dfl
|
|
file = dfl
|
|
- console.log(file.name.indexOf("—")!=-1);
|
|
|
|
- console.log("-----------------------start");
|
|
|
|
|
|
+ /*console.log(file.name.indexOf("—")!=-1);
|
|
|
|
+ console.log("-----------------------start");*/
|
|
if(cpt == 1)
|
|
if(cpt == 1)
|
|
fBmultitestFlag(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size, cpt,idx,prefix,currentUser);
|
|
fBmultitestFlag(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size, cpt,idx,prefix,currentUser);
|
|
else
|
|
else
|
|
@@ -135,7 +135,7 @@ function ftlMultitest (storeAs, file,attachmentId,attachmentFlag,uploadPath,divI
|
|
},
|
|
},
|
|
success:function(data){
|
|
success:function(data){
|
|
var lowerType = data.type.toLowerCase();
|
|
var lowerType = data.type.toLowerCase();
|
|
- console.log('url : ' + data.url);
|
|
|
|
|
|
+ //console.log('url : ' + data.url);
|
|
if(data.status=="Success"){
|
|
if(data.status=="Success"){
|
|
parent.layer.msg("上传成功!",{icon:1});
|
|
parent.layer.msg("上传成功!",{icon:1});
|
|
var lenght =$(".trIdAdds").length;
|
|
var lenght =$(".trIdAdds").length;
|
|
@@ -191,8 +191,8 @@ function ftlMultitest (storeAs, file,attachmentId,attachmentFlag,uploadPath,divI
|
|
'</div>' +
|
|
'</div>' +
|
|
'</td>'+
|
|
'</td>'+
|
|
'</tr>';
|
|
'</tr>';
|
|
- console.log("file:"+divId);
|
|
|
|
- console.log("str="+str);
|
|
|
|
|
|
+ /*console.log("file:"+divId);
|
|
|
|
+ console.log("str="+str);*/
|
|
$("#file"+divId).append(str);
|
|
$("#file"+divId).append(str);
|
|
}else {
|
|
}else {
|
|
parent.layer.msg("上传失败!",{icon:2});
|
|
parent.layer.msg("上传失败!",{icon:2});
|
|
@@ -242,7 +242,7 @@ function fBmultitestFlag (storeAs, file,attachmentId,attachmentFlag,uploadPath,d
|
|
},
|
|
},
|
|
success:function(data){
|
|
success:function(data){
|
|
var lowerType = data.type.toLowerCase();
|
|
var lowerType = data.type.toLowerCase();
|
|
- console.log('url : ' + data.url);
|
|
|
|
|
|
+ //console.log('url : ' + data.url);
|
|
if(data.status=="Success"){
|
|
if(data.status=="Success"){
|
|
parent.layer.msg("上传成功!",{icon:1});
|
|
parent.layer.msg("上传成功!",{icon:1});
|
|
var str = '' ;
|
|
var str = '' ;
|
|
@@ -332,7 +332,7 @@ function multitestFlag (storeAs, file,attachmentId,attachmentFlag,uploadPath,div
|
|
},
|
|
},
|
|
success:function(data){
|
|
success:function(data){
|
|
var lowerType = data.type.toLowerCase();
|
|
var lowerType = data.type.toLowerCase();
|
|
- console.log('url : ' + data.url);
|
|
|
|
|
|
+ //console.log('url : ' + data.url);
|
|
if(data.status=="Success"){
|
|
if(data.status=="Success"){
|
|
parent.layer.msg("上传成功!",{icon:1});
|
|
parent.layer.msg("上传成功!",{icon:1});
|
|
var str = '' ;
|
|
var str = '' ;
|
|
@@ -436,7 +436,7 @@ function multitest (storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,
|
|
success:function(data){
|
|
success:function(data){
|
|
var lowerType = data.type.toLowerCase();
|
|
var lowerType = data.type.toLowerCase();
|
|
// console.log('ajax requst : ' + data.status);
|
|
// console.log('ajax requst : ' + data.status);
|
|
- console.log('url : ' + data.url);
|
|
|
|
|
|
+ //console.log('url : ' + data.url);
|
|
if(data.status=="Success"){
|
|
if(data.status=="Success"){
|
|
parent.layer.msg("上传成功!",{icon:1});
|
|
parent.layer.msg("上传成功!",{icon:1});
|
|
var lenght =$(".trIdAdds").length;
|
|
var lenght =$(".trIdAdds").length;
|
|
@@ -493,8 +493,8 @@ function multitest (storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,
|
|
'</div>' +
|
|
'</div>' +
|
|
'</td>'+
|
|
'</td>'+
|
|
'</tr>';
|
|
'</tr>';
|
|
- console.log("file:"+divId);
|
|
|
|
- console.log("str="+str);
|
|
|
|
|
|
+ /*console.log("file:"+divId);
|
|
|
|
+ console.log("str="+str);*/
|
|
$("#file"+divId).append(str);
|
|
$("#file"+divId).append(str);
|
|
$("#flagFile").val(true);
|
|
$("#flagFile").val(true);
|
|
}else {
|
|
}else {
|
|
@@ -612,16 +612,16 @@ function isContains(str, substr) {
|
|
}
|
|
}
|
|
|
|
|
|
function deleteFileFromAliyun(obj,deleteUrl,addFile,divId){
|
|
function deleteFileFromAliyun(obj,deleteUrl,addFile,divId){
|
|
- console.log("---------------------------------:");
|
|
|
|
|
|
+ /*console.log("---------------------------------:");
|
|
console.log(divId);
|
|
console.log(divId);
|
|
- console.log("---------------------------------");
|
|
|
|
|
|
+ console.log("---------------------------------");*/
|
|
if (divId==null || divId== undefined || divId == ''){
|
|
if (divId==null || divId== undefined || divId == ''){
|
|
divId = "_attachment";
|
|
divId = "_attachment";
|
|
}
|
|
}
|
|
var fileDiv = divId.substr(1,divId.length)+"_file";
|
|
var fileDiv = divId.substr(1,divId.length)+"_file";
|
|
- console.log("---------------------------------:");
|
|
|
|
|
|
+ /*console.log("---------------------------------:");
|
|
console.log(fileDiv);
|
|
console.log(fileDiv);
|
|
- console.log("---------------------------------");
|
|
|
|
|
|
+ console.log("---------------------------------");*/
|
|
$("#"+fileDiv).val("");
|
|
$("#"+fileDiv).val("");
|
|
$.ajax({
|
|
$.ajax({
|
|
type:"post",
|
|
type:"post",
|