Bläddra i källkod

Merge remote-tracking branch 'origin/master'

user5 2 år sedan
förälder
incheckning
5d86c4af4a
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      src/views/modules/flowable/task/TaskForm.vue

+ 6 - 0
src/views/modules/flowable/task/TaskForm.vue

@@ -214,6 +214,7 @@
     methods: {
       changeBusiness () {
         this.businessId = 'false'
+        this.$refs.form.close()
       },
       init () {
         this.taskSelectedTab = 'form-first'
@@ -291,6 +292,7 @@
             }).then(({data}) => {
               this.$message.success('启动成功')
               this.changeBusiness()
+              this.$refs.form.close()
               this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
               if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
                 this.$router.push(this.$route.query.routePath)
@@ -308,6 +310,7 @@
             assignee: this.auditForm.assignee
           }, (data) => {
             this.changeBusiness()
+            this.$refs.form.close()
             this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
             this.$router.push('/flowable/task/TodoList')
             this.cc(data)
@@ -383,6 +386,7 @@
         }).then(({data}) => {
           this.$message.success('回退成功')
           this.changeBusiness()
+          this.$refs.form.close()
           this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
           var num = this.$route.query.num
           if (num === '2') {
@@ -473,6 +477,7 @@
             }).then(({data}) => {
               this.$message.success('提交成功')
               this.changeBusiness()
+              this.$refs.form.close()
               this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
               // this.$router.push('/flowable/task/TodoList')
               // this.cc(data)
@@ -491,6 +496,7 @@
         } else { // 动态表单
           this.$refs.form.submitTaskFormData(vars, this.procInsId, this.taskId, this.auditForm.assignee, this.auditForm, (data) => {
             this.changeBusiness()
+            this.$refs.form.close()
             this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
             // this.$router.push('/flowable/task/TodoList')
             // this.cc(data)