feat: 完成pure角色页面对接

This commit is contained in:
橙子
2024-09-01 21:34:36 +08:00
parent 8be36f088b
commit 71fd5a13fc
12 changed files with 219 additions and 144 deletions

View File

@@ -25,11 +25,11 @@ const props = withDefaults(defineProps<FormProps>(), {
const sexOptions = [
{
value: 0,
value: "Male",
label: "男"
},
{
value: 1,
value: "Woman",
label: "女"
}
];

View File

@@ -17,16 +17,16 @@ import {
deviceDetection
} from "@pureadmin/utils";
import {
getDeptList,
getUserList,
getUser,
getRoleOption,
addUser,
delUser,
resetUserPwd,
changeUserStatus,
updateUser
} from "@/api/system";
updateUser,
getUserList
} from "@/api/system/user";
import { getRoleOption } from "@/api/system/role";
import { getDeptList } from "@/api/system/dept";
import {
ElForm,
ElInput,
@@ -116,10 +116,10 @@ export function useUser(tableRef: Ref, treeRef: Ref) {
cellRenderer: ({ row, props }) => (
<el-tag
size={props.size}
type={row.sex === 1 ? "danger" : null}
type={row.sex === "Woman" ? "danger" : null}
effect="plain"
>
{row.sex === 1 ? "女" : "男"}
{row.sex === "Woman" ? "女" : "男"}
</el-tag>
)
},