xsh 3 年 前
コミット
c4d55d5b85
2 ファイル変更12 行追加1 行削除
  1. 2 1
      src/views/MainLayout.vue
  2. 10 0
      src/views/Zoology/Zoology.vue

+ 2 - 1
src/views/MainLayout.vue

@@ -227,12 +227,13 @@ export default {
   watch: {
     $route(newVal) {
       if(newVal) {
-        this.title = newVal.meta.title;
         if (newVal.name === 'Home') {
           this.isHome = true;
           this.initTime();
+          this.title = this.getFarmName(this.farmId) + '数智驾驶舱'
         } else {
           this.isHome = false;
+          this.title = newVal.meta.title;
           clearInterval(this.timer4);
         }
       }

+ 10 - 0
src/views/Zoology/Zoology.vue

@@ -425,6 +425,16 @@ export default {
       getByFloor(params).then((res) => {
         this.floorList = res.data;
       });
+      let params1 = {
+        endDate: timeDate(new Date().getTime()),
+        floorId: this.schoolId,
+        type: 1
+      }
+      getFodder(params1).then(res => {
+        if(res.code === 10000) {
+          this.setFodder(res.data)
+        }
+      })
     },
     handFloor(val) {
       this.unitList= [];