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
d6006b3c
Commit
d6006b3c
authored
Feb 12, 2025
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujhun
parent
69323b2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
index.js
src/api/index.js
+3
-0
projectView.vue
src/views/report/project/components/projectView.vue
+6
-1
No files found.
src/api/index.js
View file @
d6006b3c
...
...
@@ -450,6 +450,9 @@ export default {
projectImport
(
params
)
{
return
fetch
(
'/v1/science-admin/com-project/projectImport'
,
params
,
'post'
,
'json'
)
},
projectExport
(
params
)
{
return
fetch
(
`/v1/science-admin/com-project/projectExport/
${
params
.
id
}
`
,
params
,
'get'
,
'json'
)
},
},
task
:
{
getListByPage
(
params
)
{
...
...
src/views/report/project/components/projectView.vue
View file @
d6006b3c
...
...
@@ -10,7 +10,7 @@
</div>
<div
class=
"page-footer"
>
<!-- 申报项目详情 -->
<
!--
<a-button
type=
"primary"
@
click=
"onExport"
>
导出
</a-button>
--
>
<
a-button
type=
"primary"
@
click=
"onProjectExport"
>
导出
</a-button
>
<project-info
v-model=
"formData"
:tabsData
.
sync=
"tabsData"
v-if=
"projType=='1'"
/>
<project-info-Key
v-model=
"formData"
:tabsData
.
sync=
"tabsData"
v-if=
"projType=='2'"
/>
</div>
...
...
@@ -164,6 +164,11 @@ export default {
window
.
URL
.
revokeObjectURL
(
href
);
//释放blob
})
},
onProjectExport
()
{
this
.
$api
.
project
.
projectExport
({
id
:
this
.
value
}).
then
((
res
)
=>
{
this
.
$message
.
success
(
data
.
msg
)
})
},
callback
(
key
)
{
var
index
=
parseInt
(
key
)
this
.
tabsData
.
forEach
(
e
=>
{
...
...
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