chenhaozhe
2025-06-20 e6e03e2e8696f353e5771af9d99c71af95d0af24
修复 PNL布局列表 新增时 插入多行子表 从第二行开始 linterid被回收的问题
4个文件已修改
39 ■■■■■ 已修改文件
WebTM/WebTM.csproj.user 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/layuiadmin/Scripts/webConfig.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/Gy_PNLInfoEdit.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/隐藏列设置/Gy_GridView_Hide_New.html 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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:\网站发布\后端代码\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 />
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/";      //余思杰本地配置(安瑞)
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/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,
WebTM/views/»ù´¡×ÊÁÏ/Òþ²ØÁÐÉèÖÃ/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 {