当前位置 : 主页 > 网络编程 > JavaScript >

新坐标删除前密码验证

来源:互联网 收集:自由互联 发布时间:2021-06-28
新坐标删除前密码验证 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("删除失败。");
                }
            });
        });
    }

});
 
网友评论