2 lines
2.4 KiB
Vue
2 lines
2.4 KiB
Vue
import{a as l,_}from"./index.e47da145.js";import{o as r,c as n,b as e,ab as c,g as a,h as m,ag as f,ae as v,af as I}from"./vendor.3937d42d.js";import{_ as O}from"./banner.729969de.js";function S(){return l({url:"/qdjx/student/getStudentDropInfo.do",method:"GET"})}function p(t){return l({url:"/qdjx/student/studentDropOut.do",method:"POST",data:t})}var g="./assets/quitBg.b109b768.png";const q={name:"QuitSchool",data(){return{quitReason:"",current:1,tip:"\u60A8\u6682\u65E0\u9000\u5B66\u7533\u8BF7\u54E6\uFF5E",buttonTip:"\u7533\u8BF7\u9000\u5B66",dropOutId:""}},watch:{current(t,o){t==1?(this.tip="\u60A8\u6682\u65E0\u9000\u5B66\u7533\u8BF7\u54E6\uFF5E",this.buttonTip="\u7533\u8BF7\u9000\u5B66"):t==3?(this.tip="\u60A8\u7684\u9000\u5B66\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!",this.buttonTip="\u53D6\u6D88\u7533\u8BF7"):t==2&&(this.buttonTip="\u786E\u8BA4\u7533\u8BF7")}},mounted(){S().then(t=>{t.dropOutId?(this.current=3,this.dropOutId=t.dropOutId):this.current=1})},methods:{quitSchool(){this.current==1?this.current=2:this.current==2?this.$dialog.confirm({title:"\u9000\u5B66\u7533\u8BF7",message:"\u786E\u8BA4\u7533\u8BF7\u9000\u5B66?"}).then(t=>{p({dropOutReason:this.quitReason,dropOutId:this.dropOutId}).then(o=>{this.current=3,this.dropOutId=o.dropOutId,o.dropOutId||(this.$router.push({path:"personal-center"}),setTimeout(h=>{window.location.reload()},100))})}):this.cancelQuit()},cancelQuit(){p({dropOutReason:this.quitReason,cancleDropOut:!0,dropOutId:this.dropOutId}).then(t=>{this.current=3})}}},u=t=>(v("data-v-c0ec87ec"),t=t(),I(),t),b={class:"quitSchool"},T=u(()=>e("div",{class:"top"},[e("img",{src:O,alt:"banner\u56FE\u7247"})],-1)),x={class:"middle"},R={key:0,class:"content"},D=u(()=>e("img",{class:"imgTip",src:g},null,-1)),Q={class:"tip"},k={key:1,class:"content"},y=u(()=>e("div",{class:"title"},"\u8BF7\u8F93\u5165\u9000\u5B66\u539F\u56E0",-1)),B={class:"bottom"};function w(t,o,h,j,s,d){return r(),n("div",b,[T,e("div",x,[s.current!==2?(r(),n("div",R,[D,e("div",Q,c(s.tip),1)])):a("v-if",!0),s.current==2?(r(),n("div",k,[y,m(e("textarea",{class:"quitReason",placeholder:"\u8BF7\u8F93\u5165\u9000\u5B66\u539F\u56E0","onUpdate:modelValue":o[0]||(o[0]=i=>s.quitReason=i)},null,512),[[f,s.quitReason]])])):a("v-if",!0)]),e("div",B,[e("div",{class:"bottomBtn",onClick:o[1]||(o[1]=(...i)=>d.quitSchool&&d.quitSchool(...i))},c(s.buttonTip),1)])])}var V=_(q,[["render",w],["__scopeId","data-v-c0ec87ec"]]);export{V as default};
|