refactor: 权限系统模块重构完成

Former-commit-id: b33078bfbfea309af518cfab41080d0fea819491
This commit is contained in:
horizons
2022-10-21 00:59:49 +08:00
parent b0a0033371
commit cf24d080e5
16 changed files with 576 additions and 990 deletions

View File

@@ -15,9 +15,9 @@ import {
import { Dialog } from '@/types/common';
import {
listPageDictItems,
listDictItemPages,
getDictItemData,
addDictItem,
saveDictItem,
updateDictItem,
deleteDictItems
} from '@/api/dict';
@@ -90,7 +90,7 @@ const {
function handleQuery() {
if (state.queryParams.typeCode) {
state.loading = true;
listPageDictItems(state.queryParams).then(({ data }) => {
listDictItemPages(state.queryParams).then(({ data }) => {
state.dictItemList = data.list;
state.total = data.total;
state.loading = false;
@@ -146,7 +146,7 @@ function submitForm() {
handleQuery();
});
} else {
addDictItem(state.formData).then(() => {
saveDictItem(state.formData).then(() => {
ElMessage.success('新增成功');
cancel();
handleQuery();