Procházet zdrojové kódy

更换查询教材字段及接口

natasha před 7 měsíci
rodič
revize
ceaa237011
1 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. 5 5
      src/views/learn-center/ListPage.vue

+ 5 - 5
src/views/learn-center/ListPage.vue

@@ -19,8 +19,8 @@
           <el-option
             v-for="(item, index) in typeList"
             :key="'type' + index"
-            :label="item.name"
-            :value="item.id"
+            :label="item"
+            :value="item"
           />
         </el-select>
         <label>版本</label>
@@ -197,7 +197,7 @@ export default {
           publish_status: 1,
           is_control_publish_scope: 'true',
           is_enable_book_org_free_license_query: 'true',
-          type_id_list: this.typeId,
+          type_name_list: this.typeId,
           order_column_list: ['name'],
           sys_version_type: this.versionId,
         }).then((res) => {
@@ -224,9 +224,9 @@ export default {
     },
     // 教材类型列表
     getTypeList() {
-      let MethodName = 'dict_manager-GetBookTypeList'
+      let MethodName = 'book-book_manager-GetBookTypeList'
       let data = {}
-      getStaticContent(MethodName, data).then((res) => {
+      TextbookAPI(MethodName, data).then((res) => {
         this.typeList = res.type_list
       })
     },