| | |
| | | tableIns = table.render({ |
| | | elem: '#staDesc', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: '/staDesc/list/auth', |
| | | url: baseUrl+'/staDesc/list/auth', |
| | | page: true, |
| | | limit: 16, |
| | | even: true, |
| | |
| | | } else { |
| | | layer.confirm('确定删除'+(data.length===1?'此':data.length)+'条数据吗', function(){ |
| | | $.ajax({ |
| | | url: "/staDesc/delete/auth", |
| | | url: baseUrl+"/staDesc/delete/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: {param: JSON.stringify(data)}, |
| | | method: 'POST', |
| | |
| | | 'fields': fields |
| | | }; |
| | | $.ajax({ |
| | | url: "/staDesc/export/auth", |
| | | url: baseUrl+"/staDesc/export/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify(param), |
| | | dataType:'json', |
| | |
| | | content: '../basWrkIotype/basWrkIotype_detail.html', |
| | | success: function(layero, index){ |
| | | $.ajax({ |
| | | url: "/basWrkIotype/"+ param +"/auth", |
| | | url: baseUrl+"/basWrkIotype/"+ 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: '../basCrnp/basCrnp_detail.html', |
| | | success: function(layero, index){ |
| | | $.ajax({ |
| | | url: "/basCrnp/"+ param +"/auth", |
| | | url: baseUrl+"/basCrnp/"+ 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: '../user/user_detail.html', |
| | | success: function(layero, index){ |
| | | $.ajax({ |
| | | url: "/user/"+ param +"/auth", |
| | | url: baseUrl+"/user/"+ param +"/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'GET', |
| | | success: function (res) { |
| | |
| | | content: '../user/user_detail.html', |
| | | success: function(layero, index){ |
| | | $.ajax({ |
| | | url: "/user/"+ param +"/auth", |
| | | url: baseUrl+"/user/"+ param +"/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'GET', |
| | | success: function (res) { |
| | |
| | | |
| | | }; |
| | | $.ajax({ |
| | | url: "/staDesc/"+name+"/auth", |
| | | url: baseUrl+"/staDesc/"+name+"/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: top.reObject(data), |
| | | method: 'POST', |