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
8dd452d4
Commit
8dd452d4
authored
Mar 27, 2025
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
6ec974ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
talentEdit.vue
src/views/report/talent/components/talentEdit.vue
+31
-1
No files found.
src/views/report/talent/components/talentEdit.vue
View file @
8dd452d4
...
...
@@ -225,7 +225,7 @@
<div
class=
"special-middle"
>
<div>
<a-form-model-item
prop=
"talentType"
>
<para-check
v-model=
"formData.talentType"
:typeId=
"
16
"
:disabled=
"false"
/>
<para-check
v-model=
"formData.talentType"
:typeId=
"
talentTypeId"
:key=
"'talent-type-' + talentTypeId
"
:disabled=
"false"
/>
</a-form-model-item>
</div>
</div>
...
...
@@ -894,6 +894,36 @@ export default {
FundChange
()
{
this
.
formData
.
totalFund
=
this
.
formData
.
applyFund
+
this
.
formData
.
otherFund
}
},
computed
:
{
talentTypeId
()
{
if
(
this
.
formData
.
talentCategory
===
'57de1220-ff12-11ef-b6cb-0c42a1380f01'
||
this
.
formData
.
talentCategory
===
'57de1220-ff12-11ef-b6cb-0c42a1380f03'
)
{
return
23
;
}
else
if
(
this
.
formData
.
talentCategory
===
'57de1220-ff12-11ef-b6cb-0c42a1380f02'
)
{
return
16
;
}
else
{
return
16
;
}
}
},
watch
:
{
'formData.talentCategory'
:
{
handler
(
newVal
,
oldVal
)
{
if
(
newVal
!==
oldVal
)
{
// 清空选择
this
.
formData
.
talentType
=
[];
// 添加一个短暂的延迟,确保组件有时间响应变化
// this.$nextTick(() => {
// // 可以在这里添加一些额外的逻辑,如果需要的话
// console.log('人才类别已更改为:', newVal);
// console.log('当前使用的 typeId:', this.talentTypeId);
// });
}
},
immediate
:
true
}
}
};
</
script
>
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