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
2ed58a7f
Commit
2ed58a7f
authored
Mar 19, 2025
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
c85d48d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
+23
-18
talentEdit.vue
src/views/report/talent/components/talentEdit.vue
+23
-18
No files found.
src/views/report/talent/components/talentEdit.vue
View file @
2ed58a7f
...
...
@@ -413,6 +413,10 @@ export default {
fax
:
null
,
email
:
null
,
resumeList
:
[],
membersList
:
[],
budgetList
:
[],
scientificList
:
[],
fileList
:
[],
},
rules
:
{
certId
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
...
...
@@ -501,9 +505,9 @@ export default {
this
.
loading
=
true
this
.
$api
.
person
.
getPersonByCertId
({
certId
:
this
.
formData
.
certId
}).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
console
.
log
(
data
)
this
.
formData
=
data
this
.
formData
.
personId
=
data
.
id
this
.
formData
.
id
=
this
.
value
console
.
log
(
this
.
formData
)
}
this
.
loading
=
false
...
...
@@ -547,21 +551,22 @@ export default {
let
pars
=
isEmptyParams
(
obj
)
let
par
=
{
...
pars
}
this
.
$api
.
talent
.
save
(
par
).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
this
.
formData
.
id
=
data
if
(
next
)
{
this
.
$emit
(
'close'
,
'save'
)
this
.
$emit
(
'onStepChange'
,
{
step
:
step
+
1
,
state
:
arr
.
toString
()
})
}
else
{
this
.
$message
.
success
(
'成功!'
)
this
.
$emit
(
'close'
,
'submit'
)
}
}
this
.
$emit
(
'load'
,
false
)
}).
catch
(()
=>
{
this
.
$emit
(
'load'
,
false
)
})
console
.
log
(
par
)
// this.$api.talent.save(par).then(({ data = {} }) => {
// if (data) {
// this.formData.id = data
// if (next) {
// this.$emit('close', 'save')
// this.$emit('onStepChange', { step: step + 1, state: arr.toString() })
// } else {
// this.$message.success('成功!')
// this.$emit('close', 'submit')
// }
// }
// this.$emit('load', false)
// }).catch(() => {
// this.$emit('load', false)
// })
}
else
{
this
.
$message
.
error
(
'信息未填写完全!'
)
return
false
...
...
@@ -574,7 +579,7 @@ export default {
switch
(
step
)
{
case
0
:
obj
=
{
id
:
null
,
reportYear
:
null
,
certId
:
null
,
personName
:
null
,
nation
:
null
,
sex
:
null
,
birthday
:
null
,
degree
:
null
,
degreeTime
:
null
,
id
:
null
,
reportYear
:
null
,
certId
:
null
,
person
Id
:
null
,
person
Name
:
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
,
mobile
:
null
,
fax
:
null
,
email
:
null
,
}
...
...
@@ -602,7 +607,7 @@ export default {
}
})
console
.
log
(
'getObj处理后的数据:'
,
obj
)
//
console.log('getObj处理后的数据:', obj)
return
obj
},
checkInfo
(
step
)
{
...
...
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