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
c85d48d0
Commit
c85d48d0
authored
Mar 19, 2025
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
5b55bb04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
7 deletions
+65
-7
index.js
src/api/index.js
+7
-1
talentEdit.vue
src/views/report/talent/components/talentEdit.vue
+58
-6
No files found.
src/api/index.js
View file @
c85d48d0
...
@@ -476,9 +476,15 @@ export default {
...
@@ -476,9 +476,15 @@ export default {
getCount
(
params
)
{
getCount
(
params
)
{
return
fetch
(
`/v1/science-admin/com-talent-apply/getCount`
,
params
)
return
fetch
(
`/v1/science-admin/com-talent-apply/getCount`
,
params
)
},
},
getNewTalentApply
()
{
return
fetch
(
`/v1/science-admin/com-talent-apply/getNewTalentApply`
)
},
getTalentApplyById
(
params
)
{
return
fetch
(
`/v1/science-admin/com-talent-apply/getTalentApplyById`
,
params
)
},
save
(
params
)
{
save
(
params
)
{
return
fetch
(
`/v1/science-admin/com-talent-apply/save`
,
params
,
'post'
,
'json'
)
return
fetch
(
`/v1/science-admin/com-talent-apply/save`
,
params
,
'post'
,
'json'
)
}
}
,
},
},
task
:
{
task
:
{
getListByPage
(
params
)
{
getListByPage
(
params
)
{
...
...
src/views/report/talent/components/talentEdit.vue
View file @
c85d48d0
...
@@ -308,8 +308,8 @@
...
@@ -308,8 +308,8 @@
</a-col>
</a-col>
<a-col
:span=
"8"
>
<a-col
:span=
"8"
>
<div>
<div>
<a-form-model-item
prop=
"
telephon
e"
>
<a-form-model-item
prop=
"
mobil
e"
>
<a-input
v-model=
"formData.
telephon
e"
:maxLength=
"50"
style=
"width:80%"
/>
<a-input
v-model=
"formData.
mobil
e"
:maxLength=
"50"
style=
"width:80%"
/>
</a-form-model-item>
</a-form-model-item>
</div>
</div>
</a-col>
</a-col>
...
@@ -409,7 +409,7 @@ export default {
...
@@ -409,7 +409,7 @@ export default {
holdPost1
:
null
,
holdPost1
:
null
,
holdPost2
:
null
,
holdPost2
:
null
,
holdPost3
:
null
,
holdPost3
:
null
,
telephon
e
:
null
,
mobil
e
:
null
,
fax
:
null
,
fax
:
null
,
email
:
null
,
email
:
null
,
resumeList
:
[],
resumeList
:
[],
...
@@ -433,17 +433,67 @@ export default {
...
@@ -433,17 +433,67 @@ export default {
holdPost1
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
holdPost1
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
holdPost2
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
holdPost2
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
holdPost3
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
holdPost3
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
telephon
e
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
}],
mobil
e
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
}],
fax
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
}],
fax
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
}],
email
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
}],
email
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
}],
},
},
};
};
},
},
created
()
{
created
()
{
if
(
this
.
value
)
this
.
getTalentApplyById
()
else
this
.
getNewTalentApply
()
},
},
methods
:
{
methods
:
{
moment
,
moment
,
getNewTalentApply
()
{
this
.
$api
.
talent
.
getNewTalentApply
({
}).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
this
.
formData
=
data
this
.
formData
.
sex
=
''
this
.
$emit
(
'onStepChange'
,
{
step
:
0
,
state
:
data
.
completeStatus
})
this
.
loadList
()
}
else
{
this
.
$emit
(
'close'
,
'error'
)
}
this
.
$emit
(
'load'
,
false
)
}).
catch
(()
=>
{
this
.
$emit
(
'close'
,
'error'
)
this
.
$emit
(
'load'
,
false
)
})
},
getTalentApplyById
()
{
this
.
$api
.
talent
.
getTalentApplyById
({
id
:
this
.
value
}).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
this
.
formData
=
data
this
.
$emit
(
'onStepChange'
,
{
step
:
0
,
state
:
data
.
completeStatus
})
this
.
loadList
()
}
else
{
this
.
$emit
(
'close'
,
'error'
)
}
this
.
$emit
(
'load'
,
false
)
}).
catch
(()
=>
{
this
.
$emit
(
'close'
,
'error'
)
this
.
$emit
(
'load'
,
false
)
})
},
loadList
()
{
if
(
!!!
this
.
formData
.
membersList
||
this
.
formData
.
membersList
.
length
==
0
)
this
.
formData
.
membersList
=
[]
if
(
!!!
this
.
formData
.
budgetList
||
this
.
formData
.
budgetList
.
length
==
0
)
this
.
formData
.
budgetList
=
[]
if
(
!!!
this
.
formData
.
resumeList
||
this
.
formData
.
resumeList
.
length
==
0
)
this
.
formData
.
resumeList
=
[]
if
(
!!!
this
.
formData
.
scientificList
||
this
.
formData
.
scientificList
.
length
==
0
)
this
.
formData
.
scientificList
=
[]
if
(
!!!
this
.
formData
.
fileList
||
this
.
formData
.
fileList
.
length
==
0
)
this
.
formData
.
fileList
=
[]
},
getPersonByCertId
()
{
getPersonByCertId
()
{
if
(
this
.
formData
.
certId
==
""
||
this
.
formData
.
certId
==
null
)
if
(
this
.
formData
.
certId
==
""
||
this
.
formData
.
certId
==
null
)
return
return
...
@@ -451,8 +501,10 @@ export default {
...
@@ -451,8 +501,10 @@ export default {
this
.
loading
=
true
this
.
loading
=
true
this
.
$api
.
person
.
getPersonByCertId
({
certId
:
this
.
formData
.
certId
}).
then
(({
data
=
{}
})
=>
{
this
.
$api
.
person
.
getPersonByCertId
({
certId
:
this
.
formData
.
certId
}).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
if
(
data
)
{
console
.
log
(
data
)
this
.
formData
=
data
this
.
formData
=
data
this
.
formData
.
personId
=
data
.
id
this
.
formData
.
personId
=
data
.
id
console
.
log
(
this
.
formData
)
}
}
this
.
loading
=
false
this
.
loading
=
false
}).
catch
(()
=>
{
this
.
loading
=
false
})
}).
catch
(()
=>
{
this
.
loading
=
false
})
...
@@ -524,7 +576,7 @@ export default {
...
@@ -524,7 +576,7 @@ export default {
obj
=
{
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
,
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
,
degreeUnit
:
null
,
spec
:
null
,
graduateTeacher
:
null
,
title
:
null
,
politicalParty
:
null
,
duty
:
null
,
talentType
:
null
,
honoraryTitle
:
null
,
holdPost1
:
null
,
holdPost2
:
null
,
holdPost3
:
null
,
telephon
e
:
null
,
fax
:
null
,
email
:
null
,
holdPost1
:
null
,
holdPost2
:
null
,
holdPost3
:
null
,
mobil
e
:
null
,
fax
:
null
,
email
:
null
,
}
}
break
;
break
;
case
1
:
case
1
:
...
...
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