Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
ad283b5f
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1283
Star
158
Fork
129
代码
文件
提交
分支
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看板
提交
ad283b5f
编写于
4月 26, 2022
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
解决编辑器上传的问题
上级
d89ac33c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
3 deletion
+13
-3
disk-cloud/src/main/resources/template/js/fileconsole/fileconsolelist.js
...main/resources/template/js/fileconsole/fileconsolelist.js
+7
-1
web/src/main/resources/template/assets/lib/layui/customer/ueEditorUtil.js
...ources/template/assets/lib/layui/customer/ueEditorUtil.js
+2
-2
web/src/main/resources/template/assets/lib/layui/lay/modules/ueditor/dialogs/image/image.js
...sets/lib/layui/lay/modules/ueditor/dialogs/image/image.js
+1
-0
web/src/main/resources/template/assets/lib/layui/lay/modules/ueditor/ueditor.all.js
...plate/assets/lib/layui/lay/modules/ueditor/ueditor.all.js
+3
-0
未找到文件。
disk-cloud/src/main/resources/template/js/fileconsole/fileconsolelist.js
浏览文件 @
ad283b5f
...
...
@@ -30,6 +30,12 @@ layui.config({
colorpicker
=
layui
.
colorpicker
,
device
=
layui
.
device
();
var
currentUserId
=
""
;
// 获取当前登录员工信息
systemCommonUtil
.
getSysCurrentLoginUserMation
(
function
(
data
){
currentUserId
=
data
.
bean
.
id
;
});
//遮罩层显示
$
(
"
.fileconsole-mask
"
).
show
();
matchingLanguage
();
...
...
@@ -1427,7 +1433,7 @@ layui.config({
//文件权限控制
function
authControllerFile
(
createId
){
//如果当前登陆人是文件创建人,可以删除,回收站,重命名,剪切,否则不能
if
(
getCookie
(
'
userToken
'
)
===
createId
){
if
(
currentUserId
===
createId
){
$
(
"
.fileReName
"
).
show
();
//重命名显示
$
(
"
.deleteFolderAndChild
"
).
show
();
//删除显示
$
(
"
.cutUrl
"
).
show
();
//剪切显示
...
...
web/src/main/resources/template/assets/lib/layui/customer/ueEditorUtil.js
浏览文件 @
ad283b5f
...
...
@@ -12,9 +12,9 @@ var ueEditorUtil = {
UE
.
Editor
.
prototype
.
_bkGetActionUrl
=
UE
.
Editor
.
prototype
.
getActionUrl
;
UE
.
Editor
.
prototype
.
getActionUrl
=
function
(
action
){
if
(
action
==
'
uploadimage
'
||
action
==
'
uploadfile
'
||
action
==
'
uploadvideo
'
||
action
==
'
uploadimage
'
){
//上传单个图片,上传附件,上传视频,多图上传
return
reqBasePath
+
'
/upload/editUploadController/uploadContentPic
?userToken=
'
+
getCookie
(
'
userToken
'
)
;
return
reqBasePath
+
'
/upload/editUploadController/uploadContentPic
'
;
}
else
if
(
action
==
'
listimage
'
){
return
reqBasePath
+
'
/upload/editUploadController/downloadContentPic
?userToken=
'
+
getCookie
(
'
userToken
'
)
;
return
reqBasePath
+
'
/upload/editUploadController/downloadContentPic
'
;
}
else
{
return
this
.
_bkGetActionUrl
.
call
(
this
,
action
);
}
...
...
web/src/main/resources/template/assets/lib/layui/lay/modules/ueditor/dialogs/image/image.js
浏览文件 @
ad283b5f
...
...
@@ -704,6 +704,7 @@
uploader
.
on
(
'
uploadBeforeSend
'
,
function
(
file
,
data
,
header
)
{
//这里可以通过data对象添加POST参数
header
[
'
X_Requested_With
'
]
=
'
XMLHttpRequest
'
;
$
.
extend
(
header
,
getRequestHeaders
());
});
uploader
.
on
(
'
uploadProgress
'
,
function
(
file
,
percentage
)
{
...
...
web/src/main/resources/template/assets/lib/layui/lay/modules/ueditor/ueditor.all.js
浏览文件 @
ad283b5f
...
...
@@ -8240,6 +8240,7 @@ UE.ajax = function() {
}
}
};
xhr.setRequestHeader('userToken', getCookie('userToken'));
if (method == "POST") {
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.send(submitStr);
...
...
@@ -23841,6 +23842,7 @@ UE.plugin.register('autoupload', function (){
fd.append('type', 'ajax');
xhr.open("post", url, true);
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xhr.setRequestHeader('userToken', getCookie('userToken'));
xhr.addEventListener('load', function (e) {
try{
var json = (new Function("return " + utils.trim(e.target.response)))();
...
...
@@ -24626,6 +24628,7 @@ UE.plugin.register('simpleupload', function (){
type: 'POST',
cache: false,
data: formData,
headers: getRequestHeaders(),
processData: false,
contentType: false,
success: function (data) {
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录