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
a3621e74
Commit
a3621e74
authored
Mar 13, 2025
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
0d39c453
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
4 deletions
+81
-4
index.js
src/api/index.js
+3
-0
talentEdit.vue
src/views/report/talent/components/talentEdit.vue
+78
-4
No files found.
src/api/index.js
View file @
a3621e74
...
...
@@ -205,6 +205,9 @@ export default {
getPersonById
(
params
)
{
return
fetch
(
`/v1/science-admin/com-person/getPersonById`
,
params
)
},
getPersonByCertId
(
params
)
{
return
fetch
(
`/v1/science-admin/com-person/getPersonByCertId`
,
params
)
},
getAppPersonInfo
()
{
return
fetch
(
'/v1/science-admin/com-person/getAppPersonInfo'
)
},
...
...
src/views/report/talent/components/talentEdit.vue
View file @
a3621e74
...
...
@@ -15,11 +15,25 @@
<div>
身份证号
</div>
</div>
</a-col>
<a-col
:span=
"
21
"
>
<a-col
:span=
"
5
"
>
<div
class=
"special-middle"
>
<div>
<a-form-model-item
prop=
"address"
>
<a-input
v-model=
"formData.certId"
:maxLength=
"18"
style=
"width: 200px;"
/>
<a-input
v-model=
"formData.certId"
@
change=
"onCertIdChange"
:maxLength=
"18"
style=
"width: 200px;"
/>
</a-form-model-item>
</div>
</div>
</a-col>
<a-col
:span=
"3"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
人才类别
</div>
</div>
</a-col>
<a-col
:span=
"13"
>
<div
class=
"special-middle"
>
<div>
<a-form-model-item
prop=
"talentCategory"
>
<para-select
v-model=
"formData.talentCategory"
:typeId=
"21"
:width=
"180"
/>
</a-form-model-item>
</div>
</div>
...
...
@@ -63,7 +77,7 @@
<div
class=
"special-middle"
>
<div>
<a-form-model-item
prop=
"nation"
>
<
base-select
v-model=
"formData.nation"
:type=
"11"
:isAll=
"true"
:width=
"12
0"
/>
<
para-select
v-model=
"formData.nation"
:typeId=
"11"
:width=
"18
0"
/>
</a-form-model-item>
</div>
</div>
...
...
@@ -393,6 +407,8 @@ export default {
holdPost2
:
null
,
holdPost3
:
null
,
telephone
:
null
,
fax
:
null
,
email
:
null
,
},
rules
:
{
certId
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
...
...
@@ -424,8 +440,40 @@ export default {
},
methods
:
{
moment
,
save
(
step
)
{
getPersonByCertId
()
{
if
(
this
.
formData
.
certId
==
""
||
this
.
formData
.
certId
==
null
)
return
this
.
loading
=
true
this
.
$api
.
person
.
getPersonByCertId
({
certId
:
this
.
formData
.
certId
}).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
console
.
log
(
data
)
this
.
formData
=
data
}
this
.
loading
=
false
}).
catch
(()
=>
{
this
.
loading
=
false
})
},
onCertIdChange
()
{
this
.
getPersonByCertId
()
},
save
(
step
)
{
if
(
this
.
checkInfo
(
step
))
{
var
obj
=
this
.
getObj
(
step
)
obj
.
step
=
step
this
.
$emit
(
'load'
,
true
)
let
pars
=
isEmptyParams
(
obj
)
let
par
=
{
...
pars
}
this
.
$api
.
talent
.
save
(
par
).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
this
.
formData
.
id
=
data
this
.
$message
.
success
(
'保存成功!'
)
this
.
$emit
(
'close'
,
'save'
)
}
this
.
$emit
(
'load'
,
false
)
}).
catch
(()
=>
{
this
.
$emit
(
'load'
,
false
)
})
}
},
submit
(
step
,
next
)
{
if
(
this
.
checkInfo
(
step
))
{
...
...
@@ -464,6 +512,32 @@ export default {
})
}
},
getObj
(
step
)
{
var
obj
=
null
switch
(
step
)
{
case
0
:
obj
=
{
id
:
null
,
reportYear
:
null
,
certId
:
null
,
personName
:
null
,
nation
:
null
,
sex
:
null
,
birthday
:
null
,
degree
:
null
,
degreeTime
:
null
,
degreeUnit
:
null
,
spec
:
null
,
graduateTeacher
:
null
,
title
:
null
,
politicalParty
:
null
,
duty
:
null
,
talentType
:
null
,
honoraryTitle
:
null
,
holdPost1
:
null
,
holdPost2
:
null
,
holdPost3
:
null
,
telephone
:
null
,
fax
:
null
,
email
:
null
,
}
break
;
case
1
:
break
;
case
2
:
break
;
case
3
:
break
;
case
4
:
break
;
case
5
:
break
;
}
Object
.
keys
(
obj
).
forEach
(
key
=>
{
obj
[
key
]
=
this
.
formData
[
key
];
})
return
obj
},
checkInfo
(
step
)
{
switch
(
step
)
{
case
0
:
...
...
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