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
0eca14b7
Commit
0eca14b7
authored
Jun 26, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
333
parent
7b580a66
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
75 deletions
+51
-75
index.js
src/api/index.js
+3
-0
Index.vue
src/views/report/talent/Index.vue
+11
-2
talentEdit.vue
src/views/report/talent/components/talentEdit.vue
+36
-72
talentInfo.vue
src/views/report/talent/components/talentInfo.vue
+1
-1
No files found.
src/api/index.js
View file @
0eca14b7
...
...
@@ -494,6 +494,9 @@ export default {
report
(
params
)
{
return
fetch
(
`/v1/science-admin/com-talent-apply/report`
,
params
,
'post'
,
'json'
)
},
isTalentExist
()
{
return
fetch
(
`/v1/science-admin/com-talent-apply/isTalentExist`
)
},
},
task
:
{
getListByPage
(
params
)
{
...
...
src/views/report/talent/Index.vue
View file @
0eca14b7
...
...
@@ -56,7 +56,7 @@ export default {
components
:
{
talentCreate
,
talentView
},
data
()
{
data
()
{
return
{
form
:
this
.
$form
.
createForm
(
this
,
{
name
:
'advanced_search'
}),
activekey
:
'1'
,
...
...
@@ -156,8 +156,17 @@ export default {
this
.
getListByPage
()
},
ApplyTalent
()
{
this
.
$api
.
talent
.
isTalentExist
({}).
then
(({
data
=
{}
})
=>
{
console
.
log
(
data
)
if
(
data
)
{
this
.
$message
.
error
(
'请勿重复填报!'
)
}
else
{
this
.
id
=
null
this
.
visibleEdit
=
true
}
}).
catch
(()
=>
{
this
.
$message
.
error
(
'500 Internal Server Error!'
)
})
},
closeWindow
(
value
)
{
if
(
value
===
'submit'
)
{
...
...
@@ -212,7 +221,7 @@ export default {
}).
catch
(()
=>
{
this
.
loading
=
false
})
}
},
exportData
()
{
exportData
()
{
}
}
...
...
src/views/report/talent/components/talentEdit.vue
View file @
0eca14b7
...
...
@@ -18,9 +18,10 @@
<a-col
:span=
"5"
>
<div
class=
"special-middle"
>
<div>
<a-form-model-item
prop=
"certId"
>
<a-input
v-model=
"formData.certId"
@
change=
"onCertIdChange"
:maxLength=
"18"
style=
"width: 200px;"
/>
</a-form-model-item>
{{
formData
.
certId
}}
<!--
<a-form-model-item
prop=
"certId"
>
<a-input
v-model=
"formData.certId"
:maxLength=
"18"
style=
"width: 200px;"
/>
</a-form-model-item>
-->
</div>
</div>
</a-col>
...
...
@@ -48,9 +49,10 @@
<a-col
:span=
"5"
>
<div
class=
"special-middle"
>
<div>
<a-form-model-item
prop=
"personName"
>
{{
formData
.
personName
}}
<!--
<a-form-model-item
prop=
"personName"
>
<a-input
placeholder=
"姓名(限10字)"
v-model=
"formData.personName"
:maxLength=
"10"
style=
"width:80%"
/>
</a-form-model-item>
</a-form-model-item>
-->
</div>
</div>
</a-col>
...
...
@@ -165,7 +167,7 @@
<div
class=
"special-middle"
>
<div>
<a-form-model-item
prop=
"graduateTeacher"
>
<para-check
v-model=
"formData.graduateTeacher"
:typeId=
"1
8
"
:disabled=
"false"
/>
<para-check
v-model=
"formData.graduateTeacher"
:typeId=
"1
5
"
:disabled=
"false"
/>
</a-form-model-item>
</div>
</div>
...
...
@@ -309,9 +311,10 @@
<a-col
:span=
"8"
>
<div
class=
"special-middle"
>
<div>
<a-form-model-item
prop=
"mobile"
>
{{
formData
.
mobile
}}
<!--
<a-form-model-item
prop=
"mobile"
>
<a-input
v-model=
"formData.mobile"
:maxLength=
"50"
style=
"width:80%"
/>
</a-form-model-item>
</a-form-model-item>
-->
</div>
</div>
</a-col>
...
...
@@ -322,7 +325,7 @@
<div
class=
"special-middle"
>
<div>
<a-form-model-item
prop=
"fax"
>
<a-input
v-model=
"formData.fax"
:maxLength=
"50"
style=
"width:
80%
"
/>
<a-input
v-model=
"formData.fax"
:maxLength=
"50"
style=
"width:
240px
"
/>
</a-form-model-item>
</div>
</div>
...
...
@@ -336,7 +339,7 @@
<div
class=
"special-middle"
>
<div>
<a-form-model-item
prop=
"email"
>
<a-input
v-model=
"formData.email"
:maxLength=
"50"
style=
"width:
40%
"
/>
<a-input
v-model=
"formData.email"
:maxLength=
"50"
style=
"width:
240px
"
/>
</a-form-model-item>
</div>
</div>
...
...
@@ -633,27 +636,26 @@ export default {
};
},
created
()
{
this
.
getTalentTraningInfo
()
if
(
this
.
value
)
this
.
getTalentApplyById
()
else
this
.
getNewTalentApply
()
this
.
getTalentInfo
()
},
methods
:
{
moment
,
getTalentTraningInfo
()
{
this
.
$api
.
systemSet
.
getTalentTraningInfo
().
then
(({
data
=
{}
})
=>
{
getTalentInfo
()
{
this
.
$emit
(
'load'
,
true
)
if
(
!!
this
.
value
)
{
this
.
$api
.
talent
.
getTalentApplyById
({
id
:
this
.
value
}).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
this
.
talentTraningInfo
=
data
// 处理字符串转数组
let
talentType
=
null
if
(
typeof
data
.
talentType
===
'string'
&&
data
.
talentType
)
{
data
.
talentType
=
data
.
talentType
.
split
(
','
)
talentType
=
[...
data
.
talentType
]
}
if
(
typeof
data
.
graduateTeacher
===
'string'
&&
data
.
graduateTeacher
)
{
data
.
graduateTeacher
=
data
.
graduateTeacher
.
split
(
','
)
}
})
},
getNewTalentApply
()
{
this
.
$api
.
talent
.
getNewTalentApply
({}).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
this
.
formData
=
data
this
.
formData
.
sex
=
''
this
.
talentCategoryHolder
(
talentType
)
this
.
$emit
(
'onStepChange'
,
{
step
:
0
,
state
:
data
.
completeStatus
})
this
.
loadList
()
}
else
{
...
...
@@ -664,21 +666,11 @@ export default {
this
.
$emit
(
'close'
,
'error'
)
this
.
$emit
(
'load'
,
false
)
})
},
getTalentApplyById
()
{
this
.
$api
.
talent
.
getTalentApplyById
({
id
:
this
.
value
}).
then
(({
data
=
{}
})
=>
{
}
else
{
this
.
$api
.
talent
.
getNewTalentApply
({}).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
// 处理字符串转数组
let
talentType
=
null
if
(
typeof
data
.
talentType
===
'string'
&&
data
.
talentType
)
{
data
.
talentType
=
data
.
talentType
.
split
(
','
)
talentType
=
[...
data
.
talentType
]
}
if
(
typeof
data
.
graduateTeacher
===
'string'
&&
data
.
graduateTeacher
)
{
data
.
graduateTeacher
=
data
.
graduateTeacher
.
split
(
','
)
}
this
.
formData
=
data
this
.
talentCategoryHolder
(
talentType
)
this
.
formData
.
sex
=
''
this
.
$emit
(
'onStepChange'
,
{
step
:
0
,
state
:
data
.
completeStatus
})
this
.
loadList
()
}
else
{
...
...
@@ -689,32 +681,14 @@ export default {
this
.
$emit
(
'close'
,
'error'
)
this
.
$emit
(
'load'
,
false
)
})
}
},
getPersonByCertId
()
{
if
(
this
.
formData
.
certId
==
""
||
this
.
formData
.
certId
==
null
)
return
this
.
loading
=
true
this
.
$api
.
person
.
getPersonByCertId
({
certId
:
this
.
formData
.
certId
}).
then
(({
data
=
{}
})
=>
{
getTalentTraningInfo
()
{
this
.
$api
.
systemSet
.
getTalentTraningInfo
().
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
this
.
formData
.
personId
=
data
.
id
this
.
formData
.
personName
=
data
.
personName
this
.
formData
.
sex
=
data
.
sex
this
.
formData
.
nation
=
data
.
nation
this
.
formData
.
birthday
=
data
.
birthday
this
.
formData
.
degree
=
data
.
degree
this
.
formData
.
degreeTime
=
data
.
degreeTime
this
.
formData
.
degreeUnit
=
data
.
degreeUnit
this
.
formData
.
graduateTeacher
=
data
.
graduateTeacher
//this.formData.politicalParty = data.politicalParty
this
.
formData
.
title
=
data
.
title
this
.
formData
.
spec
=
data
.
spec
this
.
formData
.
mobile
=
data
.
mobile
this
.
formData
.
email
=
data
.
email
this
.
formData
.
fax
=
data
.
fax
this
.
talentTraningInfo
=
data
}
this
.
loading
=
false
}).
catch
(()
=>
{
this
.
loading
=
false
})
})
},
loadList
()
{
if
(
!!!
this
.
formData
.
membersList
||
this
.
formData
.
membersList
.
length
==
0
)
...
...
@@ -732,9 +706,6 @@ export default {
if
(
!!!
this
.
formData
.
fileList
||
this
.
formData
.
fileList
.
length
==
0
)
this
.
formData
.
fileList
=
[]
},
onCertIdChange
()
{
this
.
getPersonByCertId
()
},
save
(
step
)
{
if
(
this
.
checkInfo
(
step
))
{
var
obj
=
this
.
getObj
(
step
)
...
...
@@ -895,14 +866,7 @@ export default {
checkInfo
(
step
)
{
switch
(
step
)
{
case
0
:
if
(
this
.
formData
.
certId
==
""
||
this
.
formData
.
certId
==
null
)
{
alert
(
'身份证号不能为空'
)
return
false
}
if
(
this
.
formData
.
personName
==
""
||
this
.
formData
.
personName
==
null
)
{
alert
(
'人员姓名不能为空'
)
return
false
}
else
return
true
return
true
break
;
case
1
:
return
this
.
checkResumeList
()
...
...
src/views/report/talent/components/talentInfo.vue
View file @
0eca14b7
...
...
@@ -141,7 +141,7 @@
<a-col
:span=
"5"
>
<div
class=
"special-middle"
>
<div>
<para-check
v-model=
"value.graduateTeacher"
:typeId=
"1
8
"
:disabled=
"true"
/>
<para-check
v-model=
"value.graduateTeacher"
:typeId=
"1
5
"
:disabled=
"true"
/>
</div>
</div>
</a-col>
...
...
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