bug
This commit is contained in:
parent
50732616d0
commit
de39f3a54f
|
|
@ -26,8 +26,8 @@
|
|||
<el-button link type="primary" size="small" @click="handleEditCustomer(row)">
|
||||
编辑
|
||||
</el-button>
|
||||
<el-divider direction="vertical" />
|
||||
<el-button link type="warning" size="small" @click="handleAdjustAmount(row)">
|
||||
<el-divider direction="vertical" v-auth="'user_updateCapital'" />
|
||||
<el-button link type="warning" size="small" @click="handleAdjustAmount(row)" v-auth="'user_updateCapital'">
|
||||
调整金额
|
||||
</el-button>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
v-for="tab in tabList"
|
||||
:key="tab.name"
|
||||
:class="['tab-item', { active: activeTab === tab.name }]"
|
||||
@click="activeTab = tab.name"
|
||||
@click="switchTab(tab.name)"
|
||||
>
|
||||
{{ tab.label }}
|
||||
</div>
|
||||
|
|
@ -121,6 +121,18 @@ const rules: FormRules = {
|
|||
],
|
||||
}
|
||||
|
||||
// 切换登录方式:清空输入框并重置表单校验
|
||||
function switchTab(name: string) {
|
||||
if (activeTab.value === name) return
|
||||
activeTab.value = name
|
||||
// 清空邮箱、手机号、密码
|
||||
loginForm.value.email = ''
|
||||
loginForm.value.phone = ''
|
||||
loginForm.value.password = ''
|
||||
// 重置表单校验状态,清除错误提示
|
||||
loginFormRef.value?.clearValidate()
|
||||
}
|
||||
|
||||
// 弹窗相关
|
||||
const dialogVisible = ref(false)
|
||||
const dialogTitle = ref('')
|
||||
|
|
|
|||
Loading…
Reference in New Issue