Commit ac470a98 by nanrui

通过按钮组组件跳转交易的修改。

parent 75237072
...@@ -237,10 +237,11 @@ export default { ...@@ -237,10 +237,11 @@ export default {
this.BotselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C"; this.BotselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
console.log("ownref:" + ownref); console.log("ownref:" + ownref);
}, },
async onChoose(code) { async onChoose(code, prePageId) {
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) // this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false this.$router.push({ name: code.charAt(0).toUpperCase() + code.substring(1), params: { prePageId } });
this.$refs.childs.initdialog = false;
}, },
closeTrn(refId) { closeTrn(refId) {
this.$refs[refId].doClose(); this.$refs[refId].doClose();
......
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
let rtnmsg = await this.executeRule(`cfgfil.hotsub${i}`); let rtnmsg = await this.executeRule(`cfgfil.hotsub${i}`);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.navcode = []; this.navcode = [];
this.$emit("onChoose", code.toLowerCase()); this.$emit("onChoose", code.toLowerCase(), this.model.pageId);
} else { } else {
this.$notify.error({ title: "错误", message: "服务请求失败!" }); this.$notify.error({ title: "错误", message: "服务请求失败!" });
} }
......
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