diff --git a/src/api/model/hrm.js b/src/api/model/hrm.js index f3d0d18c..47ef3d40 100644 --- a/src/api/model/hrm.js +++ b/src/api/model/hrm.js @@ -12,6 +12,12 @@ export default { ); } }, + read: { + name: "员工详情", + req: async function(id){ + return await http.get( `${config.API_URL}/hrm/employee/info/`); + } + }, item: { name: "获取企业员工", req: async function(id){ diff --git a/src/api/model/system.js b/src/api/model/system.js index 8225a7c9..17374145 100644 --- a/src/api/model/system.js +++ b/src/api/model/system.js @@ -179,7 +179,12 @@ export default { return await http.get(this.url, params); } }, - + read: { + name: "用户详情", + req: async function(id){ + return await http.get( `${config.API_URL}/system/user/info/`); + } + }, create: { url: `${config.API_URL}/system/user/`, name: "新增用户", @@ -196,6 +201,14 @@ export default { ); } }, + put:{ + + url: `${config.API_URL}/system/user/password/`, + name: "修改密码", + req: async function(data){ + return await http.put(this.url,data); + } + }, delete: { name: "删除用户", req: async function(id){ diff --git a/src/config/route.js b/src/config/route.js index d4635f94..6b9fcea2 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -173,7 +173,73 @@ const routes = [ "hidden": true }, "component": "wf/configuration" + } + , + { + "name": "allwork", + "path": "/wf/allwork", + "meta": { + "title": "全部工单", + "icon": "el-icon-menu", + + }, + "component": "wf/allwork" + } , + { + "name": "ownerwork", + "path": "/wf/ownerwork", + "meta": { + "title": "我创建的", + "icon": "el-icon-menu", + + }, + "component": "wf/ownerwork" + } + , + + { + "name": "duyt", + "path": "/wf/dutywork", + "meta": { + "title": "待办工单", + "icon": "el-icon-menu", + + }, + "component": "wf/dutywork" }, + { + "name": "worked", + "path": "/wf/worked", + "meta": { + "title": "我处理的", + "icon": "el-icon-menu", + + }, + "component": "wf/worked" + }, + { + "name": "ccwork", + "path": "/wf/ccwork", + "meta": { + "title": "抄送我的", + "icon": "el-icon-menu", + + }, + "component": "wf/ccwork" + }, + { + "name": "workdetail", + "path": "/wf/workdetail", + "meta": { + "title": "工单详情", + "icon": "el-icon-menu", + "hidden": true + }, + "component": "wf/workdetail" + }, + + + ] }, { diff --git a/src/views/userCenter/index.vue b/src/views/userCenter/index.vue index 92e2e5e5..fb3124e6 100644 --- a/src/views/userCenter/index.vue +++ b/src/views/userCenter/index.vue @@ -4,9 +4,10 @@ @@ -44,10 +45,7 @@ components: { account: defineAsyncComponent(() => import('./user/account')), seting: defineAsyncComponent(() => import('./user/seting')), - pushSettings: defineAsyncComponent(() => import('./user/pushSettings')), - space: defineAsyncComponent(() => import('./user/space')), - logs: defineAsyncComponent(() => import('./user/logs')), - upToEnterprise: defineAsyncComponent(() => import('./user/upToEnterprise')) + pushSettings: defineAsyncComponent(() => import('./user/pushSettings')) }, data() { return { @@ -67,41 +65,13 @@ }, { icon: "el-icon-bell", - title: "通知设置", + title: "修改密码", component: "pushSettings" } ] - }, - { - groupName: "数据管理", - list: [ - { - icon: "el-icon-coin", - title: "存储空间信息", - component: "space" - }, - { - icon: "el-icon-clock", - title: "操作日志", - component: "logs" - } - ] - }, - { - groupName: "账号升级", - list: [ - { - icon: "el-icon-office-building", - title: "升级为企业账号", - component: "upToEnterprise" - } - ] } ], - user: { - userName: "Sakuya", - role: "超级管理员", - }, + userData:{}, page: "account" } }, @@ -119,10 +89,29 @@ } }) }, + mounted() { + this.getUserlogin(); + }, methods: { openPage(item){ this.page = item.index + }, + + getUserlogin(){ + + this.$API.system.user.read.req({page:0}).then(res=>{ + this.userData = res; + }); + + + } + } } + diff --git a/src/views/userCenter/user/account.vue b/src/views/userCenter/user/account.vue index b04a06d7..ef7ea123 100644 --- a/src/views/userCenter/user/account.vue +++ b/src/views/userCenter/user/account.vue @@ -1,46 +1,60 @@ - diff --git a/src/views/userCenter/user/pushSettings.vue b/src/views/userCenter/user/pushSettings.vue index 0b5d4e60..0ed73234 100644 --- a/src/views/userCenter/user/pushSettings.vue +++ b/src/views/userCenter/user/pushSettings.vue @@ -1,29 +1,87 @@ diff --git a/src/views/wf/ccwork.vue b/src/views/wf/ccwork.vue new file mode 100644 index 00000000..7b69a287 --- /dev/null +++ b/src/views/wf/ccwork.vue @@ -0,0 +1,81 @@ + + + + + diff --git a/src/views/wf/dutywork.vue b/src/views/wf/dutywork.vue new file mode 100644 index 00000000..2354165d --- /dev/null +++ b/src/views/wf/dutywork.vue @@ -0,0 +1,81 @@ + + + + + diff --git a/src/views/wf/ownerwork.vue b/src/views/wf/ownerwork.vue new file mode 100644 index 00000000..583035f5 --- /dev/null +++ b/src/views/wf/ownerwork.vue @@ -0,0 +1,81 @@ + + + + + diff --git a/src/views/wf/workdetail.vue b/src/views/wf/workdetail.vue new file mode 100644 index 00000000..55d2e493 --- /dev/null +++ b/src/views/wf/workdetail.vue @@ -0,0 +1,172 @@ + + + + + diff --git a/src/views/wf/worked.vue b/src/views/wf/worked.vue new file mode 100644 index 00000000..9ce9e6e2 --- /dev/null +++ b/src/views/wf/worked.vue @@ -0,0 +1,81 @@ + + + + + diff --git a/src/views/wf/workflow.vue b/src/views/wf/workflow.vue index 97fa1830..e6793c76 100644 --- a/src/views/wf/workflow.vue +++ b/src/views/wf/workflow.vue @@ -15,7 +15,7 @@ - +