文件预览:移除needE参数

This commit is contained in:
mhqpx
2017-12-31 12:09:19 +08:00
committed by klboke
parent eb3d36e5fd
commit 2bbf010912
5 changed files with 16 additions and 13 deletions

View File

@ -69,8 +69,7 @@
fulls += ",resizable"; // 对于不支持screen属性的浏览器可以手工进行最大化。 manually
}
window.open("onlinePreview?url="
+ encodeURIComponent("${baseUrl}" + treeNode.fileName)
+ "&needEncode=1", "_blank",fulls);
+ encodeURIComponent("${baseUrl}" + treeNode.fileName), "_blank",fulls);
}
}
}

View File

@ -125,7 +125,7 @@
// 每个data添加一列用来操作
$(data).each(function (index, item) {
item.action = "<a class='btn btn-default' target='_blank' href='${baseUrl}onlinePreview?url="
+ encodeURIComponent('${baseUrl}' + item.fileName ) +"&needEncode=1'>预览</a>" +
+ encodeURIComponent('${baseUrl}' + item.fileName ) +"'>预览</a>" +
"<a class='btn btn-default' target='_blank' href='javascript:void(0);' onclick='deleteFile(\""+item.fileName+"\")'>删除</a>";
});
return data;