Browse Source

Merge branch 'requirement_365' into debug

cldu 3 weeks ago
parent
commit
984bc800c6

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

@@ -151,17 +151,17 @@ export default {
     },
     },
     async searchHandle(keyword){
     async searchHandle(keyword){
       this.searchLoading = true
       this.searchLoading = true
-      const param = {
-        AdminId:Number(localStorage.getItem("AdminId")),
+      pptInterface.getPptListV2({
         Keyword:keyword,
         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){
     nodeChange(data,node){
       if(data.PptId){
       if(data.PptId){