Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
Vue-Dashboard
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高源
Vue-Dashboard
Commits
8cbb38c2
Commit
8cbb38c2
authored
Jun 19, 2025
by
Neo Turing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 更新LAC文件列表视图和文件审核组件
parent
4ff0ebd7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
fileListView.vue
src/views/Lac/codes/fileListView.vue
+18
-3
fileReview.vue
src/views/Lac/codes/fileReview.vue
+0
-0
No files found.
src/views/Lac/codes/fileListView.vue
View file @
8cbb38c2
...
@@ -101,7 +101,11 @@
...
@@ -101,7 +101,11 @@
</n-descriptions-item>
</n-descriptions-item>
</n-descriptions>
</n-descriptions>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<n-button
type=
"primary"
@
click=
"downloadSingleFile(currentFile!)"
>
<n-button
type=
"primary"
@
click=
"currentFile && downloadSingleFile(currentFile)"
:disabled=
"!currentFile"
>
下载文件
下载文件
</n-button>
</n-button>
<n-button
@
click=
"showPreviewModal = false"
>
<n-button
@
click=
"showPreviewModal = false"
>
...
@@ -115,7 +119,7 @@
...
@@ -115,7 +119,7 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
h
,
ref
,
computed
,
resolveComponent
,
watch
,
withDefaults
,
onBeforeUnmount
}
from
'vue'
;
import
{
h
,
ref
,
computed
,
resolveComponent
,
watch
,
withDefaults
,
onBeforeUnmount
}
from
'vue'
;
import
type
{
DataTableColumns
}
from
'naive-ui'
;
//
import type { DataTableColumns } from 'naive-ui';
interface
FileItem
{
interface
FileItem
{
Kvid
:
string
;
Kvid
:
string
;
...
@@ -650,8 +654,19 @@ function formatFileSize(size: number): string {
...
@@ -650,8 +654,19 @@ function formatFileSize(size: number): string {
// 关闭并传递文件数据
// 关闭并传递文件数据
function closeWithFileData() {
function closeWithFileData() {
emit('update-files', fileData.value);
emit('update-files', fileData.value);
emit('close');
emit('close', fileData.value); // 在关闭时传递当前的文件数据
}
// 获取当前文件列表的方法
function getCurrentFileList() {
return fileData.value;
}
}
// 暴露方法给父组件使用
defineExpose({
getCurrentFileList,
fileData
});
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
...
src/views/Lac/codes/fileReview.vue
View file @
8cbb38c2
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment