From b4a8d50e3d97fc9e893b554a60134e4eceb012eb Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 05 一月 2026 08:58:08 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/locArea/locArea.js |   27 +++++++++++++++++----------
 1 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/src/main/webapp/static/js/locArea/locArea.js b/src/main/webapp/static/js/locArea/locArea.js
index 9b92260..63ad46b 100644
--- a/src/main/webapp/static/js/locArea/locArea.js
+++ b/src/main/webapp/static/js/locArea/locArea.js
@@ -19,17 +19,14 @@
         cellMinWidth: 50,
         cols: [[
             {type: 'checkbox'}
-//            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
-            ,{field: 'id', align: 'center',title: 'ID'}
             ,{field: 'uuid', align: 'center',title: '搴撳尯缂栧彿'}
             ,{field: 'name', align: 'center',title: '搴撳尯鍚嶇О'}
             ,{field: 'status$', align: 'center',title: '鐘舵��'}
-            ,{field: 'createBy$', align: 'center',title: '娣诲姞浜哄憳',event: 'createBy', style: 'cursor:pointer'}
+            // ,{field: 'createBy$', align: 'center',title: '娣诲姞浜哄憳',event: 'createBy', style: 'cursor:pointer', hide: true}
             ,{field: 'createTime$', align: 'center',title: '娣诲姞鏃堕棿'}
-            ,{field: 'updateBy$', align: 'center',title: '淇敼浜哄憳',event: 'updateBy', style: 'cursor:pointer'}
+            // ,{field: 'updateBy$', align: 'center',title: '淇敼浜哄憳',event: 'updateBy', style: 'cursor:pointer', hide: true}
             ,{field: 'updateTime$', align: 'center',title: '淇敼鏃堕棿'}
             ,{field: 'memo', align: 'center',title: '澶囨敞'}
-
             ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:150}
         ]],
         request: {
@@ -305,11 +302,18 @@
     });
 
     function method(name){
-        var index = layer.load(1, {
-            shade: [0.5,'#000'] //0.1閫忔槑搴︾殑鑳屾櫙
-        });
+        var uuid = $('#uuid').val();
+        var areaName = $('#name').val();
+        if (uuid === '' || !uuid) {
+            layer.msg('璇疯緭鍏ュ簱鍖虹紪鍙�');
+            return;
+        }
+        if (areaName === '' || !areaName) {
+            layer.msg('璇疯緭鍏ュ簱鍖哄悕绉�');
+            return;
+        }
+
         var data = {
-//            id: $('#id').val(),
             id: $('#id').val(),
             uuid: $('#uuid').val(),
             name: $('#name').val(),
@@ -319,8 +323,11 @@
             updateBy: $('#updateBy').val(),
             updateTime: top.strToDate($('#updateTime\\$').val()),
             memo: $('#memo').val(),
-
+            areaType: $('#areaType').val() === "" ? null : $('#areaType').val(),
         };
+        var index = layer.load(1, {
+            shade: [0.5,'#000'] //0.1閫忔槑搴︾殑鑳屾櫙
+        });
         $.ajax({
             url: baseUrl+"/locArea/"+name+"/auth",
             headers: {'token': localStorage.getItem('token')},

--
Gitblit v1.9.1