Commit 44fec1d3 authored by zhengke's avatar zhengke

增加跳转判断

parent d093bda7
......@@ -154,7 +154,12 @@
this.loading = false;
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.goUrl('newQuotation');
let isfrom = this.$route.query.isNewQuo;
if(isfrom==1){
this.goUrl('newQuotation');
}else{
this.goUrl('newQuotation2');
}
} else {
this.Error(res.data.message);
}
......
......@@ -512,12 +512,22 @@
that.outerVisible = true;
},
goUrl(path, configId, isCopy) {
var routeName = this.$route.name;
var isNewQuo=1;
if (routeName == 'newQuotation') {
isNewQuo=1;
}
if (routeName == 'newQuotation2') {
isNewQuo=2;
}
if (configId > 0) {
this.$router.push({
name: path,
query: {
configId: configId,
isCopy: isCopy,
isNewQuo:isNewQuo,
blank: 'y'
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment