huanghongfeng
3 天以前 5ffc36a1db18d3112a9b50a9cf3953d7fcf21bae
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/views/Home.vue
@@ -31,6 +31,16 @@
    </div>
  </div>
  <div style="margin: 0px auto;width: 600px;">
    <div>
      <div style="color: brown;font-size: 25px;">车轮超期数量:   <i style="font-size: 35px;">{{ wheelsCount }} ä¸ª</i></div>
    </div>
    <div>
      <div style="color: brown;font-size: 25px;">制动盘超期数量:   <i style="font-size: 35px;">{{ zdpCount }} ä¸ª</i></div>
    </div>
  </div>
</template>
<script>
import axios from 'axios';
@@ -38,6 +48,8 @@
  data() {
    return {
      datalist: [],
      zdpCount:0,
      wheelsCount:0,
      url: "http://192.168.12.189/:8098/api/",
    };
@@ -45,6 +57,7 @@
  mounted() {
    // setInterval(() => {
    this.AddTask();
    this.StockYx();
    // }, 5000);
  },
@@ -78,6 +91,17 @@
          }
          
        })
    },
    StockYx() {
      axios.post("http://172.21.1.139:5000/api/Task/GetStockStatue")
        .then(response => {
          console.log(response.data.data.zdpCount)
          if(response.status){
              this.wheelsCount=response.data.data.wheelsCount;
              this.zdpCount=response.data.data.zdpCount;
          }
        })
    }
  },