Browse Source

fix:bug修复

chenlei 3 tháng trước cách đây
mục cha
commit
2e8bf2c14a

+ 1 - 3
src/views/ppt_manage/newVersion/components/layer/VersionRecord.vue

@@ -122,9 +122,7 @@ export default {
           }).then((res) => {
               if(res.Ret !== 200) return
               this.$message.success('删除成功!');
-              this.page = 1;
-              this.list = [];
-              this.getSandBoxList();
+              this.handleChangeIsOnlyMine()
           });
       },
       showOperation(itemId) {

+ 1 - 1
src/views/ppt_manage/newVersion/pptEditor.vue

@@ -1092,7 +1092,7 @@ export default {
       this.isSaved = true
       if(this.$route.query.id||this.pptId){
         await this.editPPT(FirstPage,Content,type)
-        this.$refs.version.getSandBoxList() // 刷新版本列表
+        this.$refs.version.handleChangeIsOnlyMine() // 刷新版本列表
       }else{
         // await this.addPPT(FirstPage,Content)
       }

+ 1 - 3
src/views/report_manage/reportV2/normalReport/components/VersionRecord.vue

@@ -128,9 +128,7 @@ export default {
           }).then((res) => {
               if(res.Ret !== 200) return
               this.$message.success('删除成功!');
-              this.page = 1;
-              this.list = [];
-              this.getSandBoxList();
+              this.handleChangeIsOnlyMine()
           });
       },
       showOperation(itemId) {

+ 1 - 1
src/views/report_manage/reportV2/normalReport/components/insertContent.vue

@@ -54,7 +54,7 @@ export default {
       },
       getSandBoxList(){
         if (this.$refs.version) {
-          this.$refs.version.getSandBoxList() // 刷新版本列表
+          this.$refs.version.handleChangeIsOnlyMine() // 刷新版本列表
         }
       }
   }

+ 1 - 3
src/views/report_manage/reportV2/smartReport/components/VersionRecord.vue

@@ -128,9 +128,7 @@ export default {
           }).then((res) => {
               if(res.Ret !== 200) return
               this.$message.success('删除成功!');
-              this.page = 1;
-              this.list = [];
-              this.getSandBoxList();
+              this.handleChangeIsOnlyMine()
           });
       },
       showOperation(itemId) {

+ 2 - 2
src/views/report_manage/reportV2/smartReport/editReport.vue

@@ -499,7 +499,7 @@ export default {
                 resolve(true)
                 type==='save' && this.$message.success(res.Msg);
                 if(type !== '' && this.$refs.version)  {
-					this.$refs.version.getSandBoxList() // 刷新版本列表
+					this.$refs.version.handleChangeIsOnlyMine() // 刷新版本列表
 				}
             })
 		},
@@ -1192,7 +1192,7 @@ export default {
                             this.$message.success(this.$t('MsgPrompt.saved_msg'))
                         }
                         if(IsManualSave && this.$refs.version)  {
-                            this.$refs.version.getSandBoxList() // 刷新版本列表
+                            this.$refs.version.handleChangeIsOnlyMine() // 刷新版本列表
                         }
                     }
                 })