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
58407504
Commit
58407504
authored
Dec 02, 2024
by
徐俊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.yiboshi.com/XuJun/yn-science-front
parents
7078fc57
a2283227
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
108 additions
and
38 deletions
+108
-38
audit.vue
src/views/audit/project/audit.vue
+41
-8
Index.vue
src/views/report/project/Index.vue
+1
-1
memberEdit.vue
src/views/report/project/components/memberEdit.vue
+16
-15
projectInfo.vue
src/views/report/project/components/projectInfo.vue
+18
-0
projectView.vue
src/views/report/project/components/projectView.vue
+32
-14
No files found.
src/views/audit/project/audit.vue
View file @
58407504
...
@@ -2,13 +2,21 @@
...
@@ -2,13 +2,21 @@
<
template
>
<
template
>
<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"
ref=
"main"
>
<div
class=
"page-content"
>
<div
class=
"x_modal_content"
>
<div
style=
" width: 100%;height: 50px;"
>
<project-info
v-model=
"projectInfo"
v-if=
"projType"
/>
<a-tabs
type=
"card"
hideAdd
size=
"small"
@
change=
"callback"
>
<project-info-Key
v-model=
"projectInfo"
v-else
/>
<a-tab-pane
:key=
"item.key"
:tab=
"item.title"
v-for=
"(item) in tabsData"
>
<a-form-model
ref=
"form"
:model=
"auditObj"
:rules=
"rules"
class=
"from-table font-line-space"
>
</a-tab-pane>
<audit-edit
:auditObj
.
sync=
"auditObj"
/>
</a-tabs>
</a-form-model>
</div>
<div
style=
"width: 100%;height: calc(100% - 50px);overflow: auto;"
ref=
"main"
>
<div
class=
"x_modal_content"
>
<project-info
v-model=
"projectInfo"
:tabsData
.
sync=
"tabsData"
v-if=
"projType"
/>
<project-info-Key
v-model=
"projectInfo"
:tabsData
.
sync=
"tabsData"
v-else
/>
<a-form-model
ref=
"form"
:model=
"auditObj"
:rules=
"rules"
class=
"from-table font-line-space"
>
<audit-edit
:auditObj
.
sync=
"auditObj"
/>
</a-form-model>
</div>
</div>
</div>
</div>
</div>
<div
class=
"page-footer"
>
<div
class=
"page-footer"
>
...
@@ -32,6 +40,20 @@ export default {
...
@@ -32,6 +40,20 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
tabsData
:
[
{
title
:
'全部'
,
key
:
'0'
,
isShow
:
true
},
{
title
:
'基本情况'
,
key
:
'1'
,
isShow
:
true
},
{
title
:
'项目人员情况'
,
key
:
'2'
,
isShow
:
true
},
{
title
:
'项目可行性研究情况'
,
key
:
'3'
,
isShow
:
true
},
{
title
:
'项目实施目标'
,
key
:
'4'
,
isShow
:
true
},
{
title
:
'项目考核指标'
,
key
:
'5'
,
isShow
:
true
},
{
title
:
'项目经费'
,
key
:
'6'
,
isShow
:
true
},
{
title
:
'项目绩效目标表'
,
key
:
'7'
,
isShow
:
true
},
{
title
:
'项目课题设置'
,
key
:
'8'
,
isShow
:
true
},
{
title
:
'附件清单'
,
key
:
'9'
,
isShow
:
true
},
{
title
:
'单位科研项目及资金管理制度'
,
key
:
'10'
,
isShow
:
true
},
// { title: '诚信承诺书', key: '11', isShow: true },
],
projectInfo
:
{
projectInfo
:
{
id
:
null
,
id
:
null
,
organizationCode
:
null
,
organizationCode
:
null
,
...
@@ -146,7 +168,18 @@ export default {
...
@@ -146,7 +168,18 @@ export default {
},
},
changeScroll
()
{
changeScroll
()
{
this
.
$refs
.
main
.
scrollTop
=
document
.
getElementsByClassName
(
'x_modal_content'
)[
0
].
offsetHeight
this
.
$refs
.
main
.
scrollTop
=
document
.
getElementsByClassName
(
'x_modal_content'
)[
0
].
offsetHeight
}
},
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
>
...
...
src/views/report/project/Index.vue
View file @
58407504
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<a-form-item>
<a-form-item>
<a-button
type=
"primary"
icon=
"search"
@
click=
"search"
>
搜索
</a-button>
<a-button
type=
"primary"
icon=
"search"
@
click=
"search"
>
搜索
</a-button>
<a-button
icon=
"reload"
style=
"margin-left: 10px"
@
click=
"reset"
class=
"bt-normal"
>
重置
</a-button>
<a-button
icon=
"reload"
style=
"margin-left: 10px"
@
click=
"reset"
class=
"bt-normal"
>
重置
</a-button>
<
a-button
type=
"primary"
style=
"margin-left: 10px"
@
click=
"FileDownload"
icon=
"download"
>
项目合同书模板下载
</a-button
>
<
!--
<a-button
type=
"primary"
style=
"margin-left: 10px"
@
click=
"FileDownload"
icon=
"download"
>
项目合同书模板下载
</a-button>
--
>
<!--
<a-button
icon=
"primary"
style=
"margin-left: 10px"
@
click=
"FileView"
>
查看
</a-button>
-->
<!--
<a-button
icon=
"primary"
style=
"margin-left: 10px"
@
click=
"FileView"
>
查看
</a-button>
-->
</a-form-item>
</a-form-item>
</a-form>
</a-form>
...
...
src/views/report/project/components/memberEdit.vue
View file @
58407504
...
@@ -228,21 +228,22 @@ export default {
...
@@ -228,21 +228,22 @@ export default {
birthday
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'change'
},],
birthday
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'change'
},],
certificateType
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'change'
},],
certificateType
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'change'
},],
certId
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},
certId
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},
{
// {
validator
:
(
rule
,
value
,
callback
)
=>
{
// validator: (rule, value, callback) => {
if
(
value
==
''
||
value
==
undefined
)
{
// if (value == '' || value == undefined) {
callback
()
// callback()
}
// }
var
errorMsg
=
isIdentityId
(
value
);
// var errorMsg = isIdentityId(value);
if
(
errorMsg
!=
""
)
{
// if (errorMsg != "") {
callback
(
new
Error
(
errorMsg
));
// callback(new Error(errorMsg));
}
else
{
// } else {
this
.
memObject
.
sex
=
personGender
(
value
)
// this.memObject.sex = personGender(value)
this
.
memObject
.
birthday
=
personBirthday
(
value
)
+
' 00:00:00'
// this.memObject.birthday = personBirthday(value) + ' 00:00:00'
callback
()
// callback()
}
// }
}
// }
}],
// }
],
nation
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'change'
},],
nation
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'change'
},],
country
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
country
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
workUnit
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
workUnit
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
...
...
src/views/report/project/components/projectInfo.vue
View file @
58407504
...
@@ -679,6 +679,9 @@ import documentView from '@/views/components/common/documentView'
...
@@ -679,6 +679,9 @@ import documentView from '@/views/components/common/documentView'
import
AuditList
from
'@/views/audit/components/auditInfo'
import
AuditList
from
'@/views/audit/components/auditInfo'
import
{
toTextarea
}
from
'@/views/utils/common'
import
{
toTextarea
}
from
'@/views/utils/common'
export
default
{
export
default
{
components
:
{
components
:
{
projectMemberInfo
,
cooperativeUnitsInfo
,
budgetInfo
,
fundPlanInfo
,
equipmentsInfo
,
unitPaymentInfo
,
projectKpi
,
projectSubInfo
,
managementRuleInfo
,
fileInfo
,
AuditList
,
documentView
projectMemberInfo
,
cooperativeUnitsInfo
,
budgetInfo
,
fundPlanInfo
,
equipmentsInfo
,
unitPaymentInfo
,
projectKpi
,
projectSubInfo
,
managementRuleInfo
,
fileInfo
,
AuditList
,
documentView
...
@@ -703,6 +706,21 @@ export default {
...
@@ -703,6 +706,21 @@ export default {
},
},
},
},
created
()
{
created
()
{
if
(
!!!
this
.
tabsData
||
this
.
tabsData
.
length
==
0
)
this
.
tabsData
=
[
{
title
:
'全部'
,
key
:
'0'
,
isShow
:
true
},
{
title
:
'基本情况'
,
key
:
'1'
,
isShow
:
true
},
{
title
:
'项目人员情况'
,
key
:
'2'
,
isShow
:
true
},
{
title
:
'项目可行性研究情况'
,
key
:
'3'
,
isShow
:
true
},
{
title
:
'项目实施目标'
,
key
:
'4'
,
isShow
:
true
},
{
title
:
'项目考核指标'
,
key
:
'5'
,
isShow
:
true
},
{
title
:
'项目经费'
,
key
:
'6'
,
isShow
:
true
},
{
title
:
'项目绩效目标表'
,
key
:
'7'
,
isShow
:
true
},
{
title
:
'项目课题设置'
,
key
:
'8'
,
isShow
:
true
},
{
title
:
'附件清单'
,
key
:
'9'
,
isShow
:
true
},
{
title
:
'单位科研项目及资金管理制度'
,
key
:
'10'
,
isShow
:
true
},
{
title
:
'诚信承诺书'
,
key
:
'11'
,
isShow
:
true
},
]
},
},
mounted
()
{
mounted
()
{
},
},
...
...
src/views/report/project/components/projectView.vue
View file @
58407504
...
@@ -2,14 +2,18 @@
...
@@ -2,14 +2,18 @@
<
template
>
<
template
>
<div
class=
"app-content layoutEmbedded"
style=
"height: 76vh;overflow: auto;"
>
<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%;"
>
<a-tabs
type=
"card"
hideAdd
size=
"small"
@
change=
"callback"
>
<div
class=
"page-content"
>
<a-tab-pane
:key=
"item.key"
:tab=
"item.title"
v-for=
"(item) in tabsData"
>
<a-tabs
type=
"card"
hideAdd
size=
"small"
@
change=
"callback"
>
</a-tab-pane>
<a-tab-pane
:key=
"item.key"
:tab=
"item.title"
v-for=
"(item) in tabsData"
>
</a-tabs>
</a-tab-pane>
<!-- 申报项目详情 -->
</a-tabs>
<!--
<a-button
type=
"primary"
@
click=
"onExport"
>
导出
</a-button>
-->
</div>
<project-info
v-model=
"projectInfo"
:tabsData=
"tabsData"
v-if=
"projType"
/>
<div
class=
"page-footer"
>
<project-info-Key
v-model=
"projectInfo"
:tabsData=
"tabsData"
v-else
/>
<!-- 申报项目详情 -->
<!--
<a-button
type=
"primary"
@
click=
"onExport"
>
导出
</a-button>
-->
<project-info
v-model=
"projectInfo"
:tabsData
.
sync=
"tabsData"
v-if=
"projType"
/>
<project-info-Key
v-model=
"projectInfo"
:tabsData
.
sync=
"tabsData"
v-else
/>
</div>
</a-spin>
</a-spin>
</div>
</div>
</
template
>
</
template
>
...
@@ -54,18 +58,18 @@ export default {
...
@@ -54,18 +58,18 @@ export default {
data
()
{
data
()
{
return
{
return
{
tabsData
:
[
tabsData
:
[
{
title
:
'全部'
,
key
:
'0'
,
isShow
:
true
},
{
title
:
'全部'
,
key
:
'0'
,
isShow
:
true
},
{
title
:
'基本情况'
,
key
:
'1'
,
isShow
:
true
},
{
title
:
'基本情况'
,
key
:
'1'
,
isShow
:
true
},
{
title
:
'项目人员情况'
,
key
:
'2'
,
isShow
:
true
},
{
title
:
'项目人员情况'
,
key
:
'2'
,
isShow
:
true
},
{
title
:
'项目可行性研究情况'
,
key
:
'3'
,
isShow
:
true
},
{
title
:
'项目可行性研究情况'
,
key
:
'3'
,
isShow
:
true
},
{
title
:
'项目实施目标'
,
key
:
'4'
,
isShow
:
true
},
{
title
:
'项目实施目标'
,
key
:
'4'
,
isShow
:
true
},
{
title
:
'项目考核指标'
,
key
:
'5'
,
isShow
:
true
},
{
title
:
'项目考核指标'
,
key
:
'5'
,
isShow
:
true
},
{
title
:
'项目经费'
,
key
:
'6'
},
{
title
:
'项目经费'
,
key
:
'6'
,
isShow
:
true
},
{
title
:
'项目绩效目标表'
,
key
:
'7'
,
isShow
:
true
},
{
title
:
'项目绩效目标表'
,
key
:
'7'
,
isShow
:
true
},
{
title
:
'项目课题设置'
,
key
:
'8'
},
{
title
:
'项目课题设置'
,
key
:
'8'
,
isShow
:
true
},
{
title
:
'附件清单'
,
key
:
'9'
},
{
title
:
'附件清单'
,
key
:
'9'
,
isShow
:
true
},
{
title
:
'单位科研项目及资金管理制度'
,
key
:
'10'
,
isShow
:
true
},
{
title
:
'单位科研项目及资金管理制度'
,
key
:
'10'
,
isShow
:
true
},
{
title
:
'诚信承诺书'
,
key
:
'11'
,
isShow
:
true
},
//
{ title: '诚信承诺书', key: '11', isShow: true },
],
],
projectInfo
:
{
projectInfo
:
{
id
:
null
,
id
:
null
,
...
@@ -171,10 +175,24 @@ export default {
...
@@ -171,10 +175,24 @@ export default {
})
})
this
.
tabsData
[
0
].
isShow
=
true
;
this
.
tabsData
[
0
].
isShow
=
true
;
this
.
tabsData
[
index
].
isShow
=
true
;
this
.
tabsData
[
index
].
isShow
=
true
;
console
.
log
(
this
.
tabsData
);
},
},
},
},
}
}
</
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
>
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