浏览代码

级联优化

lifanagju_citu 9 月之前
父节点
当前提交
0c0c6f34cb

+ 0 - 14
src/components/FormUI/nestedListGroup/index.vue

@@ -95,20 +95,6 @@ const handleMenuUpdate = (bool) => {
   }
 }
 
-
-// const inputFocus = () => {
-//   if (item.hideDetails) {
-//     hideDetails.value = true
-//     detailMargin.value = true
-//   }
-//   show.value = true
-// }
-// const inputBlur = () => {
-//   if (item.hideDetails) return
-//   hideDetails.value = item.hideDetails || false
-//   detailMargin.value = false
-// }
-
 </script>
 <style lang="scss" scoped>
 .showOnTop {

+ 10 - 1
src/views/recruit/personal/remuse/components/vocationalSkills.vue

@@ -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 }) => {