| | |
| | | closeOnConfirm: false |
| | | }, function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tDriver/delete", function (data) { |
| | | swal("删除成功", "您已经删除了" + nickname + "。", "success"); |
| | | YesDriver.table.refresh(); |
| | | if(200 == data.code){ |
| | | swal("删除成功", "您已经删除了" + nickname + "。", "success"); |
| | | YesDriver.table.refresh(); |
| | | }else{ |
| | | swal("删除失败", data.message + "!", "warning"); |
| | | } |
| | | }, function (data) { |
| | | swal("删除失败", data.responseJSON.message + "!", "warning"); |
| | | }); |
| | |
| | | type : type, |
| | | data : data, |
| | | success : function(result) { |
| | | if(result.code==500) { |
| | | if(result.code!=200) { |
| | | Feng.info(result.message); |
| | | $('input[name=file]').val(''); |
| | | }else { |
| | |
| | | */ |
| | | YesDriver.outDriver = function () { |
| | | var operation = function() { |
| | | window.location.href = Feng.ctxPath + "/tDriver/outDriver"; |
| | | var insertTime = $("#insertTime").val(); |
| | | var companyName = $("#companyName").val(); |
| | | var phone = $("#phone").val(); |
| | | var name = $("#name").val(); |
| | | var addType = $("#addType").val(); |
| | | var authState = $("#authState").val(); |
| | | window.location.href = Feng.ctxPath + "/tDriver/outDriver?insertTime=" + insertTime + "&companyName=" + "&phone=" + phone + "&" + |
| | | "name=" + name + "&addType=" + addType + "&authState=" + authState; |
| | | }; |
| | | Feng.confirm("是否确认导出司机信息?", operation); |
| | | } |