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
ab29540d
Commit
ab29540d
authored
Dec 20, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
222
parent
a34fb073
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
149 additions
and
3 deletions
+149
-3
config.js
src/views/evaluation/components/config.js
+0
-0
economy.vue
src/views/evaluation/components/economy.vue
+140
-2
Index.vue
src/views/query/project/Index.vue
+9
-1
No files found.
src/views/evaluation/components/config.js
View file @
ab29540d
This diff is collapsed.
Click to expand it.
src/views/evaluation/components/economy.vue
View file @
ab29540d
<
template
>
<
template
>
<div
style=
"height:75vh;overflow:auto"
class=
"app-content"
>
<div
style=
"height:75vh;overflow:auto"
class=
"app-content"
>
<a-form-model
ref=
"form"
:model=
"formData"
:rules=
"rules"
class=
"from-table font-line-space"
>
<a-row
type=
"flex"
>
<a-col
:span=
"4"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
申报项目
</div>
</div>
</a-col>
<a-col
:span=
"20"
>
<div
class=
"special-middle"
>
<div>
{{
}}
</div>
</div>
</a-col>
</a-row>
<a-row
type=
"flex"
style=
"border-bottom:0;"
class=
"none-bottom"
>
<a-col
:span=
"4"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
申报单位
</div>
</div>
</a-col>
<a-col
:span=
"8"
>
<div
class=
"special-middle"
>
<div>
{{
}}
</div>
</div>
</a-col>
<a-col
:span=
"4"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
项目申请人
</div>
</div>
</a-col>
<a-col
:span=
"8"
>
<div
class=
"special-middle"
>
<div>
{{
Count
()
}}
</div>
</div>
</a-col>
</a-row>
<table
class=
"tab-content"
style=
"width: 100%"
>
<table
class=
"tab-content"
style=
"width: 100%"
>
<tr>
<tr>
<th>
序号
</th>
<th>
序号
</th>
...
@@ -12,7 +47,7 @@
...
@@ -12,7 +47,7 @@
<th>
打分
</th>
<th>
打分
</th>
</tr>
</tr>
<tr
v-for=
"(item,index) in fromList"
:key=
"'tr1'+index"
>
<tr
v-for=
"(item,index) in fromList"
:key=
"'tr1'+index"
>
<td
:rowspan=
"item.row1"
v-if=
"item.row1>0"
>
</td>
<td
:rowspan=
"item.row1"
v-if=
"item.row1>0"
>
{{
item
.
showIndex
}}
</td>
<td
:rowspan=
"item.row1"
v-if=
"item.row1>0"
>
{{
item
.
title1
}}
</td>
<td
:rowspan=
"item.row1"
v-if=
"item.row1>0"
>
{{
item
.
title1
}}
</td>
<td
:rowspan=
"item.row2"
v-if=
"item.row2>0"
>
{{
item
.
title2
}}
</td>
<td
:rowspan=
"item.row2"
v-if=
"item.row2>0"
>
{{
item
.
title2
}}
</td>
<td
:rowspan=
"item.row3"
v-if=
"item.row3>0"
>
{{
item
.
title3
}}
</td>
<td
:rowspan=
"item.row3"
v-if=
"item.row3>0"
>
{{
item
.
title3
}}
</td>
...
@@ -79,7 +114,26 @@
...
@@ -79,7 +114,26 @@
</a-form-model-item>
</a-form-model-item>
</td>
</td>
</tr>
</tr>
<tr>
<td>
5
</td>
<td>
附加项
</td>
<td>
审计或科技计划项目检验情况
</td>
<td>
申报单位所承担科技计划项目在接受审计中期评估、“双随机一公开”等工作中的情况。
</td>
<td
colspan=
"3"
>
未发现问题,则该指标不适用;发现问题的,每涉及一个项目扣3分
</td>
<td
style=
"text-align: center;"
>
<a-form-model-item
:prop=
"'additionalScore'"
>
<a-input-number
v-model=
"formData.additionalScore"
:max=
"0"
style=
"width: 60%"
/>
</a-form-model-item>
</td>
</tr>
<tr>
<td
style=
"text-align: center;"
colspan=
"7"
>
总得分
</td>
<td
style=
"text-align: center;"
>
{{
0
}}
</td>
</tr>
</table>
</table>
</a-form-model>
</div>
</div>
</
template
>
</
template
>
...
@@ -92,19 +146,97 @@ export default {
...
@@ -92,19 +146,97 @@ export default {
value
:
{
value
:
{
type
:
Object
,
type
:
Object
,
default
()
{
default
()
{
return
formData
;
return
null
;
},
},
},
},
},
},
data
()
{
data
()
{
return
{
return
{
fromList
:
standardList
,
fromList
:
standardList
,
formData
:
{
score1
:
null
,
score2
:
null
,
score3
:
null
,
score4
:
null
,
score5
:
null
,
score6
:
null
,
score7
:
null
,
score8
:
null
,
score9
:
null
,
score10
:
null
,
score11
:
null
,
score12
:
null
,
score13
:
null
,
score14
:
null
,
score15
:
null
,
score16
:
null
,
score17
:
null
,
score18
:
null
,
score19
:
null
,
additionalScore
:
null
,
},
rules
:
{
score1
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score2
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score3
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score4
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score5
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score6
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score7
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score8
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score9
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score10
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score11
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score12
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score13
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score14
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score15
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score16
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score17
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score18
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score19
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
additionalScore
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
},
};
};
},
},
created
()
{
created
()
{
},
},
methods
:
{
methods
:
{
Count
()
{
for
(
var
i
=
1
;
i
<=
19
;
i
++
)
{
console
.
log
(
this
.
formData
[
'score'
+
i
])
}
return
0.00
// if (!source || !source.length) {
// return 0.00
// }
// let applyFunds = 0.00
// let selfFunds = 0.00
// source.forEach(i => {
// applyFunds = parseFloat(applyFunds + this.budget[i].applyFunds)
// selfFunds = parseFloat(selfFunds + this.budget[i].selfFunds)
// })
// if (type === 'applyFunds') {
// this.budget[index].applyFunds = applyFunds.toFixed(2)
// return applyFunds.toFixed(2)
// } else if (type === 'selfFunds') {
// this.budget[index].selfFunds = selfFunds.toFixed(2)
// return selfFunds.toFixed(2)
// } else {
// this.budget[index].totalBudget = (applyFunds + selfFunds).toFixed(2)
// return parseFloat(applyFunds + selfFunds).toFixed(2)
// }
},
},
},
watch
:
{
formData
:
{
handler
(
value
)
{
console
.
log
(
value
)
},
deep
:
true
}
}
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
...
@@ -169,5 +301,10 @@ export default {
...
@@ -169,5 +301,10 @@ export default {
}
}
}
}
}
}
.none-bottom {
::v-deep .ant-col {
border-bottom: 0 !important;
}
}
</
style
>
</
style
>
ant-tabs
ant-tabs
\ No newline at end of file
src/views/query/project/Index.vue
View file @
ab29540d
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
<a-divider
style=
"height: 1px; background-color: #e8e8e8;"
/>
<a-divider
style=
"height: 1px; background-color: #e8e8e8;"
/>
<div
class=
"submit-btn"
>
<div
class=
"submit-btn"
>
<a-button
type=
"primary"
@
click=
"exportData"
icon=
"download"
>
Excel
</a-button>
<a-button
type=
"primary"
@
click=
"exportData"
icon=
"download"
>
Excel
</a-button>
<!--
<a-button
type=
"primary"
@
click=
"scoreClick"
icon=
"download"
>
评分
</a-button>
-->
</div>
</div>
<a-table
:dataSource=
"tableData"
:columns=
"columns"
:scroll=
"
{ x: 'max-content' }" rowKey="id" :pagination="false" :loading="loading">
<a-table
:dataSource=
"tableData"
:columns=
"columns"
:scroll=
"
{ x: 'max-content' }" rowKey="id" :pagination="false" :loading="loading">
<template
slot=
"projName"
slot-scope=
"record"
>
<template
slot=
"projName"
slot-scope=
"record"
>
...
@@ -39,6 +40,9 @@
...
@@ -39,6 +40,9 @@
<a-modal
v-model=
"visibleView"
v-if=
"visibleView"
title=
"项目详情"
width=
"94%"
:footer=
"null"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<a-modal
v-model=
"visibleView"
v-if=
"visibleView"
title=
"项目详情"
width=
"94%"
:footer=
"null"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<project-view
v-model=
"id"
@
close=
"closeWindow"
></project-view>
<project-view
v-model=
"id"
@
close=
"closeWindow"
></project-view>
</a-modal>
</a-modal>
<a-modal
v-model=
"visibleScore"
v-if=
"visibleScore"
title=
"评分"
width=
"94%"
:footer=
"null"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<score-edit
/>
</a-modal>
</div>
</div>
</template>
</template>
...
@@ -47,7 +51,7 @@ import { getType } from '@/views/utils/auth'
...
@@ -47,7 +51,7 @@ import { getType } from '@/views/utils/auth'
import
moment
from
'moment'
import
moment
from
'moment'
import
{
isEmptyParams
,
filterExportExcelData
,
tableColumnsName
}
from
"@/views/utils/common"
;
import
{
isEmptyParams
,
filterExportExcelData
,
tableColumnsName
}
from
"@/views/utils/common"
;
import
projectView
from
'@/views/report/project/components/projectView'
import
projectView
from
'@/views/report/project/components/projectView'
import
scoreEdit
from
'@/views/evaluation/components/economy'
export
default
{
export
default
{
name
:
'queryProject'
,
name
:
'queryProject'
,
components
:
{
components
:
{
...
@@ -75,6 +79,7 @@ export default {
...
@@ -75,6 +79,7 @@ export default {
loading
:
false
,
loading
:
false
,
// 弹窗标志
// 弹窗标志
visibleView
:
false
,
visibleView
:
false
,
visibleScore
:
false
,
id
:
null
,
id
:
null
,
loadState
:
false
loadState
:
false
}
}
...
@@ -82,6 +87,9 @@ export default {
...
@@ -82,6 +87,9 @@ export default {
created
()
{
created
()
{
},
},
methods
:
{
methods
:
{
scoreClick
()
{
this
.
visibleScore
=
true
},
search
()
{
search
()
{
this
.
pagination
.
pageIndex
=
1
this
.
pagination
.
pageIndex
=
1
this
.
getListByPage
()
this
.
getListByPage
()
...
...
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