【修改】页面细节

This commit is contained in:
YOHO\20373
2025-05-27 20:06:16 +08:00
committed by 陆光LG
parent fc77d77afc
commit 33ff37d3d8
14 changed files with 72 additions and 63 deletions

View File

@@ -74,9 +74,17 @@
<!-- />-->
<!-- </el-form-item>-->
<el-form-item>
<el-button @click="handleQuery"><Icon icon="ep:search" />搜索</el-button>
<el-button @click="resetQuery"><Icon icon="ep:refresh" />重置</el-button>
<el-button
<!-- <el-button @click="handleQuery"><Icon icon="ep:search" />搜索</el-button>
<el-button @click="resetQuery"><Icon icon="ep:refresh" />重置</el-button> -->
<el-button
type="danger"
class="ele-btn-del"
:disabled="!selections.length"
@click="handleDeletes()"
>
批量删除
</el-button>
<el-button
type="warning"
plain
@click="handleImport"
@@ -746,13 +754,32 @@ const handleDelete = async (id: number) => {
// 删除的二次确认
await message.delConfirm()
// 发起删除
await UserApi.deleteUser(id)
await QuestionApi.removeQuestions(id)
message.success(t('common.delSuccess'))
// 刷新列表
await getList()
} catch {}
}
const handleDeletes = async () => {
try {
const rows = selections.value;
if (!rows.length) {
message.error('请至少选择一条数据');
return;
}
selectedRows.value = rows.map((d: any) => d.quId); // 保存选中的行数据
await QuestionApi.removeQuestions(selectedRows.value)
message.success(t('common.delSuccess'))
// 刷新列表
await getList()
} catch {}
}
/** 重置密码 */
const handleResetPwd = async (row: UserApi.UserVO) => {
try {