diff --git a/src/api/user.ts b/src/api/user.ts index c9105d2..7cb9b48 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -2,3 +2,7 @@ import axios from 'axios' import qs from 'qs' export const userData = query => axios.post('http://oa-dxtc.test/user/index', qs.stringify(query)); + +export const userAdd = addQuery => axios.post('http://oa-dxtc.test/user/add', qs.stringify(addQuery)); + +export const userEdit = editQuery => axios.post('http://oa-dxtc.test/user/edit', qs.stringify(editQuery)); \ No newline at end of file diff --git a/src/components/Aside.vue b/src/components/Aside.vue index 57f30df..b8e1383 100644 --- a/src/components/Aside.vue +++ b/src/components/Aside.vue @@ -56,6 +56,11 @@ export default { index: "/project", title: "项目", }, + { + icon: "avatar", + index: "/user", + title: "人员", + }, { icon: "document-copy", index: "/tabs", diff --git a/src/router/index.ts b/src/router/index.ts index 1837d0c..abdc7a1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -28,6 +28,14 @@ const routes = [ }, component: () => import ( /* webpackChunkName: "table" */ "../views/Customer.vue") }, + { + path: "/user", + name: "user", + meta: { + title: '人员' + }, + component: () => import ( /* webpackChunkName: "table" */ "../views/User.vue") + }, { path: '/source', name: 'source', diff --git a/src/views/User.vue b/src/views/User.vue new file mode 100644 index 0000000..a9b87f1 --- /dev/null +++ b/src/views/User.vue @@ -0,0 +1,200 @@ + + \ No newline at end of file