From 932fd21ec8ba887a77166bb057b8aca20c8f7e9c Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期五, 25 七月 2025 14:43:18 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/basMap/basMap.js | 42 +++++++++++++++++++++++++++++++++++++++---
1 files changed, 39 insertions(+), 3 deletions(-)
diff --git a/src/main/webapp/static/js/basMap/basMap.js b/src/main/webapp/static/js/basMap/basMap.js
index bcd94be..ff156df 100644
--- a/src/main/webapp/static/js/basMap/basMap.js
+++ b/src/main/webapp/static/js/basMap/basMap.js
@@ -22,15 +22,19 @@
height: 'full-120',
cols: [[
{type: 'checkbox'}
- ,{field: 'id', align: 'center',title: '#'}
+ // ,{field: 'id', align: 'center',title: '#'}
+ ,{field: 'lev', align: 'center',title: '灞傛暟'}
,{field: 'data', align: 'center',title: '瀹炴椂鏁版嵁'}
,{field: 'createTime$', align: 'center',title: '鍒涘缓鏃堕棿'}
,{field: 'updateTime$', align: 'center',title: '鏇存柊鏃堕棿'}
,{field: 'lastData', align: 'center',title: '鏈�杩戞暟鎹�'}
- ,{field: 'lev', align: 'center',title: '灞傛暟'}
,{field: 'originData', align: 'center',title: '鍘熷鍦板浘'}
+ ,{field: 'baseRow', align: 'center',title: '鍩哄噯鎺�'}
+ ,{field: 'baseRowCode', align: 'center',title: '鍩哄噯鎺�-code'}
+ ,{field: 'baseBay', align: 'center',title: '鍩哄噯鍒�'}
+ ,{field: 'baseBayCode', align: 'center',title: '鍩哄噯鍒�-code'}
- ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:120}
+ ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:240}
]],
request: {
pageName: 'curr',
@@ -137,9 +141,41 @@
case "del":
del([data.id]);
break;
+ case "initLocMast":
+ initLocMast(data);
+ break;
}
});
+ function initLocMast(data) {
+ layer.confirm('纭畾鍒濆鍖栧簱浣嶆暟鎹悧锛�', {
+ skin: 'layui-layer-admin',
+ shade: .1
+ }, function (i) {
+ layer.close(i);
+ var loadIndex = layer.load(2);
+ $.ajax({
+ url: baseUrl+"/locMast/init",
+ headers: {'token': localStorage.getItem('token')},
+ data: {
+ lev: data.lev
+ },
+ method: 'POST',
+ success: function (res) {
+ layer.close(loadIndex);
+ if (res.code === 200){
+ layer.msg(res.msg, {icon: 1});
+ tableReload();
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ } else {
+ layer.msg(res.msg, {icon: 2});
+ }
+ }
+ })
+ });
+ }
+
/* 寮圭獥 - 鏂板銆佷慨鏀� */
function showEditModel(mData) {
admin.open({
--
Gitblit v1.9.1