分支自 SuZhouGuanHong/TaiYuanTaiZhong

dengjunjie
2024-06-26 3e1567003f6d51aa810252238235c448fa5bf0ab
优化工业看板
已修改5个文件
15 ■■■■■ 文件已修改
代码管理/WMS/WMS_Server/WIDESEA_WebApi/Controllers/LargescreenController.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/大屏/README.md 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/大屏/src/main.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/大屏/src/views/centerRight3.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/大屏/src/views/centerRight4.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
´úÂë¹ÜÀí/WMS/WMS_Server/WIDESEA_WebApi/Controllers/LargescreenController.cs
@@ -382,6 +382,9 @@
                    case "SendOut":
                        item.agv_taskstate = "已下发";
                        break;
                    case "Pause":
                        item.agv_taskstate = "暂停";
                        break;
                    default:
                        return "未知任务状态";
                }
´úÂë¹ÜÀí/´óÆÁ/README.md
@@ -182,7 +182,7 @@
Vue.prototype.$http = axios.create({
  //设置20秒超时时间
  timeout: 20000,
  baseURL: 'http://localhost:8098', //这里写后端地址http://localhost:8098/
  baseURL: 'http://192.168.12.101:8098', //这里写后端地址http://localhost:8098/
});
```
´úÂë¹ÜÀí/´óÆÁ/src/main.js
@@ -21,7 +21,7 @@
Vue.prototype.$http = axios.create({
  timeout: 20000,
  baseURL: 'http://localhost:8098',
  baseURL: 'http://192.168.12.101:8098',
});
//5.x å¼•用方式为按需引用
//希望使用5.x版本的话,需要在package.json中更新版本号,并切换引用方式
´úÂë¹ÜÀí/´óÆÁ/src/views/centerRight3.vue
@@ -45,10 +45,10 @@
        this.changeNumber()
      setInterval(() => {
        this.changeNumber()
      },100)
      },5000)
    },
    changeNumber() {
      this.$http.post('/api/Largescreen/Current_agvtask')
      this.$http.post("/api/Largescreen/Current_agvtask", "查询中...")
      .then(response => {
          let GetAGVTaskData = []
          if(response.data<=0){
´úÂë¹ÜÀí/´óÆÁ/src/views/centerRight4.vue
@@ -46,12 +46,12 @@
      this.GetLocationData();
      setInterval(() => {
        this.GetLocationData()
      },1000)
      },5000)
    },
    GetLocationData(){
      var _this=this;
      this.data = [];
      axios.post("http://localhost:8099/api/Readplc/Workinfo_information").then((x)=>{
      axios.post("http://192.168.12.101:8099/api/Readplc/Workinfo_information").then((x)=>{
        let GetAGVTaskData = []
          x.data.forEach(element => {
            let data = [