|
@@ -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('两次输入的密码不一致')
|