Commit 24465d44 by nanrui

入口交易路由跳转(关于参数pageId)的修改。

parent 9ee76685
......@@ -283,7 +283,7 @@ export default {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} });
this.$router.push({ path: viewurl, query: {}, params: { prePageId: this.model.pageId } });
} else {
const h = this.$createElement;
const msg = res.respMsg || '请求执行失败!'
......@@ -313,7 +313,6 @@ export default {
async getInfo(idx, row) {
console.log(row);
let business = row.申报类型.toLowerCase() + "inf";
let viewurl = "/business/" + business;
const selIds = [idx + 1];
console.log(selIds);
const selDst = "eblstm" //列表对应后台模型中的stream
......@@ -323,7 +322,8 @@ export default {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {},params:{prePageId:this.model.pageId} });
console.log(this.model.pageId);
this.$router.push({ name: business.charAt(0).toUpperCase() + business.substring(1), params: { prePageId: this.model.pageId } });
} else {
const h = this.$createElement;
const msg = res.respMsg || '请求执行失败!'
......@@ -341,7 +341,7 @@ export default {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} });
this.$router.push({ name: business.charAt(0).toUpperCase() + business.substring(1), params: { prePageId: this.model.pageId } });
} else {
const h = this.$createElement;
const msg = res.respMsg || '请求执行失败!'
......@@ -359,7 +359,7 @@ export default {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} });
this.$router.push({ name: business.charAt(0).toUpperCase() + business.substring(1), params: { prePageId: this.model.pageId } });
} else {
const h = this.$createElement;
const msg = res.respMsg || '请求执行失败!'
......@@ -368,8 +368,11 @@ export default {
});
}
},
created: function () {
// created: function () {
// console.log(this.model.pageId);
// },
mounted () {
console.log(this.model.pageId);
}
}
</script>
......
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