sr преди 4 години
родител
ревизия
470bc50172

+ 2 - 0
ruoyi-ui/src/views/activiti/TemplateManagementNew/index.vue

@@ -459,6 +459,7 @@ export default {
       this.data = Object.assign(this.data,data)
       this.data = Object.assign(this.data,data)
     },
     },
     close () {
     close () {
+      this.$store.dispatch("tagsView/delView", this.$route);
       this.$router.push('/tool/activiti/modeler')
       this.$router.push('/tool/activiti/modeler')
       this.currentChange({
       this.currentChange({
         path:'/tool/activiti/modeler'
         path:'/tool/activiti/modeler'
@@ -468,6 +469,7 @@ export default {
       this.confirm(true).then(res => {
       this.confirm(true).then(res => {
         getPublish({id:res.data.id}).then((response) => {
         getPublish({id:res.data.id}).then((response) => {
           if(response.resultCode === 0){
           if(response.resultCode === 0){
+            this.$store.dispatch("tagsView/delView", this.$route);
             this.$router.push('/tool/activiti/modeler')
             this.$router.push('/tool/activiti/modeler')
             this.currentChange({
             this.currentChange({
               path:'/tool/activiti/modeler'
               path:'/tool/activiti/modeler'

+ 8 - 2
ruoyi-ui/src/views/system/editing/index.vue

@@ -341,12 +341,13 @@
           this.tabldie = [{tableComment:'主表数据',tableName:this.taheus}]
           this.tabldie = [{tableComment:'主表数据',tableName:this.taheus}]
           this.tabldie =this.tabldie.concat(response.data.ref)
           this.tabldie =this.tabldie.concat(response.data.ref)
           if (this.tabldie.length !== 1) {
           if (this.tabldie.length !== 1) {
-           
+
           } else {
           } else {
             this.msgSuccess("暂无tab数据");
             this.msgSuccess("暂无tab数据");
+            this.$store.dispatch("tagsView/delView", this.$route);
             this.$router.go(-1)
             this.$router.go(-1)
           }
           }
-         
+
         });
         });
       },
       },
       // 列表数据
       // 列表数据
@@ -413,6 +414,7 @@
           this.forme.fixedData = this.queryParams
           this.forme.fixedData = this.queryParams
           this.submitForm()
           this.submitForm()
         } else if (index == '返回') {
         } else if (index == '返回') {
+          this.$store.dispatch("tagsView/delView", this.$route);
           this.$router.go(-1)
           this.$router.go(-1)
         } else if (index == '刷新') {
         } else if (index == '刷新') {
           this.reload()
           this.reload()
@@ -436,6 +438,7 @@
             addbjectSave(this.forme).then(response => {
             addbjectSave(this.forme).then(response => {
               this.msgSuccess("保存成功");
               this.msgSuccess("保存成功");
               this.open = false;
               this.open = false;
+              this.$store.dispatch("tagsView/delView", this.$route);
               this.$router.go(-1)
               this.$router.go(-1)
               // this.getList();
               // this.getList();
             });
             });
@@ -450,6 +453,7 @@
               // 提交
               // 提交
               tableSubimt(this.formeanti).then(response => {
               tableSubimt(this.formeanti).then(response => {
                 this.msgSuccess("提交成功");
                 this.msgSuccess("提交成功");
+                this.$store.dispatch("tagsView/delView", this.$route);
                 this.$router.go(-1)
                 this.$router.go(-1)
                 // this.getList();
                 // this.getList();
               });
               });
@@ -457,6 +461,7 @@
               // 反提交
               // 反提交
               tableSubimtanit(this.formeanti).then(response => {
               tableSubimtanit(this.formeanti).then(response => {
                 this.msgSuccess("反提交成功");
                 this.msgSuccess("反提交成功");
+                this.$store.dispatch("tagsView/delView", this.$route);
                 this.$router.go(-1)
                 this.$router.go(-1)
                 // this.getList();
                 // this.getList();
               });
               });
@@ -476,6 +481,7 @@
           }).then(() => {
           }).then(() => {
             // this.getList();
             // this.getList();
             this.msgSuccess("删除成功");
             this.msgSuccess("删除成功");
+            this.$store.dispatch("tagsView/delView", this.$route);
             this.$router.go(-1)
             this.$router.go(-1)
           })
           })
         }else{
         }else{

+ 5 - 0
ruoyi-ui/src/views/system/form/index.vue

@@ -368,6 +368,7 @@
       /** 搜索按钮操作 */
       /** 搜索按钮操作 */
       handleQuery(index) {
       handleQuery(index) {
         if(index == 'fh'){
         if(index == 'fh'){
+          this.$store.dispatch("tagsView/delView", this.$route);
           this.$router.go(-1)
           this.$router.go(-1)
           return
           return
         }else if(index == 'sx'){
         }else if(index == 'sx'){
@@ -448,6 +449,7 @@
            addbjectSave(this.forme).then(response => {
            addbjectSave(this.forme).then(response => {
              this.msgSuccess("保存成功");
              this.msgSuccess("保存成功");
              this.open = false;
              this.open = false;
+             this.$store.dispatch("tagsView/delView", this.$route);
              this.$router.go(-1)
              this.$router.go(-1)
              // this.getList();
              // this.getList();
            });
            });
@@ -462,6 +464,7 @@
          // 提交
          // 提交
          tableSubimt(this.formeanti).then(response => {
          tableSubimt(this.formeanti).then(response => {
            this.msgSuccess("提交成功");
            this.msgSuccess("提交成功");
+           this.$store.dispatch("tagsView/delView", this.$route);
            this.$router.go(-1)
            this.$router.go(-1)
            // this.getList();
            // this.getList();
          });
          });
@@ -469,6 +472,7 @@
          // 反提交
          // 反提交
          tableSubimtanit(this.formeanti).then(response => {
          tableSubimtanit(this.formeanti).then(response => {
            this.msgSuccess("反提交成功");
            this.msgSuccess("反提交成功");
+           this.$store.dispatch("tagsView/delView", this.$route);
            this.$router.go(-1)
            this.$router.go(-1)
            // this.getList();
            // this.getList();
          });
          });
@@ -487,6 +491,7 @@
          }).then(() => {
          }).then(() => {
            // this.getList();
            // this.getList();
            this.msgSuccess("删除成功");
            this.msgSuccess("删除成功");
+           this.$store.dispatch("tagsView/delView", this.$route);
            this.$router.go(-1)
            this.$router.go(-1)
          })
          })
      },
      },

+ 10 - 5
ruoyi-ui/src/views/system/table/index.vue

@@ -180,7 +180,8 @@
           //新增
           //新增
           this.xidugje = 0
           this.xidugje = 0
           this.reload()
           this.reload()
-        } else if (index == '返回') {
+        } else if (index == '返回') {
+          this.$store.dispatch("tagsView/delView", this.$route);
             this.$router.go(-1)
             this.$router.go(-1)
         } else if (index == '刷新') {
         } else if (index == '刷新') {
           this.xidugje = 1
           this.xidugje = 1
@@ -298,7 +299,8 @@
             // }
             // }
             addbjectSave(this.forme).then(response => {
             addbjectSave(this.forme).then(response => {
               this.msgSuccess("保存成功");
               this.msgSuccess("保存成功");
-              // this.open = false;
+              // this.open = false;
+              this.$store.dispatch("tagsView/delView", this.$route);
               this.$router.go(-1)
               this.$router.go(-1)
             });
             });
           }
           }
@@ -311,14 +313,16 @@
             if (this.formy.status == 1) {
             if (this.formy.status == 1) {
               // 提交
               // 提交
               tableSubimt(this.formeanti).then(response => {
               tableSubimt(this.formeanti).then(response => {
-                this.msgSuccess("提交成功");
+                this.msgSuccess("提交成功");
+                this.$store.dispatch("tagsView/delView", this.$route);
                 this.$router.go(-1)
                 this.$router.go(-1)
                 // this.getList();
                 // this.getList();
               });
               });
             } else if (this.formy.status == 2) {
             } else if (this.formy.status == 2) {
               // 反提交
               // 反提交
               tableSubimtanit(this.formeanti).then(response => {
               tableSubimtanit(this.formeanti).then(response => {
-                this.msgSuccess("反提交成功");
+                this.msgSuccess("反提交成功");
+                this.$store.dispatch("tagsView/delView", this.$route);
                 this.$router.go(-1)
                 this.$router.go(-1)
                 // this.getList();
                 // this.getList();
               });
               });
@@ -336,7 +340,8 @@
           return delMenutab(index);
           return delMenutab(index);
         }).then(() => {
         }).then(() => {
           // this.getList();
           // this.getList();
-          this.msgSuccess("删除成功");
+          this.msgSuccess("删除成功");
+          this.$store.dispatch("tagsView/delView", this.$route);
           this.$router.go(-1)
           this.$router.go(-1)
         })
         })
       }
       }