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
5576bb2c
Commit
5576bb2c
authored
Jul 25, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ww
parent
d61290b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
37 deletions
+37
-37
index.js
src/api/index.js
+5
-0
edit.vue
src/views/evaluation/talent/components/edit.vue
+27
-27
score.vue
src/views/evaluation/talent/components/score.vue
+5
-10
No files found.
src/api/index.js
View file @
5576bb2c
...
@@ -956,6 +956,11 @@ export default {
...
@@ -956,6 +956,11 @@ export default {
return
fetch
(
`/v1/science-admin/system-parameter-type/deleteById/
${
params
.
id
}
`
,
params
,
'delete'
,
'json'
)
return
fetch
(
`/v1/science-admin/system-parameter-type/deleteById/
${
params
.
id
}
`
,
params
,
'delete'
,
'json'
)
},
},
},
},
evaluation
:
{
getEvaluationList
(
params
)
{
return
fetch
(
`/v1/science-admin/com-evaluation-item/getEvaluationList`
,
params
)
},
},
//常用工具
//常用工具
utils
:
{
utils
:
{
//直接下载文件,不让浏览器直接打开
//直接下载文件,不让浏览器直接打开
...
...
src/views/evaluation/talent/components/edit.vue
View file @
5576bb2c
...
@@ -11,23 +11,31 @@
...
@@ -11,23 +11,31 @@
<td
class=
"bg-title"
>
评分
</td>
<td
class=
"bg-title"
>
评分
</td>
<td
class=
"bg-title"
>
备注
</td>
<td
class=
"bg-title"
>
备注
</td>
</tr>
</tr>
<tr
v-for=
"(item,index) in tableData"
:key=
"'tr1'+index"
>
<tr
v-for=
"(item,index) in scoreList"
:key=
"'scoreList'+index"
type=
"flex"
class=
"row_center"
>
<td
:rowspan=
"item.row1"
v-if=
"item.row1>0"
>
{{
item
.
title1
}}
</td>
<td
:rowspan=
"item.row1"
v-if=
"item.row1>0"
>
{{
item
.
content1
}}
</td>
<td
:rowspan=
"item.row2"
v-if=
"item.row2>0"
>
{{
item
.
title2
}}
</td>
<td
:rowspan=
"item.row2"
v-if=
"item.row2>0"
>
{{
item
.
content2
}}
</td>
<td>
{{
item
.
title3
}}
</td>
<td>
{{
item
.
content
}}
</td>
<td>
{{
item
.
standard
}}
</td>
<td>
{{
item
.
scoreDetail
}}
</td>
<td></td>
<td>
<td></td>
<a-form-model-item
:prop=
"'scoreList.' + index + '.detail'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-input
v-model=
"item.detail"
style=
"width: 60%"
/>
</a-form-model-item>
</td>
<td>
<a-form-model-item
:prop=
"'scoreList.' + index + '.count'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-input-number
v-model=
"item.count"
:min=
"0"
style=
"width: 60%"
/>
</a-form-model-item>
</td>
<td
style=
"text-align: center;"
>
<td
style=
"text-align: center;"
>
<a-form-model-item
:prop=
"'score
' + item.order"
v-if=
"item.order==1
"
>
<a-form-model-item
:prop=
"'score
List.' + index + '.score'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}
">
<a-input-number
v-model=
"
value.score1"
:min=
"0"
:max=
"item.max
"
style=
"width: 60%"
/>
<a-input-number
v-model=
"
item.score"
:min=
"0"
:max=
"item.maxScore
"
style=
"width: 60%"
/>
</a-form-model-item>
</a-form-model-item>
</td>
</td>
<td>
{{
item
.
remark
}}
</td>
<td>
{{
item
.
remark
}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"7"
class=
"bg-title"
style=
"text-align: right;"
>
总分:
</td>
<td
colspan=
"7"
class=
"bg-title"
style=
"text-align: right;"
>
总分:
</td>
<td
style=
"text-align: left;padding-left: 12px;"
>
{{
Count
()
}}
分
</td>
<td
style=
"text-align: left;padding-left: 12px;"
>
分
</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
...
@@ -38,6 +46,12 @@ export default {
...
@@ -38,6 +46,12 @@ export default {
name
:
"scoreEdit"
,
name
:
"scoreEdit"
,
components
:
{},
components
:
{},
props
:
{
props
:
{
scoreList
:
{
type
:
Array
,
default
:
()
=>
{
return
[]
}
},
value
:
{
value
:
{
type
:
Object
,
type
:
Object
,
default
()
{
default
()
{
...
@@ -88,28 +102,14 @@ export default {
...
@@ -88,28 +102,14 @@ export default {
},
},
created
()
{
created
()
{
console
.
log
(
this
.
scoreList
)
},
},
methods
:
{
methods
:
{
Count
()
{
Count
()
{
var
s
=
0.0
;
for
(
var
i
=
1
;
i
<=
7
;
i
++
)
{
if
(
this
.
value
[
'score'
+
i
])
{
s
+=
parseFloat
(
this
.
value
[
'score'
+
i
])
}
}
s
=
s
.
toFixed
(
1
)
*
10
/
10
this
.
value
.
totalScore
=
s
this
.
determineType
()
return
s
},
},
determineType
()
{
determineType
()
{
if
(
this
.
value
.
totalScore
>=
80
)
this
.
value
.
evaluationType
=
1
else
if
(
this
.
value
.
totalScore
<
80
&&
this
.
value
.
totalScore
>=
60
)
this
.
value
.
evaluationType
=
2
else
this
.
value
.
evaluationType
=
3
},
},
},
},
};
};
...
...
src/views/evaluation/talent/components/score.vue
View file @
5576bb2c
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
<div
v-show=
"tabsActive==='1'"
style=
"height:100%;"
>
<div
v-show=
"tabsActive==='1'"
style=
"height:100%;"
>
<div
style=
"height:calc(100% - 40px);overflow: auto;"
ref=
"main"
>
<div
style=
"height:calc(100% - 40px);overflow: auto;"
ref=
"main"
>
<div
class=
"x_modal_content"
>
<div
class=
"x_modal_content"
>
<a-form-model
ref=
"form"
:
model=
"formData"
:
rules=
"rules"
class=
"from-table font-line-space"
>
<a-form-model
ref=
"form"
:rules=
"rules"
class=
"from-table font-line-space"
>
<edit
v-model=
"formData
"
/>
<edit
:scoreList
.
sync=
"scoreList
"
/>
</a-form-model>
</a-form-model>
</div>
</div>
</div>
</div>
...
@@ -135,12 +135,7 @@ export default {
...
@@ -135,12 +135,7 @@ export default {
check
:
{
check
:
{
time
:
5
,
title
:
'我已阅读'
,
count
:
5
,
disabled
:
false
,
time
:
5
,
title
:
'我已阅读'
,
count
:
5
,
disabled
:
false
,
},
},
formData
:
{
formData
:
{},
id
:
null
,
talentId
:
null
,
expertId
:
null
,
expertName
:
null
,
score1
:
null
,
score2
:
null
,
score3
:
null
,
score4
:
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
,
totalScore
:
null
,
remark
:
null
,
supportState
:
null
,
},
rules
:
{
rules
:
{
score1
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score1
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score2
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
score2
:
{
required
:
true
,
message
:
"*"
,
trigger
:
"blur"
},
...
@@ -185,7 +180,7 @@ export default {
...
@@ -185,7 +180,7 @@ export default {
computed
:
{
computed
:
{
},
},
created
()
{
created
()
{
this
.
get
AssignExpertById
()
this
.
get
EvaluationList
()
this
.
countStart
()
this
.
countStart
()
},
},
methods
:
{
methods
:
{
...
@@ -198,7 +193,7 @@ export default {
...
@@ -198,7 +193,7 @@ export default {
if
(
e
.
target
.
checked
)
if
(
e
.
target
.
checked
)
this
.
check
.
disabled
=
false
this
.
check
.
disabled
=
false
else
else
this
.
check
,
disabled
=
true
this
.
check
.
disabled
=
true
},
},
loadExpertInfo
()
{
loadExpertInfo
()
{
this
.
isShow
=
true
this
.
isShow
=
true
...
...
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