Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
f939048e
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看板
提交
f939048e
编写于
4月 27, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
userToken整改
上级
df4368fe
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
48 addition
and
56 deletion
+48
-56
common/src/main/resources/template/js/sysenclosure/enclosureupload.js
...ain/resources/template/js/sysenclosure/enclosureupload.js
+2
-3
disk-cloud/src/main/resources/template/js/commonFile/fileConsoleListCommon.js
...resources/template/js/commonFile/fileConsoleListCommon.js
+4
-4
disk-cloud/src/main/resources/template/js/fileconsole/fileconsolelist.js
...main/resources/template/js/fileconsole/fileconsolelist.js
+4
-5
disk-cloud/src/main/resources/template/js/fileconsole/fileconsoleupload.js
...in/resources/template/js/fileconsole/fileconsoleupload.js
+1
-2
disk-cloud/src/main/resources/template/js/fileconsole/filefolderupload.js
...ain/resources/template/js/fileconsole/filefolderupload.js
+1
-2
disk-cloud/src/main/resources/template/js/shareFile/shareFileList.js
...src/main/resources/template/js/shareFile/shareFileList.js
+10
-14
forum/src/main/resources/template/js/forumshow/forumitem.js
forum/src/main/resources/template/js/forumshow/forumitem.js
+9
-5
knowlg/src/main/resources/template/js/knowledgecontent/filefolderupload.js
...esources/template/js/knowledgecontent/filefolderupload.js
+1
-2
note/src/main/resources/template/js/note/shareNote.js
note/src/main/resources/template/js/note/shareNote.js
+10
-12
web/src/main/resources/template/assets/lib/layui/lay/modules/dtree/dtree.js
...rces/template/assets/lib/layui/lay/modules/dtree/dtree.js
+1
-1
web/src/main/resources/template/assets/lib/layui/lay/modules/treetable/treeGrid.js
...mplate/assets/lib/layui/lay/modules/treetable/treeGrid.js
+1
-1
web/src/main/resources/template/assets/lib/winui/js/winui.window.js
...in/resources/template/assets/lib/winui/js/winui.window.js
+1
-1
web/src/main/resources/template/js/common/enclosureupload.js
web/src/main/resources/template/js/common/enclosureupload.js
+1
-2
web/src/main/resources/template/js/index/index.js
web/src/main/resources/template/js/index/index.js
+2
-2
未找到文件。
common/src/main/resources/template/js/sysenclosure/enclosureupload.js
浏览文件 @
f939048e
...
...
@@ -134,7 +134,7 @@ function loadUploadMethod(){
}});
}
});
// 实例化
uploader
=
WebUploader
.
create
({
pick
:
{
...
...
@@ -142,7 +142,6 @@ function loadUploadMethod(){
label
:
'
选择文件
'
},
formData
:
{
userToken
:
getCookie
(
'
userToken
'
),
loginPCIp
:
returnCitySN
[
"
cip
"
],
folderId
:
folderId
},
...
...
@@ -209,7 +208,7 @@ function loadUploadMethod(){
});
uploader
.
on
(
'
uploadBeforeSend
'
,
function
(
block
,
data
,
headers
)
{
headers
[
'
X-Requested-With
'
]
=
'
XMLHttpRequest
'
;
data
.
userToken
=
getCookie
(
'
userToken
'
);
$
.
extend
(
headers
,
getRequestHeaders
()
);
data
.
loginPCIp
=
returnCitySN
[
"
cip
"
];
data
.
folderId
=
folderId
;
data
.
md5
=
md5
;
...
...
disk-cloud/src/main/resources/template/js/commonFile/fileConsoleListCommon.js
浏览文件 @
f939048e
...
...
@@ -81,10 +81,10 @@ function createHtmlFile(folderId, callBack){
}
// 创建文件夹
function
createFolder
(
folderId
,
refreshCallBack
,
initDragCallBack
){
function
createFolder
(
folderId
,
refreshCallBack
,
initDragCallBack
,
currentUserId
){
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
fileconsole002
"
,
params
:
{
parentId
:
folderId
,
catalogName
:
'
新建文件夹
'
},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
initNewFolder
(
json
.
bean
.
id
,
json
.
bean
.
catalogName
,
json
.
bean
.
logoPath
,
true
);
initNewFolder
(
json
.
bean
.
id
,
json
.
bean
.
catalogName
,
json
.
bean
.
logoPath
,
true
,
currentUserId
);
// 刷新节点
if
(
typeof
(
refreshCallBack
)
==
"
function
"
)
{
refreshCallBack
();
...
...
@@ -100,7 +100,7 @@ function createFolder(folderId, refreshCallBack, initDragCallBack){
}
// 加载新建的文件夹
function
initNewFolder
(
id
,
folderName
,
icon
,
isEdit
){
function
initNewFolder
(
id
,
folderName
,
icon
,
isEdit
,
currentUserId
){
$
(
"
#file-content
"
).
find
(
"
div[class='filename-edit']
"
).
hide
();
$
(
"
#file-content
"
).
find
(
"
div[class='filename']
"
).
show
();
var
json
=
{
...
...
@@ -109,7 +109,7 @@ function initNewFolder(id, folderName, icon, isEdit){
name
:
folderName
,
icon
:
icon
,
isShow
:
'
none
'
,
createId
:
getCookie
(
'
userToken
'
)
createId
:
currentUserId
}
};
var
html
=
getDataUseHandlebars
(
folderTemplate
,
json
);
...
...
disk-cloud/src/main/resources/template/js/fileconsole/fileconsolelist.js
浏览文件 @
f939048e
...
...
@@ -746,14 +746,14 @@ layui.config({
// 新建文件夹
$
(
"
body
"
).
on
(
"
click
"
,
"
#createNewFolder
"
,
function
(
e
){
hideRMenu
();
createFolder
(
folderId
,
refreshTreePointNode
,
initMenuToBox
);
createFolder
(
folderId
,
refreshTreePointNode
,
initMenuToBox
,
currentUserId
);
});
// 树操作--新建文件夹
$
(
"
body
"
).
on
(
"
click
"
,
"
.treecreateNewFolder
"
,
function
(
e
){
hideRMenu
();
loadThisFolderChild
();
createFolder
(
folderId
,
refreshTreePointNode
,
initMenuToBox
);
createFolder
(
folderId
,
refreshTreePointNode
,
initMenuToBox
,
currentUserId
);
});
// 树操作--刷新
...
...
@@ -1464,7 +1464,7 @@ layui.config({
text
:
"
新建文件夹
"
,
img
:
"
../../assets/images/create-folder-icon.png
"
,
callback
:
function
()
{
createFolder
(
folderId
,
refreshTreePointNode
,
initMenuToBox
);
createFolder
(
folderId
,
refreshTreePointNode
,
initMenuToBox
,
currentUserId
);
}
},
{
// 菜单项
text
:
"
新建文件
"
,
...
...
@@ -1792,7 +1792,6 @@ layui.config({
// 实例化
uploader
=
WebUploader
.
create
({
formData
:
{
userToken
:
getCookie
(
'
userToken
'
),
loginPCIp
:
returnCitySN
[
"
cip
"
],
folderId
:
folderId
},
...
...
@@ -1858,7 +1857,7 @@ layui.config({
});
uploader
.
on
(
'
uploadBeforeSend
'
,
function
(
block
,
data
,
headers
)
{
headers
[
'
X-Requested-With
'
]
=
'
XMLHttpRequest
'
;
data
.
userToken
=
getCookie
(
'
userToken
'
);
$
.
extend
(
headers
,
getRequestHeaders
()
);
data
.
loginPCIp
=
returnCitySN
[
"
cip
"
];
data
.
folderId
=
folderId
;
data
.
md5
=
md5
;
...
...
disk-cloud/src/main/resources/template/js/fileconsole/fileconsoleupload.js
浏览文件 @
f939048e
...
...
@@ -133,7 +133,6 @@ function loadUploadMethod(){
label
:
'
选择文件
'
},
formData
:
{
userToken
:
getCookie
(
'
userToken
'
),
loginPCIp
:
returnCitySN
[
"
cip
"
],
folderId
:
parent
.
folderId
},
...
...
@@ -200,7 +199,7 @@ function loadUploadMethod(){
});
uploader
.
on
(
'
uploadBeforeSend
'
,
function
(
block
,
data
,
headers
)
{
headers
[
'
X-Requested-With
'
]
=
'
XMLHttpRequest
'
;
data
.
userToken
=
getCookie
(
'
userToken
'
);
$
.
extend
(
headers
,
getRequestHeaders
()
);
data
.
loginPCIp
=
returnCitySN
[
"
cip
"
];
data
.
folderId
=
parent
.
folderId
;
data
.
md5
=
md5
;
...
...
disk-cloud/src/main/resources/template/js/fileconsole/filefolderupload.js
浏览文件 @
f939048e
...
...
@@ -134,7 +134,6 @@ function loadUploadMethod(){
webkitdirectory
:
true
},
formData
:
{
userToken
:
getCookie
(
'
userToken
'
),
loginPCIp
:
returnCitySN
[
"
cip
"
],
folderId
:
parent
.
folderId
},
...
...
@@ -201,7 +200,7 @@ function loadUploadMethod(){
});
uploader
.
on
(
'
uploadBeforeSend
'
,
function
(
block
,
data
,
headers
)
{
headers
[
'
X-Requested-With
'
]
=
'
XMLHttpRequest
'
;
data
.
userToken
=
getCookie
(
'
userToken
'
);
$
.
extend
(
headers
,
getRequestHeaders
()
);
data
.
loginPCIp
=
returnCitySN
[
"
cip
"
];
data
.
folderId
=
parent
.
folderId
;
data
.
md5
=
md5
;
...
...
disk-cloud/src/main/resources/template/js/shareFile/shareFileList.js
浏览文件 @
f939048e
...
...
@@ -58,21 +58,17 @@ layui.config({
//加载用户信息
function
loadUserMation
(){
if
(
!
isNull
(
getCookie
(
'
userToken
'
))){
// 获取当前登录员工信息
systemCommonUtil
.
getSysCurrentLoginUserMation
(
function
(
data
){
var
str
=
'
<img alt="
'
+
data
.
bean
.
userName
+
'
" src="
'
+
fileBasePath
+
data
.
bean
.
userPhoto
+
'
"/>
'
+
'
<font>
'
+
data
.
bean
.
userName
+
'
</font>
'
+
'
<font id="consoleDesk">控制台</font>
'
+
'
<font id="exitBtn">退出</font>
'
;
$
(
"
#operatorBtn
"
).
html
(
str
);
$
(
"
#file-operator
"
).
html
(
'
<button class="layui-btn layui-btn-primary" id="saveBtn"><language showName="com.skyeye.save"></language></button>
'
);
},
function
(){
$
(
"
#operatorBtn
"
).
html
(
'
<font id="loginBtn">登陆</font>
'
);
});
}
else
{
// 获取当前登录员工信息
systemCommonUtil
.
getSysCurrentLoginUserMation
(
function
(
data
){
var
str
=
'
<img alt="
'
+
data
.
bean
.
userName
+
'
" src="
'
+
fileBasePath
+
data
.
bean
.
userPhoto
+
'
"/>
'
+
'
<font>
'
+
data
.
bean
.
userName
+
'
</font>
'
+
'
<font id="consoleDesk">控制台</font>
'
+
'
<font id="exitBtn">退出</font>
'
;
$
(
"
#operatorBtn
"
).
html
(
str
);
$
(
"
#file-operator
"
).
html
(
'
<button class="layui-btn layui-btn-primary" id="saveBtn"><language showName="com.skyeye.save"></language></button>
'
);
},
function
(){
$
(
"
#operatorBtn
"
).
html
(
'
<font id="loginBtn">登陆</font>
'
);
}
}
);
loadFileMation
();
}
...
...
forum/src/main/resources/template/js/forumshow/forumitem.js
浏览文件 @
f939048e
...
...
@@ -9,10 +9,8 @@ layui.config({
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
;
var
commentTemplate
=
$
(
'
#commentTemplate
'
).
html
();
var
replyTemplate
=
$
(
'
#replyTemplate
'
).
html
();
var
textareaTemplate
=
$
(
'
#textareaTemplate
'
).
html
();
...
...
@@ -23,12 +21,18 @@ layui.config({
$
(
"
body
"
).
append
(
getFileContent
(
"
tpl/forumshow/commonmenu.tpl
"
));
rowId
=
GetUrlParam
(
"
id
"
);
var
userToken
=
getCookie
(
'
userToken
'
);
var
currentUserId
=
""
;
// 获取当前登录员工信息
systemCommonUtil
.
getSysCurrentLoginUserMation
(
function
(
data
){
currentUserId
=
data
.
bean
.
id
;
});
//帖子信息展示
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
forumcontent006
"
,
params
:
{
rowId
:
rowId
},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
if
(
json
.
bean
.
createId
!=
userToken
){
//如果不是用户自己的帖子,则显示举报按钮
if
(
json
.
bean
.
createId
!=
currentUserId
){
// 如果不是用户自己的帖子,则显示举报按钮
$
(
"
#forumReport
"
).
removeClass
(
"
layui-hide
"
);
}
$
(
"
#content
"
).
html
(
json
.
bean
.
content
);
...
...
knowlg/src/main/resources/template/js/knowledgecontent/filefolderupload.js
浏览文件 @
f939048e
...
...
@@ -133,7 +133,6 @@ function loadUploadMethod(){
label
:
'
选择文件
'
,
},
formData
:
{
userToken
:
getCookie
(
'
userToken
'
),
loginPCIp
:
returnCitySN
[
"
cip
"
],
},
dnd
:
'
#uploader .queueList
'
,
...
...
@@ -204,7 +203,7 @@ function loadUploadMethod(){
});
uploader
.
on
(
'
uploadBeforeSend
'
,
function
(
block
,
data
,
headers
)
{
headers
[
'
X-Requested-With
'
]
=
'
XMLHttpRequest
'
;
data
.
userToken
=
getCookie
(
'
userToken
'
);
$
.
extend
(
headers
,
getRequestHeaders
()
);
data
.
loginPCIp
=
returnCitySN
[
"
cip
"
];
data
.
md5
=
md5
;
data
.
chunk
=
block
.
chunk
;
...
...
note/src/main/resources/template/js/note/shareNote.js
浏览文件 @
f939048e
...
...
@@ -20,19 +20,17 @@ layui.config({
loadUserMation
();
function
loadUserMation
(){
if
(
!
isNull
(
getCookie
(
'
userToken
'
))){
// 获取当前登录员工信息
systemCommonUtil
.
getSysCurrentLoginUserMation
(
function
(
data
){
var
str
=
'
<img alt="
'
+
data
.
bean
.
userName
+
'
" src="
'
+
fileBasePath
+
data
.
bean
.
userPhoto
+
'
"/>
'
+
'
<font>
'
+
data
.
bean
.
userName
+
'
</font>
'
+
'
<font id="consoleDesk">控制台</font>
'
+
'
<font id="exitBtn">退出</font>
'
;
$
(
"
#operatorBtn
"
).
html
(
str
);
loadNote
();
});
}
else
{
// 获取当前登录员工信息
systemCommonUtil
.
getSysCurrentLoginUserMation
(
function
(
data
){
var
str
=
'
<img alt="
'
+
data
.
bean
.
userName
+
'
" src="
'
+
fileBasePath
+
data
.
bean
.
userPhoto
+
'
"/>
'
+
'
<font>
'
+
data
.
bean
.
userName
+
'
</font>
'
+
'
<font id="consoleDesk">控制台</font>
'
+
'
<font id="exitBtn">退出</font>
'
;
$
(
"
#operatorBtn
"
).
html
(
str
);
loadNote
();
},
function
(){
location
.
href
=
"
../../tpl/index/login.html?url=
"
+
escape
(
"
../../tpl/note/shareNote.html?id=
"
+
rowId
);
}
}
);
}
function
loadNote
(){
...
...
web/src/main/resources/template/assets/lib/layui/lay/modules/dtree/dtree.js
浏览文件 @
f939048e
...
...
@@ -141,8 +141,8 @@ layui.define(['jquery','layer','element','form'], function(exports) {
request
:
function
(
config
)
{
var
data
=
config
.
data
?
config
.
data
:
{};
var
async
=
(
typeof
(
config
.
async
)
===
"
boolean
"
)
?
config
.
async
:
true
;
data
.
userToken
=
getCookie
(
'
userToken
'
);
data
.
loginPCIp
=
returnCitySN
[
"
cip
"
];
$
.
extend
(
config
.
headers
,
getRequestHeaders
());
$
.
ajax
({
type
:
config
.
type
?
config
.
type
:
"
POST
"
,
headers
:
config
.
headers
,
...
...
web/src/main/resources/template/assets/lib/layui/lay/modules/treetable/treeGrid.js
浏览文件 @
f939048e
...
...
@@ -1486,12 +1486,12 @@ layui.config({}).extend({}).define(['laytpl', 'laypage', 'layer', 'form'], funct
params
[
request
.
limitName
]
=
options
.
limit
;
that
.
filterRulesSet
(
params
);
//行内过滤条件
that
.
sortSet
(
params
);
//排序条件
options
.
where
.
userToken
=
getCookie
(
'
userToken
'
);
options
.
where
.
loginPCIp
=
returnCitySN
[
"
cip
"
];
$
.
ajax
({
type
:
options
.
method
||
'
get
'
,
url
:
options
.
url
,
data
:
$
.
extend
(
params
,
options
.
where
),
headers
:
getRequestHeaders
(),
dataType
:
'
json
'
,
success
:
function
(
res
)
{
//移除请求遮罩层
...
...
web/src/main/resources/template/assets/lib/winui/js/winui.window.js
浏览文件 @
f939048e
...
...
@@ -640,7 +640,7 @@ layui.define(['layer', 'winui'], function (exports) {
id
:
'
winui-sys-notice
'
,
type
:
2
,
title
:
title
,
content
:
'
../../tpl/mymessage/myNoticeList.html
?userToken=
'
+
getCookie
(
"
userToken
"
)
,
content
:
'
../../tpl/mymessage/myNoticeList.html
'
,
loadBottomMenuIcon
:
loadBottomMenuIcon
,
iconTitle
:
iconTitle
});
...
...
web/src/main/resources/template/js/common/enclosureupload.js
浏览文件 @
f939048e
...
...
@@ -261,7 +261,6 @@ function loadUploadMethod(){
label
:
'
选择文件
'
},
formData
:
{
userToken
:
getCookie
(
'
userToken
'
),
loginPCIp
:
returnCitySN
[
"
cip
"
],
folderId
:
folderId
},
...
...
@@ -328,7 +327,7 @@ function loadUploadMethod(){
});
uploader
.
on
(
'
uploadBeforeSend
'
,
function
(
block
,
data
,
headers
)
{
headers
[
'
X-Requested-With
'
]
=
'
XMLHttpRequest
'
;
data
.
userToken
=
getCookie
(
'
userToken
'
);
$
.
extend
(
headers
,
getRequestHeaders
()
);
data
.
loginPCIp
=
returnCitySN
[
"
cip
"
];
data
.
folderId
=
folderId
;
data
.
md5
=
md5
;
...
...
web/src/main/resources/template/js/index/index.js
浏览文件 @
f939048e
...
...
@@ -546,11 +546,11 @@ layui.config({
title
:
'
天眼
'
,
init
:
{
url
:
reqBasePath
+
"
companychat001
"
,
data
:
{
userToken
:
getCookie
(
'
userToken
'
),
loginPCIp
:
returnCitySN
[
"
cip
"
]}
data
:
{
loginPCIp
:
returnCitySN
[
"
cip
"
]}
},
//好友接口
members
:
{
url
:
reqBasePath
+
'
companytalkgroup007
'
,
data
:
{
userToken
:
getCookie
(
'
userToken
'
),
loginPCIp
:
returnCitySN
[
"
cip
"
]}
data
:
{
loginPCIp
:
returnCitySN
[
"
cip
"
]}
},
//群员借口
uploadImage
:
{
url
:
reqBasePath
+
"
common003?type=9
"
,
//(返回的数据格式见下文)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录