From e6d9118e6c9083ae4c1f1dc18f34b23ed3da2581 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期日, 13 七月 2025 19:41:26 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/basShuttle/basShuttle.js |   69 +++++++++++++++++++++++++++++++---
 1 files changed, 63 insertions(+), 6 deletions(-)

diff --git a/src/main/webapp/static/js/basShuttle/basShuttle.js b/src/main/webapp/static/js/basShuttle/basShuttle.js
index 081a4a1..ca1c240 100644
--- a/src/main/webapp/static/js/basShuttle/basShuttle.js
+++ b/src/main/webapp/static/js/basShuttle/basShuttle.js
@@ -26,19 +26,14 @@
             ,{field: 'status$', align: 'center',title: '鐘舵��'}
             // ,{field: 'shuttleStatus', align: 'center',title: '浣滀笟鎬�'}
             ,{field: 'wrkNo', align: 'center',title: '浠诲姟鍙�'}
-            ,{field: 'idleLoc', align: 'center',title: '鏆傚瓨搴撲綅'}
-            // ,{field: 'autoCharge', align: 'center',title: '鑷姩鍏呯數'}
+            // ,{field: 'idleLoc', align: 'center',title: '鏆傚瓨搴撲綅'}
             ,{field: 'chargeLine', align: 'center',title: '鐢甸噺绾�'}
-            ,{field: 'busyStatus$', align: 'center',title: '灏忚溅蹇欑姸鎬�'}
             ,{field: 'currentCode', align: 'center',title: '浜岀淮鐮�'}
-            ,{field: 'batteryPower$', align: 'center',title: '鐢甸噺'}
-            ,{field: 'batteryTemp$', align: 'center',title: '鐢垫睜娓╁害'}
             // ,{field: 'createBy$', align: 'center',title: '娣诲姞浜哄憳'}
             // ,{field: 'createTime$', align: 'center',title: '娣诲姞鏃堕棿'}
             // ,{field: 'updateBy$', align: 'center',title: '淇敼浜哄憳'}
             // ,{field: 'updateTime$', align: 'center',title: '淇敼鏃堕棿'}
             ,{field: 'memo', align: 'center',title: '澶囨敞'}
-            ,{field: 'liftNo', align: 'center',title: '鎻愬崌鏈哄彿'}
             ,{field: 'pakMk$', align: 'center',title: '鏍囪'}
 
             ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:120}
@@ -130,6 +125,68 @@
                     });
                 });
                 break;
+            case 'demoOpen':
+                shuttleNos = []
+                checkStatus.map(function (d) {
+                    shuttleNos.push(d.shuttleNo)
+                })
+
+                admin.confirm('纭畾寮�鍚紨绀烘ā寮忓悧锛�', {shadeClose: true}, function(){
+                    $.ajax({
+                        url: baseUrl+"/openapi/shuttleDemo",
+                        headers: {'token': localStorage.getItem('token')},
+                        dataType:'json',
+                        data: JSON.stringify({
+                            shuttleNos: shuttleNos,
+                            status: 1
+                        }),
+                        contentType:'application/json;charset=UTF-8',
+                        method: 'POST',
+                        success: function (res) {
+                            layer.closeAll();
+                            if (res.code === 200) {
+                                layer.msg("璇锋眰鎴愬姛", {icon: 1});
+                                tableReload();
+                            } else if (res.code === 403) {
+                                top.location.href = baseUrl+"/";
+                            } else {
+                                layer.msg(res.msg, {icon: 2})
+                            }
+                        }
+                    });
+                });
+                break;
+            case 'demoClose':
+                shuttleNos = []
+                checkStatus.map(function (d) {
+                    shuttleNos.push(d.shuttleNo)
+                })
+
+                admin.confirm('纭畾鍏抽棴婕旂ず妯″紡鍚楋紵', {shadeClose: true}, function(){
+                    $.ajax({
+                        url: baseUrl+"/openapi/shuttleDemo",
+                        headers: {'token': localStorage.getItem('token')},
+                        dataType:'json',
+                        data: JSON.stringify({
+                            shuttleNos: shuttleNos,
+                            status: 0
+                        }),
+                        contentType:'application/json;charset=UTF-8',
+                        method: 'POST',
+                        success: function (res) {
+                            layer.closeAll();
+                            if (res.code === 200) {
+                                layer.msg("璇锋眰鎴愬姛", {icon: 1});
+                                tableReload();
+                            } else if (res.code === 403) {
+                                top.location.href = baseUrl+"/";
+                            } else {
+                                layer.msg(res.msg, {icon: 2})
+                            }
+                        }
+                    });
+                });
+                break;
             case 'exportData':
                 admin.confirm('纭畾瀵煎嚭Excel鍚�', {shadeClose: true}, function(){
                     var titles=[];

--
Gitblit v1.9.1