This commit is contained in:
2026-06-23 13:10:14 +08:00
parent 50732616d0
commit de39f3a54f
2 changed files with 15 additions and 3 deletions

View File

@ -26,8 +26,8 @@
<el-button link type="primary" size="small" @click="handleEditCustomer(row)"> <el-button link type="primary" size="small" @click="handleEditCustomer(row)">
编辑 编辑
</el-button> </el-button>
<el-divider direction="vertical" /> <el-divider direction="vertical" v-auth="'user_updateCapital'" />
<el-button link type="warning" size="small" @click="handleAdjustAmount(row)"> <el-button link type="warning" size="small" @click="handleAdjustAmount(row)" v-auth="'user_updateCapital'">
调整金额 调整金额
</el-button> </el-button>
</template> </template>

View File

@ -14,7 +14,7 @@
v-for="tab in tabList" v-for="tab in tabList"
:key="tab.name" :key="tab.name"
:class="['tab-item', { active: activeTab === tab.name }]" :class="['tab-item', { active: activeTab === tab.name }]"
@click="activeTab = tab.name" @click="switchTab(tab.name)"
> >
{{ tab.label }} {{ tab.label }}
</div> </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 dialogVisible = ref(false)
const dialogTitle = ref('') const dialogTitle = ref('')