Kaynağa Gözat

修改按教材名称查询的问题

gcj 3 yıl önce
ebeveyn
işleme
2430f5d3e2
1 değiştirilmiş dosya ile 7 ekleme ve 7 silme
  1. 7 7
      src/views/courseList.vue

+ 7 - 7
src/views/courseList.vue

@@ -666,7 +666,7 @@ export default {
     getList() {
       let MethodName = "book-book_manager-PageQueryBookList";
       let data = {
-        name: this.form.name,
+        name: this.form.name.trim(),
         page_capacity: this.page_capacity,
         cur_page: this.currentPage,
         org_id: this.form.agency,
@@ -857,12 +857,12 @@ export default {
     },
     // 删除书籍
     handleDel(row) {
-      if(row.publish_status==1){
-          this.$message({
-            type: "warning",
-            message: "此教材处于上架状态不可以进行删除",
-          });
-          return false
+      if (row.publish_status == 1) {
+        this.$message({
+          type: "warning",
+          message: "此教材处于上架状态不可以进行删除",
+        });
+        return false;
       }
       this.$confirm("确定要删除此书籍吗?", "提示", {
         confirmButtonText: "确定",