Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zys-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
zys-ui
Commits
b8901b2a
提交
b8901b2a
authored
9月 06, 2023
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
给按标签分类增加loading和重置按钮
上级
81600833
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
22 行增加
和
11 行删除
+22
-11
noteByFile.vue
src/views/mine/myNote/components/noteByFile.vue
+6
-2
noteByTag.vue
src/views/mine/myNote/components/noteByTag.vue
+13
-7
index.vue
src/views/mine/myNote/index.vue
+2
-2
insertNote.vue
src/views/read/wpsReader/component/insertNote.vue
+1
-0
没有找到文件。
src/views/mine/myNote/components/noteByFile.vue
浏览文件 @
b8901b2a
...
@@ -136,6 +136,9 @@
...
@@ -136,6 +136,9 @@
</el-pagination>
</el-pagination>
</div>
</div>
</div>
</div>
<div
class=
"card-group"
v-else
>
<el-empty></el-empty>
</div>
</div>
</div>
</div>
</div>
<AddOrUpdateNoteDialog
<AddOrUpdateNoteDialog
...
@@ -217,15 +220,16 @@ export default {
...
@@ -217,15 +220,16 @@ export default {
fileName
:
this
.
keyword
,
fileName
:
this
.
keyword
,
};
};
let
res
=
await
getNoteAllFilesList
(
params
);
let
res
=
await
getNoteAllFilesList
(
params
);
this
.
loading
=
false
;
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
fileList
=
res
.
data
;
this
.
fileList
=
res
.
data
;
this
.
loadNoteList
();
this
.
loadNoteList
();
}
}
this
.
loading
=
false
;
},
},
//加载笔记列表
//加载笔记列表
async
loadNoteList
()
{
async
loadNoteList
()
{
this
.
loading
=
true
;
const
{
current
,
size
}
=
this
.
noteList
;
const
{
current
,
size
}
=
this
.
noteList
;
const
params
=
{
const
params
=
{
currentPage
:
current
,
currentPage
:
current
,
...
@@ -233,10 +237,10 @@ export default {
...
@@ -233,10 +237,10 @@ export default {
fileId
:
this
.
currentFileId
,
fileId
:
this
.
currentFileId
,
};
};
let
res
=
await
getNoteByFile
(
params
);
let
res
=
await
getNoteByFile
(
params
);
this
.
loading
=
false
;
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
noteList
=
res
.
data
;
this
.
noteList
=
res
.
data
;
}
}
this
.
loading
=
false
;
},
},
// 文件名搜索
// 文件名搜索
...
...
src/views/mine/myNote/components/noteByTag.vue
浏览文件 @
b8901b2a
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</div>
</div>
<div
:span=
"19"
class=
"right"
>
<div
:span=
"19"
class=
"right"
>
<div
class=
"note-container"
>
<div
class=
"note-container"
>
<div
class=
"card-group"
>
<div
class=
"card-group"
v-if=
"noteList.records.length > 0"
>
<el-card
<el-card
class=
"card-item"
class=
"card-item"
shadow=
"hover"
shadow=
"hover"
...
@@ -64,6 +64,7 @@
...
@@ -64,6 +64,7 @@
style=
"margin-right: 8px"
style=
"margin-right: 8px"
type=
"warning"
type=
"warning"
v-for=
"(v, i) in item.tagName.split(',')"
v-for=
"(v, i) in item.tagName.split(',')"
:key=
"i"
>
{{
v
}}
>
{{
v
}}
</el-tag>
</el-tag>
</div>
</div>
...
@@ -132,6 +133,9 @@
...
@@ -132,6 +133,9 @@
</el-pagination>
</el-pagination>
</div>
</div>
</div>
</div>
<div
class=
"card-group"
v-else
>
<el-empty></el-empty>
</div>
</div>
</div>
</div>
</div>
<AddOrUpdateNoteDialog
<AddOrUpdateNoteDialog
...
@@ -212,15 +216,16 @@ export default {
...
@@ -212,15 +216,16 @@ export default {
tagName
:
this
.
keyword
,
tagName
:
this
.
keyword
,
};
};
let
res
=
await
getNoteAllTagList
(
params
);
let
res
=
await
getNoteAllTagList
(
params
);
this
.
loading
=
false
;
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
tagList
=
res
.
data
;
this
.
tagList
=
res
.
data
;
this
.
loadNoteList
();
this
.
loadNoteList
();
}
}
this
.
loading
=
false
;
},
},
//加载笔记列表
//加载笔记列表
async
loadNoteList
()
{
async
loadNoteList
()
{
this
.
loading
=
true
;
const
{
current
,
size
}
=
this
.
noteList
;
const
{
current
,
size
}
=
this
.
noteList
;
const
params
=
{
const
params
=
{
currentPage
:
current
,
currentPage
:
current
,
...
@@ -228,6 +233,7 @@ export default {
...
@@ -228,6 +233,7 @@ export default {
id
:
this
.
currentTagId
,
id
:
this
.
currentTagId
,
};
};
let
res
=
await
getNoteByTag
(
params
);
let
res
=
await
getNoteByTag
(
params
);
this
.
loading
=
false
;
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
noteList
=
res
.
data
;
this
.
noteList
=
res
.
data
;
}
}
...
@@ -247,8 +253,8 @@ export default {
...
@@ -247,8 +253,8 @@ export default {
// 文件名搜索
// 文件名搜索
handleSearch
()
{
handleSearch
()
{
// 重置分页
// 重置分页
this
.
file
List
.
current
=
1
;
this
.
tag
List
.
current
=
1
;
this
.
file
List
.
size
=
20
;
this
.
tag
List
.
size
=
20
;
// 重置当前选中的文件
// 重置当前选中的文件
this
.
currentTagId
=
""
;
this
.
currentTagId
=
""
;
this
.
loadLeftList
();
this
.
loadLeftList
();
...
@@ -256,12 +262,12 @@ export default {
...
@@ -256,12 +262,12 @@ export default {
handleReset
()
{
handleReset
()
{
// 重置分页
// 重置分页
this
.
file
List
.
current
=
1
;
this
.
tag
List
.
current
=
1
;
this
.
file
List
.
size
=
20
;
this
.
tag
List
.
size
=
20
;
// 重置查询参数
// 重置查询参数
this
.
currentTagId
=
""
;
this
.
currentTagId
=
""
;
this
.
keyword
=
""
;
this
.
keyword
=
""
;
this
.
load
file
List
();
this
.
load
Left
List
();
},
},
// 文件列表size
// 文件列表size
...
...
src/views/mine/myNote/index.vue
浏览文件 @
b8901b2a
...
@@ -28,9 +28,9 @@ export default {
...
@@ -28,9 +28,9 @@ export default {
watch
:
{
watch
:
{
activeName
(
value
)
{
activeName
(
value
)
{
if
(
value
==
"byFile"
)
{
if
(
value
==
"byFile"
)
{
this
.
$refs
.
NoteByFile
.
load
file
List
();
this
.
$refs
.
NoteByFile
.
load
Left
List
();
}
else
{
}
else
{
this
.
$refs
.
NoteByTag
.
load
tag
List
();
this
.
$refs
.
NoteByTag
.
load
Left
List
();
}
}
},
},
},
},
...
...
src/views/read/wpsReader/component/insertNote.vue
浏览文件 @
b8901b2a
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
<el-dropdown-item
v-for=
"(dropItem, i) in dropdownList"
v-for=
"(dropItem, i) in dropdownList"
:key=
"i"
@
click
.
native=
"handleNoteOperation(dropItem.value, item)"
@
click
.
native=
"handleNoteOperation(dropItem.value, item)"
>
{{
dropItem
.
label
}}
</el-dropdown-item
>
{{
dropItem
.
label
}}
</el-dropdown-item
>
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论