Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c676a7fd
authored
Jul 04, 2025
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat: 在文件管理页面中为文件名称添加超链接,并优化有效期显示逻辑
parent
7388e899
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
src/views/billManagement/fileManagement.vue
src/views/billManagement/fileManagement.vue
View file @
c676a7fd
...
@@ -6,11 +6,15 @@
...
@@ -6,11 +6,15 @@
<el-table
:data=
"list"
border
max-height=
"600"
@
selection-change=
"handleSelectionChange"
>
<el-table
:data=
"list"
border
max-height=
"600"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
align=
"center"
fixed
></el-table-column>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
align=
"center"
fixed
></el-table-column>
<el-table-column
prop=
"type_name"
label=
"文件类型"
min-width=
"170"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"type_name"
label=
"文件类型"
min-width=
"170"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"file_name"
label=
"文件名称"
min-width=
"170"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"file_name"
label=
"文件名称"
min-width=
"170"
:show-overflow-tooltip=
"true"
align=
"center"
>
<template
slot-scope=
"scope"
>
<a
:href=
"scope.row.file_url"
target=
"_blank"
style=
"color: #409EFF; text-decoration: none;"
>
{{
scope
.
row
.
file_name
}}
</a>
</
template
>
</el-table-column>
<el-table-column
prop=
"description"
label=
"文件说明"
min-width=
"200"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"description"
label=
"文件说明"
min-width=
"200"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"validity_start"
label=
"有效期"
width=
"200"
:show-overflow-tooltip=
"true"
align=
"center"
>
<el-table-column
prop=
"validity_start"
label=
"有效期"
width=
"200"
:show-overflow-tooltip=
"true"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
validity_start
}}
~
{{
scope
.
row
.
validity_end
}}
{{
scope
.
row
.
validity_start
>
0
&&
scope
.
row
.
validity_end
>
0
?
scope
.
row
.
validity_start
+
' ~ '
+
scope
.
row
.
validity_end
:
''
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"create_name"
label=
"上传人"
width=
"200"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<el-table-column
prop=
"create_name"
label=
"上传人"
width=
"200"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
...
...
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