diff --git a/src/api/projectAdd.ts b/src/api/projectAdd.ts new file mode 100644 index 0000000..0aba5ed --- /dev/null +++ b/src/api/projectAdd.ts @@ -0,0 +1,4 @@ +import axios from 'axios' +import qs from 'qs' + +export const projectAdd = query => axios.post('http://oa-dxtc.test/project/add', qs.stringify(query)); diff --git a/src/router/index.ts b/src/router/index.ts index aa93a14..1837d0c 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -27,7 +27,7 @@ const routes = [ title: '客户' }, component: () => import ( /* webpackChunkName: "table" */ "../views/Customer.vue") - }, + }, { path: '/source', name: 'source', @@ -36,6 +36,14 @@ const routes = [ }, component: () => import( '../views/Source.vue' ) }, + { + path: '/project', + name: 'project', + meta: { + title: '项目' + }, + component: () => import( '../views/Project.vue' ) + }, //{ // path: "/charts", // name: "basecharts", diff --git a/src/views/Project.vue b/src/views/Project.vue new file mode 100644 index 0000000..63c095d --- /dev/null +++ b/src/views/Project.vue @@ -0,0 +1,203 @@ + + \ No newline at end of file