From 70223b3ef4df02622869425fed4ba9b290e1aa74 Mon Sep 17 00:00:00 2001
From: fei.wang <wf18701153496@163.com>
Date: 星期二, 16 四月 2024 14:07:59 +0800
Subject: [PATCH] V定制1.0 1:对讲功能 2:计算经纬度控制器systemcontrollen

---
 src/main/webapp/HouTai/WeiLanList/WeiLanListJs/PersonJuji.js |   30 ++++++++----------------------
 1 files changed, 8 insertions(+), 22 deletions(-)

diff --git a/src/main/webapp/HouTai/WeiLanList/WeiLanListJs/PersonJuji.js b/src/main/webapp/HouTai/WeiLanList/WeiLanListJs/PersonJuji.js
index 1000378..88be053 100644
--- a/src/main/webapp/HouTai/WeiLanList/WeiLanListJs/PersonJuji.js
+++ b/src/main/webapp/HouTai/WeiLanList/WeiLanListJs/PersonJuji.js
@@ -22,14 +22,10 @@
         ,limits: [10, 20, 30, 40, 50,60,70,80,90,100,100000]
         ,limit: 20,
     });
-    table.on('toolbar(weilanList)', function(obj) {
+    table.on('toolbar(juji)', function(obj) {
         var checkStatus = table.checkStatus(obj.config.id);
         console.log(obj)
         switch(obj.event) {
-            case 'getadd' :
-                $(".add").show();
-                $(".heimu").show();
-                break;
             case 'getUpdate':
                 var data = checkStatus.data;
                 if(data.length>1){
@@ -37,25 +33,15 @@
                 }else if(data.length == 0){
                     layer.alert("璇烽�変腑涓�鏉℃暟鎹�")
                 }else{
-                    $("#up0").val(data[0].id)
+                    $("#up1").val(data[0].id)
+                    $("#up2").val(data[0].name)
+                    $("#up3").val(data[0].pernum)
+                    $("#up4").val(data[0].typec2)
+                    $("#up5").val(data[0].redius)
+                    $("#up6").val(data[0].shichang)
+                    $("#up7").val(data[0].weixianpin)
                     $(".update").show();
                     $(".heimu").show();
-                }
-                break;
-            case 'getdelete':
-                var data = checkStatus.data;
-                if(data<1){
-                    layer.alert("璇烽�変腑涓�鏉℃暟鎹�")
-                }else{
-                    for (var i = 0; i<data.length;i++){
-                        var ds = "name="+data[i].name
-                        $.get("/hxzkuwb/deletewl",ds,function (data){
-                            setTimeout(function (){
-                                location.reload();
-                            },500)
-                        })
-                    }
-                    location.reload();
                 }
                 break;
             case 'getshuaxin':

--
Gitblit v1.9.3