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
Nov 28, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eee
parent
532386de
Expand all
Hide 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 @@
...
@@ -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} 条`"
/>
<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>
</div>
<a-modal
v-model=
"visibleEdit"
v-if=
"visibleEdit"
title=
"项目创建/修改"
width=
"94%"
:footer=
"null"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<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>
<a-modal
v-model=
"visibleView"
v-if=
"visibleView"
title=
"项目详情"
width=
"80%"
:dialog-style=
"{ top: '8%' }"
:footer=
"null"
destroyOnClose
>
<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>
<a-modal
v-model=
"visibleFileView"
title=
"查看"
width=
"1000px"
:dialog-style=
"{ top: '10%' }"
:footer=
"null"
destroyOnClose
>
<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>
<preview-file
v-model=
"realurl.downloadUrl"
:fileName=
"realurl.fileName"
></preview-file>
...
@@ -321,6 +321,7 @@ export default {
...
@@ -321,6 +321,7 @@ export default {
});
});
},
},
createProject
()
{
createProject
()
{
this
.
visibleEdit
=
true
this
.
visibleEdit
=
true
this
.
visibleEdit
=
true
//this.$store.commit('app/addCard', { title: '项目创建', key: '1299', code: 'projectCreate', keepAlive: 1, router: '/project/create', closable: true })
//this.$store.commit('app/addCard', { title: '项目创建', key: '1299', code: 'projectCreate', keepAlive: 1, router: '/project/create', closable: true })
},
},
...
@@ -332,7 +333,9 @@ export default {
...
@@ -332,7 +333,9 @@ export default {
this
.
getListByPage
()
this
.
getListByPage
()
}
}
else
if
(
value
===
'error'
)
{
else
if
(
value
===
'error'
)
{
this
.
id
=
null
this
.
visibleEdit
=
false
this
.
visibleEdit
=
false
this
.
visibleView
=
false
}
}
},
},
onLoad
(
value
)
{
onLoad
(
value
)
{
...
@@ -418,7 +421,7 @@ export default {
...
@@ -418,7 +421,7 @@ export default {
this
.
visibleFileView
=
true
this
.
visibleFileView
=
true
}
}
},
},
projectKPI
()
{
projectKPI
()
{
this
.
projectKPIView
=
true
this
.
projectKPIView
=
true
}
}
}
}
...
...
src/views/report/project/components/projectCreate.vue
View file @
5545325f
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<div
class=
"app-content"
style=
"height: 76vh;overflow: auto;"
>
<div
class=
"app-content"
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"
>
<div
class=
"page-content"
>
<project-edit
v-model=
"value"
@
onSave=
"onSave
"
@
load=
"onLoad"
ref=
"projCreate"
v-if=
"projType"
></project-edit>
<project-edit
v-model=
"value"
@
close=
"closeWindow
"
@
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-key
v-model=
"value"
@
close=
"closeWindow
"
@
load=
"onLoad"
ref=
"projCreate"
v-else
></project-edit-key>
</div>
</div>
<div
class=
"page-footer"
>
<div
class=
"page-footer"
>
<a-button
@
click=
"save"
>
保存
</a-button>
<a-button
@
click=
"save"
>
保存
</a-button>
...
@@ -46,8 +46,8 @@ export default {
...
@@ -46,8 +46,8 @@ export default {
submit
()
{
submit
()
{
this
.
$refs
.
projCreate
.
submit
()
this
.
$refs
.
projCreate
.
submit
()
},
},
onSave
(
value
)
{
closeWindow
(
value
)
{
this
.
$emit
(
'close
Window
'
,
value
)
this
.
$emit
(
'close'
,
value
)
},
},
onLoad
(
value
)
{
onLoad
(
value
)
{
this
.
loading
=
value
this
.
loading
=
value
...
@@ -56,6 +56,10 @@ export default {
...
@@ -56,6 +56,10 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
::v-deep .ant-spin-container {
width: 100%;
height: 100%;
}
.page-content {
.page-content {
width: 100%;
width: 100%;
height: calc(100% - 40px);
height: calc(100% - 40px);
...
...
src/views/report/project/components/projectEdit.vue
View file @
5545325f
...
@@ -291,6 +291,7 @@
...
@@ -291,6 +291,7 @@
</div>
</div>
</a-col>
</a-col>
</a-row>
</a-row>
<a-row>
<a-row>
<a-col
:span=
"24"
style=
"border-top: 0px"
>
<a-col
:span=
"24"
style=
"border-top: 0px"
>
<div
class=
"tb-title"
>
<div
class=
"tb-title"
>
...
@@ -800,7 +801,7 @@ export default {
...
@@ -800,7 +801,7 @@ export default {
if
(
data
)
{
if
(
data
)
{
this
.
formData
.
id
=
data
this
.
formData
.
id
=
data
this
.
$message
.
success
(
'保存成功!'
)
this
.
$message
.
success
(
'保存成功!'
)
this
.
$emit
(
'
onSav
e'
,
'save'
)
this
.
$emit
(
'
clos
e'
,
'save'
)
}
}
this
.
$emit
(
'load'
,
false
)
this
.
$emit
(
'load'
,
false
)
}).
catch
(()
=>
{
}).
catch
(()
=>
{
...
@@ -825,7 +826,7 @@ export default {
...
@@ -825,7 +826,7 @@ export default {
if
(
data
)
{
if
(
data
)
{
this
.
formData
.
id
=
data
this
.
formData
.
id
=
data
this
.
$message
.
success
(
'成功!'
)
this
.
$message
.
success
(
'成功!'
)
this
.
$emit
(
'
onSav
e'
,
'submit'
)
this
.
$emit
(
'
clos
e'
,
'submit'
)
}
}
this
.
$emit
(
'load'
,
false
)
this
.
$emit
(
'load'
,
false
)
}).
catch
(()
=>
{
}).
catch
(()
=>
{
...
@@ -851,6 +852,5 @@ export default {
...
@@ -851,6 +852,5 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
</
style
>
</
style
>
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 {
...
@@ -22,36 +22,53 @@ export default {
data
()
{
data
()
{
return
{
return
{
projectInfo
:
{
projectInfo
:
{
projName
:
''
,
id
:
null
,
startDate
:
''
,
organizationCode
:
null
,
endDate
:
''
,
address
:
null
,
applyMoney
:
''
,
registeredAddress
:
null
,
projClassName
:
''
,
postCode
:
null
,
appPersonName
:
''
,
legalPerson
:
null
,
sex
:
''
,
workforce
:
null
,
titleName
:
''
,
specializedPersonnel
:
null
,
degreeName
:
''
,
researchPersonnel
:
null
,
specName
:
''
,
depositBank
:
null
,
jobUnit
:
''
,
bankAccount
:
null
,
mobile
:
''
,
depositBankAddress
:
null
,
address
:
''
,
interbankNumber
:
null
,
appUnitName
:
''
,
researchTotal
:
null
,
linkName
:
''
,
isResearchActive
:
null
,
linkEmail
:
''
,
researchCount
:
null
,
linkTel
:
''
,
researchPersonCount
:
null
,
knowledgeName
:
''
,
projName
:
null
,
projContent
:
''
,
leadUnit
:
null
,
projTarget
:
''
,
recommendUnit
:
null
,
projKeywords
:
''
,
startDate
:
null
,
// 合作单位
endDate
:
null
,
together
:
[{
unitName
:
''
,
unitAddress
:
''
,
projectWork
:
''
},
{
unitName
:
''
,
unitAddress
:
''
,
projectWork
:
''
}],
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
:
[],
members
:
[],
// 经费
budget
:
[],
budget
:
budgetList
(),
equipments
:
[],
projDoc
:
null
,
projectSubList
:
[],
fileList
:
[{
fileName
:
''
,
url
:
''
,
remarks
:
''
,
id
:
''
}],
managementRuleList
:
[],
auditList
:
[{
result
:
''
,
unit
:
''
,
time
:
''
}],
fileList
:
[],
projType
:
getType
()
},
},
loading
:
false
,
loading
:
false
,
projType
:
getType
()
==
"1"
projType
:
getType
()
==
"1"
...
@@ -77,8 +94,8 @@ export default {
...
@@ -77,8 +94,8 @@ export default {
this
.
projectInfo
=
data
this
.
projectInfo
=
data
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
()
{
onExport
()
{
...
...
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