Commit 005c8c4b by nanrui

betset禅道缺陷修改

parent fcdf9269
......@@ -39,6 +39,11 @@ import Incp from "./Incp";
import Basp from "./Basp"
import Basp1 from "./Basp1"
const tabNameToRulePathMapping = {
"basp": "bopmod.dbap.basp",
"basp1": "bopmod.dbdp.basp",
}
export default {
inject: ["root"],
......@@ -57,9 +62,30 @@ export default {
};
},
methods: {
...Event,
handleChange() { }
...Event,
handleChange(names){
// console.log(names);//激活的(展开的)面板的name数组集合
if (this.isInDisplay) {
return
}
const arr = []
for (let i = 0; i < names.length; i++) {
const n = names[i];
const path = tabNameToRulePathMapping[n]//取出激活/展开面板name对应的rulePath
if (path) {
arr.push(path)
}
}
let rulePath = arr.join(",");//把arr数组加入逗号分割,变成字符串
if (!!rulePath) {//rulePath不为空串
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
},
created: function () { },
};
</script>
......
......@@ -146,14 +146,26 @@ export default {
activeNames: ["engp"],
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
methods: {
myTabClick(tab) {
this.tabClick(tab);
let name = tab.name;
let rulePath;
if (name === "basp") {
rulePath = "bopmod.dbap.basp";
}
if (name === "basp1") {
rulePath = "bopmod.dbdp.basp";
}
if (!!rulePath) {
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
},
created:async function(){
console.log("进入betset交易");
let rtnmsg = await this.init({})
......
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