|
|
@@ -235,7 +235,11 @@ export default {
|
|
|
for (const key in this.tabConditions) {
|
|
|
this.tabConditions[key] = this.defaultCondition();
|
|
|
}
|
|
|
- this.GETtree();
|
|
|
+ if (process.env.VUE_APP_Helath === "demo") {
|
|
|
+ this.GETtreedemo();
|
|
|
+ } else {
|
|
|
+ this.GETtree();
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
defaultCondition() {
|
|
|
@@ -255,18 +259,18 @@ export default {
|
|
|
this.activeTab = tab.name;
|
|
|
},
|
|
|
|
|
|
- // async GETtree() {
|
|
|
- // const res = await getSysOrganizationAuthTreeByRoleId();
|
|
|
- // const treedata = res.data;
|
|
|
- // const processed = this.processTreeData(treedata);
|
|
|
+ async GETtree() {
|
|
|
+ const res = await getSysOrganizationAuthTreeByRoleId();
|
|
|
+ const treedata = res.data;
|
|
|
+ const processed = this.processTreeData(treedata);
|
|
|
|
|
|
- // for (const key in this.tabConditions) {
|
|
|
- // this.tabConditions[key].parentOpt = processed;
|
|
|
- // }
|
|
|
- // },
|
|
|
+ for (const key in this.tabConditions) {
|
|
|
+ this.tabConditions[key].parentOpt = processed;
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
// demo演示所需,必要时可删除
|
|
|
- async GETtree() {
|
|
|
+ async GETtreedemo() {
|
|
|
const res = await getSysOrganizationAuthTreeByRoleId();
|
|
|
const treedata = res.data;
|
|
|
const processed = this.processTreeData(treedata);
|
|
|
@@ -286,7 +290,6 @@ export default {
|
|
|
if (key === "Gear") {
|
|
|
// Gear tab:保留主轴承 + 齿轮箱测点
|
|
|
this.$set(tab, "monitoringoptions", [
|
|
|
-
|
|
|
{
|
|
|
itemKey: "gearbox_first_stage_planet_large_ring_radial_vibration",
|
|
|
itemValue: "齿轮箱一级行星级大齿圈径向振动",
|