diff --git a/SafeCampus.WEB/src/views/userManage/classManage/index.vue b/SafeCampus.WEB/src/views/userManage/classManage/index.vue index 5766234..88940d4 100644 --- a/SafeCampus.WEB/src/views/userManage/classManage/index.vue +++ b/SafeCampus.WEB/src/views/userManage/classManage/index.vue @@ -96,7 +96,7 @@ const columns: ColumnProps[] = [ el: "select", span:1, props: { - clearable: false, + clearable: true, placeholder: "请选择专业", }, }, @@ -105,7 +105,9 @@ const columns: ColumnProps[] = [ { prop: "personSetName", label: "班级名称", - search: { el: "input",span:1, } + search: { el: "input",span:1,props: { + clearable: true, + }, }, }, { diff --git a/SafeCampus.WEB/src/views/userManage/keyPersonnel/components/form/form_basic.vue b/SafeCampus.WEB/src/views/userManage/keyPersonnel/components/form/form_basic.vue index b5c6310..19d2dd6 100644 --- a/SafeCampus.WEB/src/views/userManage/keyPersonnel/components/form/form_basic.vue +++ b/SafeCampus.WEB/src/views/userManage/keyPersonnel/components/form/form_basic.vue @@ -30,6 +30,11 @@ }" > + Preview Image diff --git a/SafeCampus.WEB/src/views/userManage/keyPersonnel/index.vue b/SafeCampus.WEB/src/views/userManage/keyPersonnel/index.vue index a043ea4..f6375a8 100644 --- a/SafeCampus.WEB/src/views/userManage/keyPersonnel/index.vue +++ b/SafeCampus.WEB/src/views/userManage/keyPersonnel/index.vue @@ -24,30 +24,6 @@ - - 更多 - - @@ -67,18 +43,12 @@ import { userManageKeyPersonApi,SysUserPersonnel } from "@/api"; import { useHandleData } from "@/hooks/useHandleData"; import { FormOptEnum } from "@/enums"; import Form from "./components/form/index.vue"; -import { ArrowDown } from "@element-plus/icons-vue"; import { ColumnProps, ProTableInstance } from "@/components/ProTable/interface"; import { ElMessage } from "element-plus"; -import { useUserStore } from "@/stores/modules"; -import { TokenEnum } from "@/enums"; -import type { UploadProps } from "element-plus"; // 获取 ProTable 元素,调用其获取刷新数据方法(还能获取到当前查询参数,方便导出携带参数) const faceUrl = ref(''); const visible = ref(false); //是否显示人员表单 const proTable = ref(); -const userStore = useUserStore(); -const { accessToken } = userStore; // 表格配置项 const columns: ColumnProps[] = [ { type: "selection", fixed: "left", width: 50 }, @@ -96,8 +66,24 @@ const columns: ColumnProps[] = [ label: "姓名" }, { - prop: "personId", - label: "人员ID" + prop: "gender", + label: "性别", + enum: [{ + label: "未知", + value: "GENDER_UNKNOWN" + }, + { + label: "男", + value: "GENDER_MALE" + }, + { + label: "女", + value: "GENDER_FEMALE" + }], + }, + { + prop: "phone", + label: "手机号" }, { prop: "age", @@ -151,54 +137,6 @@ function onOpen(opt: FormOptEnum, record: {} | SysUserPersonnel.SysUserPerInfo = const RefreshTable = () => { proTable.value?.refresh(); } - - -/** 更多下拉菜单命令枚举 */ -enum cmdEnum { - AddFace = "添加人脸", -} -/** 下拉菜单参数接口 */ -interface Command { - row: SysUserPersonnel.SysUserPerInfo; - command: cmdEnum; -} - -/**配置command的参数 */ -function command(row: SysUserPersonnel.SysUserPerInfo, command: cmdEnum): Command { - return { - row: row, - command: command - }; -} -/** - * 列表更多下拉菜单点击事件 - * @param command - */ -const personId = ref(); //人员id -function handleCommand(command: Command) { - switch (command.command) { - case cmdEnum.AddFace: - personId.value = command.row.personId; //获取人员id - break - } -} - - - - - -const handleAvatarSuccess: UploadProps["onSuccess"] = (response) => { - if (response.code === 200) { - userManageKeyPersonApi.addFace({ - personId: personId.value, - faceUrl: response.data - }).then(res=>{ - RefreshTable() - }) - } else { - ElMessage.error(response.msg); - } -};