Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zys-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
zys-ui
Commits
c9002bf2
提交
c9002bf2
authored
7月 28, 2023
作者:
李忠利
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改我的创作列表显示
上级
deef6647
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
115 行增加
和
29 行删除
+115
-29
BreadCrumb.vue
src/components/common/BreadCrumb.vue
+3
-0
FileTable.vue
src/components/common/FileTable.vue
+1
-0
FileList.vue
src/components/file/FileList.vue
+106
-26
OperationMenu.vue
src/components/file/components/OperationMenu.vue
+2
-1
index.vue
src/views/mine/myCreate/index.vue
+3
-2
没有找到文件。
src/components/common/BreadCrumb.vue
浏览文件 @
c9002bf2
...
...
@@ -60,6 +60,9 @@ export default {
4
:
"全部音乐"
,
5
:
"其他"
,
6
:
"回收站"
,
10
:
"我的创作"
,
11
:
"我的收藏"
,
12
:
"我的笔记"
,
},
isShowInput
:
false
,
// 是否展示路径输入框
inputFilePath
:
""
,
// 路径输入
...
...
src/components/common/FileTable.vue
浏览文件 @
c9002bf2
...
...
@@ -303,6 +303,7 @@ export default {
/**
* 当表格的排序条件发生变化的时候会触发该事件
*/
handleSortChange
()
{
this
.
sortedFileList
=
this
.
$refs
.
multipleTable
.
tableData
;
},
...
...
src/components/file/FileList.vue
浏览文件 @
c9002bf2
...
...
@@ -48,7 +48,7 @@
@
click
.
native
.
right=
"handleClickRight"
></FileTimeLine>
<div
class=
"pagination-wrapper"
>
<div
class=
"current-page-count"
>
当前页
{{
fileList
.
length
}}
条
</div>
<div
class=
"current-page-count"
>
当前页
{{
this
.
fileList
.
length
}}
条
</div>
<!-- 回收站不展示分页组件 -->
<el-pagination
:current-page=
"pageData.currentPage"
...
...
@@ -115,7 +115,7 @@ export default {
},
// 当前所在路径
filePath
()
{
return
this
.
$route
.
query
.
filePath
?
this
.
$route
.
query
.
filePath
:
"/"
;
return
this
.
$route
.
query
.
filePath
?
this
.
$route
.
query
.
filePath
:
"/
我的创作
"
;
},
// 文件查看模式 0列表模式 1网格模式 2 时间线模式
fileModel
()
{
...
...
@@ -189,6 +189,7 @@ export default {
*/
getTableDataByType
()
{
this
.
loading
=
true
;
console
.
log
(
"type:"
,
this
.
fileType
)
// 分类型
if
(
Number
(
this
.
fileType
))
{
switch
(
Number
(
this
.
fileType
))
{
...
...
@@ -200,6 +201,18 @@ export default {
this
.
showMyShareFile
();
// 我的分享
break
;
}
case
10
:
{
this
.
showMyCreateFile
();
// 我的创作
break
;
}
case
11
:
{
this
.
showMyFavoriteFile
();
// 我的收藏
break
;
}
case
12
:
{
this
.
showMyNoteFile
();
// 我的笔记
break
;
}
default
:
{
this
.
showFileList
();
break
;
...
...
@@ -226,12 +239,12 @@ export default {
params
.
append
(
key
,
data
[
key
]);
}
getFileListByPath
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
fileList
=
res
.
data
List
;
this
.
pageData
.
total
=
Number
(
res
.
total
)
;
if
(
res
.
code
==
200
)
{
this
.
fileList
=
res
.
data
.
records
;
this
.
pageData
.
total
=
res
.
data
.
total
;
this
.
loading
=
false
;
}
else
{
this
.
$message
.
error
(
res
.
m
essage
);
this
.
$message
.
error
(
res
.
m
sg
);
}
});
},
...
...
@@ -254,11 +267,83 @@ export default {
*/
showFileRecovery
()
{
getRecoveryFile
().
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
fileList
=
res
.
data
List
;
if
(
res
.
code
==
200
)
{
this
.
fileList
=
res
.
data
.
records
;
this
.
loading
=
false
;
}
else
{
this
.
$message
.
error
(
res
.
message
);
this
.
$message
.
error
(
res
.
msg
);
}
});
},
/**
* 表格数据获取相关事件 | 获取我的创作文件列表
*/
showMyCreateFile
()
{
let
data
=
{
fileType
:
this
.
fileType
,
filePath
:
this
.
filePath
,
currentPage
:
this
.
pageData
.
currentPage
,
pageCount
:
this
.
pageData
.
pageCount
,
};
const
params
=
new
URLSearchParams
();
for
(
const
key
in
data
)
{
params
.
append
(
key
,
data
[
key
]);
}
getFileListByPath
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
fileList
=
res
.
data
.
records
;
this
.
pageData
.
total
=
res
.
data
.
total
;
this
.
loading
=
false
;
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
},
/**
* 表格数据获取相关事件 | 获取我的收藏文件列表
*/
showMyFavoriteFile
()
{
let
data
=
{
fileType
:
this
.
fileType
,
filePath
:
this
.
filePath
,
currentPage
:
this
.
pageData
.
currentPage
,
pageCount
:
this
.
pageData
.
pageCount
,
};
const
params
=
new
URLSearchParams
();
for
(
const
key
in
data
)
{
params
.
append
(
key
,
data
[
key
]);
}
getFileListByPath
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
fileList
=
res
.
data
.
records
;
this
.
pageData
.
total
=
res
.
data
.
total
;
this
.
loading
=
false
;
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
},
/**
* 表格数据获取相关事件 | 获取我的笔记文件列表
*/
showMyNoteFile
()
{
let
data
=
{
fileType
:
this
.
fileType
,
filePath
:
this
.
filePath
,
currentPage
:
this
.
pageData
.
currentPage
,
pageCount
:
this
.
pageData
.
pageCount
,
};
const
params
=
new
URLSearchParams
();
for
(
const
key
in
data
)
{
params
.
append
(
key
,
data
[
key
]);
}
getFileListByPath
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
fileList
=
res
.
data
.
records
;
this
.
pageData
.
total
=
res
.
data
.
total
;
this
.
loading
=
false
;
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
},
...
...
@@ -273,12 +358,12 @@ export default {
pageCount
:
this
.
pageData
.
pageCount
,
};
getMyShareFileList
(
data
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
fileList
=
res
.
data
List
;
this
.
pageData
.
total
=
Number
(
res
.
total
);
if
(
res
.
code
==
200
)
{
this
.
fileList
=
res
.
data
.
records
;
this
.
pageData
.
total
=
Number
(
res
.
data
.
total
);
this
.
loading
=
false
;
}
else
{
this
.
$message
.
error
(
res
.
m
essage
);
this
.
$message
.
error
(
res
.
m
sg
);
}
});
},
...
...
@@ -293,12 +378,12 @@ export default {
pageCount
:
this
.
pageData
.
pageCount
,
};
getFileListByType
(
data
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
fileList
=
res
.
data
List
;
this
.
pageData
.
total
=
Number
(
res
.
total
);
if
(
res
.
code
==
200
)
{
this
.
fileList
=
res
.
data
.
records
;
this
.
pageData
.
total
=
Number
(
res
.
data
.
total
);
this
.
loading
=
false
;
}
else
{
this
.
$message
.
error
(
res
.
m
essage
);
this
.
$message
.
error
(
res
.
m
sg
);
}
});
},
...
...
@@ -315,16 +400,11 @@ export default {
fileName
:
fileName
,
}).
then
((
res
)
=>
{
this
.
loading
=
false
;
if
(
res
.
success
)
{
this
.
fileList
=
res
.
dataList
.
map
((
item
)
=>
{
return
{
...
item
,
highlightFields
:
item
.
highLight
.
fileName
[
0
],
};
});
this
.
pageData
.
total
=
res
.
data
.
totalHits
;
if
(
res
.
code
==
200
)
{
this
.
fileList
=
res
.
data
.
records
;
this
.
pageData
.
total
=
res
.
data
.
total
;
}
else
{
this
.
$message
.
error
(
res
.
m
essage
);
this
.
$message
.
error
(
res
.
m
sg
);
}
});
},
...
...
src/components/file/components/OperationMenu.vue
浏览文件 @
c9002bf2
...
...
@@ -6,7 +6,7 @@
>
<el-button-group
class=
"create-operate-group"
v-if=
"(!selectedFiles.length || !isBatchOperation) &&
fileType === 0
"
v-if=
"(!selectedFiles.length || !isBatchOperation) &&
[0,10,11,12].includes(fileType)
"
>
<el-dropdown
class=
"upload-drop"
trigger=
"hover"
>
<el-button
...
...
@@ -326,6 +326,7 @@ export default {
filePath
:
this
.
$route
.
query
.
filePath
||
"/"
,
})
.
then
((
res
)
=>
{
console
.
log
(
"确认结果:"
,
res
)
if
(
res
===
"confirm"
)
{
this
.
$emit
(
"getTableDataByType"
);
}
...
...
src/views/mine/myCreate/index.vue
浏览文件 @
c9002bf2
...
...
@@ -20,8 +20,9 @@ export default {
const
currentQueryParams
=
this
.
$route
.
query
;
// 修改查询参数,例如,给 "filePath" 参数设置新的值
const
newFileType
=
MY_CREATE
;
const
newQueryParams
=
{
...
currentQueryParams
,
fileType
:
newFilePath
};
const
newFileType
=
10
;
const
newFilePath
=
'/我的创作'
;
const
newQueryParams
=
{
...
currentQueryParams
,
fileType
:
newFileType
,
filePath
:
newFilePath
};
// 使用 this.$router.push() 导航到当前路由,并传递新的查询参数
this
.
$router
.
push
({
query
:
newQueryParams
});
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论