| | |
| | | @RequestMapping(value = "/staDesc/update/auth") |
| | | @ManagerAuth(memo = "站点路径修改") |
| | | public R update(StaDesc staDesc){ |
| | | if (Cools.isEmpty(staDesc) || null==staDesc.getCrnNo()){ |
| | | if (Cools.isEmpty(staDesc) || null==staDesc.getTypeId()){ |
| | | return R.error(); |
| | | } |
| | | staDesc.setModiUser(getUserId()); |
| | |
| | | ,{field: 'id', title: 'ID', sort: true,align: 'center', width: 80} |
| | | ,{field: 'action', align: 'center',title: '访问地址'} |
| | | ,{field: 'userId$', align: 'center',title: '用户',event: 'userId'} |
| | | ,{field: 'ip', edit:'text', align: 'center',title: '客户端IP'} |
| | | ,{field: 'ip', edit:'text', align: 'center',title: '客户端IP'} |
| | | ,{field: 'request', align: 'center',title: '请求数据'} |
| | | ,{field: 'response', align: 'center',title: '响应数据'} |
| | | ,{field: 'createTime$', align: 'center',title: '添加时间'} |
| | |
| | | } |
| | | }); |
| | | |
| | | // 页面修改 |
| | | table.on('edit(staDesc)', function (obj) { |
| | | $('body').keydown(function () { |
| | | if (event.keyCode === 13) { |
| | | layer.confirm('保存修改?', function(){ |
| | | $.ajax({ |
| | | url: baseUrl+"/staDesc/update/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: top.reObject({ |
| | | typeId: obj.data.typeId, |
| | | stnDesc: obj.value |
| | | }), |
| | | method: 'POST', |
| | | async: false, |
| | | success: function (res) { |
| | | if (res.code === 200){ |
| | | console.log(res); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | }else { |
| | | layer.msg(res.msg) |
| | | } |
| | | } |
| | | }) |
| | | console.log(obj); |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | // 监听排序事件 |
| | | table.on('sort(staDesc)', function (obj) { |
| | | var searchData = {}; |