Explorar el Código

提交完成返回上一页

wgl hace 4 años
padre
commit
de9270f5ca

+ 1 - 4
src/projects/business/views/Master/Attendance/Apply.vue

@@ -232,10 +232,7 @@
 						this.isLoading = false;
 
 						mui.toast('提交成功');
-						this.$router.push({
-							name: 'MasterAttendanceList',
-							query: {}
-						})
+						this.$router.go(-1);
 					}).catch(error => {
 						this.isLoading = false;
 						mui.toast(error);

+ 1 - 4
src/projects/business/views/Master/Attendance/LeaveForm.vue

@@ -302,10 +302,7 @@
 					API_Leave.save(this.tjForm).then(response => {
 						this.isLoading = false;
 						mui.toast("提交成功");
-						this.$router.push({
-							name: 'MasterAttendanceLeaveList',
-							query: {}
-						})
+						this.$router.go(-1);
 					}).catch(error => {
 						this.isLoading = false;
 						mui.toast(error);

+ 1 - 4
src/projects/business/views/Master/Health/Report.vue

@@ -119,10 +119,7 @@
 					API_Health.report(this.subForm).then(response => {
 
 						mui.toast('提交成功');
-						this.$router.push({
-							name: 'MasterHealthReportList',
-							query: {}
-						})
+						this.$router.go(-1);
 
 						this.isLoading = false;
 					}).catch(error => {