lifanagju_citu 7 mesiacov pred
rodič
commit
4d0bb2b10b

+ 1 - 1
components.d.ts

@@ -30,9 +30,9 @@ declare module 'vue' {
     DatePicker: typeof import('./src/components/DatePicker/index.vue')['default']
     Details: typeof import('./src/components/Enterprise/details.vue')['default']
     Echarts: typeof import('./src/components/Echarts/index.vue')['default']
-    ElCascader: typeof import('element-plus/es')['ElCascader']
     ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
     ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
+    ElTimePicker: typeof import('element-plus/es')['ElTimePicker']
     Empty: typeof import('./src/components/Empty/index.vue')['default']
     File: typeof import('./src/components/Upload/file.vue')['default']
     HeadSearch: typeof import('./src/components/headSearch/index.vue')['default']

+ 6 - 1
src/views/recruit/entRegister/register.vue

@@ -72,7 +72,7 @@
             <TextUI v-model="item.email" :item="{...emailObj}"></TextUI>
             <TextUI v-model="item.password" :item="{...passwordObj}" @blur="passwordChange(item)"></TextUI>
             <TextUI v-model="item.passwordConfirm" :item="{...passwordConfirmObj}" @blur="passwordChange(item)"></TextUI>
-            <v-btn v-if="index" style="width: 100%; text-align: center;" variant="text" color="error" @click="contactCopy.splice(index, 1)">删除</v-btn>
+            <v-btn v-if="index" style="width: 100%; text-align: center;" variant="text" color="error" @click="delContact(index)">删除</v-btn>
           </div>
         </div>
         <v-btn class="mb-5 mt-3" style="width: 100%; text-align: center;" variant="text" color="primary" prepend-icon="mdi-plus-box" @click="addMore">继续添加</v-btn>
@@ -171,6 +171,11 @@ const handleAddContact = () => {
 const addMore = () => {
   contactCopy.value.push({...contactInfo})
 }
+const delContact = (index) => {
+  Confirm('系统提示', '是否确认删除?').then(async () => {
+    contactCopy.value.splice(index, 1)
+  })
+}
 const passwordChange = (item) => {
   if (item.password && item.passwordConfirm && item.password !== item.passwordConfirm) {
     Snackbar.warning('两次输入的密码不一致')