Commit 57bd2710 by liyixun

getopn bug (682)

parent 82be40d8
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="Bookings" name="Booking"> <el-tab-pane v-if="this.flag" label="Bookings" name="Booking">
<c-content> <c-content>
<m-glepan :model="model" :codes="codes" /> <m-glepan :model="model" :codes="codes" />
</c-content> </c-content>
...@@ -319,11 +319,24 @@ export default { ...@@ -319,11 +319,24 @@ export default {
codes: { codes: {
...CodeTable, ...CodeTable,
}, },
flag: false,
}; };
}, },
methods: { methods: {
myTabClick(tab) { myTabClick(tab) {
this.tabClick(tab); this.tabClick(tab);
const name = tab.name;
let rulePath;
if (name === "setpan") {
this.flag = true;
}
if (!!rulePath) {
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
/** /**
* do it yourself * do it yourself
**/ **/
......
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