Commit a7098639 by hewei

打开隐藏标签页无数据缺陷解决

parent 43d7ffcf
...@@ -642,7 +642,8 @@ export default { ...@@ -642,7 +642,8 @@ export default {
{max: 4,message:"长度不能超过4"} {max: 4,message:"长度不能超过4"}
], ],
"cnybop.cnyinc.dpayeedate":[ "cnybop.cnyinc.dpayeedate":[
{type: "date", required: false, message: "输入正确的日期"} // {type: "date", required: false, message: "输入正确的日期"}
{type: "string", required: false, message: "输入正确的日期"}
], ],
"cnybop.cnyinc.fprepayeeamt":[ "cnybop.cnyinc.fprepayeeamt":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
......
...@@ -37,7 +37,11 @@ ...@@ -37,7 +37,11 @@
import Basp2 from "./Basp2"; import Basp2 from "./Basp2";
import Basp3 from "./Basp3"; import Basp3 from "./Basp3";
const tabNameToRulePathMapping = {
"basp2": "bopmod.dbdp.basp",
"basp3": "bopmod.dbap.basp",
"incp": "cnybop.incp",
}
export default { export default {
inject: ["root"], inject: ["root"],
...@@ -57,7 +61,45 @@ ...@@ -57,7 +61,45 @@
}, },
methods: { methods: {
...Event, ...Event,
handleChange() {} handleChange(names) {
if (this.isInDisplay) {
return
}
const arr = [];
for (let i = 0; i < names.length; i++) {
const n = names[i];
const path = tabNameToRulePathMapping[n]
if (path) {
arr.push(path)
}
}
let rulePath = arr.join(",");
if (!!rulePath) {//rulePath不为空串
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
myTabClick(tab) {
this.tabClick(tab);
let name = tab.name;
let rulePath;
if (name === "basp3") {
rulePath = "bopmod.dbap.basp";
}
if (name === "basp2") {
rulePath = "bopmod.dbdp.basp";
}
if (!!rulePath) {
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -254,9 +254,14 @@ export default { ...@@ -254,9 +254,14 @@ export default {
}, },
}, },
}, },
methods:{ methods: {
//tabClick(){} myTabClick(tab) {
}, this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){ created:async function(){
console.log("进入botset交易"); console.log("进入botset交易");
let rtnmsg = await this.init({}) 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