From 024c116a5a8bf14cf89d3a9f7f1bfe15fa4a7a9f Mon Sep 17 00:00:00 2001 From: milo <315045773@qq.com> Date: Mon, 4 Apr 2022 17:05:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=A5=E6=BA=90=E5=88=97=E8=A1=A8=E5=8F=8A?= =?UTF-8?q?=E6=9D=A5=E6=BA=90=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/source.ts | 4 ++ src/api/sourceEdit.ts | 4 ++ src/views/Source.vue | 158 ++++++++++++++++++++++++++++++------------ 3 files changed, 123 insertions(+), 43 deletions(-) create mode 100644 src/api/source.ts create mode 100644 src/api/sourceEdit.ts diff --git a/src/api/source.ts b/src/api/source.ts new file mode 100644 index 0000000..bba9012 --- /dev/null +++ b/src/api/source.ts @@ -0,0 +1,4 @@ +import axios from 'axios' +import qs from 'qs' + +export const sourceData = query => axios.post('http://oa-dxtc.test/source/index', qs.stringify(query)); diff --git a/src/api/sourceEdit.ts b/src/api/sourceEdit.ts new file mode 100644 index 0000000..bc19216 --- /dev/null +++ b/src/api/sourceEdit.ts @@ -0,0 +1,4 @@ +import axios from 'axios' +import qs from 'qs' + +export const sourceEdit = query => axios.post('http://oa-dxtc.test/source/edit', qs.stringify(query)); diff --git a/src/views/Source.vue b/src/views/Source.vue index c7ab4a4..975e187 100644 --- a/src/views/Source.vue +++ b/src/views/Source.vue @@ -1,54 +1,73 @@