From e29b79b9b04f07e33785ce66b80562d27f8a0f94 Mon Sep 17 00:00:00 2001
From: wwp <782568523@qq.com>
Date: Wed, 17 Jul 2024 18:04:22 +0800
Subject: [PATCH 01/10] 111
---
.../views/practicalTraining/model/index.vue | 175 ++++++++++++++++++
.../src/views/sysconfig/push/index.vue | 128 +++++++++++++
SafeCampus.WEB/src/views/warn/zjrq/index.vue | 24 ++-
3 files changed, 320 insertions(+), 7 deletions(-)
create mode 100644 SafeCampus.WEB/src/views/practicalTraining/model/index.vue
create mode 100644 SafeCampus.WEB/src/views/sysconfig/push/index.vue
diff --git a/SafeCampus.WEB/src/views/practicalTraining/model/index.vue b/SafeCampus.WEB/src/views/practicalTraining/model/index.vue
new file mode 100644
index 0000000..45fa21f
--- /dev/null
+++ b/SafeCampus.WEB/src/views/practicalTraining/model/index.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+
+ 已部署
+ 未部署
+
+
+
+ {{
+ dictStore.dictTranslation(SysDictEnum.MENU_TYPE, MenuTypeDictEnum.MENU)
+ }}
+ {{
+ dictStore.dictTranslation(SysDictEnum.MENU_TYPE, MenuTypeDictEnum.LINK)
+ }}
+ {{ dictStore.dictTranslation(SysDictEnum.MENU_TYPE, scope.row.menuType) }}
+ 首页
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SafeCampus.WEB/src/views/sysconfig/push/index.vue b/SafeCampus.WEB/src/views/sysconfig/push/index.vue
new file mode 100644
index 0000000..1092593
--- /dev/null
+++ b/SafeCampus.WEB/src/views/sysconfig/push/index.vue
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+ 推送规则
+
+
当日预警每达到
+
+
条时进行推送
+
当日预警数据每达到设置的条数后,会进行消息推送。
+
+
+ 保 存
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SafeCampus.WEB/src/views/warn/zjrq/index.vue b/SafeCampus.WEB/src/views/warn/zjrq/index.vue
index be69a3d..71136fd 100644
--- a/SafeCampus.WEB/src/views/warn/zjrq/index.vue
+++ b/SafeCampus.WEB/src/views/warn/zjrq/index.vue
@@ -98,6 +98,12 @@
+
+
+
+
+
+
@@ -109,6 +115,16 @@ import { useHandleData } from "@/hooks/useHandleData";
import { ColumnProps, ProTableInstance } from "@/components/ProTable/interface";
import { useDictStore } from "@/stores/modules";
import { FormOptEnum, SysDictEnum, MenuTypeDictEnum } from "@/enums";
+const faceUrl = ref('');
+const preViewvisible = ref(false); //是否显示人员表单
+const viewHeadImage = (scope: any) => {
+ faceUrl.value = scope.row.snapshotUrl;
+ preViewvisible.value = true
+ console.log(faceUrl);
+};
+const previewhandleClose = () => {
+ preViewvisible.value = false;
+};
const visible = ref(false); //是否显示表单
onMounted(() => {
getWarnTypeList();
@@ -161,13 +177,7 @@ const columns: ColumnProps[] = [
label: "告警快照",
render: scope => {
return (
- {
- window.open(scope.row.snapshotUrl, "_blank");
- }}
- />
+ viewHeadImage(scope)} style='width:50px;height:50px;' alt=''/>
);
}
},
From a094cac38a498bd90205a29cd8e245fe718539ac Mon Sep 17 00:00:00 2001
From: suyanyan <1321717064@qq.com>
Date: Thu, 18 Jul 2024 09:24:31 +0800
Subject: [PATCH 02/10] =?UTF-8?q?=E6=A0=91=E6=B7=BB=E5=8A=A0=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
SafeCampus.WEB/src/components/TreeFilter/index.scss | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/SafeCampus.WEB/src/components/TreeFilter/index.scss b/SafeCampus.WEB/src/components/TreeFilter/index.scss
index 35a203d..80e0c70 100644
--- a/SafeCampus.WEB/src/components/TreeFilter/index.scss
+++ b/SafeCampus.WEB/src/components/TreeFilter/index.scss
@@ -26,7 +26,8 @@
.el-tree-node.is-current > .el-tree-node__content {
background-color: var(--el-color-primary);
.el-tree-node__label,
- .el-tree-node__expand-icon {
+ .el-tree-node__expand-icon,
+ .el-dropdown .el-link {
color: white;
}
.is-leaf {
From 38287f642c0747fad7ad7dba90178a34bc916bc9 Mon Sep 17 00:00:00 2001
From: suyanyan <1321717064@qq.com>
Date: Thu, 18 Jul 2024 13:09:38 +0800
Subject: [PATCH 03/10] =?UTF-8?q?=E7=8F=AD=E4=B8=BB=E4=BB=BB=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
SafeCampus.WEB/src/api/interface/index.ts | 7 ++
.../api/interface/sys/usermanage/clothing.ts | 75 +++++++++++
.../src/api/interface/sys/usermanage/index.ts | 1 +
.../api/interface/sys/usermanage/personnel.ts | 12 +-
.../src/api/modules/usermanage/classManage.ts | 4 +-
.../src/api/modules/usermanage/clothing.ts | 68 ++++++++++
.../src/api/modules/usermanage/index.ts | 2 +
.../src/api/modules/usermanage/teacher.ts | 54 ++++++++
.../personnel/components/form/form_basic.vue | 13 +-
.../components/formTeacher/index.vue | 116 ++++++++++++++++++
.../src/views/userManage/personnel/index.vue | 84 +++++++++++--
11 files changed, 413 insertions(+), 23 deletions(-)
create mode 100644 SafeCampus.WEB/src/api/interface/sys/usermanage/clothing.ts
create mode 100644 SafeCampus.WEB/src/api/modules/usermanage/clothing.ts
create mode 100644 SafeCampus.WEB/src/api/modules/usermanage/teacher.ts
create mode 100644 SafeCampus.WEB/src/views/userManage/personnel/components/formTeacher/index.vue
diff --git a/SafeCampus.WEB/src/api/interface/index.ts b/SafeCampus.WEB/src/api/interface/index.ts
index 016fab3..f28ec7f 100644
--- a/SafeCampus.WEB/src/api/interface/index.ts
+++ b/SafeCampus.WEB/src/api/interface/index.ts
@@ -51,6 +51,13 @@ export interface ReqId {
/** id */
id: number | string;
}
+
+/** ReqClothId请求参数 */
+export interface ReqClothId {
+ /** ReqClothId */
+ clothSetId: number | string;
+}
+
/** id请求参数 */
export interface ReqPersonId {
/** id */
diff --git a/SafeCampus.WEB/src/api/interface/sys/usermanage/clothing.ts b/SafeCampus.WEB/src/api/interface/sys/usermanage/clothing.ts
new file mode 100644
index 0000000..3d2f656
--- /dev/null
+++ b/SafeCampus.WEB/src/api/interface/sys/usermanage/clothing.ts
@@ -0,0 +1,75 @@
+/**
+ * @description 用户管理接口
+ * @license Apache License Version 2.0
+ * @Copyright (c) 2022-Now 少林寺驻北固山办事处大神父王喇嘛
+ * @remarks
+ * SimpleAdmin 基于 Apache License Version 2.0 协议发布,可用于商业项目,但必须遵守以下补充条款:
+ * 1.请不要删除和修改根目录下的LICENSE文件。
+ * 2.请不要删除和修改SimpleAdmin源码头部的版权声明。
+ * 3.分发源码时候,请注明软件出处 https://gitee.com/dotnetmoyu/SimpleAdmin
+ * 4.基于本软件的作品,只能使用 SimpleAdmin 作为后台服务,除外情况不可商用且不允许二次分发或开源。
+ * 5.请不得将本软件应用于危害国家安全、荣誉和利益的行为,不能以任何形式用于非法为目的的行为不要删除和修改作者声明。
+ * 6.任何基于本软件而产生的一切法律纠纷和责任,均于我司无关
+ */
+
+import { ReqPage } from "@/api";
+/**
+ * @Description: 服装底库管理接口
+ * @Author: syy
+ * @Date: 2023-12-15 15:34:54
+ */
+
+export namespace SysUserCloth {
+ // 服装底库树
+ export interface Page {
+ clothSetId: number | string;
+ clothSetName: number | string;
+ }
+
+ /** id请求参数 */
+ export interface ReqName {
+ name: number | string;
+ }
+ /** 底库信息 */
+ export interface ClassPage {
+ personSetId?: string | number | undefined;
+ personSetName?: string | undefined;
+ id?: string | undefined;
+ name?: string | undefined;
+ personId?: string | undefined | number;
+ }
+ /** 人脸信息 */
+ export interface SysUserAvatar {
+ /** 人脸 */
+ personId?: string | undefined | number;
+ faceId?: string | number;
+ faceUrl: string;
+ uid?: string | number;
+ }
+ // 人脸删除
+ export interface SysUserFace {
+ personId: string | undefined;
+ faceIds: Array;
+ }
+
+ /** 用户信息 */
+ export interface SysUserClothInfo {
+ /** 人员id */
+ personId?: string;
+ /** 姓名 */
+ name?: string;
+ /** 年龄 */
+ age?: number | string;
+ /** 性别 */
+ gender?: string;
+ /** 手机 */
+ phone?: string;
+ /** 扩展字段 */
+ extData?: string;
+ /** 人脸 */
+ faces: Array;
+ /** 分组 */
+ personSets: Array;
+ personSetId?: number | string;
+ }
+}
diff --git a/SafeCampus.WEB/src/api/interface/sys/usermanage/index.ts b/SafeCampus.WEB/src/api/interface/sys/usermanage/index.ts
index 7d0c865..ee39b36 100644
--- a/SafeCampus.WEB/src/api/interface/sys/usermanage/index.ts
+++ b/SafeCampus.WEB/src/api/interface/sys/usermanage/index.ts
@@ -13,3 +13,4 @@
* @see https://gitee.com/dotnetmoyu/SimpleAdmin
*/
export * from "./personnel";
+export * from "./clothing";
diff --git a/SafeCampus.WEB/src/api/interface/sys/usermanage/personnel.ts b/SafeCampus.WEB/src/api/interface/sys/usermanage/personnel.ts
index 8f91f0c..69bfe0a 100644
--- a/SafeCampus.WEB/src/api/interface/sys/usermanage/personnel.ts
+++ b/SafeCampus.WEB/src/api/interface/sys/usermanage/personnel.ts
@@ -26,9 +26,11 @@ export namespace SysUserPersonnel {
export interface ClassPage {
personSetId?: string | number | undefined;
personSetName?: string | undefined;
- id?: string | undefined;
- name?: string | undefined;
- personId?: string | undefined | number;
+ id?: string | number | undefined;
+ name?: string | number | undefined;
+ userId?: string | number | undefined;
+ personId?: string | number | undefined;
+ userName?: string | number | undefined;
}
/** 人脸信息 */
export interface SysUserAvatar {
@@ -59,9 +61,9 @@ export namespace SysUserPersonnel {
/** 扩展字段 */
extData?: string;
/** 人脸 */
- faces: Array;
+ faces: any;
/** 分组 */
- personSets: Array;
+ personSets: any;
personSetId?: number | string;
}
}
diff --git a/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts b/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts
index 7c233af..78b33e7 100644
--- a/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts
+++ b/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts
@@ -23,8 +23,8 @@ const http = moduleRequest("/business/dfieldApi/");
*/
const userManageClassManageApi = {
/** 查询底库列表 */
- page(params: SysUserPersonnel.ClassPage) {
- return http.get("queryAll", params);
+ page() {
+ return http.get("queryAll");
},
/** 删除底库 */
delete(params: ReqId) {
diff --git a/SafeCampus.WEB/src/api/modules/usermanage/clothing.ts b/SafeCampus.WEB/src/api/modules/usermanage/clothing.ts
new file mode 100644
index 0000000..b1aff8e
--- /dev/null
+++ b/SafeCampus.WEB/src/api/modules/usermanage/clothing.ts
@@ -0,0 +1,68 @@
+/**
+ * @description 单页管理接口
+ * @license Apache License Version 2.0
+ * @Copyright (c) 2022-Now 少林寺驻北固山办事处大神父王喇嘛
+ * @remarks
+ * SimpleAdmin 基于 Apache License Version 2.0 协议发布,可用于商业项目,但必须遵守以下补充条款:
+ * 1.请不要删除和修改根目录下的LICENSE文件。
+ * 2.请不要删除和修改SimpleAdmin源码头部的版权声明。
+ * 3.分发源码时候,请注明软件出处 https://gitee.com/dotnetmoyu/SimpleAdmin
+ * 4.基于本软件的作品,只能使用 SimpleAdmin 作为后台服务,除外情况不可商用且不允许二次分发或开源。
+ * 5.请不得将本软件应用于危害国家安全、荣誉和利益的行为,不能以任何形式用于非法为目的的行为不要删除和修改作者声明。
+ * 6.任何基于本软件而产生的一切法律纠纷和责任,均于我司无关
+ * @see https://gitee.com/dotnetmoyu/SimpleAdmin
+ */
+import { moduleRequest } from "@/api/request";
+import { ReqId, SysUserCloth, ReqClothId } from "@/api/interface";
+const http = moduleRequest("/business/clothApi/");
+/**
+ * @Description: 单页管理
+ * @Author: SYY
+ * @Date: 2023-12-15 15:34:54
+ */
+const userManageClothApi = {
+ /** 查询服装底库列表 */
+ getList(params: SysUserCloth.Page) {
+ return http.get("getList", params);
+ },
+ /** 查询服装底库详情 */
+ page(params: ReqClothId) {
+ return http.get("getInfo", params);
+ },
+ /** 删除服装底库 */
+ deleteClothDataBaseD(params: ReqClothId) {
+ return http.delete("deleteClothDataBaseD", params);
+ },
+ /** 新增服装底库 */
+ addClothDataBaseA(params: SysUserCloth.ReqName) {
+ return http.post("addClothDataBaseA", params);
+ },
+ /** 更新服装底库 */
+ update(params: SysUserCloth.SysUserPerInfo) {
+ return http.put("updateClothU", params);
+ },
+
+ /** 服装图片上传 */
+ uploadFile(params: SysUserCloth.SysUserAvatar) {
+ return http.post("uploadFile", params);
+ },
+ /** 新增服装 */
+ add(params: SysUserCloth.SysUserPerInfo) {
+ return http.post("addClothA", params);
+ },
+ /** 删除服装 */
+ delete(params: SysUserCloth.SysUserFace) {
+ return http.post("deleteClothD", params);
+ }
+};
+
+const userClothButtonCode = {
+ /** 新增人员 */
+ add: "userManageClothAdd",
+ /** 删除人员 */
+ edit: "userManageClothEdit",
+ /** 删除人员 */
+ delete: "userManageClothDelete"
+};
+
+export { userManageClothApi, userClothButtonCode };
diff --git a/SafeCampus.WEB/src/api/modules/usermanage/index.ts b/SafeCampus.WEB/src/api/modules/usermanage/index.ts
index db1d1b1..25e4ef4 100644
--- a/SafeCampus.WEB/src/api/modules/usermanage/index.ts
+++ b/SafeCampus.WEB/src/api/modules/usermanage/index.ts
@@ -14,3 +14,5 @@
*/
export * from "./personnel";
export * from "./classManage";
+export * from "./clothing";
+export * from "./teacher";
diff --git a/SafeCampus.WEB/src/api/modules/usermanage/teacher.ts b/SafeCampus.WEB/src/api/modules/usermanage/teacher.ts
new file mode 100644
index 0000000..2254f0f
--- /dev/null
+++ b/SafeCampus.WEB/src/api/modules/usermanage/teacher.ts
@@ -0,0 +1,54 @@
+/**
+ * @description 班主任管理接口
+ * @license Apache License Version 2.0
+ * @Copyright (c) 2022-Now 少林寺驻北固山办事处大神父王喇嘛
+ * @remarks
+ * SimpleAdmin 基于 Apache License Version 2.0 协议发布,可用于商业项目,但必须遵守以下补充条款:
+ * 1.请不要删除和修改根目录下的LICENSE文件。
+ * 2.请不要删除和修改SimpleAdmin源码头部的版权声明。
+ * 3.分发源码时候,请注明软件出处 https://gitee.com/dotnetmoyu/SimpleAdmin
+ * 4.基于本软件的作品,只能使用 SimpleAdmin 作为后台服务,除外情况不可商用且不允许二次分发或开源。
+ * 5.请不得将本软件应用于危害国家安全、荣誉和利益的行为,不能以任何形式用于非法为目的的行为不要删除和修改作者声明。
+ * 6.任何基于本软件而产生的一切法律纠纷和责任,均于我司无关
+ * @see https://gitee.com/dotnetmoyu/SimpleAdmin
+ */
+import { moduleRequest } from "@/api/request";
+const http = moduleRequest("/business/classTeacher/");
+/**
+ * @Description: 单页管理
+ * @Author: SYY
+ * @Date: 2023-12-15 15:34:54
+ */
+const userManageTeacherApi = {
+ /** 查询班主任列表 */
+ page() {
+ return http.get("getNoPageList");
+ },
+ /** 获取单页详情 */
+ detail(params: any) {
+ return http.get("getInfo", params);
+ },
+ /** 删除班主任 */
+ delete(params: any) {
+ return http.delete("delete", params);
+ },
+ /** 创建班主任 */
+ add(params: any) {
+ return http.post("add", params);
+ },
+ /** 更新班主任 */
+ update(params: any) {
+ return http.put("update", params);
+ }
+};
+
+const userTeacherButtonCode = {
+ /** 新增人员 */
+ add: "userManageClassManageAdd",
+ /** 删除人员 */
+ edit: "userManageClassManageEdit",
+ /** 删除人员 */
+ delete: "userManageClassManageDelete"
+};
+
+export { userManageTeacherApi, userTeacherButtonCode };
diff --git a/SafeCampus.WEB/src/views/userManage/personnel/components/form/form_basic.vue b/SafeCampus.WEB/src/views/userManage/personnel/components/form/form_basic.vue
index a8c4c6b..abaf000 100644
--- a/SafeCampus.WEB/src/views/userManage/personnel/components/form/form_basic.vue
+++ b/SafeCampus.WEB/src/views/userManage/personnel/components/form/form_basic.vue
@@ -75,7 +75,7 @@
import { SysUserPersonnel, userManagePersonnelApi, userManageClassManageApi } from "@/api";
import { Plus } from "@element-plus/icons-vue";
import { useUserStore } from "@/stores/modules";
-import type { UploadProps, UploadUserFile } from "element-plus";
+import type { UploadProps } from "element-plus";
import { ElMessage } from "element-plus";
import { TokenEnum } from "@/enums";
// props
@@ -92,12 +92,12 @@ const userInfo = computed({
/* */
const userStore = useUserStore();
const { accessToken } = userStore;
-const fileList = ref([]);
+const fileList = ref([]);
const faces = ref([]);
const dialogImageUrl = ref("");
const dialogVisible = ref(false);
-const treeData = ref<{ [key: string]: any }[]>([]);
-const handleRemove: UploadProps["onRemove"] = uploadFile => {
+const treeData = ref([]);
+const handleRemove: UploadProps["onRemove"] = (uploadFile: any) => {
const index = faces.value.findIndex(item => item.uid === uploadFile.uid);
if (index > -1) {
faces.value.splice(index, 1);
@@ -143,7 +143,6 @@ const genderOptions = ref([
const getRequestData = async () => {
const { data } = await userManageClassManageApi.page();
treeData.value = data;
- console.log(treeData.value, "treeData");
};
onMounted(() => {
// 初始化
@@ -152,7 +151,7 @@ onMounted(() => {
if (userInfo.value.personId) {
if (userInfo.value.faces?.length > 0) {
fileList.value = [
- ...JSON.parse(JSON.stringify(userInfo.value.faces)).map(item => {
+ ...JSON.parse(JSON.stringify(userInfo.value.faces)).map((item: any) => {
return {
url: item.faceUrl,
uid: item.faceId,
@@ -161,7 +160,7 @@ onMounted(() => {
})
];
faces.value = [
- ...JSON.parse(JSON.stringify(userInfo.value.faces)).map(item => {
+ ...JSON.parse(JSON.stringify(userInfo.value.faces)).map((item: any) => {
return {
faceUrl: item.faceUrl,
uid: item.faceId,
diff --git a/SafeCampus.WEB/src/views/userManage/personnel/components/formTeacher/index.vue b/SafeCampus.WEB/src/views/userManage/personnel/components/formTeacher/index.vue
new file mode 100644
index 0000000..bb94ca5
--- /dev/null
+++ b/SafeCampus.WEB/src/views/userManage/personnel/components/formTeacher/index.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确定
+
+
+
+
+
+
+
+
diff --git a/SafeCampus.WEB/src/views/userManage/personnel/index.vue b/SafeCampus.WEB/src/views/userManage/personnel/index.vue
index cd002f3..6fc014d 100644
--- a/SafeCampus.WEB/src/views/userManage/personnel/index.vue
+++ b/SafeCampus.WEB/src/views/userManage/personnel/index.vue
@@ -27,6 +27,24 @@
+
+
+
+
+
+
+ {{ cmdEnumTree.AddTeacher }}
+
+
+ {{ cmdEnumTree.UpdateTeacher }}
+
+
+ {{ cmdEnumTree.DeleteTeacher }}
+
+
+
+
+
@@ -86,6 +104,8 @@
+
+
@@ -95,12 +115,13 @@
+
+
+
diff --git a/SafeCampus.WEB/src/views/userManage/clothing/components/form1/index.vue b/SafeCampus.WEB/src/views/userManage/clothing/components/form1/index.vue
new file mode 100644
index 0000000..d184d60
--- /dev/null
+++ b/SafeCampus.WEB/src/views/userManage/clothing/components/form1/index.vue
@@ -0,0 +1,105 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确定
+
+
+
+
+
+
+
+
diff --git a/SafeCampus.WEB/src/views/userManage/clothing/index.vue b/SafeCampus.WEB/src/views/userManage/clothing/index.vue
new file mode 100644
index 0000000..0615271
--- /dev/null
+++ b/SafeCampus.WEB/src/views/userManage/clothing/index.vue
@@ -0,0 +1,194 @@
+
+
+
+
+
+
+
+
+
+ {{ row.node.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 668a0227ba6fed5b060fc32c783d92706d52f388 Mon Sep 17 00:00:00 2001
From: suyanyan <1321717064@qq.com>
Date: Thu, 18 Jul 2024 16:13:40 +0800
Subject: [PATCH 05/10] =?UTF-8?q?=E9=87=8D=E7=82=B9=E4=BA=BA=E5=91=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/api/modules/usermanage/index.ts | 1 +
.../api/modules/usermanage/keyPersonnel.ts | 63 +++++
.../src/views/userManage/clothing/index.vue | 12 +-
.../components/form/form_basic.vue | 181 ++++++++++++++
.../keyPersonnel/components/form/index.vue | 117 ++++++++++
.../views/userManage/keyPersonnel/index.vue | 220 ++++++++++++++++++
.../src/views/userManage/personnel/index.vue | 14 +-
7 files changed, 595 insertions(+), 13 deletions(-)
create mode 100644 SafeCampus.WEB/src/api/modules/usermanage/keyPersonnel.ts
create mode 100644 SafeCampus.WEB/src/views/userManage/keyPersonnel/components/form/form_basic.vue
create mode 100644 SafeCampus.WEB/src/views/userManage/keyPersonnel/components/form/index.vue
create mode 100644 SafeCampus.WEB/src/views/userManage/keyPersonnel/index.vue
diff --git a/SafeCampus.WEB/src/api/modules/usermanage/index.ts b/SafeCampus.WEB/src/api/modules/usermanage/index.ts
index 25e4ef4..1252d8b 100644
--- a/SafeCampus.WEB/src/api/modules/usermanage/index.ts
+++ b/SafeCampus.WEB/src/api/modules/usermanage/index.ts
@@ -16,3 +16,4 @@ export * from "./personnel";
export * from "./classManage";
export * from "./clothing";
export * from "./teacher";
+export * from "./keyPersonnel";
diff --git a/SafeCampus.WEB/src/api/modules/usermanage/keyPersonnel.ts b/SafeCampus.WEB/src/api/modules/usermanage/keyPersonnel.ts
new file mode 100644
index 0000000..f3b9de9
--- /dev/null
+++ b/SafeCampus.WEB/src/api/modules/usermanage/keyPersonnel.ts
@@ -0,0 +1,63 @@
+/**
+ * @description 单页管理接口
+ * @license Apache License Version 2.0
+ * @Copyright (c) 2022-Now 少林寺驻北固山办事处大神父王喇嘛
+ * @remarks
+ * SimpleAdmin 基于 Apache License Version 2.0 协议发布,可用于商业项目,但必须遵守以下补充条款:
+ * 1.请不要删除和修改根目录下的LICENSE文件。
+ * 2.请不要删除和修改SimpleAdmin源码头部的版权声明。
+ * 3.分发源码时候,请注明软件出处 https://gitee.com/dotnetmoyu/SimpleAdmin
+ * 4.基于本软件的作品,只能使用 SimpleAdmin 作为后台服务,除外情况不可商用且不允许二次分发或开源。
+ * 5.请不得将本软件应用于危害国家安全、荣誉和利益的行为,不能以任何形式用于非法为目的的行为不要删除和修改作者声明。
+ * 6.任何基于本软件而产生的一切法律纠纷和责任,均于我司无关
+ * @see https://gitee.com/dotnetmoyu/SimpleAdmin
+ */
+import { moduleRequest } from "@/api/request";
+import { ReqId, SysUserPersonnel } from "@/api/interface";
+const http = moduleRequest("/business/keyPersonnel/");
+/**
+ * @Description: 单页管理
+ * @Author: SYY
+ * @Date: 2024-7-19 15:34:54
+ */
+const userManageKeyPersonApi = {
+ /** 获取单页分页 */
+ page(params: SysUserPersonnel.Page) {
+ return http.post("pageQuery", params);
+ },
+ /** 获取单页详情 */
+ detail(params: ReqId) {
+ return http.get("getPersionById", params);
+ },
+ /** 删除人员 */
+ delete(params: ReqId) {
+ return http.delete("deletePersonD", params);
+ },
+ /** 新增人员 */
+ add(params: any) {
+ return http.post("createPersonA", params);
+ },
+ /** 修改人员 */
+ update(params: any) {
+ return http.put("updatePersionU", params);
+ },
+ /** 添加人脸 */
+ addFace(params: SysUserPersonnel.SysUserAvatar) {
+ return http.post("addFaceA", params);
+ },
+ /** 删除人脸 */
+ deleteFace(params: SysUserPersonnel.SysUserFace) {
+ return http.post("deleteFaceD", params);
+ }
+};
+
+const userKeyPerButtonCode = {
+ /** 新增人员 */
+ add: "userManageKeyPersonAdd",
+ /** 删除人员 */
+ edit: "userManageKeyPersonEdit",
+ /** 删除人员 */
+ delete: "userManageKeyPersonDelete"
+};
+
+export { userManageKeyPersonApi, userKeyPerButtonCode };
diff --git a/SafeCampus.WEB/src/views/userManage/clothing/index.vue b/SafeCampus.WEB/src/views/userManage/clothing/index.vue
index 0615271..98b8676 100644
--- a/SafeCampus.WEB/src/views/userManage/clothing/index.vue
+++ b/SafeCampus.WEB/src/views/userManage/clothing/index.vue
@@ -10,7 +10,7 @@
label="clothSetName"
id="clothSetId"
width="300px"
- :show-all="false"
+ :show-all="true"
:request-api="userManageClothApi.getList"
@change="changeTreeFilter"
>
@@ -20,11 +20,11 @@
{{ row.node.label }}
-
-
+
+
-
+
@@ -59,8 +59,8 @@
-
-
+
+