Commit f299a6bd by tianxinyu

gitset页面756、202问题

parent 7e97f337
......@@ -52,6 +52,10 @@
import Gitsetp1 from "./Gitsetp1";
import Gitsetp from "./Gitsetp";
const tabNameToRulePathMapping = {
"det756": "setmod.setglg.setgll(2).sespay.det756",
"det202cv": "setmod.setglg.setgll(2).sespay.det202"
}
export default {
components: {
......@@ -94,8 +98,27 @@
},
methods: {
...Event,
handleChange(val) {
console.log(val);
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 () {},
......
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