student-leave.08be92d1.js 13 KB

12345
  1. <<<<<<<< HEAD:dist/assets/student-leave.08be92d1.js
  2. import{d as g,ag as B,c as e,ah as m,q as s,F as b,aV as f,r as w,$ as L,B as W,R as c,m as T,o as v}from"./index.ffe80dbe.js";import{A as D}from"./approval-item.4369e082.js";import{O as R}from"./index.d745568a.js";import{F as C}from"./index.92ec0bf4.js";import"./clock-icon.6fd57365.js";import"./default-icon.11fd2315.js";import"./student-icon.30fb072d.js";import"./msg-icon.adf37f7b.js";import"./index.ea031708.js";const y="_leaveWrap_12p3w_1",S="_subTitle_12p3w_4",h="_subTitleIcon_12p3w_9",E="_leaveInfo_12p3w_19",Y="_leaveDate_12p3w_25",q="_leaveReason_12p3w_34",x="_courseWrap_12p3w_42",Q="_courseWrapTitlte_12p3w_45",G="_courseList_12p3w_48",j="_reasonWrap_12p3w_51",U="_bottomIcon_12p3w_57",F="_reasonLabelLeft_12p3w_65",O="_btnWrap_12p3w_74",k="_unpassBtn_12p3w_77",H="_titleDot_12p3w_91";var a={leaveWrap:y,subTitle:S,subTitleIcon:h,leaveInfo:E,leaveDate:Y,leaveReason:q,courseWrap:x,courseWrapTitlte:Q,courseList:G,reasonWrap:j,bottomIcon:U,"van-field":"_van-field_12p3w_61",reasonLabelLeft:F,btnWrap:O,unpassBtn:k,titleDot:H};const N="_itemWrap_1om1w_1",M="_itemWrapTop_1om1w_7",Z="_itemWrapTopLeft_1om1w_15",V="_clockWrap_1om1w_20",X="_leftTimer_1om1w_29",K="_itemWrapTopRight_1om1w_35",J="_passLabel_1om1w_40",P="_unpassLabel_1om1w_46",z="_passIcon_1om1w_52",$="_msgIcon_1om1w_56",ee="_itemWrapBottom_1om1w_59",ae="_itemWrapBottomMain_1om1w_66",te="_itemWrapBottomSub_1om1w_77",se="_rejectBtn_1om1w_83";var l={itemWrap:N,itemWrapTop:M,itemWrapTopLeft:Z,clockWrap:V,leftTimer:X,itemWrapTopRight:K,passLabel:J,unpassLabel:P,passIcon:z,msgIcon:$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mOAxYGqj6GQ+bpQ3p+YmNg0Pj7u189pSKQtUsq7PwLoH0QcjYBXnuctGBkZ+RgLqB2XWZbVm81mORH1NYPSFR8R7zuOc61xPNRlJgVTBXUct4bNsW27eVBrAc55qrRvE6h52hugoDB6vu/3xy2MaYHqCyMiXpVS7p1TGNMeHWmBOOe6QTvdmNltH65pgGIdrqYeJW4/0gDFaj/0wmkatKRAiRo0c4zoa0/sFjYJUOIWNli8o5r8uoOvc65BDZbqjItiAJX0Kq2UWgEAP+cqHUB11GNDfRYFzzFEtAMA1rd6jgGA/xDxxk95jglL7d/+YJWk5qSdG/k+lHbhtHLfAGtPoUUd9vdqAAAAAElFTkSuQmCC",le=g({props:["item","type"],name:"student-course-item",setup(o){const r=B(),u=()=>{r.push({path:"/course-adjust",query:{id:o.item.id,isBack:"true"}})};return()=>e(b,null,[e("div",{class:l.itemWrap},[e("div",{class:l.itemWrapTop},[e("div",{class:l.itemWrapTopLeft},[e("div",{class:l.clockWrap},[e("img",{src:oe,alt:""},null)]),e("p",{class:l.leftTimer},[m(o.item.startTime).format("YYYY-MM-DD HH:mm"),s(" -"),m(o.item.endTime).format("HH:mm")])])]),e("div",{class:l.itemWrapBottom},[e("div",null,[e("p",{class:l.itemWrapBottomMain},[o.item.className,s("-"),o.item.teacherName]),e("p",{class:l.itemWrapBottomSub},[o.item.orchestraName])]),e("div",{class:l.itemWrapBottomRight},[o.type=="STUDENT"?null:e("div",{class:l.rejectBtn,onClick:u},[s("\u8C03\u6574")])])])])])}});c("wait");const n=c({}),d=c([]),i=c(""),_=c(!1);var _e=g({name:"approval-manage",setup(){const o=B(),r=f(),u=w({dialogStatus:!1,dialogMessage:""}),I=async()=>{try{const{data:t}=await T.get(`/api-school/userApproveRecord/detail/${r.query.id}`,{});n.value=t,d.value=t.courseScheduleList||[],i.value=n.value.approvalComments}catch(t){const p=t.message;v(p)}};L(()=>{i.value="",_.value=r.query.type=="end",I()});const A=async t=>{if(!i.value){v("\u8BF7\u8F93\u5165\u5BA1\u6279\u539F\u56E0");return}try{const p=await T.post("/api-school/userApproveRecord/approval",{hideLoading:!1,data:{id:r.query.id,approvalComments:i.value,status:t}});p.code===999?(u.dialogStatus=!0,u.dialogMessage=p.message):o.back()}catch(p){v(p.message||"\u63D0\u4EA4\u5931\u8D25")}};return()=>e(b,null,[e("div",{class:a.leaveWrap},[e(D,{item:n.value,type:r.query.type},null),n.value.approveType=="LEAVE"?e("div",null,[e("div",{class:a.leaveInfo},[e("p",{class:a.subTitle},[e("span",{class:a.titleDot},null),e("span",null,[s("\u8BF7\u5047\u65E5\u671F")])]),e("p",{class:a.leaveDate},[m(n.value.startTime).format("YYYY\u5E74MM\u6708DD\u65E5"),s(" -")," ",m(n.value.endTime).format("YYYY\u5E74MM\u6708DD\u65E5")]),e("p",{class:a.subTitle},[e("span",{class:a.titleDot},null),e("span",null,[s("\u8BF7\u5047\u539F\u56E0")])]),e("p",{class:a.leaveReason},[n.value.approveReason])]),d.value.length>0?e("div",{class:a.courseWrap},[e("div",{class:a.courseWrapTitlte},[" ",e("p",{class:a.subTitle},[e("span",{class:a.titleDot},null),e("span",null,[s("\u6D89\u53CA\u8BFE\u7A0B")])])]),e("div",{class:a.courseList},[d.value.map(t=>e(le,{item:t,type:n.value.clientType},null))])]):null]):null,n.value.approveType=="ORCHESTRA"?e("div",null,[e("div",{class:a.leaveInfo},[e("p",{class:a.subTitle},[e("span",{class:a.titleDot},null),e("span",null,[s("\u9000\u56E2\u539F\u56E0")])]),e("p",{class:a.leaveReason},[n.value.approveReason])])]):null,e("div",{class:a.reasonWrap},[e(C,{"label-align":"top",maxlength:400,modelValue:i.value,"onUpdate:modelValue":t=>i.value=t,autosize:!0,type:"textarea",rows:5,"show-word-limit":!0,placeholder:"\u8BF7\u8F93\u5165\u4F60\u7684\u5BA1\u6279\u610F\u89C1",disabled:_.value},{label:()=>e("div",null,[e("div",{class:a.reasonLabelLeft},[" ",e("span",{class:a.titleDot},null),e("span",null,[s("\u610F\u89C1\u5BA1\u6279")])])])})]),_.value?null:e("div",{class:["btnGroup btnMore",a.btnWrap]},[e(W,{color:"#ccc",class:a.unpassBtn,onClick:()=>A("UNPASS")},{default:()=>[s("\u62D2\u7EDD")]}),e(W,{color:"#FF8057",class:a.unpassBtn,onClick:()=>A("PASS")},{default:()=>[s("\u901A\u8FC7")]})]),e(R,{title:"\u63D0\u793A",show:u.dialogStatus,"onUpdate:show":t=>u.dialogStatus=t,message:u.dialogMessage,confirmButtonText:"\u786E\u5B9A",onConfirm:()=>{o.back()}},null)])])}});export{_e as default};
  3. ========
  4. import{d as g,ag as B,c as e,ai as m,q as s,F as b,ah as f,r as w,$ as L,B as W,R as c,m as T,o as v}from"./index.1c621181.js";import{A as D}from"./approval-item.524d7e4d.js";import{O as R}from"./index.120b6f0d.js";import{F as C}from"./index.c7a20c76.js";import"./clock-icon.6fd57365.js";import"./default-icon.11fd2315.js";import"./student-icon.30fb072d.js";import"./msg-icon.adf37f7b.js";import"./index.fd5ae97b.js";const y="_leaveWrap_12p3w_1",S="_subTitle_12p3w_4",h="_subTitleIcon_12p3w_9",E="_leaveInfo_12p3w_19",Y="_leaveDate_12p3w_25",q="_leaveReason_12p3w_34",x="_courseWrap_12p3w_42",Q="_courseWrapTitlte_12p3w_45",G="_courseList_12p3w_48",j="_reasonWrap_12p3w_51",U="_bottomIcon_12p3w_57",F="_reasonLabelLeft_12p3w_65",O="_btnWrap_12p3w_74",k="_unpassBtn_12p3w_77",H="_titleDot_12p3w_91";var a={leaveWrap:y,subTitle:S,subTitleIcon:h,leaveInfo:E,leaveDate:Y,leaveReason:q,courseWrap:x,courseWrapTitlte:Q,courseList:G,reasonWrap:j,bottomIcon:U,"van-field":"_van-field_12p3w_61",reasonLabelLeft:F,btnWrap:O,unpassBtn:k,titleDot:H};const N="_itemWrap_1om1w_1",M="_itemWrapTop_1om1w_7",Z="_itemWrapTopLeft_1om1w_15",X="_clockWrap_1om1w_20",K="_leftTimer_1om1w_29",V="_itemWrapTopRight_1om1w_35",J="_passLabel_1om1w_40",P="_unpassLabel_1om1w_46",z="_passIcon_1om1w_52",$="_msgIcon_1om1w_56",ee="_itemWrapBottom_1om1w_59",ae="_itemWrapBottomMain_1om1w_66",te="_itemWrapBottomSub_1om1w_77",se="_rejectBtn_1om1w_83";var l={itemWrap:N,itemWrapTop:M,itemWrapTopLeft:Z,clockWrap:X,leftTimer:K,itemWrapTopRight:V,passLabel:J,unpassLabel:P,passIcon:z,msgIcon:$,itemWrapBottom:ee,itemWrapBottomMain:ae,itemWrapBottomSub:te,rejectBtn:se},oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAmCAYAAACsyDmTAAAAAXNSR0IArs4c6QAAA8VJREFUWEfNmDtsE0sUQO8d24qSFLxHEUChAIGo6F4RxEcChICCDhCfCj2gDLzAsjOOkDBC4Nm1QwQp+YgOUKBDQlA8HuIjqGioEC/QAAEhPoUdRd6diyaajRzj9X7Mx1vZmrlzz9zf3BmEDvuww3igLSDLsvpyudxSIpqnN4aIX2u12qtyufwh7UYTAQ0ODnb19vZuA4DtRLQBABaGKJ5ExHsAcLNSqdwaGxubjgsYC8iAHCKiIy0gwnRquLOVSuV8HLBIoHw+v04pdRkAltdp9IjoKQA8Zoy9AIDPZuxPAFihlFqNiAMAkK2TeckY+7tYLD5oZa2WQJxzbREnWJiIvjDGXM/zLkXFiY6vbDa7XyllI+IfBsIDAO44ztkwqFAgIcQZIsprQSIixtjY9PT0ydHR0U9x40HPGxoamt/V1XVCKTWIiDP6ELEopRxutk5TIGOZESNQRcR9UsrxJCCNc4UQO4noCgD0mLGjzSz1HZCJmX+Nm6q+728sl8s6Xpp+Qoi/iOg2Ij6TUm7VBg2ba1nWQCaT0WtrKI8xtrExpuYA6Wzq6el5rgPYuGlXlGU458cB4JSGUEotKpVKk60sqS2llLpu3PeyWq2urM++OUBCiGNE5Bo/n5dSHo5yk23bJxCxYGKt33Xdt1EyQohzRHTI6LGllKVAZhbIWOe1rjM6m2q12rI4AZwGSAd6Lpf732TfZLVaXRJYaRZICKGr7w1DPSylLEbtVI+nAdJyQog8EZ0x+nZIKW/O/A6Ucs6vAsBuAKj5vr84qs4EcmmBdJ3KZDJvTPJccxxnTyPQO+OuR67rro1jnXYsZGQfIuIaAJh0HGfRLFChUOibmpp6bwKz5Lqu/YuAXEQ8pnX5vr9Ae2XGZfl8fkAp9cT486CU8mIaoO7u7v5CoRCZZcHaQogDRHRB/2eMrSoWi09ngIQQm4noTmOAxYGqj6GQ+bpQ3p+YmNg0Pj7u189pSKQtUsq7PwLoH0QcjYBXnuctGBkZ+RgLqB2XWZbVm81mORH1NYPSFR8R7zuOc61xPNRlJgVTBXUct4bNsW27eVBrAc55qrRvE6h52hugoDB6vu/3xy2MaYHqCyMiXpVS7p1TGNMeHWmBOOe6QTvdmNltH65pgGIdrqYeJW4/0gDFaj/0wmkatKRAiRo0c4zoa0/sFjYJUOIWNli8o5r8uoOvc65BDZbqjItiAJX0Kq2UWgEAP+cqHUB11GNDfRYFzzFEtAMA1rd6jgGA/xDxxk95jglL7d/+YJWk5qSdG/k+lHbhtHLfAGtPoUUd9vdqAAAAAElFTkSuQmCC",le=g({props:["item","type"],name:"student-course-item",setup(o){const r=B(),u=()=>{r.push({path:"/course-adjust",query:{id:o.item.id,isBack:"true"}})};return()=>e(b,null,[e("div",{class:l.itemWrap},[e("div",{class:l.itemWrapTop},[e("div",{class:l.itemWrapTopLeft},[e("div",{class:l.clockWrap},[e("img",{src:oe,alt:""},null)]),e("p",{class:l.leftTimer},[m(o.item.startTime).format("YYYY-MM-DD HH:mm"),s(" -"),m(o.item.endTime).format("HH:mm")])])]),e("div",{class:l.itemWrapBottom},[e("div",null,[e("p",{class:l.itemWrapBottomMain},[o.item.className,s("-"),o.item.teacherName]),e("p",{class:l.itemWrapBottomSub},[o.item.orchestraName])]),e("div",{class:l.itemWrapBottomRight},[o.type=="STUDENT"?null:e("div",{class:l.rejectBtn,onClick:u},[s("\u8C03\u6574")])])])])])}});c("wait");const n=c({}),d=c([]),i=c(""),_=c(!1);var _e=g({name:"approval-manage",setup(){const o=B(),r=f(),u=w({dialogStatus:!1,dialogMessage:""}),I=async()=>{try{const{data:t}=await T.get(`/api-school/userApproveRecord/detail/${r.query.id}`,{});n.value=t,d.value=t.courseScheduleList||[],i.value=n.value.approvalComments}catch(t){const p=t.message;v(p)}};L(()=>{i.value="",_.value=r.query.type=="end",I()});const A=async t=>{if(!i.value){v("\u8BF7\u8F93\u5165\u5BA1\u6279\u539F\u56E0");return}try{const p=await T.post("/api-school/userApproveRecord/approval",{hideLoading:!1,data:{id:r.query.id,approvalComments:i.value,status:t}});p.code===999?(u.dialogStatus=!0,u.dialogMessage=p.message):o.back()}catch(p){v(p.message||"\u63D0\u4EA4\u5931\u8D25")}};return()=>e(b,null,[e("div",{class:a.leaveWrap},[e(D,{item:n.value,type:r.query.type},null),n.value.approveType=="LEAVE"?e("div",null,[e("div",{class:a.leaveInfo},[e("p",{class:a.subTitle},[e("span",{class:a.titleDot},null),e("span",null,[s("\u8BF7\u5047\u65E5\u671F")])]),e("p",{class:a.leaveDate},[m(n.value.startTime).format("YYYY\u5E74MM\u6708DD\u65E5"),s(" -")," ",m(n.value.endTime).format("YYYY\u5E74MM\u6708DD\u65E5")]),e("p",{class:a.subTitle},[e("span",{class:a.titleDot},null),e("span",null,[s("\u8BF7\u5047\u539F\u56E0")])]),e("p",{class:a.leaveReason},[n.value.approveReason])]),d.value.length>0?e("div",{class:a.courseWrap},[e("div",{class:a.courseWrapTitlte},[" ",e("p",{class:a.subTitle},[e("span",{class:a.titleDot},null),e("span",null,[s("\u6D89\u53CA\u8BFE\u7A0B")])])]),e("div",{class:a.courseList},[d.value.map(t=>e(le,{item:t,type:n.value.clientType},null))])]):null]):null,n.value.approveType=="ORCHESTRA"?e("div",null,[e("div",{class:a.leaveInfo},[e("p",{class:a.subTitle},[e("span",{class:a.titleDot},null),e("span",null,[s("\u9000\u56E2\u539F\u56E0")])]),e("p",{class:a.leaveReason},[n.value.approveReason])])]):null,e("div",{class:a.reasonWrap},[e(C,{"label-align":"top",maxlength:400,modelValue:i.value,"onUpdate:modelValue":t=>i.value=t,autosize:!0,type:"textarea",rows:5,"show-word-limit":!0,placeholder:"\u8BF7\u8F93\u5165\u4F60\u7684\u5BA1\u6279\u610F\u89C1",disabled:_.value},{label:()=>e("div",null,[e("div",{class:a.reasonLabelLeft},[" ",e("span",{class:a.titleDot},null),e("span",null,[s("\u610F\u89C1\u5BA1\u6279")])])])})]),_.value?null:e("div",{class:["btnGroup btnMore",a.btnWrap]},[e(W,{color:"#ccc",class:a.unpassBtn,onClick:()=>A("UNPASS")},{default:()=>[s("\u62D2\u7EDD")]}),e(W,{color:"#FF8057",class:a.unpassBtn,onClick:()=>A("PASS")},{default:()=>[s("\u901A\u8FC7")]})]),e(R,{title:"\u63D0\u793A",show:u.dialogStatus,"onUpdate:show":t=>u.dialogStatus=t,message:u.dialogMessage,confirmButtonText:"\u786E\u5B9A",onConfirm:()=>{o.back()}},null)])])}});export{_e as default};
  5. >>>>>>>> online:dist/assets/student-leave.556f30cf.js