diff --git a/src/api/sourceAdd.ts b/src/api/sourceAdd.ts new file mode 100644 index 0000000..7571a5e --- /dev/null +++ b/src/api/sourceAdd.ts @@ -0,0 +1,4 @@ +import axios from 'axios' +import qs from 'qs' + +export const sourceAdd = query => axios.post('http://oa-dxtc.test/source/add', qs.stringify(query)); diff --git a/src/components/Aside.vue b/src/components/Aside.vue index 20bff7c..57f30df 100644 --- a/src/components/Aside.vue +++ b/src/components/Aside.vue @@ -51,6 +51,11 @@ export default { index: "/customer", title: "客户", }, + { + icon: "list", + index: "/project", + title: "项目", + }, { icon: "document-copy", index: "/tabs", @@ -101,6 +106,17 @@ export default { }, ], }, + { + icon:'setting', + index: '8', + title: '设置', + subs: [ + { + index: '/source', + title: '来源设置' + } + ] + } ]; const route = useRoute(); diff --git a/src/router/index.ts b/src/router/index.ts index 6706d89..aa93a14 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -22,12 +22,20 @@ const routes = [ }, { path: "/customer", - name: "basetable", + name: "customer", meta: { title: '客户' }, component: () => import ( /* webpackChunkName: "table" */ "../views/Customer.vue") }, + { + path: '/source', + name: 'source', + meta: { + title: '来源' + }, + component: () => import( '../views/Source.vue' ) + }, //{ // path: "/charts", // name: "basecharts", diff --git a/src/views/Source.vue b/src/views/Source.vue new file mode 100644 index 0000000..c7ab4a4 --- /dev/null +++ b/src/views/Source.vue @@ -0,0 +1,102 @@ + + \ No newline at end of file