| | |
| | | }, |
| | | {title: '操作', visible: true, align: 'center', valign: 'middle',width:'16%', |
| | | formatter: function (value, row) { |
| | | return ' '+'<a href="#" onclick="TDevice.openTCharteredServiceDetails('+row.id+')" style="color:cornflowerblue">详情</a>' +' ' |
| | | return ' '+'<a href="#" onclick="TDevice.openTCharteredServiceDetails('+row.id+')" style="color:cornflowerblue">详情</a>' +' '+'<a href="#" onclick="TDevice.unbinding('+row.id+')" style="color:cornflowerblue">解除绑定</a>' |
| | | } |
| | | } |
| | | ]; |
| | |
| | | |
| | | |
| | | |
| | | TDevice.unbinding = function (tCharteredServiceId) { |
| | | |
| | | |
| | | var operation = function(){ |
| | | var ajax = new $ax(Feng.ctxPath + "/tDevice/delete", function () { |
| | | Feng.success("删除成功!"); |
| | | TDevice.table.refresh(); |
| | | }, function (data) { |
| | | Feng.error("删除失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("tDeviceId",tCharteredServiceId); |
| | | ajax.start(); |
| | | }; |
| | | |
| | | Feng.confirm("是否解除绑定?", operation); |
| | | |
| | | }; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 检查是否选中 |
| | | */ |