lsc 1 year ago
parent
commit
b9e7a5fb37
1 changed files with 8 additions and 3 deletions
  1. 8 3
      src/components/pages/scourse.vue

+ 8 - 3
src/components/pages/scourse.vue

@@ -81,7 +81,8 @@
               <div @click="get(item.courseId)">预览</div>
               <!-- 项目进展 -->
               <div @click="getA(item.courseId)">进展</div>
-              <div @click="jump(item.courseId)">评论</div>
+              <!-- <div @click="jump(item.courseId)">评论</div> -->
+              <div @click="copyCourse(item.courseId)">复制</div>
               <div v-if="(item.userid == userid || role == '1')" @click="deleteCourse(item.courseId)">
                 删除
               </div>
@@ -664,10 +665,14 @@ export default {
         uid: this.userid
       }]
       this.ajax
-        .post(this.$store.state.api + "copyCourse", params)
+        .post(this.$store.state.api + "copySCourse", params)
         .then((res) => {
           this.page = 1
-          this.groupA = '0'
+          if (this.role == "1") {
+            this.groupA = "4";
+          } else {
+            this.groupA = "0";
+          }
           this.clear()
         })
         .catch((err) => {