| | |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/soulTable.slim.js"></script> |
| | | <!-- <script src="../../../layuiadmin/zy_DragObserver.js"></script> --> |
| | | <style> |
| | | /* 鲿¢ä¸ææ¡ç䏿å表被éè---å¿
须设置--- */ |
| | | .layui-table-cell { |
| | | /*.layui-table-cell { |
| | | overflow: visible !important; |
| | | } |
| | | }*/ |
| | | /* 使å¾ä¸ææ¡ä¸åå
æ ¼å好åé */ |
| | | td .layui-form-select { |
| | | /*td .layui-form-select { |
| | | margin-top: -10px; |
| | | margin-left: -15px; |
| | | margin-right: -15px; |
| | | }*/ |
| | | /* 鲿¢ä¸ææ¡ç䏿å表被éè---å¿
须设置--- */ |
| | | td:has(select) .layui-table-cell { |
| | | overflow: visible !important; |
| | | padding: 0; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | /* 使å¾ä¸ææ¡ä¸åå
æ ¼å好åé */ |
| | | td:has(select) .layui-form-select { |
| | | margin-top: -10px; |
| | | } |
| | | </style> |
| | | </head> |
| | |
| | | } |
| | | form.render('checkbox'); |
| | | form.render('select'); |
| | | |
| | | // registerDragObserver() |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | var colTitleNames = colTitleName.split(','); |
| | |
| | | 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 () { |
| | | , done: function (res, curr, count) { |
| | | |
| | | soulTable.render(this) |
| | | } |
| | | }; |
| | |
| | | }) |
| | | } |
| | | |
| | | //// æ³¨åææ½è§å¯è
ï¼çå¬è¡¨æ ¼ææ½åå |
| | | // function registerDragObserver() { |
| | | // // 妿䏿¯æï¼åä»ä¹é½ä¸æ§è¡ |
| | | // if (typeof window.MutationObserver === 'undefined' |
| | | // && typeof window.WebKitMutationObserver === 'undefined') { |
| | | // console.warn('observer not supported') |
| | | // return |
| | | // } |
| | | // let targetEl = $(".layui-table-box")[0]; |
| | | // 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 ($(targetEl).hasClass('noselect')) { |
| | | // document.documentElement.style.userSelect = 'none'; |
| | | // document.documentElement.style.webkitUserSelect = 'none'; |
| | | // } else { |
| | | // document.documentElement.style.userSelect = ''; |
| | | // document.documentElement.style.webkitUserSelect = ''; |
| | | // } |
| | | // } |
| | | // }) |
| | | // }) |
| | | // observer.observe(targetEl, config); |
| | | // } |
| | | |
| | | //#endregion |
| | | |
| | | }); |
| | | |
| | | |
| | | </script> |