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 @@ + + + + + + + + + + + + + + + + + + + + + + + {{ scope.row.dchannel_.name }} + + + + + {{ epOptions[scope.row.employee_.type] }} + + + + + {{ scope.row.employee_.name }} + + + + + {{ scope.row.employee_.belong_dept_name }} + + + + + + {{ scope.row.employee_.third_info.dh_face_card_start }} + {{ scope.row.employee_.third_info.dh_face_card_end }} + + + + + + + + 删除 + + + + + + + + + \ No newline at end of file
{{ scope.row.employee_.third_info.dh_face_card_start }}
{{ scope.row.employee_.third_info.dh_face_card_end }}