Explorar o código

Merge branch 'master' of http://221.216.211.14:3000/GCLS/GCLS_Page_Book_Component_NPC

gcj %!s(int64=3) %!d(string=hai) anos
pai
achega
1f443cb31f
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/views/courseList.vue

+ 7 - 0
src/views/courseList.vue

@@ -1120,6 +1120,13 @@ export default {
     },
     // 删除书籍
     handleDel(row) {
+      if(row.publish_status==1){
+          this.$message({
+            type: "warning",
+            message: "此教材处于上架状态不可以进行删除",
+          });
+          return false
+      }
       this.$confirm("确定要删除此书籍吗?", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",