chore: 整理项目资源和配置
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
</el-button>
|
||||
<el-button
|
||||
v-hasPerm="['sys:config:refresh']"
|
||||
color="#626aef"
|
||||
type="primary"
|
||||
icon="RefreshLeft"
|
||||
@click="refreshCache"
|
||||
>
|
||||
|
||||
@@ -328,17 +328,10 @@ function handleQuery(): void {
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置查询条件
|
||||
*/
|
||||
function resetQuery(): void {
|
||||
queryFormRef.value?.resetFields();
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置查询条件并重新查询
|
||||
* 重置搜索条件并重新查询。
|
||||
*/
|
||||
function handleResetQuery(): void {
|
||||
resetQuery();
|
||||
queryFormRef.value?.resetFields();
|
||||
handleQuery();
|
||||
}
|
||||
|
||||
|
||||
@@ -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("导出成功");
|
||||
|
||||
Reference in New Issue
Block a user