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
7388e899
authored
Jul 04, 2025
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat: 更新文件管理页面,调整表格字段名称并优化数据获取逻辑
parent
a774cff2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
src/views/billManagement/fileManagement.vue
src/views/billManagement/fileManagement.vue
View file @
7388e899
...
@@ -5,12 +5,16 @@
...
@@ -5,12 +5,16 @@
<div
class=
"data-box"
>
<div
class=
"data-box"
>
<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=
"bill_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=
"status_text"
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=
"total_amount"
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=
"unpaid_amount"
label=
"有效期"
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=
"paid_amount"
label=
"上传人"
width=
"200"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
<template
slot-scope=
"scope"
>
<el-table-column
prop=
"paying_amount"
label=
"上传时间"
width=
"200"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
{{
scope
.
row
.
validity_start
}}
~
{{
scope
.
row
.
validity_end
}}
</
template
>
</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_time"
label=
"上传时间"
width=
"200"
:show-overflow-tooltip=
"true"
align=
"center"
></el-table-column>
</el-table>
</el-table>
<el-pagination
layout=
"total, sizes, prev, pager, next, jumper"
:page-sizes=
"[10, 20, 50, 100, 200]"
:total=
"total"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page"
></el-pagination>
<el-pagination
layout=
"total, sizes, prev, pager, next, jumper"
:page-sizes=
"[10, 20, 50, 100, 200]"
:total=
"total"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page"
></el-pagination>
</div>
</div>
...
@@ -51,14 +55,7 @@ export default {
...
@@ -51,14 +55,7 @@ export default {
},
},
methods
:
{
methods
:
{
getData
()
{
getData
()
{
// 处理日期范围
this
.
$http
(
'GET'
,
"/api/fileManage/getFileList"
,
{}).
then
(
res
=>
{
let
params
=
Object
.
assign
({},
this
.
formParam
);
if
(
params
.
create_time
&&
params
.
create_time
.
length
===
2
)
{
params
.
create_time
=
params
.
create_time
.
join
(
' ~ '
);
}
params
=
Object
.
assign
(
params
,
{
page
:
this
.
page
,
limit
:
this
.
limit
});
this
.
$http
(
'GET'
,
"/api/bill/getVerifiedBillList"
,
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
list
=
res
.
data
.
list
||
[];
this
.
list
=
res
.
data
.
list
||
[];
this
.
total
=
Number
(
res
.
data
.
total
)
||
0
;
this
.
total
=
Number
(
res
.
data
.
total
)
||
0
;
...
...
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