From be5373a650a8a40e808ab1664e59c60807809a7c Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期日, 21 十二月 2025 08:50:58 +0800
Subject: [PATCH] 1

---
 src/main/webapp/static/js/locDetl/locDetl.js |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js
index e1eb111..9d58342 100644
--- a/src/main/webapp/static/js/locDetl/locDetl.js
+++ b/src/main/webapp/static/js/locDetl/locDetl.js
@@ -28,6 +28,7 @@
         ,{field: 'length', align: 'center',title: '闀垮害', hide: false}
         ,{field: 'volume', align: 'center',title: '鍗曠姣涢噸', hide: true}
         ,{field: 'specs', align: 'center',title: '鎺ュご', hide:true}
+        ,{field: 'suppCode', align: 'center',title: '鏂版棫', hide:true}
         ,{field: 'deadWarn$', align: 'center',title: '鐞嗚揣鐘舵��', hide: false}
 
 
@@ -71,6 +72,7 @@
         elem: '#locDetl',
         headers: {token: localStorage.getItem('token')},
         url: baseUrl+'/locDetl/list/auth',
+
         page: true,
         limit: 16,
         limits: [16, 30, 50, 100, 200, 500],
@@ -491,6 +493,26 @@
         tableReload(false);
     });
 
+    // 鍚屾鎺ュ彛
+    form.on('submit(sync)', function (data) {
+        layer.confirm('纭畾鍚屾鏁版嵁鍚�', function(){
+            $.ajax({
+                url: baseUrl+"/locDetl/sync/auth",
+                headers: {'token': localStorage.getItem('token')},
+                method: 'GET',
+                success: function (res) {
+                    if (res.code === 200){
+                        layer.closeAll();
+                    } else if (res.code === 403){
+                        top.location.href = baseUrl+"/";
+                    } else {
+                        layer.msg(res.msg)
+                    }
+                }
+            })
+        });
+    });
+
     // 鏃堕棿閫夋嫨鍣�
     layDate.render({
         elem: '#modiTime\\$',
@@ -511,6 +533,7 @@
 
 function tableReload(child) {
     var searchData = {
+        "three_code":"寰呭垽"
     };
     $.each($('#search-box [name]').serializeArray(), function() {
         searchData[this.name] = this.value;

--
Gitblit v1.9.1