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
80c6293a
Commit
80c6293a
authored
Dec 13, 2024
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
14ad9199
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
8 deletions
+44
-8
score.vue
src/views/evaluation/components/score.vue
+3
-1
technologyEvalucation.vue
src/views/evaluation/components/technologyEvalucation.vue
+41
-7
No files found.
src/views/evaluation/components/score.vue
View file @
80c6293a
...
@@ -185,7 +185,8 @@ export default {
...
@@ -185,7 +185,8 @@ export default {
score16
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score16
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score17
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score17
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
remark
:
[{
required
:
true
,
message
:
'请填写评审意见'
,
trigger
:
'blur'
},],
remark
:
[{
required
:
true
,
message
:
'请填写评审意见'
,
trigger
:
'blur'
},],
supportState
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
}
supportState
:
{
required
:
true
,
message
:
"请选择是否支持立项"
,
trigger
:
"blur"
},
evaluationType
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
},
},
projectInfo
:
{
projectInfo
:
{
projName
:
''
,
projName
:
''
,
...
@@ -345,6 +346,7 @@ export default {
...
@@ -345,6 +346,7 @@ export default {
}
}
},
},
submit
()
{
submit
()
{
console
.
log
(
this
.
formData
)
this
.
$refs
.
form
.
validate
(
valid
=>
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
loading
=
true
this
.
loading
=
true
...
...
src/views/evaluation/components/technologyEvalucation.vue
View file @
80c6293a
...
@@ -25,21 +25,31 @@
...
@@ -25,21 +25,31 @@
<td
class=
"bg-title"
>
评审意见
</td>
<td
class=
"bg-title"
>
评审意见
</td>
<td
colspan=
"4"
>
<td
colspan=
"4"
>
<a-form-model-item
prop=
"remark"
>
<a-form-model-item
prop=
"remark"
>
<a-textarea
placeholder=
"评审意见"
v-model=
"
value.
remark"
@
change=
"AreaChange()"
:maxLength=
"1000"
style=
"width: 90%; height: 120px; margin-top: 6px"
/>
<a-textarea
placeholder=
"评审意见"
v-model=
"remark"
@
change=
"AreaChange()"
:maxLength=
"1000"
style=
"width: 90%; height: 120px; margin-top: 6px"
/>
</a-form-model-item>
</a-form-model-item>
</td>
</td>
<td
style=
"text-align: center"
>
总分:
{{
totalScore
}}
分
</td>
<td
style=
"text-align: center"
>
总分:
{{
totalScore
}}
分
</td>
</tr>
</tr>
<tr>
<tr>
<td
class=
"bg-title"
>
是否推荐立项支持
</td>
<td
class=
"bg-title"
>
是否推荐立项支持
</td>
<td
colspan=
"
5
"
>
<td
colspan=
"
2
"
>
<a-form-model-item
prop=
"supportState"
>
<a-form-model-item
prop=
"supportState"
>
<a-radio-group
v-model=
"value.supportStat
e"
>
<a-radio-group
v-model=
"supportState"
@
change=
"supportStateChang
e"
>
<a-radio
:value=
"1"
>
是
</a-radio>
<a-radio
:value=
"1"
>
是
</a-radio>
<a-radio
:value=
"0"
>
否
</a-radio>
<a-radio
:value=
"0"
>
否
</a-radio>
</a-radio-group>
</a-radio-group>
</a-form-model-item>
</a-form-model-item>
</td>
</td>
<td
class=
"bg-title"
>
评审结果
</td>
<td
colspan=
"2"
>
<a-form-model-item
prop=
"evaluationType"
>
<a-radio-group
v-model=
"evaluationType"
@
change=
"EcaluationChange"
>
<a-radio
:value=
"1"
>
A类(通过)
</a-radio>
<a-radio
:value=
"2"
>
B类(修改)
</a-radio>
<a-radio
:value=
"3"
>
C类(不通过)
</a-radio>
</a-radio-group>
</a-form-model-item>
</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
...
@@ -75,6 +85,7 @@ const formData = {
...
@@ -75,6 +85,7 @@ const formData = {
projName
:
null
,
projName
:
null
,
projNo
:
null
,
projNo
:
null
,
};
};
const
plainOptions
=
[
'A'
,
'B'
,
'C'
];
export
default
{
export
default
{
name
:
"technologyEvalucation"
,
name
:
"technologyEvalucation"
,
...
@@ -88,6 +99,7 @@ export default {
...
@@ -88,6 +99,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
tableData
:
[
tableData
:
[
{
rowspan
:
1
,
oneLevel
:
"1.意义及必要性(5分)"
,
towLevel
:
"A:项目实施的意义及必要性(5分)"
,
title1
:
"重要(4-5分)"
,
title2
:
"较重要(2-3分)"
,
title3
:
"一般(0-1分)"
,
score
:
5
,
grade
:
null
,
},
{
rowspan
:
1
,
oneLevel
:
"1.意义及必要性(5分)"
,
towLevel
:
"A:项目实施的意义及必要性(5分)"
,
title1
:
"重要(4-5分)"
,
title2
:
"较重要(2-3分)"
,
title3
:
"一般(0-1分)"
,
score
:
5
,
grade
:
null
,
},
...
@@ -114,7 +126,11 @@ export default {
...
@@ -114,7 +126,11 @@ export default {
{
rowspan
:
0
,
oneLevel
:
"7.风险分析(10分)"
,
towLevel
:
"B:目标实现风险(4分)"
,
title1
:
"风险小(4分)"
,
title2
:
"有一定风险(3分)"
,
title3
:
"风险较大(0分)"
,
score
:
4
,
grade
:
null
,
},
{
rowspan
:
0
,
oneLevel
:
"7.风险分析(10分)"
,
towLevel
:
"B:目标实现风险(4分)"
,
title1
:
"风险小(4分)"
,
title2
:
"有一定风险(3分)"
,
title3
:
"风险较大(0分)"
,
score
:
4
,
grade
:
null
,
},
],
],
remark
:
""
,
remark
:
""
,
supportState
:
null
,
evaluationType
:
0
,
totalScore
:
0
,
totalScore
:
0
,
plainOptions
,
disabled
:
true
,
};
};
},
},
created
()
{
created
()
{
...
@@ -135,6 +151,9 @@ export default {
...
@@ -135,6 +151,9 @@ export default {
this
.
tableData
[
14
].
grade
=
this
.
value
.
score15
this
.
tableData
[
14
].
grade
=
this
.
value
.
score15
this
.
tableData
[
15
].
grade
=
this
.
value
.
score16
this
.
tableData
[
15
].
grade
=
this
.
value
.
score16
this
.
tableData
[
16
].
grade
=
this
.
value
.
score17
this
.
tableData
[
16
].
grade
=
this
.
value
.
score17
this
.
remark
=
this
.
value
.
remark
this
.
supportState
=
this
.
value
.
supportState
this
.
evaluationType
=
this
.
value
.
evaluationType
this
.
calTotalScore
()
this
.
calTotalScore
()
},
},
methods
:
{
methods
:
{
...
@@ -153,7 +172,7 @@ export default {
...
@@ -153,7 +172,7 @@ export default {
this
.
value
.
score4
=
this
.
tableData
[
index
].
grade
;
this
.
value
.
score4
=
this
.
tableData
[
index
].
grade
;
break
;
break
;
case
5
:
case
5
:
this
.
value
.
score
4
=
this
.
tableData
[
index
].
grade
;
this
.
value
.
score
5
=
this
.
tableData
[
index
].
grade
;
break
;
break
;
case
6
:
case
6
:
this
.
value
.
score6
=
this
.
tableData
[
index
].
grade
;
this
.
value
.
score6
=
this
.
tableData
[
index
].
grade
;
...
@@ -194,16 +213,31 @@ export default {
...
@@ -194,16 +213,31 @@ export default {
}
}
this
.
calTotalScore
()
this
.
calTotalScore
()
},
},
AreaChange
()
{
this
.
value
.
remark
=
this
.
remark
},
calTotalScore
()
{
calTotalScore
()
{
this
.
totalScore
=
0
;
this
.
totalScore
=
0
;
this
.
tableData
.
forEach
((
e
)
=>
{
this
.
tableData
.
forEach
((
e
)
=>
{
if
(
e
.
grade
!=
null
)
{
if
(
e
.
grade
!=
null
)
{
this
.
totalScore
+=
e
.
grade
;
this
.
totalScore
+=
e
.
grade
;
}
}
this
.
DetermineType
()
});
});
},
DetermineType
()
{
if
(
this
.
totalScore
>=
80
)
this
.
evaluationType
=
1
else
if
(
this
.
totalScore
<
80
&&
this
.
totalScore
>=
60
)
this
.
evaluationType
=
2
else
this
.
evaluationType
=
3
},
AreaChange
()
{
this
.
value
.
remark
=
this
.
remark
},
supportStateChange
()
{
this
.
value
.
supportState
=
this
.
supportState
},
EcaluationChange
()
{
this
.
value
.
evaluationType
=
this
.
evaluationType
}
}
},
},
};
};
...
...
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