refactor: ♻️ 方法名统一

This commit is contained in:
hxr
2024-05-27 00:10:14 +08:00
parent a507412429
commit 6a6682a75f
5 changed files with 28 additions and 24 deletions

View File

@@ -16,7 +16,9 @@
<el-button type="primary" @click="handleQuery()"
><i-ep-search />搜索</el-button
>
<el-button @click="resetQuery()"><i-ep-refresh />重置</el-button>
<el-button @click="handleResetQuery()"
><i-ep-refresh />重置</el-button
>
</el-form-item>
</el-form>
</div>
@@ -201,7 +203,7 @@ function handleQuery() {
/**
* 重置查询
*/
function resetQuery() {
function handleResetQuery() {
queryFormRef.value.resetFields();
queryParams.pageNum = 1;
handleQuery();
@@ -286,7 +288,7 @@ function handleDelete(dictTypeId?: number) {
}).then(() => {
DictAPI.deleteDictTypes(dictTypeIds).then(() => {
ElMessage.success("删除成功");
resetQuery();
handleResetQuery();
});
});
}