|
@@ -255,9 +255,9 @@
|
|
|
inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
inputForm.attr("action","${ctx}/collectAccessory/collectAccessory/saveGeCollectAccessory");//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
var $document = iframeWin.contentWindow.document;
|
|
|
- iframeWin.contentWindow.formSubmit2($document,formId,index,tableId);
|
|
|
- top.layer.close(index)
|
|
|
- location.reload();
|
|
|
+ var s=iframeWin.contentWindow.formSubmit2($document,formId,index,tableId);
|
|
|
+ top.layer.close(index);
|
|
|
+ setTimeout(function(){location.reload();},500);
|
|
|
},
|
|
|
cancel: function(index){
|
|
|
},
|
|
@@ -427,17 +427,17 @@
|
|
|
,{field:'classification',align:'center', title: '收藏分类', width:150}
|
|
|
,{field:'fileName',align:'center', title: '附件名称',minWidth:200,templet:function(d){
|
|
|
if(2 == d.uploadMode){
|
|
|
- if(d.fileName.indexOf('jpg') != -1 || d.fileName.indexOf('png') != -1 || d.fileName.indexOf('gif') != -1 || d.fileName.indexOf('bmp') != -1 || d.fileName.indexOf('jpeg') != -1){
|
|
|
+ if(d.fileName.toLowerCase().indexOf('jpg') != -1 || d.fileName.toLowerCase().indexOf('png') != -1 || d.fileName.toLowerCase().indexOf('gif') != -1 || d.fileName.toLowerCase().indexOf('bmp') != -1 || d.fileName.toLowerCase().indexOf('jpeg') != -1){
|
|
|
return "<img src="+d.temporaryUrl+" width='50' height='50' onclick=\"openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=" + d.temporaryUrl +"','90%','90%')\" alt='"+d.fileName+"'>";
|
|
|
- }else if(d.fileName.indexOf('pdf') != -1){
|
|
|
+ }else if(d.fileName.toLowerCase().indexOf('pdf') != -1){
|
|
|
return "<a class=\"attention-info\" title=\"" + d.fileName + "\" href=\"javascript:void(0);\" onclick=\"openPreview('" + d.temporaryUrl +"',1)\">" + d.fileName + "</a>";
|
|
|
}else{
|
|
|
return "<a class=\"attention-info\" title=\"" + d.fileName + "\" href=\"javascript:void(0);\" onclick=\"openPreview('" + d.temporaryUrl +"',2)\">" + d.fileName + "</a>";
|
|
|
}
|
|
|
}else{
|
|
|
- if(d.fileName.indexOf('jpg') != -1 || d.fileName.indexOf('png') != -1 || d.fileName.indexOf('gif') != -1 || d.fileName.indexOf('bmp') != -1 || d.fileName.indexOf('jpeg') != -1){
|
|
|
+ if(d.fileName.toLowerCase().indexOf('jpg') != -1 || d.fileName.toLowerCase().indexOf('png') != -1 || d.fileName.toLowerCase().indexOf('gif') != -1 || d.fileName.toLowerCase().indexOf('bmp') != -1 || d.fileName.toLowerCase().indexOf('jpeg') != -1){
|
|
|
return "<img src="+d.url+" width='50' height='50' onclick=\"openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=" + d.url +"','90%','90%')\" alt='"+d.fileName+"'>";
|
|
|
- }else if(d.fileName.indexOf('pdf') != -1){
|
|
|
+ }else if(d.fileName.toLowerCase().indexOf('pdf') != -1){
|
|
|
return "<a class=\"attention-info\" title=\"" + d.fileName + "\" href=\"javascript:void(0);\" onclick=\"openPreview('" + d.url +"',1)\">" + d.fileName + "</a>";
|
|
|
}else{
|
|
|
return "<a class=\"attention-info\" title=\"" + d.fileName + "\" href=\"javascript:void(0);\" onclick=\"openPreview('" + d.url +"',2)\">" + d.fileName + "</a>";
|