|
@@ -2,7 +2,7 @@
|
|
|
<div class="resume-box">
|
|
|
<div class="resume-header mb-3">
|
|
|
<div class="resume-title">{{ $t('resume.vocationalSkills') }}</div>
|
|
|
- <v-btn variant="text" color="primary" prepend-icon="mdi-plus-box" @click="isEdit = true; type = 'add'">{{ $t('common.add') }}</v-btn>
|
|
|
+ <v-btn variant="text" color="primary" prepend-icon="mdi-plus-box" @click="handleAdd">{{ $t('common.add') }}</v-btn>
|
|
|
</div>
|
|
|
<div v-if="isEdit" class="edit">
|
|
|
<h4 class="label-title my-3 mx-2"> {{ type === 'add' ? $t('common.add') : $t('common.edit') }}{{ $t('resume.vocationalSkills') }}</h4>
|
|
@@ -131,6 +131,15 @@ const handleEdit = (item) => {
|
|
|
})
|
|
|
isEdit.value = true
|
|
|
}
|
|
|
+const handleAdd = () => {
|
|
|
+ editId.value = ''
|
|
|
+ isEdit.value = true
|
|
|
+ type.value = 'add'
|
|
|
+ formItems.value.options.forEach(e => {
|
|
|
+ e.value = null
|
|
|
+ })
|
|
|
+ isEdit.value = true
|
|
|
+}
|
|
|
|
|
|
// 删除 职业技能
|
|
|
const handleDelete = ({ id }) => {
|