From 5ffc36a1db18d3112a9b50a9cf3953d7fcf21bae Mon Sep 17 00:00:00 2001 From: huanghongfeng <huanghongfeng@hnkhzn.com> Date: 星期二, 19 八月 2025 16:37:24 +0800 Subject: [PATCH] 更新 --- 项目代码/WMS/WIDESEA_WMSClient/src/views/Home.vue | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue" index dbaa4e9..13268d2 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/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; + } + + }) } }, -- Gitblit v1.9.3