From e6e03e2e8696f353e5771af9d99c71af95d0af24 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期五, 20 六月 2025 14:08:25 +0800
Subject: [PATCH] 修复 PNL布局列表 新增时 插入多行子表 从第二行开始 linterid被回收的问题
---
WebTM/WebTM.csproj.user | 7 ++++---
WebTM/views/基础资料/公用基础资料/Gy_PNLInfoEdit.html | 5 ++---
WebTM/views/基础资料/隐藏列设置/Gy_GridView_Hide_New.html | 23 +++++++++++++++--------
WebTM/layuiadmin/Scripts/webConfig.js | 4 ++--
4 files changed, 23 insertions(+), 16 deletions(-)
diff --git a/WebTM/WebTM.csproj.user b/WebTM/WebTM.csproj.user
index 6fa6388..cbf1153 100644
--- a/WebTM/WebTM.csproj.user
+++ b/WebTM/WebTM.csproj.user
@@ -1,9 +1,10 @@
锘�<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
- <NameOfLastUsedPublishProfile>D:\缃戠珯鍙戝竷\鍚庣浠g爜\MES-WEB-TM\MESWMS-LayUI\WebTM\Properties\PublishProfiles\LAYUI.pubxml</NameOfLastUsedPublishProfile>
- <ProjectView>ProjectFiles</ProjectView>
- <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
+ <NameOfLastUsedPublishProfile>D:\鏅轰簯杩堟�漒MES\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
+ <NameOfLastUsedPublishProfile>D:\WorkBench\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
+ <ProjectView>ShowAllFiles</ProjectView>
+ <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />
<IISExpressSSLPort />
diff --git a/WebTM/layuiadmin/Scripts/webConfig.js b/WebTM/layuiadmin/Scripts/webConfig.js
index 7562261..3875fb9 100644
--- a/WebTM/layuiadmin/Scripts/webConfig.js
+++ b/WebTM/layuiadmin/Scripts/webConfig.js
@@ -5,14 +5,14 @@
//var WEBURL = "http://61.164.86.218:8099/ABAPI/";
/*var WEBURL = "http://localhost/API/"; //棰滄檽鍐涙湰鍦伴厤缃�*/
//var WEBURL = "http://localhost:8082/LuBaoAPI/"; //鏉ㄤ箰鏈湴閰嶇疆
- var WEBURL = "http://localhost:8082/API/"; //鏉滆春鏈湴閰嶇疆
+ //var WEBURL = "http://localhost:8082/API/"; //鏉滆春鏈湴閰嶇疆
//var WEBURL = "http://localhost:8082/API/"; //寮犵憺骞挎湰鍦伴厤缃�
//var WEBURL = "http://localhost:81/API/" //缈佹稕娑涙湰鍦伴厤缃�
//var WEBURL = "http://localhost:8082/LuBaoAPI/"; //鏉ㄤ箰鏈湴閰嶇疆
//var WEBURL = "http://localhost:8082/API/"; //鏉滆春鏈湴閰嶇疆
//var WEBURL = "http://localhost:8082/API/"; //寮犵憺骞挎湰鍦伴厤缃�
/* var WEBURL = "http://localhost:81/API/" //缈佹稕娑涙湰鍦伴厤缃�*/
- //var WEBURL = "http://localhost:81/API/"; // 闄堥晲鍝叉湰鍦伴厤缃�
+ var WEBURL = "http://localhost:81/API/"; // 闄堥晲鍝叉湰鍦伴厤缃�
//var WEBURL = "http://47.96.97.237/API/"; //鏅轰簯鏈嶅姟鍣�
/* var WEBURL = "http://localhost:8082/LuBaoAPI/"; //浣欐�濇澃鏈湴閰嶇疆*/
//var WEBURL = "http://localhost:8088/ARAPI/"; //浣欐�濇澃鏈湴閰嶇疆(瀹夌憺)
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_PNLInfoEdit.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_PNLInfoEdit.html"
index da4a8c1..1303f84 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_PNLInfoEdit.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_PNLInfoEdit.html"
@@ -424,6 +424,7 @@
$("#HPNLPosition_y").val(0)
$("#HIcon").val("/img/鏅鸿兘鑺墖.png")
$("#HInterID").val(0)
+
}
function set_CopyBill() {
@@ -494,11 +495,9 @@
}
function get_AddLine() {
-
-
let data = table.cache['mainTable']
data.push({
- HInterID: linterid,
+ HInterID: $("#HInterID").val(),
HLayOutName: $("#HLayOutName").val(),
HEntryID: 0,
HSetPosition_x: 0,
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\351\232\220\350\227\217\345\210\227\350\256\276\347\275\256/Gy_GridView_Hide_New.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\351\232\220\350\227\217\345\210\227\350\256\276\347\275\256/Gy_GridView_Hide_New.html"
index 067f331..9d0eba0 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\351\232\220\350\227\217\345\210\227\350\256\276\347\275\256/Gy_GridView_Hide_New.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\351\232\220\350\227\217\345\210\227\350\256\276\347\275\256/Gy_GridView_Hide_New.html"
@@ -430,12 +430,12 @@
done: function (obj) {
// 瀹屾垚鏃讹紙鏉惧紑鏃讹級瑙﹀彂
// 濡傛灉鎷栧姩鍓嶅拰鎷栧姩鍚庢棤鍙樺寲锛屽垯涓嶄細瑙﹀彂姝ゆ柟娉�
- console.log(obj.row) // 褰撳墠琛屾暟鎹�
- console.log(obj.cache) // 鏀瑰姩鍚庡叏琛ㄦ暟鎹�
- console.log(obj.oldIndex) // 鍘熸潵鐨勬暟鎹储寮�
- console.log(obj.newIndex) // 鏀瑰姩鍚庢暟鎹储寮�
+ //console.log(obj.row) // 褰撳墠琛屾暟鎹�
+ //console.log(obj.cache) // 鏀瑰姩鍚庡叏琛ㄦ暟鎹�
+ //console.log(obj.oldIndex) // 鍘熸潵鐨勬暟鎹储寮�
+ //console.log(obj.newIndex) // 鏀瑰姩鍚庢暟鎹储寮�
- console.log(table.cache["mainTable"]) // 鏀瑰姩鍚庢暟鎹储寮�
+ //console.log(table.cache["mainTable"]) // 鏀瑰姩鍚庢暟鎹储寮�
}
}
, done: function (res, curr, count) {
@@ -536,7 +536,6 @@
//// 娉ㄥ唽鎷栨嫿瑙傚療鑰咃紝鐩戝惉琛ㄦ牸鎷栨嫿鍙樺寲
function registerDragObserver() {
-
// 濡傛灉涓嶆敮鎸侊紝鍒欎粈涔堥兘涓嶆墽琛�
if (typeof window.MutationObserver === 'undefined'
&& typeof window.WebKitMutationObserver === 'undefined') {
@@ -544,12 +543,20 @@
return
}
let targetEl = $(".layui-table-box")[0];
- let config = { attributes: true, childList: true, subtree: true };
+ let config = {
+ attributes: true,
+ attributesOldValue: true,
+ attributeFilter: ['class'],
+ childList: false,
+ subtree: false,
+ characterData: false,
+ characterDataOldValue: false
+ };
let observer = new MutationObserver(mutations => {
mutations.forEach(function (mutation) {
if (mutation.attributeName === 'class') {
// 鐩戝惉class涓唴瀹圭殑鍙樺寲
- if ($(mutation.target).hasClass('noselect')) {
+ if ($(targetEl).hasClass('noselect')) {
document.documentElement.style.userSelect = 'none';
document.documentElement.style.webkitUserSelect = 'none';
} else {
--
Gitblit v1.9.1