| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-tab layui-tab-card" lay-filter="TabTest"> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">æç»ä¿¡æ¯</li> |
| | | <li>æ±æ»ä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | |
| | |
| | | ]] |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | }; |
| | | var option1 = { |
| | | elem: '#mainTable1' |
| | | , height: 500 |
| | | //,url: '/demo/table/user/' //æ°æ®æ¥å£ |
| | | , page: true //å¼å¯å页 |
| | | , cols: [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', edit: 'text', event: 'HMaterCode', width: 100 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', edit: 'text', width: 100 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', edit: 'text', width: 100 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', edit: 'text', width: 100 } |
| | | , { field: 'æ¹æ¬¡', title: 'æ¹æ¬¡', edit: 'text', width: 100 } |
| | | , { field: 'å®åæ°é', title: 'å®åæ°é', edit: 'text', width: 100 } |
| | | , { field: 'HSCWHID', title: 'HSCWHID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'è°åºä»åºä»£ç ', title: 'è°åºä»åºä»£ç ', edit: 'text', event: 'HWHCode', width: 120 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', edit: 'text', width: 120 } |
| | | , { field: '表ä½å¤æ³¨', title: '夿³¨', edit: 'text', width: 100 } |
| | | ] |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | }; |
| | | //夿æ¯å¦æ°å¢ |
| | | if (OperationType == 1) { |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | |
| | | //console.log(result); |
| | | //console.log('gouba' + result); |
| | | if (result.count == 1) { |
| | | option.data = result.data; |
| | | option.data = result.list[0]; |
| | | table.render(option); |
| | | option1.data = result.list[1]; |
| | | table.render(option1); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |