From 582c3137ae89402da8535fba034f44946fb6046a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B1=AA?= <781521347@qq.com> Date: Thu, 10 Jun 2021 18:24:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=A6=E4=B9=A0=E6=89=93?= =?UTF-8?q?=E6=A6=9C=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/StudyList.js | 34 ++++ src/views/course/addStudy.vue | 281 +++++++++++++++++++++++++++++++++ src/views/course/studyList.vue | 159 +++++++++++++++++++ 3 files changed, 474 insertions(+) create mode 100644 src/api/StudyList.js create mode 100644 src/views/course/addStudy.vue create mode 100644 src/views/course/studyList.vue diff --git a/src/api/StudyList.js b/src/api/StudyList.js new file mode 100644 index 0000000..68f7575 --- /dev/null +++ b/src/api/StudyList.js @@ -0,0 +1,34 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/StudyList', + method: 'post', + data + }) +} + +export function del(ids) { + return request({ + url: 'api/StudyList/', + method: 'delete', + data: ids + }) +} + +export function edit(data) { + return request({ + url: 'api/StudyList', + method: 'put', + data + }) +} + +export function get(id) { + return request({ + url: 'api/StudyList/info/?id=' + id, + method: 'get' + }) +} + +export default { add, edit, del, get } diff --git a/src/views/course/addStudy.vue b/src/views/course/addStudy.vue new file mode 100644 index 0000000..e3e986f --- /dev/null +++ b/src/views/course/addStudy.vue @@ -0,0 +1,281 @@ + + \ No newline at end of file diff --git a/src/views/course/studyList.vue b/src/views/course/studyList.vue new file mode 100644 index 0000000..7c20bd5 --- /dev/null +++ b/src/views/course/studyList.vue @@ -0,0 +1,159 @@ + + + + +