Explorar el Código

选择教材增加版本,升级book-ui

dusenyao hace 1 año
padre
commit
540a210b7c
Se han modificado 2 ficheros con 26 adiciones y 2 borrados
  1. 1 1
      package.json
  2. 25 1
      src/views/teacher/create_course/step_two/SelectBook.vue

+ 1 - 1
package.json

@@ -16,7 +16,7 @@
     "@tinymce/tinymce-vue": "^3.2.8",
     "awe-dnd": "^0.3.4",
     "axios": "^1.6.8",
-    "book-ui": "file:../book-ui-0.3.85.tgz",
+    "book-ui": "file:../book-ui-0.3.86.tgz",
     "core-js": "^3.36.1",
     "dayjs": "^1.11.10",
     "element-ui": "^2.15.14",

+ 25 - 1
src/views/teacher/create_course/step_two/SelectBook.vue

@@ -8,6 +8,9 @@
       <div class="select-book-container-table">
         <div class="search">
           <div>
+            <el-select v-model="sys_version_type" class="version-type" placeholder="请选择" @change="queryBookList">
+              <el-option v-for="{ label, value } in versionList" :key="value" :label="label" :value="value" />
+            </el-select>
             <el-input
               v-model="search"
               prefix-icon="el-icon-search"
@@ -92,6 +95,21 @@ const $t = inject('$t');
 let id = route.params.id;
 let is_template = 'is_template' in route.query ? route.query.is_template === 'true' : false;
 let search = ref('');
+let sys_version_type = ref(-1);
+const versionList = [
+  {
+    label: '全部',
+    value: -1
+  },
+  {
+    label: '1.0',
+    value: 0
+  },
+  {
+    label: '2.0',
+    value: 1
+  }
+];
 const { page_capacity, cur_page, total_count, list, changePage } = useList(14);
 
 function queryBookList() {
@@ -99,7 +117,8 @@ function queryBookList() {
     name: search.value,
     course_id: id,
     page_capacity: page_capacity.value,
-    cur_page: cur_page.value
+    cur_page: cur_page.value,
+    sys_version_type: sys_version_type.value
   }).then(({ book_list, cur_page: page, total_count: total }) => {
     cur_page.value = page;
     total_count.value = total;
@@ -173,8 +192,13 @@ function nextStep() {
         justify-content: space-between;
         margin-bottom: 24px;
 
+        .version-type {
+          width: 120px;
+        }
+
         .keyword {
           width: 300px;
+          margin-left: 16px;
         }
 
         .buy {