feat:新增岗位管理

This commit is contained in:
chenchun
2024-09-04 16:24:26 +08:00
parent ad78cb1bcd
commit e393e1f525
19 changed files with 782 additions and 87 deletions

View File

@@ -10,7 +10,7 @@ import type { FormItemProps } from "../utils/types";
import type { PaginationProps } from "@pureadmin/table";
import { getKeyList, deviceDetection } from "@pureadmin/utils";
import {
listRole,
getRoleList,
getRole,
addRole,
updateRole,
@@ -180,7 +180,7 @@ export function useRole(treeRef: Ref) {
async function onSearch() {
loading.value = true;
const { data } = await listRole(toRaw(form));
const { data } = await getRoleList(toRaw(form));
dataList.value = data.items;
pagination.total = data.totalCount;
loading.value = false;