Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-science-front
Project
Project
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
徐俊
yn-science-front
Commits
1b6c0107
Commit
1b6c0107
authored
Apr 14, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3333
parent
e3666df6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
15 deletions
+30
-15
Index.vue
src/views/audit/project/Index.vue
+30
-15
No files found.
src/views/audit/project/Index.vue
View file @
1b6c0107
...
@@ -117,6 +117,19 @@ export default {
...
@@ -117,6 +117,19 @@ export default {
{
title
:
'审核状态'
,
dataIndex
:
'auditResultName'
,
align
:
'center'
},
{
title
:
'审核状态'
,
dataIndex
:
'auditResultName'
,
align
:
'center'
},
{
title
:
'操作'
,
scopedSlots
:
{
customRender
:
'option'
},
align
:
'center'
,
fixed
:
'right'
,
width
:
120
,
},
{
title
:
'操作'
,
scopedSlots
:
{
customRender
:
'option'
},
align
:
'center'
,
fixed
:
'right'
,
width
:
120
,
},
],
],
excelCol
:
[
{
title
:
"项目名称"
,
dataIndex
:
'projName'
},
{
title
:
'申请编号'
,
dataIndex
:
'appNo'
},
{
title
:
"开始时间"
,
dataIndex
:
"startDate"
},
{
title
:
"结束时间"
,
dataIndex
:
"endDate"
},
{
title
:
"申报年度"
,
dataIndex
:
"reportYear"
},
{
title
:
"项目类别"
,
dataIndex
:
'projClassName'
},
{
title
:
"项目资金(万元)"
,
dataIndex
:
"govFunding"
},
{
title
:
'申报单位'
,
dataIndex
:
'appUnitName'
},
{
title
:
'申报学科'
,
dataIndex
:
'knowledgeName'
},
{
title
:
'申报人'
,
dataIndex
:
'appPersonName'
},
{
title
:
'审核状态'
,
dataIndex
:
'auditResultName'
},
],
pagination
:
{
pagination
:
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
this
.
$defaultPageSize
,
pageSize
:
this
.
$defaultPageSize
,
...
@@ -265,21 +278,23 @@ export default {
...
@@ -265,21 +278,23 @@ export default {
this
.
disabledSubmit
=
value
this
.
disabledSubmit
=
value
},
},
exportData
()
{
exportData
()
{
let
column
=
[
this
.
loading
=
true
;
{
title
:
"项目名称"
,
dataIndex
:
'projName'
},
let
pars
=
isEmptyParams
(
this
.
searchForm
);
//{ title: "项目编号", dataIndex: "projNo", align: 'center' },
let
par
=
{
...
pars
,
pageIndex
:
-
1
,
pageSize
:
-
1
,
}
{
title
:
'申请编号'
,
dataIndex
:
'appNo'
},
this
.
$api
.
audit
.
getAuditListByPage
(
par
).
then
(({
data
=
{}
})
=>
{
{
title
:
"开始时间"
,
dataIndex
:
"startDate"
},
if
(
data
)
{
{
title
:
"结束时间"
,
dataIndex
:
"endDate"
},
const
{
dataList
=
[],
total
=
0
}
=
data
;
{
title
:
"申报年度"
,
dataIndex
:
"reportYear"
},
this
.
pagination
.
total
=
total
;
{
title
:
"项目类别"
,
dataIndex
:
'projClassName'
},
this
.
tableData
=
dataList
{
title
:
"项目资金(万元)"
,
dataIndex
:
"govFunding"
},
this
.
tableData
.
forEach
(
e
=>
{
{
title
:
'申报单位'
,
dataIndex
:
'appUnitName'
},
e
.
projClassName
=
e
.
projClass
===
"1"
?
"一般项目"
:
"重点项目"
{
title
:
'申报学科'
,
dataIndex
:
'knowledgeName'
},
e
.
startDate
=
moment
(
e
.
startDate
).
format
(
'YYYY-MM-DD'
)
{
title
:
'申报人'
,
dataIndex
:
'appPersonName'
},
e
.
endDate
=
moment
(
e
.
endDate
).
format
(
'YYYY-MM-DD'
)
{
title
:
'审核状态'
,
dataIndex
:
'auditResultName'
},
})
]
this
.
$ToDoExcel
(
`项目审核列表`
,
tableColumnsName
(
this
.
excelCol
),
filterExportExcelData
(
this
.
excelCol
,
dataList
))
this
.
$ToDoExcel
(
`项目审核列表`
,
tableColumnsName
(
column
),
filterExportExcelData
(
column
,
this
.
tableData
))
this
.
loading
=
false
}
}).
catch
(()
=>
{
this
.
loading
=
false
})
}
}
},
},
};
};
...
...
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