|  |  | 
 |  |  |     tableIns = table.render({ | 
 |  |  |         elem: '#wrkMast', | 
 |  |  |         headers: {token: localStorage.getItem('token')}, | 
 |  |  |         url: '/wrkMast/list/auth', | 
 |  |  |         url: baseUrl+'/wrkMast/list/auth', | 
 |  |  |         page: true, | 
 |  |  |         limit: 10, | 
 |  |  |         even: true, | 
 |  |  | 
 |  |  |             //         return html; | 
 |  |  |             //     }} | 
 |  |  |  | 
 |  |  |             ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:130} | 
 |  |  |             ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150} | 
 |  |  |         ]], | 
 |  |  |         request: { | 
 |  |  |             pageName: 'curr', | 
 |  |  | 
 |  |  |         }, | 
 |  |  |         done: function(res, curr, count) { | 
 |  |  |             if (res.code === 403) { | 
 |  |  |                 top.location.href = "/"; | 
 |  |  |                 top.location.href = baseUrl+"/"; | 
 |  |  |             } | 
 |  |  |             pageCurr=curr; | 
 |  |  |             limit(); | 
 |  |  | 
 |  |  |             }, | 
 |  |  |             done: function (res, curr, count) { | 
 |  |  |                 if (res.code === 403) { | 
 |  |  |                     top.location.href = "/"; | 
 |  |  |                     top.location.href = baseUrl+"/"; | 
 |  |  |                 } | 
 |  |  |                 pageCurr=curr; | 
 |  |  |                 limit(); | 
 |  |  | 
 |  |  |                 } else { | 
 |  |  |                     layer.confirm('确定增加'+(list.length===1?'此':list.length)+'条数据的优先级吗', function(){ | 
 |  |  |                         $.ajax({ | 
 |  |  |                             url: "/wrkMast/add/pri/auth", | 
 |  |  |                             url: baseUrl+"/wrkMast/add/pri/auth", | 
 |  |  |                             headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                             contentType:'application/json;charset=UTF-8', | 
 |  |  |                             data: JSON.stringify(list), | 
 |  |  | 
 |  |  |                                 layer.closeAll(); | 
 |  |  |                                 if (res.code === 200){ | 
 |  |  |                                     $(".layui-laypage-btn")[0].click(); | 
 |  |  |                                     layer.msg(res.msg); | 
 |  |  |                                 } else if (res.code === 403){ | 
 |  |  |                                     top.location.href = "/"; | 
 |  |  |                                     top.location.href = baseUrl+"/"; | 
 |  |  |                                 } else { | 
 |  |  |                                     layer.msg(res.msg) | 
 |  |  |                                 } | 
 |  |  | 
 |  |  |                 } else { | 
 |  |  |                     layer.confirm('确定降低'+(list.length===1?'此':list.length)+'条数据的优先级吗', function(){ | 
 |  |  |                         $.ajax({ | 
 |  |  |                             url: "/wrkMast/red/pri/auth", | 
 |  |  |                             url: baseUrl+"/wrkMast/red/pri/auth", | 
 |  |  |                             headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                             contentType:'application/json;charset=UTF-8', | 
 |  |  |                             data: JSON.stringify(list), | 
 |  |  | 
 |  |  |                                 layer.closeAll(); | 
 |  |  |                                 if (res.code === 200){ | 
 |  |  |                                     $(".layui-laypage-btn")[0].click(); | 
 |  |  |                                     layer.msg(res.msg); | 
 |  |  |                                 } else if (res.code === 403){ | 
 |  |  |                                     top.location.href = "/"; | 
 |  |  |                                     top.location.href = baseUrl+"/"; | 
 |  |  |                                 } else { | 
 |  |  |                                     layer.msg(res.msg) | 
 |  |  |                                 } | 
 |  |  | 
 |  |  |                 } else { | 
 |  |  |                     layer.confirm('确定删除'+(data.length===1?'此':data.length)+'条数据吗', function(){ | 
 |  |  |                         $.ajax({ | 
 |  |  |                             url: "/wrkMast/delete/auth", | 
 |  |  |                             url: baseUrl+"/wrkMast/delete/auth", | 
 |  |  |                             headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                             data: {param: JSON.stringify(data)}, | 
 |  |  |                             method: 'POST', | 
 |  |  | 
 |  |  |                                     layer.closeAll(); | 
 |  |  |                                     tableReload(false); | 
 |  |  |                                 } else if (res.code === 403){ | 
 |  |  |                                     top.location.href = "/"; | 
 |  |  |                                     top.location.href = baseUrl+"/"; | 
 |  |  |                                 } else { | 
 |  |  |                                     layer.msg(res.msg) | 
 |  |  |                                 } | 
 |  |  | 
 |  |  |                         'fields': fields | 
 |  |  |                     }; | 
 |  |  |                     $.ajax({ | 
 |  |  |                         url: "/wrkMast/export/auth", | 
 |  |  |                         url: baseUrl+"/wrkMast/export/auth", | 
 |  |  |                         headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                         data: JSON.stringify(param), | 
 |  |  |                         dataType:'json', | 
 |  |  | 
 |  |  |                             if (res.code === 200) { | 
 |  |  |                                 table.exportFile(titles,res.data,'xls'); | 
 |  |  |                             } else if (res.code === 403) { | 
 |  |  |                                 top.location.href = "/"; | 
 |  |  |                                 top.location.href = baseUrl+"/"; | 
 |  |  |                             } else { | 
 |  |  |                                 layer.msg(res.msg) | 
 |  |  |                             } | 
 |  |  | 
 |  |  |                        content: '../locMast/locMast_detail.html', | 
 |  |  |                        success: function(layero, index){ | 
 |  |  |                            $.ajax({ | 
 |  |  |                                url: "/locMast/"+ param +"/auth", | 
 |  |  |                                url: baseUrl+"/locMast/"+ param +"/auth", | 
 |  |  |                                headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                                method: 'GET', | 
 |  |  |                                success: function (res) { | 
 |  |  | 
 |  |  |                        content: '../basDevp/basDevp_detail.html', | 
 |  |  |                        success: function(layero, index){ | 
 |  |  |                            $.ajax({ | 
 |  |  |                                url: "/basDevp/"+ param +"/auth", | 
 |  |  |                                url: baseUrl+"/basDevp/"+ param +"/auth", | 
 |  |  |                                headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                                method: 'GET', | 
 |  |  |                                success: function (res) { | 
 |  |  | 
 |  |  |                        content: '../basDevp/basDevp_detail.html', | 
 |  |  |                        success: function(layero, index){ | 
 |  |  |                            $.ajax({ | 
 |  |  |                                url: "/basDevp/"+ param +"/auth", | 
 |  |  |                                url: baseUrl+"/basDevp/"+ param +"/auth", | 
 |  |  |                                headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                                method: 'GET', | 
 |  |  |                                success: function (res) { | 
 |  |  | 
 |  |  |                        content: '../locMast/locMast_detail.html', | 
 |  |  |                        success: function(layero, index){ | 
 |  |  |                            $.ajax({ | 
 |  |  |                                url: "/locMast/"+ param +"/auth", | 
 |  |  |                                url: baseUrl+"/locMast/"+ param +"/auth", | 
 |  |  |                                headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                                method: 'GET', | 
 |  |  |                                success: function (res) { | 
 |  |  | 
 |  |  |  | 
 |  |  |         }; | 
 |  |  |         $.ajax({ | 
 |  |  |             url: "/wrkMast/"+name+"/auth", | 
 |  |  |             url: baseUrl+"/wrkMast/"+name+"/auth", | 
 |  |  |             headers: {'token': localStorage.getItem('token')}, | 
 |  |  |             data: top.reObject(data), | 
 |  |  |             method: 'POST', | 
 |  |  | 
 |  |  |                         $(this).val(""); | 
 |  |  |                     }); | 
 |  |  |                 } else if (res.code === 403){ | 
 |  |  |                     top.location.href = "/"; | 
 |  |  |                     top.location.href = baseUrl+"/"; | 
 |  |  |                 }else { | 
 |  |  |                     layer.msg(res.msg) | 
 |  |  |                 } | 
 |  |  | 
 |  |  |         tableIns1 = table.render({ | 
 |  |  |             elem: '#wrkDetlByMap', | 
 |  |  |             headers: {token: localStorage.getItem('token')}, | 
 |  |  |             url: '/wrkDetl/list/auth', | 
 |  |  |             url: baseUrl+'/wrkDetl/list/auth', | 
 |  |  |             where: {wrk_no: param}, | 
 |  |  |             page: true, | 
 |  |  |             limit: 16, | 
 |  |  | 
 |  |  |             }, | 
 |  |  |             done: function(res, curr, count) { | 
 |  |  |                 if (res.code === 403) { | 
 |  |  |                     top.location.href = "/"; | 
 |  |  |                     top.location.href = baseUrl+"/"; | 
 |  |  |                 } | 
 |  |  |                 pageCur=curr; | 
 |  |  |                 form.on('checkbox(tableCheckbox)', function (data) { | 
 |  |  | 
 |  |  |         }, | 
 |  |  |         done: function (res, curr, count) { | 
 |  |  |             if (res.code === 403) { | 
 |  |  |                 top.location.href = "/"; | 
 |  |  |                 top.location.href = baseUrl+"/"; | 
 |  |  |             } | 
 |  |  |             pageCurr=curr; | 
 |  |  |             if (res.data.length === 0 && count !== 0) { |