From 7fa43de6c7d54ed5ba7bdaef9eee64defef16c7c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 9 Oct 2023 15:51:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=97=A8=E7=A6=81=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E4=B8=8E=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/api/model/third.js | 20 ++++++- src/config/route.js | 11 +++- src/views/hrm/doorauth.vue | 114 +++++++++++++++++++++++++++++++++++++ 4 files changed, 144 insertions(+), 2 deletions(-) create mode 100644 src/views/hrm/doorauth.vue diff --git a/package.json b/package.json index 44015da5..f38b0814 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "d3": "^7.6.1", "dagre": "^0.8.5", "dagre-d3": "^0.6.4", + "dhtmlx-gantt": "^8.0.6", "echarts": "5.4.1", "element-plus": "2.2.32", "file-saver": "^2.0.5", diff --git a/src/api/model/third.js b/src/api/model/third.js index c790bdce..32e9624b 100644 --- a/src/api/model/third.js +++ b/src/api/model/third.js @@ -114,6 +114,24 @@ export default { data ); } + }, + doorauth: { + list: { + name: "门禁权限", + req: async function(data){ + return await http.get( + `${config.API_URL}/third/doorauth/`, + data + ); + } + }, + delete: { + name: "删除权限", + req: async function(id){ + return await http.delete( + `${config.API_URL}/third/doorauth/${id}/`, + ); + } + } } - } diff --git a/src/config/route.js b/src/config/route.js index 936e6604..44a99fc8 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -1496,7 +1496,16 @@ const routes = [ }, "component": "hrm/certificate" }, - + { + "name": "doorAuth", + "path": "/hrm/doorauth", + "meta": { + "title": "门禁权限", + "icon": "el-icon-key", + "perms": ["doorauth"] + }, + "component": "hrm/doorauth" + }, ] }, //基础配置 diff --git a/src/views/hrm/doorauth.vue b/src/views/hrm/doorauth.vue new file mode 100644 index 00000000..726ccc4a --- /dev/null +++ b/src/views/hrm/doorauth.vue @@ -0,0 +1,114 @@ + + \ No newline at end of file