From 2ee6aabfa6a557939dfae393c4881b8b5b9ea270 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期日, 21 十二月 2025 09:54:01 +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..9ea2f3d 100644
--- a/src/main/webapp/static/js/locDetl/locDetl.js
+++ b/src/main/webapp/static/js/locDetl/locDetl.js
@@ -40,6 +40,7 @@
                 return d.threeCode ? d.threeCode : '寰呭垽';
             }
         }
+        ,{field: 'supp', align: 'center',title: '澶囨敞'}
         // ,{field: 'supp', align: 'center',title: '渚涘簲鍟�', hide: true}
         // ,{field: 'suppCode', align: 'center',title: '渚涘簲鍟嗙紪鐮�', hide: true}
         // ,{field: 'beBatch$', align: 'center',title: '鏄惁鎵规', hide: true}
@@ -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