Browse Source

修改保存返回

lex-xin 4 năm trước cách đây
mục cha
commit
a36a7b3084

+ 1 - 0
src/views/adapayAccount/form.vue

@@ -375,6 +375,7 @@ export default {
       this.files = null
       this.fileList = []
       this.form.multipartFile = null
+      this.$store.dispatch('delVisitedViews', this.$route)
       this.$router.push({
         path: "/insideSetting/adapayManager"
       });

+ 2 - 0
src/views/app/entryOperation.vue

@@ -349,6 +349,7 @@ export default {
     messageTips (title, res) {
       if (res.code == 200) {
         this.$message.success(title + "成功");
+        this.$store.dispatch('delVisitedViews', this.$route)
         this.$router.push({
           path: "/insideSetting/entryActivities"
         });
@@ -357,6 +358,7 @@ export default {
       }
     },
     onCancel () {
+      this.$store.dispatch('delVisitedViews', this.$route)
       this.$router.push({
         path: "/insideSetting/entryActivities"
       });

+ 3 - 0
src/views/buildVip/index.vue

@@ -1491,6 +1491,7 @@ export default {
                 //   message: '提交成功!'
                 // });
                 this.$message.success("提交成功");
+                this.$store.dispatch('delVisitedViews', this.$route)
                 this.$router.push({
                   path: "/business/vipList",
                   query: {
@@ -1501,6 +1502,7 @@ export default {
               });
             } else {
               this.$message.success("恭喜您创建成功");
+              this.$store.dispatch('delVisitedViews', this.$route)
               this.$router.push({
                 path: "/business/vipList",
                 query: {
@@ -1610,6 +1612,7 @@ export default {
       }
     },
     onCancel() {
+      this.$store.dispatch('delVisitedViews', this.$route)
       this.$router.push({
         path: "/business/vipList",
         query: {

+ 2 - 0
src/views/businessManager/shopManager/shopOperation.vue

@@ -422,6 +422,7 @@ export default {
     messageTips (title, res) {
       if (res.code == 200) {
         this.$message.success(title + '成功')
+        this.$store.dispatch('delVisitedViews', this.$route)
         this.$router.push({
           path: '/shopManager/shopManager',
           query: {
@@ -434,6 +435,7 @@ export default {
       }
     },
     onCancel () {
+      this.$store.dispatch('delVisitedViews', this.$route)
       this.$router.push({
         path: '/shopManager/shopManager'
       })

+ 2 - 0
src/views/categroyManager/insideSetting/adminOperation.vue

@@ -134,6 +134,7 @@ export default {
     messageTips (title, res) {
       if (res.code == 200) {
         this.$message.success('修改成功')
+        this.$store.dispatch('delVisitedViews', this.$route)
         this.$router.push({ path: '/specialSetup/adminManager', query: { page: this.page } })
       } else {
         this.$message.error(res.msg)
@@ -237,6 +238,7 @@ export default {
       this.checkAll = false
     },
     onCancel () {
+      this.$store.dispatch('delVisitedViews', this.$route)
       this.$router.push({
         path: '/specialSetup/adminManager',
         query: {

+ 2 - 0
src/views/categroyManager/insideSetting/branchActiveOperation.vue

@@ -298,12 +298,14 @@ export default {
     messageTips (title, res) {
       if (res.code == 200) {
         this.$message.success('修改成功')
+        this.$store.dispatch('delVisitedViews', this.$route)
         this.$router.push({ path: '/vipClassSet/branchActive', query: { rules: this.pageInfo, searchForm: this.searchForm } })
       } else {
         this.$message.error(res.msg)
       }
     },
     onCancel () {
+      this.$store.dispatch('delVisitedViews', this.$route)
       this.$router.push({ path: '/vipClassSet/branchActive', query: { rules: this.pageInfo, searchForm: this.searchForm } })
     },
     resetForm () {

+ 2 - 0
src/views/categroyManager/vipNewActive.vue

@@ -426,6 +426,7 @@ export default {
             if (res.code == 200) {
               this.$message.success("恭喜你,活动创建成功");
               this.onReSet();
+              this.$store.dispatch('delVisitedViews', this.$route)
               this.$router.push({
                 path: "/vipClassSet/vipActiveList"
               });
@@ -459,6 +460,7 @@ export default {
       this.$forceUpdate()
     },
     onCancel () {
+      this.$store.dispatch('delVisitedViews', this.$route)
       this.$router.push({
         path: "/vipClassSet/vipActiveList",
         query: { rules: this.rules, searchForm: this.searchForm }

+ 2 - 0
src/views/contentManager/contentOperation.vue

@@ -633,6 +633,7 @@ export default {
     messageTips (title, res) {
       if (res.code == 200) {
         this.$message.success(title + "成功");
+        this.$store.dispatch('delVisitedViews', this.$route)
         this.$router.push({
           path: "/contentManager/contentManager",
           query: {
@@ -644,6 +645,7 @@ export default {
       }
     },
     onCancel () {
+      this.$store.dispatch('delVisitedViews', this.$route)
       this.$router.push({
         path: "/contentManager/contentManager",
         query: {

+ 1 - 0
src/views/teacherManager/teacherOperation/components/accompanySet.vue

@@ -284,6 +284,7 @@ export default {
         }).then(res => {
           if (res.code == 200) {
             this.$message.success("保存成功");
+            this.$store.dispatch('delVisitedViews', this.$route)
             this.$router.push({
               path: "/business/teacherList",
               query: { rules: this.Frules, search: this.Fsearch }

+ 1 - 0
src/views/teacherManager/teacherOperation/components/salarySet.vue

@@ -589,6 +589,7 @@ export default {
                   }).then(res => {
                     if (res.code == 200) {
                       this.$message.success("保存成功");
+                      this.$store.dispatch('delVisitedViews', this.$route)
                       this.$router.push({
                         path: "/business/teacherList",
                         query: { rules: this.Frules, search: this.Fsearch }

+ 3 - 0
src/views/teacherManager/teacherOperation/components/teacherOperation.vue

@@ -571,6 +571,7 @@ export default {
             teacherUpdate(this.topForm).then((res) => {
               if (res.code == 200) {
                 // this.$emit('onTeacher')
+                this.$store.dispatch('delVisitedViews', this.$route)
                 this.$router.push({
                   path: "/business/teacherList",
                   query: { rules: this.Frules, search: this.Fsearch },
@@ -588,6 +589,7 @@ export default {
                 if (permission("/teacherAdd/salarySeting")) {
                   this.$emit("onTeacher", res.data);
                 } else {
+                  this.$store.dispatch('delVisitedViews', this.$route)
                   this.$router.push({
                     path: "/business/teacherList",
                     query: { rules: this.Frules, search: this.Fsearch },
@@ -647,6 +649,7 @@ export default {
       this.$refs[formName].resetFields();
     },
     onCancel() {
+      this.$store.dispatch('delVisitedViews', this.$route)
       this.$router.push({
         path: "/business/teacherList",
         query: { rules: this.Frules, search: this.Fsearch },

+ 1 - 0
src/views/teacherManager/teacherOperation/index.vue

@@ -85,6 +85,7 @@ export default {
       this.activeStatus[val.name] = true
     },
     onCancel () {
+      this.$store.dispatch('delVisitedViews', this.$route)
       this.$router.push({ path: '/business/teacherList' })
     },
     onTeacher (id) {