调整压缩包 获取路径方法
调整压缩包 获取路径方法 Signed-off-by: 高雄 <admin@cxcp.com>
This commit is contained in:
parent
7dcd225cea
commit
e79c53156b
|
@ -49,17 +49,15 @@
|
||||||
onClick: chooseNode,
|
onClick: chooseNode,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function chooseNode(event, treeId, treeNode) {
|
function chooseNode(event, treeId, treeNode) {
|
||||||
if (!treeNode.isParent) {
|
if (!treeNode.isParent) {
|
||||||
var path = '${baseUrl}' + treeNode.id + "?kkCompressfileKey=" + '${fileTree}';
|
var path = '${baseUrl}' + treeNode.id + "?kkCompressfileKey=" + '${fileTree}'+"&kkCompressfilepath=" + treeNode.id+"&fullfilename="+treeNode.name;
|
||||||
location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path));
|
location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
var url = '${fileTree}';
|
var url = '${fileTree}';
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "${baseUrl}directory?urls="+encodeURIComponent(Base64.encode(url)),
|
url: "${baseUrl}directory?urls="+encodeURIComponent(Base64.encode(url)),
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
|
Loading…
Reference in New Issue