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
5545325f
Commit
5545325f
authored
5 months ago
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eee
parent
532386de
master
No related merge requests found
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
41 deletions
+65
-41
Index.vue
src/views/report/project/Index.vue
+6
-3
projectCreate.vue
src/views/report/project/components/projectCreate.vue
+8
-4
projectEdit.vue
src/views/report/project/components/projectEdit.vue
+3
-3
projectInfo.vue
src/views/report/project/components/projectInfo.vue
+0
-0
projectView.vue
src/views/report/project/components/projectView.vue
+48
-31
No files found.
src/views/report/project/Index.vue
View file @
5545325f
...
...
@@ -115,10 +115,10 @@
<a-pagination
v-if=
"pagination.total > 0"
:total=
"pagination.total"
show-size-changer
show-quick-jumper
v-model=
"pagination.pageIndex"
:page-size=
"pagination.pageSize"
:page-size-options=
"pagination.pageSizeOptions"
@
showSizeChange=
"showSizeChange"
@
change=
"change"
:showTotal=
"() => `共 ${pagination.total} 条`"
/>
</div>
<a-modal
v-model=
"visibleEdit"
v-if=
"visibleEdit"
title=
"项目创建/修改"
width=
"94%"
:footer=
"null"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<project-create
v-model=
"id"
@
close
Window
=
"closeWindow"
></project-create>
<project-create
v-model=
"id"
@
close=
"closeWindow"
></project-create>
</a-modal>
<a-modal
v-model=
"visibleView"
v-if=
"visibleView"
title=
"项目详情"
width=
"80%"
:dialog-style=
"{ top: '8%' }"
:footer=
"null"
destroyOnClose
>
<project-view
v-model=
"id"
@
close=
"
() => this.visibleView = false
"
></project-view>
<project-view
v-model=
"id"
@
close=
"
closeWindow
"
></project-view>
</a-modal>
<a-modal
v-model=
"visibleFileView"
title=
"查看"
width=
"1000px"
:dialog-style=
"{ top: '10%' }"
:footer=
"null"
destroyOnClose
>
<preview-file
v-model=
"realurl.downloadUrl"
:fileName=
"realurl.fileName"
></preview-file>
...
...
@@ -321,6 +321,7 @@ export default {
});
},
createProject
()
{
this
.
visibleEdit
=
true
this
.
visibleEdit
=
true
//this.$store.commit('app/addCard', { title: '项目创建', key: '1299', code: 'projectCreate', keepAlive: 1, router: '/project/create', closable: true })
},
...
...
@@ -332,7 +333,9 @@ export default {
this
.
getListByPage
()
}
else
if
(
value
===
'error'
)
{
this
.
id
=
null
this
.
visibleEdit
=
false
this
.
visibleView
=
false
}
},
onLoad
(
value
)
{
...
...
@@ -418,7 +421,7 @@ export default {
this
.
visibleFileView
=
true
}
},
projectKPI
()
{
projectKPI
()
{
this
.
projectKPIView
=
true
}
}
...
...
This diff is collapsed.
Click to expand it.
src/views/report/project/components/projectCreate.vue
View file @
5545325f
...
...
@@ -3,8 +3,8 @@
<div
class=
"app-content"
style=
"height: 76vh;overflow: auto;"
>
<a-spin
:spinning=
"loading"
style=
"width: 100%;height: 100%;"
>
<div
class=
"page-content"
>
<project-edit
v-model=
"value"
@
onSave=
"onSave
"
@
load=
"onLoad"
ref=
"projCreate"
v-if=
"projType"
></project-edit>
<project-edit-key
v-model=
"value"
@
onSave=
"onSave
"
@
load=
"onLoad"
ref=
"projCreate"
v-else
></project-edit-key>
<project-edit
v-model=
"value"
@
close=
"closeWindow
"
@
load=
"onLoad"
ref=
"projCreate"
v-if=
"projType"
></project-edit>
<project-edit-key
v-model=
"value"
@
close=
"closeWindow
"
@
load=
"onLoad"
ref=
"projCreate"
v-else
></project-edit-key>
</div>
<div
class=
"page-footer"
>
<a-button
@
click=
"save"
>
保存
</a-button>
...
...
@@ -46,8 +46,8 @@ export default {
submit
()
{
this
.
$refs
.
projCreate
.
submit
()
},
onSave
(
value
)
{
this
.
$emit
(
'close
Window
'
,
value
)
closeWindow
(
value
)
{
this
.
$emit
(
'close'
,
value
)
},
onLoad
(
value
)
{
this
.
loading
=
value
...
...
@@ -56,6 +56,10 @@ export default {
}
</
script
>
<
style
scoped
lang=
"less"
>
::v-deep .ant-spin-container {
width: 100%;
height: 100%;
}
.page-content {
width: 100%;
height: calc(100% - 40px);
...
...
This diff is collapsed.
Click to expand it.
src/views/report/project/components/projectEdit.vue
View file @
5545325f
...
...
@@ -291,6 +291,7 @@
</div>
</a-col>
</a-row>
<a-row>
<a-col
:span=
"24"
style=
"border-top: 0px"
>
<div
class=
"tb-title"
>
...
...
@@ -800,7 +801,7 @@ export default {
if
(
data
)
{
this
.
formData
.
id
=
data
this
.
$message
.
success
(
'保存成功!'
)
this
.
$emit
(
'
onSav
e'
,
'save'
)
this
.
$emit
(
'
clos
e'
,
'save'
)
}
this
.
$emit
(
'load'
,
false
)
}).
catch
(()
=>
{
...
...
@@ -825,7 +826,7 @@ export default {
if
(
data
)
{
this
.
formData
.
id
=
data
this
.
$message
.
success
(
'成功!'
)
this
.
$emit
(
'
onSav
e'
,
'submit'
)
this
.
$emit
(
'
clos
e'
,
'submit'
)
}
this
.
$emit
(
'load'
,
false
)
}).
catch
(()
=>
{
...
...
@@ -851,6 +852,5 @@ export default {
}
</
script
>
<
style
scoped
lang=
"less"
>
</
style
>
This diff is collapsed.
Click to expand it.
src/views/report/project/components/projectInfo.vue
View file @
5545325f
This diff is collapsed.
Click to expand it.
src/views/report/project/components/projectView.vue
View file @
5545325f
...
...
@@ -22,36 +22,53 @@ export default {
data
()
{
return
{
projectInfo
:
{
projName
:
''
,
startDate
:
''
,
endDate
:
''
,
applyMoney
:
''
,
projClassName
:
''
,
appPersonName
:
''
,
sex
:
''
,
titleName
:
''
,
degreeName
:
''
,
specName
:
''
,
jobUnit
:
''
,
mobile
:
''
,
address
:
''
,
appUnitName
:
''
,
linkName
:
''
,
linkEmail
:
''
,
linkTel
:
''
,
knowledgeName
:
''
,
projContent
:
''
,
projTarget
:
''
,
projKeywords
:
''
,
// 合作单位
together
:
[{
unitName
:
''
,
unitAddress
:
''
,
projectWork
:
''
},
{
unitName
:
''
,
unitAddress
:
''
,
projectWork
:
''
}],
// 项目组成员
id
:
null
,
organizationCode
:
null
,
address
:
null
,
registeredAddress
:
null
,
postCode
:
null
,
legalPerson
:
null
,
workforce
:
null
,
specializedPersonnel
:
null
,
researchPersonnel
:
null
,
depositBank
:
null
,
bankAccount
:
null
,
depositBankAddress
:
null
,
interbankNumber
:
null
,
researchTotal
:
null
,
isResearchActive
:
null
,
researchCount
:
null
,
researchPersonCount
:
null
,
projName
:
null
,
leadUnit
:
null
,
recommendUnit
:
null
,
startDate
:
null
,
endDate
:
null
,
technologyInnovationBase
:
null
,
knowledgeId
:
null
,
totalFunding
:
null
,
govFunding
:
null
,
linkName
:
null
,
linkMobile
:
null
,
linkEmail
:
null
,
projAbstract
:
null
,
projKeywords
:
null
,
researchContent
:
null
,
memResume
:
null
,
researchProgress
:
null
,
researchContent
:
null
,
technologyTarget
:
null
,
economyTarget
:
null
,
achievementTarget
:
null
,
otherTarget
:
null
,
cooperativeUnits
:
[],
members
:
[],
// 经费
budget
:
budgetList
(),
projDoc
:
null
,
fileList
:
[{
fileName
:
''
,
url
:
''
,
remarks
:
''
,
id
:
''
}],
auditList
:
[{
result
:
''
,
unit
:
''
,
time
:
''
}],
budget
:
[],
equipments
:
[],
projectSubList
:
[],
managementRuleList
:
[],
fileList
:
[],
projType
:
getType
()
},
loading
:
false
,
projType
:
getType
()
==
"1"
...
...
@@ -77,8 +94,8 @@ export default {
this
.
projectInfo
=
data
this
.
loading
=
false
}
else
this
.
$emit
(
'close'
,
'
close
'
)
}).
catch
(()
=>
{
this
.
$emit
(
'close'
,
'
close
'
)
})
this
.
$emit
(
'close'
,
'
error
'
)
}).
catch
(()
=>
{
this
.
$emit
(
'close'
,
'
error
'
)
})
}
},
onExport
()
{
...
...
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