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
a2155d35
Commit
a2155d35
authored
Dec 02, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2222
parent
36d3728a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
4 deletions
+34
-4
projectInfo.vue
src/views/report/project/components/projectInfo.vue
+0
-0
projectView.vue
src/views/report/project/components/projectView.vue
+34
-4
No files found.
src/views/report/project/components/projectInfo.vue
View file @
a2155d35
This diff is collapsed.
Click to expand it.
src/views/report/project/components/projectView.vue
View file @
a2155d35
...
...
@@ -2,15 +2,19 @@
<
template
>
<div
class=
"app-content layoutEmbedded"
style=
"height: 76vh;overflow: auto;"
>
<a-spin
:spinning=
"loading"
style=
"width: 100%;height: 100%;"
>
<a-tabs
type=
"card"
hideAdd
size=
"small"
@
change=
"callback"
>
<a-tab-pane
:key=
"item.key"
:tab=
"item.title"
v-for=
"(item) in tabsData"
>
</a-tab-pane>
</a-tabs>
<!-- 申报项目详情 -->
<!--
<a-button
type=
"primary"
@
click=
"onExport"
>
导出
</a-button>
-->
<project-info
v-model=
"projectInfo"
v-if=
"projType"
/>
<project-info-Key
v-model=
"projectInfo"
v-else
/>
<project-info
v-model=
"projectInfo"
:tabsData=
"tabsData"
v-if=
"projType"
/>
<project-info-Key
v-model=
"projectInfo"
:tabsData=
"tabsData"
v-else
/>
</a-spin>
</div>
</
template
>
<
script
>
const
projectKPI
=
{
const
projectKPI
=
{
reportYear
:
""
,
projName
:
""
,
appUnitName
:
""
,
...
...
@@ -49,6 +53,20 @@ export default {
},
data
()
{
return
{
tabsData
:
[
{
title
:
'全部'
,
key
:
'0'
,
isShow
:
true
},
{
title
:
'基本情况'
,
key
:
'1'
,
isShow
:
false
},
{
title
:
'项目人员情况'
,
key
:
'2'
,
isShow
:
false
},
{
title
:
'项目可行性研究情况'
,
key
:
'3'
,
isShow
:
false
},
{
title
:
'项目实施目标'
,
key
:
'4'
,
isShow
:
false
},
{
title
:
'项目考核指标'
,
key
:
'5'
,
isShow
:
false
},
{
title
:
'项目经费'
,
key
:
'6'
},
{
title
:
'项目绩效目标表'
,
key
:
'7'
,
isShow
:
false
},
{
title
:
'项目课题设置'
,
key
:
'8'
},
{
title
:
'附件清单'
,
key
:
'9'
},
{
title
:
'单位科研项目及资金管理制度'
,
key
:
'10'
,
isShow
:
false
},
{
title
:
'诚信承诺书'
,
key
:
'11'
,
isShow
:
false
},
],
projectInfo
:
{
id
:
null
,
organizationCode
:
null
,
...
...
@@ -142,7 +160,19 @@ export default {
document
.
body
.
removeChild
(
downloadElement
);
//下载完成移除元素
window
.
URL
.
revokeObjectURL
(
href
);
//释放blob
})
}
},
callback
(
key
)
{
var
index
=
parseInt
(
key
)
this
.
tabsData
.
forEach
(
e
=>
{
if
(
key
==
'0'
)
e
.
isShow
=
true
else
e
.
isShow
=
false
})
this
.
tabsData
[
0
].
isShow
=
true
;
this
.
tabsData
[
index
].
isShow
=
true
;
console
.
log
(
this
.
tabsData
);
},
},
}
</
script
>
...
...
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