From 7da94c38c09cd42487fc0696748e2a669ab4046f Mon Sep 17 00:00:00 2001 From: paidaxing444 <12qwaszx> Date: Mon, 25 May 2020 23:28:38 +0800 Subject: [PATCH] =?UTF-8?q?20200525-zlp-1=20=E5=9F=B9=E8=AE=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/benyi_train/lecturer.js | 53 +++ ruoyi-ui/src/api/benyi_train/video.js | 53 +++ .../src/views/benyi_train/lecturer/index.vue | 371 ++++++++++++++++ .../src/views/benyi_train/video/index.vue | 411 ++++++++++++++++++ 4 files changed, 888 insertions(+) create mode 100644 ruoyi-ui/src/api/benyi_train/lecturer.js create mode 100644 ruoyi-ui/src/api/benyi_train/video.js create mode 100644 ruoyi-ui/src/views/benyi_train/lecturer/index.vue create mode 100644 ruoyi-ui/src/views/benyi_train/video/index.vue diff --git a/ruoyi-ui/src/api/benyi_train/lecturer.js b/ruoyi-ui/src/api/benyi_train/lecturer.js new file mode 100644 index 000000000..33b6bdb6f --- /dev/null +++ b/ruoyi-ui/src/api/benyi_train/lecturer.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询讲师列表 +export function listLecturer(query) { + return request({ + url: '/benyi/lecturer/list', + method: 'get', + params: query + }) +} + +// 查询讲师详细 +export function getLecturer(id) { + return request({ + url: '/benyi/lecturer/' + id, + method: 'get' + }) +} + +// 新增讲师 +export function addLecturer(data) { + return request({ + url: '/benyi/lecturer', + method: 'post', + data: data + }) +} + +// 修改讲师 +export function updateLecturer(data) { + return request({ + url: '/benyi/lecturer', + method: 'put', + data: data + }) +} + +// 删除讲师 +export function delLecturer(id) { + return request({ + url: '/benyi/lecturer/' + id, + method: 'delete' + }) +} + +// 导出讲师 +export function exportLecturer(query) { + return request({ + url: '/benyi/lecturer/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/api/benyi_train/video.js b/ruoyi-ui/src/api/benyi_train/video.js new file mode 100644 index 000000000..a14fca122 --- /dev/null +++ b/ruoyi-ui/src/api/benyi_train/video.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询培训列表 +export function listVideo(query) { + return request({ + url: '/benyi/video/list', + method: 'get', + params: query + }) +} + +// 查询培训详细 +export function getVideo(id) { + return request({ + url: '/benyi/video/' + id, + method: 'get' + }) +} + +// 新增培训 +export function addVideo(data) { + return request({ + url: '/benyi/video', + method: 'post', + data: data + }) +} + +// 修改培训 +export function updateVideo(data) { + return request({ + url: '/benyi/video', + method: 'put', + data: data + }) +} + +// 删除培训 +export function delVideo(id) { + return request({ + url: '/benyi/video/' + id, + method: 'delete' + }) +} + +// 导出培训 +export function exportVideo(query) { + return request({ + url: '/benyi/video/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/views/benyi_train/lecturer/index.vue b/ruoyi-ui/src/views/benyi_train/lecturer/index.vue new file mode 100644 index 000000000..ea3bd612b --- /dev/null +++ b/ruoyi-ui/src/views/benyi_train/lecturer/index.vue @@ -0,0 +1,371 @@ + + + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/benyi_train/video/index.vue b/ruoyi-ui/src/views/benyi_train/video/index.vue new file mode 100644 index 000000000..c5d4fb370 --- /dev/null +++ b/ruoyi-ui/src/views/benyi_train/video/index.vue @@ -0,0 +1,411 @@ + + + \ No newline at end of file