diff --git a/SafeCampus.WEB/components.d.ts b/SafeCampus.WEB/components.d.ts index 09bffd5..84a8379 100644 --- a/SafeCampus.WEB/components.d.ts +++ b/SafeCampus.WEB/components.d.ts @@ -24,7 +24,6 @@ declare module 'vue' { ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] ElButton: typeof import('element-plus/es')['ElButton'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] - ElCol: typeof import('element-plus/es')['ElCol'] ElColorPicker: typeof import('element-plus/es')['ElColorPicker'] ElContainer: typeof import('element-plus/es')['ElContainer'] ElDialog: typeof import('element-plus/es')['ElDialog'] @@ -43,13 +42,10 @@ declare module 'vue' { ElMain: typeof import('element-plus/es')['ElMain'] ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] - ElOption: typeof import('element-plus/es')['ElOption'] ElPagination: typeof import('element-plus/es')['ElPagination'] ElPopover: typeof import('element-plus/es')['ElPopover'] ElRadio: typeof import('element-plus/es')['ElRadio'] - ElRow: typeof import('element-plus/es')['ElRow'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] - ElSelect: typeof import('element-plus/es')['ElSelect'] ElSpace: typeof import('element-plus/es')['ElSpace'] ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] ElSwitch: typeof import('element-plus/es')['ElSwitch'] @@ -59,6 +55,8 @@ declare module 'vue' { ElTabs: typeof import('element-plus/es')['ElTabs'] ElTag: typeof import('element-plus/es')['ElTag'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] + ElTree: typeof import('element-plus/es')['ElTree'] + ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect'] ESign: typeof import('./src/components/ESign/index.vue')['default'] FormContainer: typeof import('./src/components/Form/FormContainer/index.vue')['default'] Grid: typeof import('./src/components/Grid/index.vue')['default'] diff --git a/SafeCampus.WEB/index.html b/SafeCampus.WEB/index.html index da93951..89f7a8f 100644 --- a/SafeCampus.WEB/index.html +++ b/SafeCampus.WEB/index.html @@ -2,7 +2,7 @@ - + <%- title %> diff --git a/SafeCampus.WEB/public/static/rtsPlayer.html b/SafeCampus.WEB/public/static/rtsPlayer.html new file mode 100644 index 0000000..555dff8 --- /dev/null +++ b/SafeCampus.WEB/public/static/rtsPlayer.html @@ -0,0 +1,86 @@ + + + + + + + + Aliplayer Rts Demo + + + + + +
+ + \ No newline at end of file diff --git a/SafeCampus.WEB/src/api/interface/index.ts b/SafeCampus.WEB/src/api/interface/index.ts index be0c48c..016fab3 100644 --- a/SafeCampus.WEB/src/api/interface/index.ts +++ b/SafeCampus.WEB/src/api/interface/index.ts @@ -51,6 +51,11 @@ export interface ReqId { /** id */ id: number | string; } +/** id请求参数 */ +export interface ReqPersonId { + /** id */ + personId: number | string; +} /** id请求参数 */ export interface ReqstartId { @@ -68,7 +73,6 @@ export interface ReqstopId { } export interface setWarn { - configJson: string; } diff --git a/SafeCampus.WEB/src/api/interface/sys/index.ts b/SafeCampus.WEB/src/api/interface/sys/index.ts index fec76b9..663fadb 100644 --- a/SafeCampus.WEB/src/api/interface/sys/index.ts +++ b/SafeCampus.WEB/src/api/interface/sys/index.ts @@ -20,3 +20,4 @@ export * from "./audit"; export * from "./organization"; export * from "./auth"; export * from "./warn"; +export * from "./usermanage"; diff --git a/SafeCampus.WEB/src/api/interface/sys/usermanage/index.ts b/SafeCampus.WEB/src/api/interface/sys/usermanage/index.ts new file mode 100644 index 0000000..7d0c865 --- /dev/null +++ b/SafeCampus.WEB/src/api/interface/sys/usermanage/index.ts @@ -0,0 +1,15 @@ +/** + * @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 + */ +export * from "./personnel"; diff --git a/SafeCampus.WEB/src/api/interface/sys/usermanage/personnel.ts b/SafeCampus.WEB/src/api/interface/sys/usermanage/personnel.ts new file mode 100644 index 0000000..8f91f0c --- /dev/null +++ b/SafeCampus.WEB/src/api/interface/sys/usermanage/personnel.ts @@ -0,0 +1,67 @@ +/** + * @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 SysUserPersonnel { + export interface Page extends ReqPage {} + + /** 底库信息 */ + 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 SysUserPerInfo { + /** 人员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/modules/index.ts b/SafeCampus.WEB/src/api/modules/index.ts index 50b2c9b..0f7fab2 100644 --- a/SafeCampus.WEB/src/api/modules/index.ts +++ b/SafeCampus.WEB/src/api/modules/index.ts @@ -19,4 +19,4 @@ export * from "./warn"; export * from "./monitor"; export * from "./sysconfig"; export * from "./statistion"; - +export * from "./usermanage"; diff --git a/SafeCampus.WEB/src/api/modules/monitor/live.ts b/SafeCampus.WEB/src/api/modules/monitor/live.ts index bda1510..e5bbb47 100644 --- a/SafeCampus.WEB/src/api/modules/monitor/live.ts +++ b/SafeCampus.WEB/src/api/modules/monitor/live.ts @@ -36,5 +36,22 @@ const monitorLIVEApi = { }, }; +/** + * @Description: 监控管理按钮权限码 + * @Author: huguodong + * @Date: 2024-02-20 09:51:15 + */ +const monitorLiveButtonCode = { + /** 新增监控 */ + add: "monitorLiveAdd", + /** 编辑监控 */ + edit: "monitorLiveEdit", + /** 删除监控 */ + delete: "monitorLiveDelete", + /** 批量删除监控 */ + batchDelete: "monitorLiveBatchDelete", + /** 复制监控 */ + copy: "monitorLiveCopy" +}; -export { monitorLIVEApi }; +export { monitorLIVEApi, monitorLiveButtonCode }; diff --git a/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts b/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts new file mode 100644 index 0000000..7c233af --- /dev/null +++ b/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts @@ -0,0 +1,52 @@ +/** + * @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/dfieldApi/"); + +/** + * @Description: 单页管理 + * @Author: SYY + * @Date: 2023-12-15 15:34:54 + */ +const userManageClassManageApi = { + /** 查询底库列表 */ + page(params: SysUserPersonnel.ClassPage) { + return http.get("queryAll", params); + }, + /** 删除底库 */ + delete(params: ReqId) { + return http.delete("deleteDfieldD", params); + }, + /** 创建底库 */ + add(params: SysUserPersonnel.ClassPage) { + return http.post("createDfieldA", params); + }, + /** 更新底库 */ + update(params: SysUserPersonnel.ClassPage) { + return http.put("updateDfieldU", params); + } +}; + +const userClassButtonCode = { + /** 新增人员 */ + add: "userManageClassManageAdd", + /** 删除人员 */ + edit: "userManageClassManageEdit", + /** 删除人员 */ + delete: "userManageClassManageDelete" +}; + +export { userManageClassManageApi, userClassButtonCode }; diff --git a/SafeCampus.WEB/src/api/modules/usermanage/index.ts b/SafeCampus.WEB/src/api/modules/usermanage/index.ts new file mode 100644 index 0000000..db1d1b1 --- /dev/null +++ b/SafeCampus.WEB/src/api/modules/usermanage/index.ts @@ -0,0 +1,16 @@ +/** + * @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 + */ +export * from "./personnel"; +export * from "./classManage"; diff --git a/SafeCampus.WEB/src/api/modules/usermanage/personnel.ts b/SafeCampus.WEB/src/api/modules/usermanage/personnel.ts new file mode 100644 index 0000000..ccae5a6 --- /dev/null +++ b/SafeCampus.WEB/src/api/modules/usermanage/personnel.ts @@ -0,0 +1,72 @@ +/** + * @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, ResPage, ReqPersonId, SysUserPersonnel } from "@/api/interface"; +const http = moduleRequest("/business/personApi/"); + +/** + * @Description: 单页管理 + * @Author: SYY + * @Date: 2023-12-15 15:34:54 + */ +const userManagePersonnelApi = { + /** 获取单页分页 */ + 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: SysUserPersonnel.SysUserPerInfo) { + return http.post("createPersonA", params); + }, + /** 修改人员 */ + update(params: SysUserPersonnel.SysUserPerInfo) { + return http.put("updatePersionU", params); + }, + /** 添加人脸 */ + addFace(params: SysUserPersonnel.SysUserAvatar) { + return http.post("addFaceA", params); + }, + /** 删除人脸 */ + deleteFace(params: SysUserPersonnel.SysUserFace) { + return http.post("deleteFaceD", params); + }, + /**底库绑定 */ + personBindDfie(params: SysUserPersonnel.ClassPage) { + return http.post("personBindDfie", params); + }, + /**底库解绑*/ + personUnBindDfie(params: SysUserPersonnel.ClassPage) { + return http.post("personUnBindDfie", params); + } +}; + +const userPerButtonCode = { + /** 新增人员 */ + add: "userManagePersonnelAdd", + /** 删除人员 */ + edit: "userManagePersonnelEdit", + /** 删除人员 */ + delete: "userManagePersonnelDelete" +}; + +export { userManagePersonnelApi, userPerButtonCode }; diff --git a/SafeCampus.WEB/src/api/modules/warn/zjrq.ts b/SafeCampus.WEB/src/api/modules/warn/zjrq.ts index 49a5f93..f975120 100644 --- a/SafeCampus.WEB/src/api/modules/warn/zjrq.ts +++ b/SafeCampus.WEB/src/api/modules/warn/zjrq.ts @@ -38,6 +38,10 @@ const warnZJRQApi = { warnGroup(params: ReqId) { return http.get("getInfo", params); }, + /** 获取告警分组 */ + warnType(params: ReqId) { + return http.get("getAlarmType", params); + }, }; export { warnZJRQApi }; diff --git a/SafeCampus.WEB/src/assets/images/home/carame.png b/SafeCampus.WEB/src/assets/images/home/carame.png new file mode 100644 index 0000000..710e8b4 Binary files /dev/null and b/SafeCampus.WEB/src/assets/images/home/carame.png differ diff --git a/SafeCampus.WEB/src/assets/images/home/handle.png b/SafeCampus.WEB/src/assets/images/home/handle.png new file mode 100644 index 0000000..13068fb Binary files /dev/null and b/SafeCampus.WEB/src/assets/images/home/handle.png differ diff --git a/SafeCampus.WEB/src/assets/images/home/participation.png b/SafeCampus.WEB/src/assets/images/home/participation.png new file mode 100644 index 0000000..92fb42f Binary files /dev/null and b/SafeCampus.WEB/src/assets/images/home/participation.png differ diff --git a/SafeCampus.WEB/src/assets/images/home/warn.png b/SafeCampus.WEB/src/assets/images/home/warn.png new file mode 100644 index 0000000..db7e259 Binary files /dev/null and b/SafeCampus.WEB/src/assets/images/home/warn.png differ diff --git a/SafeCampus.WEB/src/components/Selectors/ClassUserselector/index.vue b/SafeCampus.WEB/src/components/Selectors/ClassUserselector/index.vue new file mode 100644 index 0000000..d725bd9 --- /dev/null +++ b/SafeCampus.WEB/src/components/Selectors/ClassUserselector/index.vue @@ -0,0 +1,246 @@ + + + + + + diff --git a/SafeCampus.WEB/src/components/Selectors/ClassUserselector/interface.ts b/SafeCampus.WEB/src/components/Selectors/ClassUserselector/interface.ts new file mode 100644 index 0000000..2c0132b --- /dev/null +++ b/SafeCampus.WEB/src/components/Selectors/ClassUserselector/interface.ts @@ -0,0 +1,48 @@ +/** + * @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 UserSelector from "./index.vue"; + +/** 用户选择器属性 */ +export interface UserSelectProps { + /** 组织树api */ + orgTreeApi: (data?: any) => Promise; + /** 职位选择api */ + positionTreeApi?: (data?: any) => Promise; + /** 角色选择api */ + roleTreeApi?: (data?: any) => Promise; + /** 用户选择api */ + userSelectorApi: (data?: any) => Promise; + /** 是否多选 */ + multiple?: boolean; + /** 最大用户数 */ + maxCount?: number; + /** 是否是业务 */ + biz?: boolean; +} + +/** 用户选择器表格初始化参数 */ +export interface UserSelectTableInitParams { + /** 组织ID */ + orgId?: number | string | null; + /** 职位ID */ + positionId?: number | string | null; + /** 角色ID */ + roleId?: number | string | null; +} + +/** + * @description 用户选择器实例类型 + */ +export type UserSelectorInstance = Omit, keyof ComponentPublicInstance | keyof UserSelectProps>; diff --git a/SafeCampus.WEB/src/components/TreeFilter/index.vue b/SafeCampus.WEB/src/components/TreeFilter/index.vue index b7e15a7..15d5df7 100644 --- a/SafeCampus.WEB/src/components/TreeFilter/index.vue +++ b/SafeCampus.WEB/src/components/TreeFilter/index.vue @@ -1,9 +1,11 @@