chore: 整理项目资源和配置

This commit is contained in:
Ray.Hao
2026-06-12 21:21:49 +08:00
parent 830651c0d7
commit 288ea9b43d
30 changed files with 128 additions and 199 deletions

View File

@@ -579,11 +579,8 @@ $radius: 10px;
&__end {
display: flex;
gap: 16px;
gap: 20px;
align-items: center;
padding: 10px 14px;
background: var(--el-color-primary-light-9);
border-radius: 8px;
}
}

View File

@@ -31,7 +31,7 @@
</el-button>
<el-button
v-hasPerm="['sys:config:refresh']"
color="#626aef"
type="primary"
icon="RefreshLeft"
@click="refreshCache"
>

View File

@@ -328,17 +328,10 @@ function handleQuery(): void {
}
/**
* 重置查询条件
*/
function resetQuery(): void {
queryFormRef.value?.resetFields();
}
/**
* 重置查询条件并重新查询
* 重置搜索条件并重新查询。
*/
function handleResetQuery(): void {
resetQuery();
queryFormRef.value?.resetFields();
handleQuery();
}

View File

@@ -78,7 +78,7 @@
导入
</el-button>
<el-button v-hasPerm="'sys:user:export'" icon="download" @click="exportUsers">
<el-button v-hasPerm="'sys:user:export'" icon="download" @click="handleExport">
导出
</el-button>
</div>
@@ -347,19 +347,12 @@ function handleQuery(): void {
}
/**
* 重置查询条件
* 重置搜索条件并重新查询。
*/
function resetQuery(): void {
function handleResetQuery(): void {
queryFormRef.value?.resetFields();
tableData.params.deptId = undefined;
tableData.params.createTime = undefined;
}
/**
* 重置查询条件并重新查询
*/
function handleResetQuery(): void {
resetQuery();
handleQuery();
}
@@ -509,10 +502,7 @@ function handleDelete(id?: string): void {
);
}
/**
* 导出用户列表
*/
async function exportUsers(): Promise<void> {
async function handleExport(): Promise<void> {
const response = await UserAPI.export(tableData.params);
downloadFile(response);
ElMessage.success("导出成功");