浏览代码

插入我的ppt搜索接口调整

cldu 3 周之前
父节点
当前提交
8e4ff8a1b1
共有 1 个文件被更改,包括 10 次插入10 次删除
  1. 10 10
      src/views/ppt_manage/newVersion/components/editor/InsertPageDialog.vue

+ 10 - 10
src/views/ppt_manage/newVersion/components/editor/InsertPageDialog.vue

@@ -151,17 +151,17 @@ export default {
     },
     async searchHandle(keyword){
       this.searchLoading = true
-      const param = {
-        AdminId:Number(localStorage.getItem("AdminId")),
+      pptInterface.getPptListV2({
         Keyword:keyword,
-        IsPrivate:true
-      }
-      const res = this.$parent.currentLang!=='en'
-                  ?await pptInterface.searchPPTByKeyWorld(param)
-                  :await pptEnInterface.searchPPTByKeyWorld(param)
-      if(res.Ret!==200) return 
-      this.searchOptions = res.Data.List||[]
-      this.searchLoading = false
+        PageSize: 100,
+        CurrentIndex: 1,
+        Source: 1,
+        ClassifyId: 0,
+      }).then(res => {
+        this.searchLoading = false;
+        if(res.Ret!==200) return 
+        this.searchOptions = res.Data.List||[];
+      })
     },
     nodeChange(data,node){
       if(data.PptId){