Jelajahi Sumber

提交相关代码

Lijy 2 hari lalu
induk
melakukan
8467966d33

+ 15 - 6
fhKeeper/formulahousekeeper/course-pc/src/views/coursemanagement/addVideo.vue

@@ -105,13 +105,22 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
-        this.$message({
-          type: 'success',
-          message: '删除成功!'
-        });
+        const { id, videoUrl, coursePreviousUrl } = row
+        this.http.post(`/course-sub-info/remove`, {
+          id,
+          courseUrl: videoUrl,
+          coursePreviousUrl: coursePreviousUrl
+        }, res => {
+          if(res.code === 'ok') {
+            this.$message({
+              type: 'success',
+              message: '删除成功!'
+            });
 
-        list.splice(index, 1)
-        this.videoListComputed = list
+            list.splice(index, 1)
+            this.videoListComputed = list
+          }
+        })
       })
     },
     onDragEnd() {

+ 1 - 1
fhKeeper/formulahousekeeper/course-pc/src/views/coursemanagement/list.vue

@@ -38,7 +38,7 @@
             </el-table-column>
             <el-table-column prop="courseTypeName" label="课程分类" min-width="120" align="center"></el-table-column>
             <el-table-column prop="courseName" label="课程名称" min-width="180" align="center"></el-table-column>
-            <el-table-column prop="courseInstructor" label="讲师" min-width="120" align="center"></el-table-column>
+            <el-table-column prop="teacherNames" label="讲师" min-width="120" align="center"></el-table-column>
             <el-table-column prop="coursePrice" label="价格" min-width="100" align="center">
                 <template slot-scope="scope">
                     <span>¥{{ scope.row.coursePrice }}</span>

+ 2 - 2
fhKeeper/formulahousekeeper/course-pc/src/views/gcpCertification/gcpCertification.vue

@@ -66,7 +66,7 @@ export default {
           imgError: ''
         })
         this.http.uploadFile(`/gcp-show/uploadAndSave`, formData, res => {
-          this.fileList[i].url = checkAndAddUpload(res.data.url)
+          this.fileList[i].url = checkAndAddUpload(res.data.coverUrl)
           this.fileList[i].name = res.data.id
           this.fileList[i].loading = false
         }, err => {
@@ -120,7 +120,7 @@ export default {
         this.fileList = res.data.map(item => {
           return {
             name: item.id,
-            url: checkAndAddUpload(item.url),
+            url: checkAndAddUpload(item.coverUrl),
             loading: false,
             imgError: ''
           }

+ 1 - 1
fhKeeper/formulahousekeeper/course-pc/src/views/offlineRegistration/registration.vue

@@ -314,7 +314,7 @@ export default {
         })
         return
       }
-      const urls = !id ? 'course-offline-sign/save' : 'course-offline-sign/update'
+      const urls = !id ? '/course-offline-sign/save' : '/course-offline-sign/update'
       let obj = { name, phone, courseOffLineIdStr: course.join(',') }
       if (id) {
         obj.userSignId = id