From 9a64cd50822ea7f82fa3e4fb98626fc2a0edc5a6 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 16 五月 2024 12:00:45 +0800 Subject: [PATCH] 在线学习基本功能 --- src/views/onlineStudy/type.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/onlineStudy/video/type.vue b/src/views/onlineStudy/type.vue similarity index 94% rename from src/views/onlineStudy/video/type.vue rename to src/views/onlineStudy/type.vue index ac9128f..eb35af5 100644 --- a/src/views/onlineStudy/video/type.vue +++ b/src/views/onlineStudy/type.vue @@ -69,7 +69,7 @@ </template> <script> -import VideoTypeAPI from '@/api/video-type' +import StudyTypeAPI from '@/api/study-type' export default { name: 'type', data () { @@ -98,7 +98,7 @@ }, methods: { remove (id) { - VideoTypeAPI.remove(id).then(res => { + StudyTypeAPI.remove(id).then(res => { if (res.code === 1) { this.$message.success('鍒犻櫎鎴愬姛') } @@ -111,7 +111,7 @@ this.$refs['form'].validate((valid) => { if (valid) { if (this.form.id) { - VideoTypeAPI.update(this.form).then(res => { + StudyTypeAPI.update(this.form).then(res => { if (res.code === 1) { this.$message.success('淇敼鎴愬姛') this.open = false @@ -119,7 +119,7 @@ } }) } else { - VideoTypeAPI.add(this.form).then(res => { + StudyTypeAPI.add(this.form).then(res => { if (res.code === 1) { this.$message.success('娣诲姞鎴愬姛') this.open = false @@ -138,7 +138,7 @@ this.open = true }, page () { - VideoTypeAPI.page(this.searchForm).then(res => { + StudyTypeAPI.page(this.searchForm).then(res => { if (res.code === 1) { this.tableData = res.response } -- Gitblit v1.8.0