|
@@ -290,6 +290,12 @@ export default {
|
|
|
},
|
|
|
|
|
|
onSubmit() {
|
|
|
+ // console.log(this.$route.params,'this.$route.params')
|
|
|
+ const {currentPage,isEdit} = this.$route.params
|
|
|
+ let numberpage = 1
|
|
|
+ if(isEdit){
|
|
|
+ numberpage = currentPage
|
|
|
+ }
|
|
|
let goOn = true;
|
|
|
this.$refs.subForm.$refs.form1 &&
|
|
|
this.$refs.subForm.$refs.form1.validate(valid => {
|
|
@@ -342,7 +348,7 @@ export default {
|
|
|
this.$router.push({
|
|
|
name: 'Bill',
|
|
|
params: Object.assign({}, this.$route.params, {
|
|
|
- currentPage: 1
|
|
|
+ currentPage: numberpage
|
|
|
})
|
|
|
});
|
|
|
} else if (res.data.code === '00020007') {
|