feat:新增岗位管理
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user