otherCommon.ts 687 Bytes
Newer Older
zhangsan's avatar
1  
zhangsan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
import request from "@/utils/request";
export const confirmDialog = (callback: () => void) => {
  showConfirmDialog({
    title: "是否申请解除安全监管?",
    confirmButtonText: "确认解除",
    cancelButtonText: "我再想想",
    confirmButtonColor: "#e4393c",
    cancelButtonColor: "#999",
  })
    .then((res) => {
      request
        .post("/system/user/yhtjxbsq", {
          extend10: 2,
        })
        .then((res) => {
          if (res.code == 200) {
            showToast({
              message: '正在申请解除安全监管',
              duration: 3000
            })
            callback()
          }
        });
    })
    .catch((err) => {});
};