import{g as t,ac as s,bV as e,d as a,q as o,c as n,w as c,i as l,o as u,t as i,v as r,E as f,H as d}from"./index-DL8B2Mxu.js";import{_ as m}from"./u-button.D-oh2uo-.js";import{r as p}from"./uni-app.es.BSVEa1f2.js";import{r as _}from"./resources.DipqUmnN.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const x=h({data:()=>({accountSecurity:_.banner.accountSecurity}),computed:{token:()=>t("token"),userInfo:()=>t("userInfo")||{}},methods:{handleClick(){s({title:"提示",content:"您的JNPF账号将被删除，您确定要注销JNPF账号么？",success:t=>{if(t.confirm){if(this.userInfo.isAdministrator)return this.$u.toast("管理员账号不能注销");e(this.token).then((t=>{this.$u.toast(t.msg),setTimeout((()=>{a({url:"/pages/login/index"})}),1e3)}))}}})}}},[["render",function(t,s,e,a,_,h){const x=f,k=l,y=d,b=p(o("u-button"),m);return u(),n(k,{class:"cancellation-v"},{default:c((()=>[i(k,{class:"cancellation-hd"},{default:c((()=>[i(x,{src:_.accountSecurity},null,8,["src"])])),_:1}),i(k,{class:"content u-flex-col"},{default:c((()=>[i(k,{class:"content-text u-flex-col"},{default:c((()=>[i(y,{class:"content-title u-font-36 u-type-primary"},{default:c((()=>[r("确认注销账户？")])),_:1}),i(y,{class:"content-tip u-font-28"},{default:c((()=>[r("注销账户后以下数据将全部清空")])),_:1}),i(k,{class:"list u-flex-col u-font-26"},{default:c((()=>[i(y,{class:"item"},{default:c((()=>[r("企业组织架构和员工信息")])),_:1}),i(y,{class:"item"},{default:c((()=>[r("所有数据和聊天记录")])),_:1}),i(y,{class:"item"},{default:c((()=>[r("删除和永久注销JNPF账户")])),_:1})])),_:1})])),_:1}),i(k,{class:"btn"},{default:c((()=>[i(b,{type:"primary",onClick:h.handleClick},{default:c((()=>[r("注销账号")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-369e5587"]]);export{x as default};
