| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/soulTable.slim.js"></script> |
| | | |
| | | </head> |
| | | <body> |
| | |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['tree', 'index', 'form', 'table', 'element', 'laypage', 'laydate'], function () { |
| | | }).use(['tree', 'index', 'form', 'table', 'element', 'laypage', 'laydate','soulTable'], function () { |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | |
| | | , laydate = layui.laydate |
| | | , util = layui.util |
| | | , tree = layui.tree |
| | | , soulTable = layui.soulTable |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | |
| | | get_FastQuery(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region åå»è¿åæ°æ® |
| | | table.on('rowDouble(mainTable)', function (obj) { |
| | | var data = []; |
| | | data.push(obj.data); |
| | | parent.GetMouldTypeValue(data); |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.close(index); |
| | | }); |
| | | //#endregion |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | |
| | | function set_ClearBill() { |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , height: 'full-50' |
| | | , page: true |
| | | , limits: [50, 500, 5000, 50000] |
| | | , limit: 50 |
| | | , cellMinWidth: 90 |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'HItemID', title: 'HItemID', sort: true, hide: true } |
| | | , { field: 'HParentID', title: 'HParentID', sort: true, hide: true } |
| | | , { field: 'HNumber', title: '代ç ', width: 200 } |
| | | , { field: 'HName', title: 'åç§°', width: 200 } |
| | | , { field: 'HLevel', title: 'ç级', width: 200 } |
| | | , { field: 'HEndFlag', title: 'æç»æ è®°', width: 200 } |
| | | , { field: 'HStopFlag', title: 'ç¦ç¨æ è®°', width: 200 } |
| | | , { field: 'HRemark', title: '夿³¨', width: 200 } |
| | | , { field: 'HUseFlag', title: 'ä½¿ç¨æ è®°', width: 200 } |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' } |
| | | , { field: 'HItemID', title: 'HItemID', sort: true, hide: true ,sort:true} |
| | | , { field: 'HParentID', title: 'HParentID', sort: true, hide: true, sort: true} |
| | | , { field: 'HNumber', title: '代ç ', width: 200, sort: true} |
| | | , { field: 'HName', title: 'åç§°', width: 200, sort: true} |
| | | , { field: 'HLevel', title: 'ç级', width: 200, sort: true} |
| | | , { field: 'HEndFlag', title: 'æç»æ è®°', width: 200, sort: true} |
| | | , { field: 'HStopFlag', title: 'ç¦ç¨æ è®°', width: 200, sort: true} |
| | | , { field: 'HRemark', title: '夿³¨', width: 200, sort: true} |
| | | , { field: 'HUseFlag', title: 'ä½¿ç¨æ è®°', width: 200, sort: true} |
| | | ]] |
| | | }; |
| | | } |