Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
f28de6d5
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1441
Star
162
Fork
130
代码
文件
提交
分支
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看板
提交
f28de6d5
编写于
8月 01, 2022
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【笔记】笔记模块拆分
上级
c56b812b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
19 addition
and
19 deletion
+19
-19
note/src/main/resources/template/js/index/myNote.js
note/src/main/resources/template/js/index/myNote.js
+12
-12
note/src/main/resources/template/js/note/noteEdit.js
note/src/main/resources/template/js/note/noteEdit.js
+1
-1
note/src/main/resources/template/js/note/noteEditLuckysheet.js
...src/main/resources/template/js/note/noteEditLuckysheet.js
+1
-1
note/src/main/resources/template/js/note/noteEditMarkDown.js
note/src/main/resources/template/js/note/noteEditMarkDown.js
+1
-1
note/src/main/resources/template/js/note/noteFileTree.js
note/src/main/resources/template/js/note/noteFileTree.js
+3
-3
note/src/main/resources/template/js/note/shareNote.js
note/src/main/resources/template/js/note/shareNote.js
+1
-1
未找到文件。
note/src/main/resources/template/js/index/myNote.js
浏览文件 @
f28de6d5
...
...
@@ -36,7 +36,7 @@ layui.config({
var
ztree
=
null
;
fsTree
.
render
({
id
:
"
treeDemo
"
,
url
:
req
BasePath
+
"
mynote001
"
,
url
:
sysMainMation
.
note
BasePath
+
"
mynote001
"
,
checkEnable
:
false
,
dragEnable
:
true
,
loadEnable
:
true
,
//异步加载
...
...
@@ -168,7 +168,7 @@ layui.config({
//编辑节点名称
function
onRename
(
event
,
treeId
,
treeNode
)
{
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote004
"
,
params
:
{
catalogName
:
treeNode
.
name
,
fileType
:
'
folder
'
,
rowId
:
treeNode
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote004
"
,
params
:
{
catalogName
:
treeNode
.
name
,
fileType
:
'
folder
'
,
rowId
:
treeNode
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
保存成功
"
,
{
icon
:
1
,
time
:
2000
});
folderId
=
treeNode
.
id
;
showListById
();
//获取文件夹和笔记列表
...
...
@@ -206,7 +206,7 @@ layui.config({
}
arrId
[
i
]
=
treeNodes
[
i
].
id
;
}
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote010
"
,
params
:
{
targetId
:
targetId
,
arrId
:
arrId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote010
"
,
params
:
{
targetId
:
targetId
,
arrId
:
arrId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
保存成功
"
,
{
icon
:
1
,
time
:
2000
});
noteId
=
""
;
folderId
=
targetId
;
...
...
@@ -337,7 +337,7 @@ layui.config({
text
:
"
输出为PDF
"
,
img
:
"
../../assets/images/decompression-now.png
"
,
callback
:
function
()
{
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote014
"
,
params
:
{
rowId
:
clickId
,
type
:
"
2
"
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote014
"
,
params
:
{
rowId
:
clickId
,
type
:
"
2
"
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
layer
.
alert
(
'
笔记输出为PDF任务已创建,请前往 <a href="../../tpl/jobSpace/jobSpace.html" style="color: blue;" target="_blank">我的输出</a> 查看。
'
);
}});
}
...
...
@@ -365,7 +365,7 @@ layui.config({
var
nowhtml
=
"
<span>
"
+
value
+
"
</span>
"
;
obj
.
find
(
"
div[class='folder-item-title-content']
"
).
html
(
nowhtml
);
if
(
html
!=
value
){
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote004
"
,
params
:
{
catalogName
:
value
,
fileType
:
clickType
,
rowId
:
clickId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote004
"
,
params
:
{
catalogName
:
value
,
fileType
:
clickType
,
rowId
:
clickId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
保存成功
"
,
{
icon
:
1
,
time
:
2000
});
if
(
clickType
==
"
folder
"
){
//刷新节点
...
...
@@ -457,7 +457,7 @@ layui.config({
folderId
=
"
2
"
;
}
hideRMenu
();
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote002
"
,
params
:
{
parentId
:
folderId
,
catalogName
:
'
新建文件夹
'
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote002
"
,
params
:
{
parentId
:
folderId
,
catalogName
:
'
新建文件夹
'
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
//刷新节点
refreshTreePointNode
();
folderId
=
json
.
bean
.
id
;
...
...
@@ -512,7 +512,7 @@ layui.config({
// 树操作--输出压缩包
$
(
"
body
"
).
on
(
"
click
"
,
"
.treereOutPutZIPContent
"
,
function
(
e
)
{
hideRMenu
();
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote014
"
,
params
:
{
rowId
:
folderId
,
type
:
"
1
"
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote014
"
,
params
:
{
rowId
:
folderId
,
type
:
"
1
"
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
layer
.
alert
(
'
笔记输出压缩包任务已创建,请前往 <a href="../../tpl/jobSpace/jobSpace.html" style="color: #0000ff;" target="_blank">我的输出</a> 查看。
'
);
}});
});
...
...
@@ -551,7 +551,7 @@ layui.config({
}
var
content
=
childframe
.
window
.
getContent
();
//调用子页面方法获取编辑器内容
var
desc
=
childframe
.
window
.
getNoHtmlContent
();
//调用子页面方法获取编辑器纯文本内容
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote009
"
,
params
:
{
rowId
:
noteId
,
title
:
tilte
,
content
:
content
,
desc
:
encodeURIComponent
(
desc
)},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote009
"
,
params
:
{
rowId
:
noteId
,
title
:
tilte
,
content
:
content
,
desc
:
encodeURIComponent
(
desc
)},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
保存成功
"
,
{
icon
:
1
,
time
:
2000
});
var
obj
=
$
(
"
#folderChildList
"
).
find
(
"
.folder-item[id='
"
+
noteId
+
"
']
"
);
obj
.
find
(
"
div[class='folder-item-title-content']
"
).
find
(
"
span
"
).
html
(
tilte
);
...
...
@@ -593,7 +593,7 @@ layui.config({
thisfolderId
=
folderId
;
}
hideRMenu
();
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote007
"
,
params
:
{
parentId
:
thisfolderId
,
title
:
title
,
type
:
type
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote007
"
,
params
:
{
parentId
:
thisfolderId
,
title
:
title
,
type
:
type
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
noteId
=
json
.
bean
.
id
;
showListById
();
// 获取文件夹和笔记列表
}});
...
...
@@ -601,7 +601,7 @@ layui.config({
// 删除指定文件夹或笔记
function
deleteFileOrNote
(
id
){
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote003
"
,
params
:{
rowId
:
id
,
fileType
:
clickType
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote003
"
,
params
:{
rowId
:
id
,
fileType
:
clickType
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
if
(
clickType
==
"
folder
"
){
var
selNode
=
ztree
.
getNodeByParam
(
"
id
"
,
id
,
null
);
...
...
@@ -623,7 +623,7 @@ layui.config({
scrollElem
:
"
#folderChildList
"
,
done
:
function
(
page
,
next
)
{
//到达临界点(默认滚动触发),触发下一页
var
lis
=
[];
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote005
"
,
params
:{
page
:
page
,
limit
:
15
,
search
:
searchTitle
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote005
"
,
params
:{
page
:
page
,
limit
:
15
,
search
:
searchTitle
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
lis
.
push
(
getDataUseHandlebars
(
folderchildlisetTemplate
,
json
));
next
(
lis
.
join
(
''
),
(
page
*
15
)
<
json
.
total
);
initRightMenu
();
...
...
@@ -639,7 +639,7 @@ layui.config({
isNewNote
=
true
;
showNewNoteList
();
//展示最新的笔记
}
else
{
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote006
"
,
params
:
{
parentId
:
folderId
,
search
:
searchTitle
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote006
"
,
params
:
{
parentId
:
folderId
,
search
:
searchTitle
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
$
(
"
#folderChildList
"
).
html
(
getDataUseHandlebars
(
folderchildlisetTemplate
,
json
));
initRightMenu
();
showNoteContent
(
json
.
rows
);
...
...
note/src/main/resources/template/js/note/noteEdit.js
浏览文件 @
f28de6d5
...
...
@@ -17,7 +17,7 @@ layui.config({
var
noteId
=
parent
.
noteId
;
// 显示编辑器内容
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote008
"
,
params
:
{
rowId
:
noteId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote008
"
,
params
:
{
rowId
:
noteId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
ue
=
ueEditorUtil
.
initEditor
(
'
container
'
);
parent
.
$
(
"
#noteTitle
"
).
val
(
json
.
bean
.
title
);
...
...
note/src/main/resources/template/js/note/noteEditLuckysheet.js
浏览文件 @
f28de6d5
...
...
@@ -13,7 +13,7 @@ layui.config({
form
.
render
();
// 显示编辑器内容
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote008
"
,
params
:
{
rowId
:
noteId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote008
"
,
params
:
{
rowId
:
noteId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
$
(
"
#noteTitle
"
).
val
(
json
.
bean
.
title
);
var
param
=
{
container
:
'
luckysheet
'
,
...
...
note/src/main/resources/template/js/note/noteEditMarkDown.js
浏览文件 @
f28de6d5
...
...
@@ -36,7 +36,7 @@ layui.config({
initPasteDragImg
(
this
);
// 加载后富文本编辑器成功后的回调
// 显示编辑器内容
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote008
"
,
params
:
{
rowId
:
noteId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote008
"
,
params
:
{
rowId
:
noteId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
$
(
"
#noteTitle
"
).
val
(
json
.
bean
.
title
);
layEditor
.
setMarkdown
(
json
.
bean
.
content
);
matchingLanguage
();
...
...
note/src/main/resources/template/js/note/noteFileTree.js
浏览文件 @
f28de6d5
...
...
@@ -20,7 +20,7 @@ layui.config({
var
ztree
=
null
;
fsTree
.
render
({
id
:
"
treeDemo
"
,
url
:
req
BasePath
+
"
mynote012?moveId=
"
+
clickId
,
url
:
sysMainMation
.
note
BasePath
+
"
mynote012?moveId=
"
+
clickId
,
checkEnable
:
true
,
chkStyle
:
"
radio
"
,
loadEnable
:
true
,
//异步加载
...
...
@@ -49,12 +49,12 @@ layui.config({
if
(
clickType
==
"
folder
"
){
var
arrId
=
new
Array
();
arrId
[
0
]
=
clickId
;
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote010
"
,
params
:
{
targetId
:
chooseId
,
arrId
:
arrId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote010
"
,
params
:
{
targetId
:
chooseId
,
arrId
:
arrId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
chooseId
;
}});
}
else
{
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote011
"
,
params
:
{
toId
:
chooseId
,
moveId
:
clickId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote011
"
,
params
:
{
toId
:
chooseId
,
moveId
:
clickId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
...
...
note/src/main/resources/template/js/note/shareNote.js
浏览文件 @
f28de6d5
...
...
@@ -34,7 +34,7 @@ layui.config({
}
function
loadNote
(){
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
mynote013
"
,
params
:
{
rowId
:
rowId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
note
BasePath
+
"
mynote013
"
,
params
:
{
rowId
:
rowId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
$
(
"
#noteTile
"
).
html
(
json
.
bean
.
title
);
$
(
"
#createName
"
).
html
(
json
.
bean
.
createName
);
$
(
"
#createTime
"
).
html
(
json
.
bean
.
createTime
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录