Commit 03fc4059 by wangna

gitplb修改

parent 95a94cfc
......@@ -32,6 +32,10 @@ import Gitsetp1 from "./Gitsetp1";
import Cfap from "./Cfap";
import Dclpp from "./Dclpp";
const tabNameToRulePathMapping = {
"dclpp": "cfagit.recp.dclp(1).dclpp",
}
export default {
components: {
"m-gitsetp1": Gitsetp1,
......@@ -48,6 +52,29 @@ export default {
},
methods: {
...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[arr.length-1]//取最后一个展开的面板的rulePath
let rulePath = arr.join(",");//把arr数组加入逗号分割,变成字符串
if (!!rulePath) {//rulePath不为空串
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
},
created: function () {},
};
......
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