新坐标删除前密码验证 swal( { title: "确认", text: "你确定要删除选中的资料类型吗?", showCancelButton: true, closeOnConfirm: false,}, result = { if (result) { me.shell.showVerifyPasswordDialog((request, response) =
swal({ title: "确认", text: "你确定要删除选中的资料类型吗?", showCancelButton: true, closeOnConfirm: false, }, result => { if (result) { me.shell.showVerifyPasswordDialog((request, response) => { $.ajax({ url: makeRoamsUrl({ entry: RoamsUrlEntry.Application, moduleName: MODULE_NAME, api: "Type/Delete" }), type: "DELETE", data: { _id: model.get("_id") }, headers: me.shell.makePasswordVerifierRequestHeader(request, response) }).done(result => { if (result.success) { this.refresh(); swal.close(); } else { me.shell.makeFailNotification("删除失败。"); } }); }); } });