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
a74ef9da
Commit
a74ef9da
authored
5 months ago
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
cf2694e8
master
No related merge requests found
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
148 additions
and
51 deletions
+148
-51
projectInfo.vue
src/views/evaluation/components/projectInfo.vue
+0
-0
projectView.vue
src/views/evaluation/components/projectView.vue
+147
-50
index.vue
src/views/evaluation/index.vue
+1
-1
No files found.
src/views/evaluation/components/projectInfo.vue
View file @
a74ef9da
This diff is collapsed.
Click to expand it.
src/views/evaluation/components/projectView.vue
View file @
a74ef9da
<
template
>
<
template
>
<div
class=
"
layoutEmbedded
"
>
<div
class=
"
app-content layoutEmbedded"
style=
"height: 76vh;overflow: auto;
"
>
<a-spin
:spinning=
"loading"
style=
"width: 100%;height: 100%;"
>
<a-spin
:spinning=
"loading"
style=
"width: 100%;height: 100%;"
>
<div
class=
"page-content"
>
<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>
</div>
<div
class=
"page-footer"
>
<!-- 申报项目详情 -->
<!-- 申报项目详情 -->
<!--
<a-button
type=
"primary"
>
导出申请书
</a-button>
-->
<!--
<a-button
type=
"primary"
@
click=
"onExport"
>
导出
</a-button>
-->
<project-info
v-model=
"projectInfo"
v-if=
"projType"
/>
<project-info
v-model=
"formData"
:tabsData
.
sync=
"tabsData"
v-if=
"projType=='1'"
/>
<project-info-Key
v-model=
"projectInfo"
v-else
/>
<project-info-Key
v-model=
"formData"
:tabsData
.
sync=
"tabsData"
v-if=
"projType=='2'"
/>
</div>
</a-spin>
</a-spin>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
const
projectKPI
=
{
reportYear
:
""
,
projName
:
""
,
appUnitName
:
""
,
managerDept
:
""
,
projAttribute
:
""
,
projDeadline
:
""
,
startDate
:
""
,
endData
:
""
,
yearTarget
:
""
,
year1Goal
:
""
,
year2Goal
:
""
,
year3Goal
:
""
,
totalBudget
:
0.00
,
applyFunds
:
0.00
,
selfFunds
:
0.00
,
yearTotal
:
0.00
,
yearApply
:
0.00
,
yearSelf
:
0.00
,
totalRowSpan
:
0
,
//总合并行数
outTarget
:
0
,
//一级指标(产出指标)
benefitTarget
:
0
,
//一级指标(效益指标)
satisfactionDegree
:
0
,
//一级指标(满意度指标)
quantityTarget
:
0
,
//二级指标(数量指标)
qualityTarget
:
0
,
//二级指标(质量指标)
validityTarget
:
0
,
//二级指标(时效指标)
costTarget
:
0
,
//二级指标(成本指标)
economicTarget
:
0
,
//二级指标(经济效益指标)
socialTarget
:
0
,
//二级指标(社会效益指标)
ecologicalTarget
:
0
,
//二级指标(生态效益指标)
sustainableTarget
:
0
,
//二级指标(可持续影响指标)
serviceTarget
:
0
,
//二级指标(服务对象满意度指标)
threeLevel
:
[],
kpiList
:
[],
};
import
{
budgetList
}
from
'@/views/report/project/config'
import
{
budgetList
}
from
'@/views/report/project/config'
import
{
getType
}
from
'@/views/utils/auth'
import
{
getType
}
from
'@/views/utils/auth'
import
projectInfo
from
'@/views/evaluation/components/projectInfo'
import
projectInfo
from
'@/views/evaluation/components/projectInfo'
import
projectInfoKey
from
'@/views/evaluation/components/keyProject/projectInfo'
import
projectInfoKey
from
"@/views/report/project/components/keyProject/projectInfo"
export
default
{
export
default
{
name
:
"projectView"
,
name
:
"projectView"
,
components
:
{
components
:
{
...
@@ -21,40 +65,60 @@ export default {
...
@@ -21,40 +65,60 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
projectInfo
:
{
tabsData
:
[
projName
:
''
,
{
title
:
'全部'
,
key
:
'0'
,
isShow
:
true
},
startDate
:
''
,
{
title
:
'项目基本信息'
,
key
:
'1'
,
isShow
:
true
},
endDate
:
''
,
//{ title: '项目组主要成员', key: '2', isShow: true },
applyMoney
:
''
,
{
title
:
'绩效目标表'
,
key
:
'2'
,
isShow
:
true
},
projClassName
:
''
,
{
title
:
'项目经费预算表'
,
key
:
'3'
,
isShow
:
true
},
appPersonName
:
''
,
{
title
:
'申请书正文'
,
key
:
'4'
,
isShow
:
true
},
sex
:
''
,
{
title
:
'附件信息'
,
key
:
'5'
,
isShow
:
true
},
titleName
:
''
,
{
title
:
'项目审核记录'
,
key
:
'6'
,
isShow
:
true
},
degreeName
:
''
,
],
specName
:
''
,
formData
:
{
jobUnit
:
''
,
id
:
null
,
mobile
:
''
,
appPersonName
:
null
,
address
:
''
,
sex
:
null
,
appUnitName
:
''
,
birthday
:
null
,
linkName
:
''
,
nationName
:
null
,
linkEmail
:
''
,
degreeName
:
null
,
linkTel
:
''
,
titleName
:
null
,
knowledgeName
:
''
,
mobile
:
null
,
projContent
:
''
,
email
:
null
,
projTarget
:
''
,
jobTime
:
null
,
projKeywords
:
''
,
address
:
null
,
// 合作单位
appUnitName
:
null
,
together
:
[{
unitName
:
''
,
unitAddress
:
''
,
projectWork
:
''
},
{
unitName
:
''
,
unitAddress
:
''
,
projectWork
:
''
}],
mainResearchAreas
:
null
,
// 项目组成员
unitLinkName
:
null
,
unitLinkMobile
:
null
,
unitLinkEmail
:
null
,
unitLinkFax
:
null
,
projName
:
null
,
knowledgeId
:
null
,
subjectScope
:
null
,
projClass
:
null
,
remark
:
null
,
startDate
:
null
,
endDate
:
null
,
totalFunding
:
null
,
govFunding
:
null
,
projAbstract
:
null
,
projKeywords
:
null
,
yearTarget
:
null
,
year1Goal
:
null
,
year2Goal
:
null
,
year3Goal
:
null
,
projectKPI
:
projectKPI
,
cooperativeUnits
:
[],
members
:
[],
members
:
[],
// 经费
budget
:
[],
budget
:
budgetList
()
,
fundPlan
:
[]
,
projDoc
:
null
,
fileList
:
[]
,
fileList
:
[{
fileName
:
''
,
url
:
''
,
remarks
:
''
,
id
:
''
}
],
auditList
:
[
],
auditList
:
[{
result
:
''
,
unit
:
''
,
time
:
''
}]
,
managerDept
:
""
,
},
},
loading
:
false
,
loading
:
false
,
projType
:
getType
()
==
"1"
projType
:
getType
()
};
};
},
},
props
:
{
props
:
{
...
@@ -63,33 +127,66 @@ export default {
...
@@ -63,33 +127,66 @@ export default {
default
:
()
=>
{
default
:
()
=>
{
return
null
return
null
}
}
}
}
,
},
},
created
()
{
created
()
{
this
.
getProjectInfoById
()
this
.
getProjectInfoById
()
},
},
methods
:
{
methods
:
{
getProjectInfoById
()
{
getProjectInfoById
()
{
if
(
this
.
value
!=
null
)
{
if
(
this
.
value
!=
null
)
{
this
.
loading
=
true
this
.
loading
=
true
let
fileArr
=
[]
this
.
$api
.
project
.
getProjectInfoById
({
id
:
this
.
value
}).
then
(({
data
=
{}
})
=>
{
this
.
$api
.
project
.
getProjectInfoById
({
id
:
this
.
value
}).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
if
(
data
)
{
this
.
projectInfo
=
data
this
.
formData
=
data
for
(
let
i
=
0
;
i
<
this
.
projectInfo
.
fileList
.
length
;
i
++
)
{
if
(
this
.
projectInfo
.
fileList
[
i
].
fileExplain
.
indexOf
(
"项目申报简要信息首页"
)
==
-
1
&&
this
.
projectInfo
.
fileList
[
i
].
fileExplain
.
indexOf
(
"项目组成员签字"
)
==
-
1
)
fileArr
.
push
(
this
.
projectInfo
.
fileList
[
i
])
}
this
.
projectInfo
.
fileList
=
fileArr
this
.
loading
=
false
this
.
loading
=
false
}
else
}
else
this
.
$emit
(
'close'
,
'close'
)
this
.
$emit
(
'close'
,
'error'
)
}).
catch
(()
=>
{
this
.
$emit
(
'close'
,
'close'
)
})
}).
catch
(()
=>
{
this
.
$emit
(
'close'
,
'error'
)
})
}
}
}
},
},
onExport
()
{
this
.
$api
.
project
.
export
({
id
:
this
.
value
}).
then
((
res
)
=>
{
let
blob
=
new
Blob
([
res
],
{
type
:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document;charset=utf-8"
,
});
const
fileName
=
this
.
formData
.
projName
+
'.doc'
;
let
downloadElement
=
document
.
createElement
(
'a'
)
let
href
=
window
.
URL
.
createObjectURL
(
blob
);
//创建下载的链接
downloadElement
.
href
=
href
;
downloadElement
.
download
=
fileName
;
//下载后文件名
document
.
body
.
appendChild
(
downloadElement
);
downloadElement
.
click
();
//点击下载
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
;
},
},
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
::v-deep .ant-spin-container {
width: 100%;
height: 100%;
}
.page-content {
width: 100%;
height: 50px;
}
.page-footer {
width: 100%;
height: calc(100% - 50px);
overflow: auto;
}
</
style
>
This diff is collapsed.
Click to expand it.
src/views/evaluation/index.vue
View file @
a74ef9da
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<score-view
v-model=
"id"
@
close=
"() => this.visibleEvaluationView = false"
/>
<score-view
v-model=
"id"
@
close=
"() => this.visibleEvaluationView = false"
/>
<!-- <assign-expert-view v-model="id" :hideDeleteBTN="false" @close="closeWindow"></assign-expert-view> -->
<!-- <assign-expert-view v-model="id" :hideDeleteBTN="false" @close="closeWindow"></assign-expert-view> -->
</a-modal>
</a-modal>
<a-modal
v-model=
"visibleEvaluation"
title=
"
评审专家须知
"
width=
"90%"
:dialog-style=
"{ top: '5%' }"
:footer=
"null"
destroyOnClose
>
<a-modal
v-model=
"visibleEvaluation"
title=
"
专家评分
"
width=
"90%"
:dialog-style=
"{ top: '5%' }"
:footer=
"null"
destroyOnClose
>
<!-- <evaluation-edit v-model="id" @close="closeWindow"></evaluation-edit> -->
<!-- <evaluation-edit v-model="id" @close="closeWindow"></evaluation-edit> -->
<score
v-model=
"id"
:exportTime=
"exportTime"
:totalFunding=
"totalFunding"
@
close=
"closeWindow"
ref=
"scoreEdit"
/>
<score
v-model=
"id"
:exportTime=
"exportTime"
:totalFunding=
"totalFunding"
@
close=
"closeWindow"
ref=
"scoreEdit"
/>
</a-modal>
</a-modal>
...
...
This diff is collapsed.
Click to expand it.
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