Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
f40e9672
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1172
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
f40e9672
编写于
2月 17, 2024
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 文件管理第二版
上级
b3351daa
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
89 addition
and
76 deletion
+89
-76
disk-cloud/src/main/resources/template/js/fileconsole/fileconsolelist.js
...main/resources/template/js/fileconsole/fileconsolelist.js
+50
-44
disk-cloud/src/main/resources/template/js/fileconsole/fileconsoleupload.js
...in/resources/template/js/fileconsole/fileconsoleupload.js
+3
-3
disk-cloud/src/main/resources/template/js/fileconsole/filefolderupload.js
...ain/resources/template/js/fileconsole/filefolderupload.js
+3
-3
disk-cloud/src/main/resources/template/js/fileconsole/recycleBinList.js
.../main/resources/template/js/fileconsole/recycleBinList.js
+28
-21
disk-cloud/src/main/resources/template/js/shareFile/shareFileList.js
...src/main/resources/template/js/shareFile/shareFileList.js
+4
-4
disk-cloud/src/main/resources/template/tpl/fileconsole/recycleBinList.html
...in/resources/template/tpl/fileconsole/recycleBinList.html
+1
-1
未找到文件。
disk-cloud/src/main/resources/template/js/fileconsole/fileconsolelist.js
浏览文件 @
f40e9672
...
...
@@ -277,23 +277,22 @@ layui.config({
// 加载目录下的文件
loadThisFolderChild
();
}
else
if
(
$
.
inArray
(
fileType
,
vedioType
)
>=
0
){
//视频
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole009
"
,
params
:
{
rowId
:
$
(
this
).
attr
(
"
rowid
"
)},
type
:
'
json
'
,
callback
:
function
(
json
)
{
fileUrl
=
json
.
bean
.
fileA
ddress
;
fileThumbnail
=
json
.
bean
.
fileT
humbnail
;
getFileMation
(
$
(
this
).
attr
(
"
rowid
"
),
function
(
file
)
{
fileUrl
=
file
.
a
ddress
;
fileThumbnail
=
file
.
t
humbnail
;
_openNewWindows
({
url
:
"
../../tpl/fileconsole/vedioshow.html
"
,
title
:
json
.
bean
.
fileN
ame
,
title
:
file
.
n
ame
,
pageId
:
"
vedioShow
"
,
area
:
[
'
80vw
'
,
'
80vh
'
],
callBack
:
function
(
refreshCode
)
{}});
}
});
});
}
else
if
(
$
.
inArray
(
fileType
,
officeType
)
>=
0
){
//office文件
var
thisId
=
$
(
this
).
attr
(
"
rowid
"
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole009
"
,
params
:
{
rowId
:
thisId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
fileUrl
=
json
.
bean
.
fileAddress
;
selFileType
=
json
.
bean
.
fileType
;
window
.
open
(
sysMainMation
.
homePagePath
+
"
/tpl/fileconsole/officeshow.html?fileUrl=
"
+
fileUrl
+
"
&selFileType=
"
+
selFileType
+
"
&title=
"
+
json
.
bean
.
fileName
+
"
&thisId=
"
+
thisId
);
}});
getFileMation
(
$
(
this
).
attr
(
"
rowid
"
),
function
(
file
)
{
fileUrl
=
file
.
address
;
selFileType
=
file
.
type
;
window
.
open
(
sysMainMation
.
homePagePath
+
"
/tpl/fileconsole/officeshow.html?fileUrl=
"
+
fileUrl
+
"
&selFileType=
"
+
selFileType
+
"
&title=
"
+
file
.
name
+
"
&thisId=
"
+
file
.
id
);
});
}
else
if
(
$
.
inArray
(
fileType
,
aceType
)
>=
0
){
//ace文件
var
thisId
=
$
(
this
).
attr
(
"
rowid
"
);
_openNewWindows
({
...
...
@@ -303,30 +302,38 @@ layui.config({
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{}});
}
else
if
(
$
.
inArray
(
fileType
,
epubType
)
>=
0
){
//电子书
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole009
"
,
params
:
{
rowId
:
$
(
this
).
attr
(
"
rowid
"
)},
type
:
'
json
'
,
callback
:
function
(
json
)
{
fileUrl
=
json
.
bean
.
fileA
ddress
;
fileThumbnail
=
json
.
bean
.
fileT
humbnail
;
getFileMation
(
$
(
this
).
attr
(
"
rowid
"
),
function
(
file
)
{
fileUrl
=
file
.
a
ddress
;
fileThumbnail
=
file
.
t
humbnail
;
_openNewWindows
({
url
:
"
../../tpl/fileconsole/epubShow.html
"
,
title
:
json
.
bean
.
fileN
ame
,
title
:
file
.
n
ame
,
pageId
:
"
epubShow
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{}});
}
});
});
}
else
if
(
$
.
inArray
(
fileType
,
packageType
)
>=
0
){
//压缩包
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole009
"
,
params
:
{
rowId
:
$
(
this
).
attr
(
"
rowid
"
)},
type
:
'
json
'
,
callback
:
function
(
json
)
{
fileUrl
=
json
.
bean
.
fileA
ddress
;
fileThumbnail
=
json
.
bean
.
fileT
humbnail
;
getFileMation
(
$
(
this
).
attr
(
"
rowid
"
),
function
(
file
)
{
fileUrl
=
file
.
a
ddress
;
fileThumbnail
=
file
.
t
humbnail
;
_openNewWindows
({
url
:
"
../../tpl/fileconsole/zipShow.html
"
,
title
:
'
<img src="../../assets/images/rar.png" class="fly-img"/>
'
+
json
.
bean
.
fileN
ame
,
title
:
'
<img src="../../assets/images/rar.png" class="fly-img"/>
'
+
file
.
n
ame
,
pageId
:
"
epubShow
"
,
area
:
[
'
630px
'
,
'
450px
'
],
skin
:
"
zip-show
"
,
callBack
:
function
(
refreshCode
)
{}});
}
});
});
}
});
function
getFileMation
(
id
,
callback
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
queryFileConsoleById
"
,
params
:
{
id
:
id
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
if
(
typeof
callback
==
"
function
"
)
{
callback
(
json
.
bean
)
}
}});
}
// 文件夹或者文件重命名
$
(
"
body
"
).
on
(
"
click
"
,
"
.fileReName
"
,
function
(
e
)
{
...
...
@@ -386,7 +393,7 @@ layui.config({
$
.
each
(
checkItems
,
function
(
i
,
item
)
{
var
checkFile
=
$
(
item
).
parent
().
parent
().
parent
();
deleteArray
.
push
({
rowI
d
:
checkFile
.
attr
(
"
rowid
"
),
i
d
:
checkFile
.
attr
(
"
rowid
"
),
fileType
:
checkFile
.
attr
(
"
filetype
"
)
});
});
...
...
@@ -421,7 +428,7 @@ layui.config({
$
(
"
.layui-dropdown-menu
"
).
hide
();
$
(
"
.select-op-more
"
).
hide
();
var
fileType
=
$
(
"
#file-content div[rowid='
"
+
operaterId
+
"
']
"
).
attr
(
"
filetype
"
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole013
"
,
params
:
{
rowId
:
operaterId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
insertFileCatalogToRecycle
"
,
params
:
{
fileId
:
operaterId
},
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
已放入回收站
"
,
{
icon
:
1
,
time
:
2000
});
$
(
"
#file-content div[rowid='
"
+
operaterId
+
"
']
"
).
remove
();
// 如果删除的对象是文件夹
...
...
@@ -510,21 +517,20 @@ layui.config({
// 通过onlyoffice打开office文件
$
(
"
body
"
).
on
(
"
click
"
,
"
.openByOnlyOffice
"
,
function
(
e
)
{
var
thisId
=
operaterId
;
$
(
"
.layui-dropdown-menu
"
).
hide
();
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole009
"
,
params
:
{
rowId
:
thisId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
fileUrl
=
json
.
bean
.
fileA
ddress
;
selFileType
=
json
.
bean
.
fileT
ype
;
window
.
open
(
sysMainMation
.
homePagePath
+
"
/tpl/fileconsole/officeshow.html?fileUrl=
"
+
fileUrl
+
"
&selFileType=
"
+
selFileType
+
"
&title=
"
+
json
.
bean
.
fileName
+
"
&thisId=
"
+
thisI
d
);
}
}
);
getFileMation
(
operaterId
,
function
(
file
)
{
fileUrl
=
file
.
a
ddress
;
selFileType
=
file
.
t
ype
;
window
.
open
(
sysMainMation
.
homePagePath
+
"
/tpl/fileconsole/officeshow.html?fileUrl=
"
+
fileUrl
+
"
&selFileType=
"
+
selFileType
+
"
&title=
"
+
file
.
name
+
"
&thisId=
"
+
file
.
i
d
);
});
});
// 通过微软office打开office文件
$
(
"
body
"
).
on
(
"
click
"
,
"
.openByMicrosoftOffice
"
,
function
(
e
)
{
$
(
"
.layui-dropdown-menu
"
).
hide
();
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole009
"
,
params
:
{
rowId
:
operaterId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
window
.
open
(
'
https://view.officeapps.live.com/op/view.aspx?src=http://gzwp.free.idcfengye.com/
'
+
json
.
bean
.
fileA
ddress
);
}
});
getFileMation
(
operaterId
,
function
(
file
)
{
window
.
open
(
'
https://view.officeapps.live.com/op/view.aspx?src=http://gzwp.free.idcfengye.com/
'
+
file
.
a
ddress
);
}
)
});
// 文件或者文件夹下载
...
...
@@ -571,14 +577,14 @@ layui.config({
}
}});
}
else
{
//不包含文件夹
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole009
"
,
params
:
{
rowId
:
operaterId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
if
(
$
.
inArray
(
json
.
bean
.
fileT
ype
,
imageType
)
>=
0
){
//图片
downloadImage
(
fileBasePath
+
json
.
bean
.
fileAddress
,
json
.
bean
.
fileN
ame
);
//
不包含文件夹
getFileMation
(
operaterId
,
function
(
file
)
{
if
(
$
.
inArray
(
file
.
t
ype
,
imageType
)
>=
0
){
//图片
downloadImage
(
fileBasePath
+
file
.
address
,
file
.
n
ame
);
}
else
{
download
(
json
.
bean
.
fileAddress
,
json
.
bean
.
fileN
ame
);
download
(
file
.
address
,
file
.
n
ame
);
}
}
});
}
)
}
});
...
...
@@ -713,7 +719,7 @@ layui.config({
layer
.
confirm
(
"
确定将该文件夹及其子文件放入回收站吗?
"
,
{
icon
:
3
,
title
:
'
回收站
'
},
function
(
index
)
{
layer
.
close
(
index
);
var
fileType
=
'
folder
'
;
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole013
"
,
params
:
{
rowId
:
folderId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
insertFileCatalogToRecycle
"
,
params
:
{
fileId
:
folderId
},
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
已放入回收站
"
,
{
icon
:
1
,
time
:
2000
});
$
(
"
#file-content div[rowid='
"
+
folderId
+
"
']
"
).
remove
();
var
selNode
=
ztree
.
getNodeByParam
(
"
id
"
,
folderId
,
null
);
...
...
@@ -737,7 +743,7 @@ layui.config({
layer
.
close
(
index
);
var
deleteArray
=
new
Array
();
deleteArray
.
push
({
rowI
d
:
folderId
,
i
d
:
folderId
,
fileType
:
'
folder
'
});
deleteFolderAndChild
(
deleteArray
,
function
()
{
...
...
@@ -1232,7 +1238,7 @@ layui.config({
//加载总文件大小
function
loadFileSizeById
(){
loadFileSizeCS
=
true
;
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole012
"
,
params
:
{},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
queryAllFileSizeByUserId
"
,
params
:
{},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
$
(
"
.memory-num
"
).
html
(
json
.
bean
.
size
);
},
async
:
false
});
}
...
...
@@ -1683,7 +1689,7 @@ layui.config({
//当前分块大小
"
chunkSize
"
:
block
.
end
-
block
.
start
};
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole008
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
queryUploadFileChunksByChunkMd5
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
//分块存在,跳过
deferred
.
reject
();
},
errorCallback
:
function
(
json
)
{
...
...
@@ -1697,7 +1703,7 @@ layui.config({
//时间点3:所有分块上传成功后调用此函数
afterSendFile
:
function
(
data
)
{
//如果分块上传成功,则通知后台合并分块
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole007
"
,
params
:
{
md5
:
md5
,
folderId
:
folderId
,
name
:
data
.
name
,
size
:
data
.
size
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
insertUploadFileChunks
"
,
params
:
{
md5
:
md5
,
folderId
:
folderId
,
name
:
data
.
name
,
size
:
data
.
size
},
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
}});
}
});
...
...
@@ -1719,7 +1725,7 @@ layui.config({
fileSizeLimit
:
2000
*
1024
*
1024
,
//最大2GB
fileSingleSizeLimit
:
2000
*
1024
*
1024
,
resize
:
false
,
//不压缩
server
:
sysMainMation
.
diskCloudBasePath
+
'
fileconsole006
'
,
server
:
sysMainMation
.
diskCloudBasePath
+
'
insertUploadFile
'
,
fileNumLimit
:
300
});
// 添加“添加文件”的按钮,
...
...
disk-cloud/src/main/resources/template/js/fileconsole/fileconsoleupload.js
浏览文件 @
f40e9672
...
...
@@ -101,7 +101,7 @@ function loadUploadMethod(){
//当前分块大小
"
chunkSize
"
:
block
.
end
-
block
.
start
};
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole008
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
queryUploadFileChunksByChunkMd5
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
//分块存在,跳过
deferred
.
reject
();
},
errorCallback
:
function
(
json
)
{
...
...
@@ -115,7 +115,7 @@ function loadUploadMethod(){
//时间点3:所有分块上传成功后调用此函数
afterSendFile
:
function
(
data
)
{
//如果分块上传成功,则通知后台合并分块
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole007
"
,
params
:
{
md5
:
md5
,
folderId
:
parent
.
folderId
,
name
:
data
.
name
,
size
:
data
.
size
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
insertUploadFileChunks
"
,
params
:
{
md5
:
md5
,
folderId
:
parent
.
folderId
,
name
:
data
.
name
,
size
:
data
.
size
},
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
}});
}
});
...
...
@@ -141,7 +141,7 @@ function loadUploadMethod(){
fileSizeLimit
:
2000
*
1024
*
1024
,
//最大2GB
fileSingleSizeLimit
:
2000
*
1024
*
1024
,
resize
:
false
,
//不压缩
server
:
sysMainMation
.
diskCloudBasePath
+
'
fileconsole006
'
,
server
:
sysMainMation
.
diskCloudBasePath
+
'
insertUploadFile
'
,
fileNumLimit
:
300
,
});
// 添加“添加文件”的按钮,
...
...
disk-cloud/src/main/resources/template/js/fileconsole/filefolderupload.js
浏览文件 @
f40e9672
...
...
@@ -101,7 +101,7 @@ function loadUploadMethod(){
//当前分块大小
"
chunkSize
"
:
block
.
end
-
block
.
start
};
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole008
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
queryUploadFileChunksByChunkMd5
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
//分块存在,跳过
deferred
.
reject
();
},
errorCallback
:
function
(
json
)
{
...
...
@@ -115,7 +115,7 @@ function loadUploadMethod(){
//时间点3:所有分块上传成功后调用此函数
afterSendFile
:
function
(
data
)
{
//如果分块上传成功,则通知后台合并分块
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole007
"
,
params
:
{
md5
:
md5
,
folderId
:
parent
.
folderId
,
name
:
data
.
name
,
size
:
data
.
size
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
insertUploadFileChunks
"
,
params
:
{
md5
:
md5
,
folderId
:
parent
.
folderId
,
name
:
data
.
name
,
size
:
data
.
size
},
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
}});
}
});
...
...
@@ -142,7 +142,7 @@ function loadUploadMethod(){
fileSizeLimit
:
2000
*
1024
*
1024
,
//最大2GB
fileSingleSizeLimit
:
2000
*
1024
*
1024
,
resize
:
false
,
//不压缩
server
:
sysMainMation
.
diskCloudBasePath
+
'
fileconsole006
'
,
server
:
sysMainMation
.
diskCloudBasePath
+
'
insertUploadFile
'
,
fileNumLimit
:
300
,
});
// 添加“添加文件”的按钮,
...
...
disk-cloud/src/main/resources/template/js/fileconsole/recycleBinList.js
浏览文件 @
f40e9672
...
...
@@ -4,10 +4,10 @@ layui.config({
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
;
table
.
render
({
...
...
@@ -15,20 +15,23 @@ layui.config({
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
sysMainMation
.
diskCloudBasePath
+
'
fileconsole014
'
,
where
:
{}
,
where
:
getTableParams
()
,
even
:
true
,
page
:
true
,
limits
:
[
8
,
16
,
24
,
32
,
40
,
48
,
56
]
,
limit
:
8
,
limits
:
getLimits
()
,
limit
:
getLimit
()
,
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
recyc
leName
'
,
title
:
'
文件名
'
,
width
:
150
},
{
field
:
'
fileType
'
,
title
:
'
文件类型
'
,
width
:
120
},
{
field
:
'
fi
leName
'
,
title
:
'
文件名
'
,
width
:
150
},
{
field
:
'
fileType
Name
'
,
title
:
'
文件类型
'
,
width
:
120
},
{
field
:
'
createTime
'
,
title
:
'
删除时间
'
,
width
:
180
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
120
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
res
.
searchFilter
,
form
,
"
请输入文件/文件夹名称
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
...
...
@@ -36,31 +39,35 @@ layui.config({
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
reduction
'
)
{
//还原
reduction
(
data
,
obj
);
reduction
(
data
);
}
});
//还原
function
reduction
(
data
,
obj
){
var
msg
=
'
确认还原
'
+
obj
.
data
.
fileType
+
'
【
'
+
obj
.
data
.
recyc
leName
+
'
】吗?
'
;
//
还原
function
reduction
(
data
){
var
msg
=
'
确认还原
'
+
data
.
fileTypeName
+
'
【
'
+
data
.
fi
leName
+
'
】吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
还原文件
'
},
function
(
index
)
{
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole015
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
deleteFileRecycleBinById
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
'
DELETE
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
还原成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
//刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:{}});
}
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
recycleBinListPage
'
,
{});
});
disk-cloud/src/main/resources/template/js/shareFile/shareFileList.js
浏览文件 @
f40e9672
...
...
@@ -123,11 +123,11 @@ layui.config({
if
(
fileType
===
'
folder
'
){
//文件夹
winui
.
window
.
msg
(
'
暂不提供文件夹的下载。
'
,
{
icon
:
2
,
time
:
2000
});
}
else
{
//文件
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
fileconsole009
"
,
params
:
{
rowId
:
operaterId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
if
(
$
.
inArray
(
json
.
bean
.
fileT
ype
,
imageType
)
>=
0
){
//图片
downloadImage
(
fileBasePath
+
json
.
bean
.
fileAddress
,
json
.
bean
.
fileN
ame
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
diskCloudBasePath
+
"
queryFileConsoleById
"
,
params
:
{
id
:
operaterId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
if
(
$
.
inArray
(
json
.
bean
.
t
ype
,
imageType
)
>=
0
){
//图片
downloadImage
(
fileBasePath
+
json
.
bean
.
address
,
json
.
bean
.
n
ame
);
}
else
{
download
(
fileBasePath
+
json
.
bean
.
fileAddress
,
json
.
bean
.
fileN
ame
);
download
(
fileBasePath
+
json
.
bean
.
address
,
json
.
bean
.
n
ame
);
}
}});
}
...
...
disk-cloud/src/main/resources/template/tpl/fileconsole/recycleBinList.html
浏览文件 @
f40e9672
...
...
@@ -9,7 +9,7 @@
<body>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"reloadTable"
class=
"winui-toolbtn
search-table-btn-right
"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录