| | |
| | | }; |
| | | |
| | | function deleteSub(e) { |
| | | |
| | | var ajax = new $ax(Feng.ctxPath + '/tCompany/searchArea', function (data) { |
| | | if (data === "该区域正被打车卡使用,不允许移除"){ |
| | | Feng.error(data); |
| | | return false; |
| | | }else { |
| | | $(e).parent().parent().remove(); |
| | | } |
| | | swal({ |
| | | title: "您是否确认删除该区域?", |
| | | type: "warning", |
| | | showCancelButton: true, |
| | | confirmButtonColor: "#DD6B55", |
| | | confirmButtonText: "删除", |
| | | closeOnConfirm: false |
| | | }, function () { |
| | | var ajax = new $ax(Feng.ctxPath + '/tCompany/searchArea', function (data) { |
| | | if (data === "该区域正被打车卡使用,不允许移除") { |
| | | Feng.error(data); |
| | | return false; |
| | | } else { |
| | | $(e).parent().parent().remove(); |
| | | } |
| | | }); |
| | | ajax.set("companyId", $("#id").val()); /// 适用地区id |
| | | ajax.set("id", $($(e).parent('td').prev('td').find('input')[0]).val()); /// 适用地区id |
| | | ajax.start(); |
| | | }); |
| | | ajax.set("companyId",$("#id").val()); /// 适用地区id |
| | | ajax.set("id",$($(e).parent('td').prev('td').find('input')[0]).val()); /// 适用地区id |
| | | ajax.start(); |
| | | } |