Commit 44fec1d3 authored by zhengke's avatar zhengke

增加跳转判断

parent d093bda7
...@@ -154,7 +154,12 @@ ...@@ -154,7 +154,12 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); 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 { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -512,12 +512,22 @@ ...@@ -512,12 +512,22 @@
that.outerVisible = true; that.outerVisible = true;
}, },
goUrl(path, configId, isCopy) { 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) { if (configId > 0) {
this.$router.push({ this.$router.push({
name: path, name: path,
query: { query: {
configId: configId, configId: configId,
isCopy: isCopy, isCopy: isCopy,
isNewQuo:isNewQuo,
blank: 'y' 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