|
@@ -254,7 +254,6 @@
|
|
|
this.productionList = f.children;
|
|
this.productionList = f.children;
|
|
|
} else if (f.path == "operationsList") {
|
|
} else if (f.path == "operationsList") {
|
|
|
const promise = statistics().then((res) => {
|
|
const promise = statistics().then((res) => {
|
|
|
- console.log('statistics~~~', res)
|
|
|
|
|
this.workOrder = res;
|
|
this.workOrder = res;
|
|
|
f.children.forEach((item) => {
|
|
f.children.forEach((item) => {
|
|
|
if (item.name == "保养工单") item.badge = res.maintenanceNum;
|
|
if (item.name == "保养工单") item.badge = res.maintenanceNum;
|
|
@@ -354,16 +353,17 @@
|
|
|
top: rects[0] ? rects[0].height : 80
|
|
top: rects[0] ? rects[0].height : 80
|
|
|
});
|
|
});
|
|
|
// 根据 moduleNavList 动态监测模块
|
|
// 根据 moduleNavList 动态监测模块
|
|
|
- this.moduleNavList.forEach(item => {
|
|
|
|
|
- this.moduleObserver.observe('#module-' + item.id, (res) => {
|
|
|
|
|
- if (res.intersectionRatio > 0) {
|
|
|
|
|
- const index = parseInt(res.dataset.index);
|
|
|
|
|
- if (!isNaN(index)) {
|
|
|
|
|
- this.currentNavIndex = index;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // this.moduleNavList.forEach(item => {
|
|
|
|
|
+ // this.moduleObserver.observe('#module-' + item.id, (res) => {
|
|
|
|
|
+ // console.log('res~~~', res);
|
|
|
|
|
+ // if (res.intersectionRatio > 0) {
|
|
|
|
|
+ // const index = parseInt(res.dataset.index);
|
|
|
|
|
+ // if (!isNaN(index)) {
|
|
|
|
|
+ // this.currentNavIndex = index;
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // });
|
|
|
|
|
+ // });
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|