/*! * build: Hopaheal * copyright: Mead * time: 2023-3-13 15:21:04 */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2952f9a8"],{"022c":function(t,e,a){"use strict";a.r(e),a.d(e,"getRecordList",(function(){return i})),a.d(e,"checkSteps",(function(){return l})),a.d(e,"checkOut",(function(){return n})),a.d(e,"batchCheck",(function(){return r})),a.d(e,"recordDetail",(function(){return o})),a.d(e,"doDelete",(function(){return c})),a.d(e,"getSetting",(function(){return d})),a.d(e,"downLoad",(function(){return h})),a.d(e,"mySign",(function(){return u})),a.d(e,"doEditSign",(function(){return p})),a.d(e,"doAddSign",(function(){return m})),a.d(e,"uploadLogo",(function(){return _})),a.d(e,"waitShenpi",(function(){return g}));var s=a("b775");function i(t){return Object(s["default"])({url:"/school/schedule/record",method:"get",params:t})}function l(t){return Object(s["default"])({url:"/school/schedule/check-progress",method:"get",params:t})}function n(t){return Object(s["default"])({url:"/school/schedule/check",method:"post",data:t})}function r(t){return Object(s["default"])({url:"/school/schedule/approve-check",method:"post",data:t})}function o(t){return Object(s["default"])({url:"/school/schedule/record/info/"+t,method:"get"})}function c(t){return Object(s["default"])({url:"/school/schedule/record/pause",method:"get",params:t})}function d(t){return Object(s["default"])({url:"/base/setting-key",method:"get",params:t})}function h(t){return Object(s["default"])({url:"/school/print-approve-down",method:"get",params:t})}function u(t){return Object(s["default"])({url:"/lab/signature/me",method:"get",params:t})}function p(t){return Object(s["default"])({url:"/lab/signature/info/"+t.id,method:"put",data:t})}function m(t){return Object(s["default"])({url:"/lab/signature",method:"post",data:t})}function _(t){return Object(s["default"])({url:"/common/upload",method:"post",data:t})}function g(t){return Object(s["default"])({url:"/school/schedule/record-count",method:"get",params:t})}},1523:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{"before-close":t.handleClose,center:"",title:"审核流程",visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"content_1"},[a("div",{staticClass:"block"},[a("el-timeline",[a("el-timeline-item",{attrs:{placement:"top",timestamp:"第一步",type:"success"}},[a("h4",[t._v("提交申请")]),a("p",[t._v("提交人员:"+t._s(t.apply_name))]),a("p",[t._v("提交时间:"+t._s(t.created_at))])]),t.stepDetail.lab?t._e():a("el-timeline-item",{attrs:{placement:"top",timestamp:"第二步"}},[a("h4",[a("span",{staticClass:"primary"},[t._v("等待实验中心审核")])]),a("p",[t._v(" 审核人: "),t._l(t.stepDetail.lab_user,(function(e,s){return a("el-tag",{key:s},[t._v(" "+t._s(e.name)+" ")])}))],2)]),t.stepDetail.lab&&1==t.stepDetail.lab.check_status?a("el-timeline-item",{attrs:{placement:"top",timestamp:"第二步",type:"success"}},[a("h4",[t._v(" 实验中心审核 "),a("span",{staticClass:"success"},[t._v("(审核成功)")])]),a("p",[t._v(" 审核人:"+t._s(t.stepDetail.lab.check_admin?t.stepDetail.lab.check_admin.name:"--")+" ")]),a("p",[t._v("审核时间:"+t._s(t.stepDetail.lab.check_time))]),a("p",[t._v(" 备注: "),a("span",{staticClass:"fail"},[t._v(" "+t._s(t.stepDetail.lab.check_result||"无")+" ")])])]):t._e(),t.stepDetail.lab&&2==t.stepDetail.lab.check_status?a("el-timeline-item",{attrs:{placement:"top",timestamp:"第二步",type:"danger"}},[a("h4",[t._v(" 实验中心审核 "),a("span",{staticClass:"fail"},[t._v("(审核失败)")])]),a("p",[t._v(" 审核人:"+t._s(t.stepDetail.lab.check_admin?t.stepDetail.lab.check_admin.name:"--")+" ")]),a("p",[t._v("审核时间:"+t._s(t.stepDetail.lab.check_time))]),a("p",[t._v(" 备注: "),a("span",{staticClass:"fail"},[t._v(t._s(t.stepDetail.lab.check_result))])])]):t._e(),t.stepDetail.lesson?t._e():a("el-timeline-item",{attrs:{placement:"top",timestamp:"第三步"}},[a("h4",[a("span",{staticClass:"primary"},[t._v("等待【"+t._s(t.lesson_department)+"】审核")])]),a("p",[t._v(" 审核人: "),t._l(t.stepDetail.lesson_user,(function(e,s){return a("el-tag",{key:s},[t._v(" "+t._s(e.name)+" ")])}))],2)]),t.stepDetail.lesson&&1==t.stepDetail.lesson.check_status?a("el-timeline-item",{attrs:{placement:"top",timestamp:"第三步",type:"success"}},[a("h4",[a("span",{staticClass:"success"},[t._v("【"+t._s(t.lesson_department)+"】审核成功")])]),a("p",[t._v(" 审核人:"+t._s(t.stepDetail.lesson.check_admin?t.stepDetail.lesson.check_admin.name:"--")+" ")]),a("p",[t._v("审核时间:"+t._s(t.stepDetail.lesson.check_time))]),a("p",[t._v(" 备注: "),a("span",{staticClass:"fail"},[t._v(" "+t._s(t.stepDetail.lesson.check_result||"无")+" ")])])]):t._e(),t.stepDetail.lesson&&2==t.stepDetail.lesson.check_status?a("el-timeline-item",{attrs:{placement:"top",timestamp:"第三步",type:"danger"}},[a("h4",[a("span",{staticClass:"fail"},[t._v("【"+t._s(t.lesson_department)+"】审核失败")])]),a("p",[t._v(" 审核人:"+t._s(t.stepDetail.lesson.check_admin?t.stepDetail.lesson.check_admin.name:"--")+" ")]),a("p",[t._v("审核时间:"+t._s(t.stepDetail.lesson.check_time))]),a("p",[t._v(" 备注: "),a("span",{staticClass:"fail"},[t._v(" "+t._s(t.stepDetail.lesson.check_result||"无")+" ")])])]):t._e(),t.stepDetail.grade?t._e():a("el-timeline-item",{attrs:{placement:"top",timestamp:"第四步"}},[a("h4",[a("span",{staticClass:"primary"},[t._v("等待【"+t._s(t.grade_department)+"】审核")])]),a("p",[t._v(" 审核人: "),t._l(t.stepDetail.grade_user,(function(e,s){return a("el-tag",{key:s},[t._v(" "+t._s(e.name)+" ")])}))],2)]),t.stepDetail.grade&&1==t.stepDetail.grade.check_status?a("el-timeline-item",{attrs:{placement:"top",timestamp:"第四步",type:"success"}},[a("h4",[a("span",{staticClass:"success"},[t._v("【"+t._s(t.grade_department)+"】审核成功")])]),a("p",[t._v(" 审核人:"+t._s(t.stepDetail.grade.check_admin?t.stepDetail.grade.check_admin.name:"--")+" ")]),a("p",[t._v("审核时间:"+t._s(t.stepDetail.grade.check_time))]),a("p",[t._v(" 备注: "),a("span",{staticClass:"fail"},[t._v(" "+t._s(t.stepDetail.grade.check_result||"无")+" ")])])]):t._e(),t.stepDetail.grade&&2==t.stepDetail.grade.check_status?a("el-timeline-item",{attrs:{placement:"top",timestamp:"第四步",type:"danger"}},[a("h4",[a("span",{staticClass:"fail"},[t._v("【"+t._s(t.grade_department)+"】审核失败")])]),a("p",[t._v(" 审核人:"+t._s(t.stepDetail.grade.check_admin?t.stepDetail.grade.check_admin.name:"--")+" ")]),a("p",[t._v("审核时间:"+t._s(t.stepDetail.grade.check_time))]),a("p",[t._v(" 备注: "),a("span",{staticClass:"fail"},[t._v(" "+t._s(t.stepDetail.grade.check_result||"无")+" ")])])]):t._e(),t.stepDetail.school?t._e():a("el-timeline-item",{attrs:{placement:"top",timestamp:"第五步"}},[a("h4",[a("span",{staticClass:"primary"},[t._v("等待教务处审核")])]),a("p",[t._v(" 审核人: "),t._l(t.stepDetail.school_user,(function(e,s){return a("el-tag",{key:s},[t._v(" "+t._s(e.name)+" ")])}))],2)]),t.stepDetail.school&&1==t.stepDetail.school.check_status?a("el-timeline-item",{attrs:{placement:"top",timestamp:"第五步",type:"success"}},[a("h4",[a("span",{staticClass:"success"},[t._v("(审核成功)")])]),a("p",[t._v(" 审核人:"+t._s(t.stepDetail.school.check_admin?t.stepDetail.school.check_admin.name:"--")+" ")]),a("p",[t._v("审核时间:"+t._s(t.stepDetail.school.check_time))]),a("p",[t._v(" 备注: "),a("span",{staticClass:"fail"},[t._v(" "+t._s(t.stepDetail.school.check_result||"无")+" ")])])]):t._e(),t.stepDetail.school&&2==t.stepDetail.school.check_status?a("el-timeline-item",{attrs:{placement:"top",timestamp:"第五步",type:"danger"}},[a("h4",[a("span",{staticClass:"fail"},[t._v("(审核失败)")])]),a("p",[t._v(" 审核人:"+t._s(t.stepDetail.school.check_admin?t.stepDetail.school.check_admin.name:"--")+" ")]),a("p",[t._v("审核时间:"+t._s(t.stepDetail.school.check_time))]),a("p",[t._v(" 备注: "),a("span",{staticClass:"fail"},[t._v(" "+t._s(t.stepDetail.school.check_result||"无")+" ")])])]):t._e(),t.stepDetail.school&&1==t.stepDetail.school.check_status?a("el-timeline-item",{attrs:{placement:"top",timestamp:"第六步",type:"success"}},[a("h4",{staticClass:"success"},[t._v("审核完成")])]):a("el-timeline-item",{attrs:{placement:"top",timestamp:"第六步"}},[a("h4",[t._v("审核完成")])]),t.stepDetail.school&&1==t.stepDetail.school.check_status?a("el-timeline-item",{attrs:{placement:"top",timestamp:"第七步",type:"success"}},[a("h4",{staticClass:"success"},[t._v(" 打印申请单,本人签字后将申请单分别交由课程所在院系、专业所在院系、教务处留存 ")])]):a("el-timeline-item",{attrs:{placement:"top",timestamp:"第七步"}},[a("h4",[t._v(" 打印申请单,本人签字后将申请单分别交由课程所在院系、专业所在院系、教务处留存 ")])])],1)],1),a("div",{staticClass:"tips"},[a("div",{staticClass:"tips-title"},[a("i",{staticClass:"el-icon-warning"}),t._v(" 审核规则 ")]),a("div",{domProps:{innerHTML:t._s(t.tips)}})])]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("关 闭")])],1)])},i=[],l=a("022c"),n={name:"TemplateClassdialog",data(){return{dialogVisible:!1,stepDetail:"",created_at:"",apply_name:"",tips:"",grade_department:"",lesson_department:""}},methods:{async checkSteps(t){const{data:e}=await Object(l["checkSteps"])({id:t});this.stepDetail=e},handleClose(){this.dialogVisible=!1},showEdit(t){this.checkSteps(t.id),this.tips=t.tips,this.created_at=t.time,this.apply_name=t.apply_name,this.grade_department=t.grade_department,this.lesson_department=t.lesson_department,console.log(t,"row------"),this.dialogVisible=!0}}},r=n,o=(a("1fbe"),a("0b56")),c=Object(o["a"])(r,s,i,!1,null,"7f0d522e",null);e["default"]=c.exports},"1d5c":function(t,e,a){"use strict";a("bf8a")},"1f94":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{"before-close":t.handleClose,center:"",title:"审核流程",visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"content_1"},[a("div",{staticClass:"block"},[a("el-timeline",[a("el-timeline-item",{attrs:{placement:"top",timestamp:"第一步"}},[a("h4",[t._v("提交申请")])]),a("el-timeline-item",{attrs:{placement:"top",timestamp:"第二步"}},[a("h4",[t._v("实验中心审核")])]),a("el-timeline-item",{attrs:{placement:"top",timestamp:"第三步"}},[a("h4",[t._v("课程所在院系审核")])]),a("el-timeline-item",{attrs:{placement:"top",timestamp:"第四步"}},[a("h4",[t._v("专业所在院系审核")])]),a("el-timeline-item",{attrs:{placement:"top",timestamp:"第五步"}},[a("h4",[t._v("教务处审核")])]),a("el-timeline-item",{attrs:{placement:"top",timestamp:"第六步"}},[a("h4",[t._v("审核完成")])]),a("el-timeline-item",{attrs:{placement:"top",timestamp:"第七步"}},[a("h4",[t._v(" 打印申请单,本人签字后将申请单分别交由课程所在院系、专业所在院系、教务处留存 ")])])],1)],1),a("div",{staticClass:"tips"},[a("div",{staticClass:"tips-title"},[a("i",{staticClass:"el-icon-warning"}),t._v(" 审核规则 ")]),a("div",{domProps:{innerHTML:t._s(t.tips)}})])]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("关 闭")])],1)])},i=[],l={name:"TemplateClassdialog",data(){return{dialogVisible:!1,tips:""}},methods:{handleClose(){this.dialogVisible=!1},showEdit(t){this.tips=t.tips,this.dialogVisible=!0}}},n=l,r=(a("aa56"),a("0b56")),o=Object(r["a"])(n,s,i,!1,null,"54aca197",null);e["default"]=o.exports},"1fbe":function(t,e,a){"use strict";a("b947")},2715:function(t,e,a){var s=a("74e7"),i=a("de0e"),l=a("4640"),n=a("981e"),r=a("9252"),o=n("IE_PROTO"),c=Object,d=c.prototype;t.exports=r?c.getPrototypeOf:function(t){var e=l(t);if(s(e,o))return e[o];var a=e.constructor;return i(a)&&e instanceof a?a.prototype:e instanceof c?d:null}},"2c0d":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{"before-close":t.handleClose,title:"数据导出",visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"content_1"},[a("el-form",{ref:"form",attrs:{"label-width":"120px",model:t.form,rules:t.rule}},[a("el-form-item",{attrs:{label:"请选择实验室:",prop:"room_id"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择实验室"},on:{change:t.changeRoom},model:{value:t.form.room_id,callback:function(e){t.$set(t.form,"room_id",e)},expression:"form.room_id"}},t._l(t.roomList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),a("el-form-item",{attrs:{label:"停调补课类型:",prop:"type"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择停调补课类型"},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},t._l(t.typeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),a("el-form-item",{attrs:{label:"请选择状态:",prop:"status"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择状态"},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.statusList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.handleClose}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:t.doExport}},[t._v("立即导出")])],1)])},i=[],l=a("7736"),n=a("4ff3c"),r=a.n(n),o=a("f121"),c={name:"TemplateClassdialog",data(){return{dialogVisible:!1,form:{room_id:"",term_id:"",type:"",status:""},typeList:[{id:1,name:"停课"},{id:2,name:"调课"},{id:3,name:"补课"}],statusList:[{id:0,name:"申请已关闭"},{id:1,name:"待院系审核"},{id:2,name:"待实验中心审核"},{id:3,name:"院系审核失败"},{id:4,name:"实验中心审核通过"},{id:5,name:"实验中心审核失败"},{id:6,name:"已完成"},{id:7,name:"操作失败"}],roomList:[],room_name:"",term_name:localStorage.getItem("term_name"),rule:{}}},computed:{...Object(l["c"])({token:"user/token"})},methods:{handleClose(){this.form={room_id:"",term_id:"",type:"",status:""},this.$refs["form"].resetFields(),this.$refs["form"].clearValidate(),this.dialogVisible=!1},showEdit(){let t=localStorage.getItem("roomList")?JSON.parse(localStorage.getItem("roomList")):[];this.form.term_id=localStorage.getItem("term_id"),this.roomList=t,this.dialogVisible=!0},changeRoom(t){this.roomList.map(e=>{e.id==t&&(this.room_name=e.name)})},doExport(){this.$refs["form"].validate(async t=>{t&&r()({baseURL:o["baseURL"],timeout:5e3,method:"get",url:"/school/schedule/approve-record-export",headers:{Authorization:"Bearer "+this.token},params:this.form,responseType:"blob"}).then(t=>{this.convertRes2Blob(t),this.handleClose()})})},convertRes2Blob(t){let e=this.room_name?this.room_name:"",a=this.term_name+" "+e+" 停调补课申请记录";const s=new Blob([t.data],{type:"application/vnd.ms-excel"});if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(s,decodeURI(a));else{const t=window.URL.createObjectURL(s),e=document.createElement("a");e.style.display="none",e.href=t,e.setAttribute("download",decodeURI(a)),"undefined"===typeof e.download&&e.setAttribute("target","_blank"),document.body.appendChild(e),e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(t)}}}},d=c,h=(a("858b"),a("0b56")),u=Object(h["a"])(d,s,i,!1,null,"73176f18",null);e["default"]=u.exports},3362:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{"append-to-body":"","before-close":t.handleCloseSgin,fullscreen:t.fullscreen,title:"添加签章",visible:t.dialogVisibleSign,width:"1000px"},on:{"update:visible":function(e){t.dialogVisibleSign=e}}},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"方式一:上传签名图片",name:"first"}},[a("el-form",{attrs:{"label-width":"120px"}},[t.is_reset?t._e():a("el-form-item",{attrs:{label:"上传签章",prop:"path"}},[a("el-upload",{staticClass:"avatar-uploader",attrs:{accept:".png,.jpg",action:t.action,data:t.uploadData,limit:t.limit,"on-success":t.handleAvatarSuccess,"show-file-list":!1}},[t.imageUrl?a("img",{staticClass:"avatar",attrs:{src:t.imageUrl}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[a("div",[t._v(" 只能上传jpg/png文件,建议尺寸为(宽:335px 高:165px) ")]),a("div",[t._v(" 点击图片或加号可重新上传签章 ")])])]),a("el-button",{attrs:{type:"primary"},on:{click:t.saveSign}},[t._v("保存签章")])],1)],1)],1),a("el-tab-pane",{attrs:{label:"方式二:手机绘制签名",name:"second"}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.image_loading,expression:"image_loading"}],staticClass:"image-dia"},[a("canvas",{staticStyle:{height:"290px !important",width:"290px !important"},attrs:{id:"canvas"}})]),a("div",{staticClass:"qianming-tips"},[t._v(" 手机绘制签名时,请保证手机使用校园网,系统暂不对外网开放! ")])])],1)],1)},i=[],l=(a("9e01"),a("4fa1"),a("a5e3"),a("5e54"),a("794d"),a("022c")),n=a("f121"),r=a("0b59"),o=a.n(r),c={data(){return{image_loading:!0,degWidth:300,degHeight:200,dialogVisibleImage:!1,fullscreen:!1,lineWidth:6,lineColor:"#000000",bgColor:"",resultImg:"",isCrop:!1,dialogVisibleSign:!1,detail:"",rules:{check_status:[{required:!0,trigger:"blur",message:"请选择审核状态"}]},load:!0,type:"",sign:1,sign_path:"",imageUrl:"",my_sign:[],is_reset:!1,action:"",uploadData:{file_type:"img",type:"signature"},limit:1,activeName:"first"}},methods:{useqrcode(){this.$nextTick(()=>{let t=n["h5_url"]+"?no_auth_id="+this.$store.state.user.user_id;var e=document.getElementById("canvas");o.a.toCanvas(e,t,{height:290,with:290},t=>{t||(this.image_loading=!1)})})},handleClick(){"second"==this.activeName&&setTimeout(()=>{this.useqrcode()},1e3),this.activeName},diaFullscreen(){this.fullscreen=!this.fullscreen},changeSignType(t){2==t&&(this.dialogVisibleSign=!0),1==t&&(this.imageUrl=this.my_sign[0].path_url)},async mySign(){const{data:t}=await Object(l["mySign"])();console.log(t,"pppp"),this.my_sign=t.list,t.list.length>0&&(this.imageUrl=t.list[0].path_url,this.sign_path=t.list[0].path)},handleClose(){this.checkForm={check_status:1,id:"",check_result:""},this.detail="",this.checkList=[],this.$emit("fetch-data"),this.dialogVisible=!1},showEdit(){this.action=n["baseURL"]+"/common/upload",this.fileList=[],this.mySign(),this.dialogVisibleSign=!0},handleAvatarSuccess(t){this.sign_path=t.data.path,this.imageUrl=t.data.url,this.$refs["form"].clearValidate("path")},clearFile(){console.log("上传之前"),this.imageUrl=""},async saveSign(){if(console.log(this.my_sign,"pppppp-----我的签章"),0==this.my_sign.length){if(!this.sign_path)return void this.$message.warning("请上传或者绘制签章!");await Object(l["doAddSign"])({admin_id:this.$store.state.user.user_id,path:this.sign_path,status:1}),this.$message.success("签章上传成功"),this.$emit("fetch-data",1)}else await Object(l["doEditSign"])({admin_id:this.my_sign[0].admin.id,path:this.sign_path,status:1,id:this.my_sign[0].id}),this.$message.success("签章修改成功"),this.$emit("fetch-data",1);this.is_reset=!1},handleReset(){this.$refs.esign.reset(),this.my_sign.length>0?(this.sign_path=this.my_sign[0].path,this.imageUrl=this.my_sign[0].path_url):(this.sign_path="",this.imageUrl="")},handleGenerate(){this.$refs.esign.generate().then(t=>{let e="logo.png",a=this.dataURLtoFile(t,e);console.log(typeof a,"imgFile");const s=new FormData;s.append("file",a),s.append("file_type","img"),s.append("type","signature"),this.uploadLogo(s),this.is_reset=!1,this.fullscreen=!1}).catch(t=>{alert(t)})},dataURLtoFile(t,e){var a=t.split(","),s=a[0].match(/:(.*?);/)[1],i=window.atob?atob(a[1]):this.atob(a[1]),l=i.length,n=new Uint8Array(l);while(l--)n[l]=i.charCodeAt(l);try{return new File([n],e||"123."+s.split("/")[1],{type:s})}catch(o){var r=new Blob([n],{type:s});return r.lastModifiedDate=new Date,r.lastModified=Date.now(),r.name=e||"123."+s.split("/")[1],r}},atob:function(t){t=t.replace(/\s|=/g,"");var e,a,s,i=0,l=[],n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";while(i>4));break;case 2:l.push(String.fromCharCode((15&a)<<4|e>>2));break;case 3:l.push(String.fromCharCode((3&a)<<6|e));break}a=e,i++}return l.join("")},async uploadLogo(t){const e=await Object(l["uploadLogo"])(t);this.sign_path=e.data.path,this.imageUrl=e.data.url,await this.saveSign(),this.handleCloseSgin()},cancelCanvan(){this.is_reset=!1,this.fullscreen=!1,this.my_sign.length>0?(this.sign_path=this.my_sign[0].path,this.imageUrl=this.my_sign[0].path_url):(this.sign_path="",this.imageUrl="")},handleCloseSgin(){this.dialogVisibleSign=!1,this.activeName="first",this.$emit("fetch-data",1)}}},d=c,h=(a("6094"),a("0b56")),u=Object(h["a"])(d,s,i,!1,null,"4c15df78",null);e["default"]=u.exports},"36ee":function(t,e,a){"use strict";a("96fa")},"424c":function(t,e,a){},"4fa1":function(t,e,a){"use strict";var s=a("7c9d"),i=a("3d0a"),l=a("dd4a"),n=s.aTypedArray,r=s.exportTypedArrayMethod;r("at",(function(t){var e=n(this),a=i(e),s=l(t),r=s>=0?s:a+s;return r<0||r>=a?void 0:e[r]}))},"5bfe":function(t,e,a){"use strict";var s=a("7c9d"),i=a("5cd1").findLast,l=s.aTypedArray,n=s.exportTypedArrayMethod;n("findLast",(function(t){return i(l(this),t,arguments.length>1?arguments[1]:void 0)}))},"5cd1":function(t,e,a){var s=a("889a"),i=a("d57c"),l=a("4640"),n=a("3d0a"),r=function(t){var e=1==t;return function(a,r,o){var c,d,h=l(a),u=i(h),p=s(r,o),m=n(u);while(m-- >0)if(c=u[m],d=p(c,m,h),d)switch(t){case 0:return c;case 1:return m}return e?-1:void 0}};t.exports={findLast:r(0),findLastIndex:r(1)}},"5cf9":function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"5e54":function(t,e,a){a("5bfe")},6094:function(t,e,a){"use strict";a("424c")},7005:function(t,e,a){"use strict";a("7146")},7146:function(t,e,a){},"794d":function(t,e,a){a("d515")},"7a42":function(t,e,a){var s=a("8033"),i=RangeError;t.exports=function(t,e){var a=s(t);if(a%e)throw i("Wrong offset");return a}},"7c9d":function(t,e,a){"use strict";var s,i,l,n=a("5cf9"),r=a("581a"),o=a("9f37"),c=a("de0e"),d=a("2cc9"),h=a("74e7"),u=a("5b32"),p=a("697d"),m=a("5086"),_=a("94ef"),g=a("b6b0").f,f=a("ac9e"),v=a("2715"),b=a("f1bf"),y=a("e59d"),k=a("b548"),C=a("c958"),w=C.enforce,S=C.get,D=o.Int8Array,x=D&&D.prototype,A=o.Uint8ClampedArray,F=A&&A.prototype,L=D&&v(D),U=x&&v(x),R=Object.prototype,E=o.TypeError,O=y("toStringTag"),j=k("TYPED_ARRAY_TAG"),V="TypedArrayConstructor",T=n&&!!b&&"Opera"!==u(o.opera),$=!1,q={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},I={BigInt64Array:8,BigUint64Array:8},K=function(t){if(!d(t))return!1;var e=u(t);return"DataView"===e||h(q,e)||h(I,e)},M=function(t){var e=v(t);if(d(e)){var a=S(e);return a&&h(a,V)?a[V]:M(e)}},W=function(t){if(!d(t))return!1;var e=u(t);return h(q,e)||h(I,e)},N=function(t){if(W(t))return t;throw E("Target is not a typed array")},B=function(t){if(c(t)&&(!b||f(L,t)))return t;throw E(p(t)+" is not a typed array constructor")},P=function(t,e,a,s){if(r){if(a)for(var i in q){var l=o[i];if(l&&h(l.prototype,t))try{delete l.prototype[t]}catch(n){try{l.prototype[t]=e}catch(c){}}}U[t]&&!a||_(U,t,a?e:T&&x[t]||e,s)}},H=function(t,e,a){var s,i;if(r){if(b){if(a)for(s in q)if(i=o[s],i&&h(i,t))try{delete i[t]}catch(l){}if(L[t]&&!a)return;try{return _(L,t,a?e:T&&L[t]||e)}catch(l){}}for(s in q)i=o[s],!i||i[t]&&!a||_(i,t,e)}};for(s in q)i=o[s],l=i&&i.prototype,l?w(l)[V]=i:T=!1;for(s in I)i=o[s],l=i&&i.prototype,l&&(w(l)[V]=i);if((!T||!c(L)||L===Function.prototype)&&(L=function(){throw E("Incorrect invocation")},T))for(s in q)o[s]&&b(o[s],L);if((!T||!U||U===R)&&(U=L.prototype,T))for(s in q)o[s]&&b(o[s].prototype,U);if(T&&v(F)!==U&&b(F,U),r&&!h(U,O))for(s in $=!0,g(U,O,{get:function(){return d(this)?this[j]:void 0}}),q)o[s]&&m(o[s],j,s);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:T,TYPED_ARRAY_TAG:$&&j,aTypedArray:N,aTypedArrayConstructor:B,exportTypedArrayMethod:P,exportTypedArrayStaticMethod:H,getTypedArrayConstructor:M,isView:K,isTypedArray:W,TypedArray:L,TypedArrayPrototype:U}},"7cef":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{"append-to-body":"","before-close":t.handleClose,space:"50%",title:"审核步骤",visible:t.dialogVisible,width:"1080px"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[a("div",{staticClass:"step"},[-1!==t.code?a("el-steps",{attrs:{active:t.code,"align-center":"","finish-status":"success","process-status":t.process,space:270}},[a("el-step",{attrs:{icon:"el-icon-s-custom",title:"用户提交申请"}}),a("el-step",{attrs:{icon:"el-icon-s-custom",title:"实验中心审核"}},[a("template",{slot:"description"},[t.userApply?a("span",[t._v(" 审核人: "),t._l(t.stepDetail.lab_user,(function(e,s){return a("span",{key:s},[t._v(" "+t._s(e.name)+" ")])}))],2):t.authLab?a("span",[t._v(" 审核人:"+t._s(t.authLab.check_admin?t.authLab.check_admin.name:"--")+" "),a("br"),t._v(" 审核时间:"+t._s(t.authLab.check_time)+" ")]):t._e()])],2),a("el-step",{attrs:{icon:"el-icon-s-custom",title:"课程所在院系审核"}},[a("template",{slot:"description"},[a("span",[t._v(" "+t._s(t.lesson_department)+" "),a("br"),t.userApply?a("span",[t._v(" 审核人: "),t._l(t.stepDetail.lesson_user,(function(e,s){return a("span",{key:s},[t._v(" "+t._s(e.name)+" ")])}))],2):t.authLesson?a("span",[t._v(" 审核人:"+t._s(t.authLesson.check_admin?t.authLesson.check_admin.name:"--")+" "),a("br"),t._v(" 审核时间:"+t._s(t.authLesson.check_time)+" ")]):t._e()])])],2),a("el-step",{attrs:{icon:"el-icon-s-custom",title:"专业所在院系审核"}},[a("template",{slot:"description"},[a("span",[t._v(" "+t._s(t.grade_department)+" "),a("br"),t.userApply?a("span",[t._v(" 审核人: "),t._l(t.stepDetail.grade_user,(function(e,s){return a("span",{key:s},[t._v(" "+t._s(e.name)+" ")])}))],2):t.authGrade?a("span",[t._v(" 审核人:"+t._s(t.authGrade.check_admin?t.authGrade.check_admin.name:"--")+" "),a("br"),t._v(" 审核时间:"+t._s(t.authGrade.check_time)+" ")]):t._e()])])],2),a("el-step",{attrs:{icon:"el-icon-s-custom",title:"教务处审核"}},[a("template",{slot:"description"},[t.userApply?a("span",[t._v(" 审核人: "),t._l(t.stepDetail.school_user,(function(e,s){return a("span",{key:s},[t._v(" "+t._s(e.name)+" ")])}))],2):t.authSchool?a("span",[t._v(" 审核人:"+t._s(t.authSchool.check_admin?t.authSchool.check_admin.name:"--")+" "),a("br"),t._v(" 审核时间:"+t._s(t.authSchool.check_time)+" ")]):t._e()])],2)],1):t._e()],1),t.userApply?t._e():a("div",{staticClass:"tip"},[a("div",[a("div",{domProps:{innerHTML:t._s(t.tipMessage)}})])]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.handleClose}},[t._v("确 定")])],1)])},i=[],l=a("022c"),n={data(){return{description:"已通过短信通知审核员",status:"审核状态",dialogVisible:!1,code:-1,check_status:"",process:"success",tipMessage:"",authPeople:"",authLab:"",authLesson:"",authSchool:"",authGrade:"",grade_department:"",lesson_department:"",userApply:!1}},methods:{async getDetail(t,e){await Object(l["recordDetail"])(t).then(t=>{if(this.grade_department=t.data.grade_department?t.data.grade_department.name:"--",this.lesson_department=t.data.lesson_department?t.data.lesson_department.name:"--",this.authPeople=t.data.admin?t.data.admin:"",!this.userApply){let a="";1==e&&(a=t.data.step-1),2==e&&(a=t.data.step),this.code=a,1==a&&1==e&&(this.tipMessage='
【实验中心】审核【通过】,下一步移交【课程所在院系审核】,已通过短信通知【课程所在院系】审核员
'),1==a&&2==e&&(this.tipMessage='
【实验中心】【实验中心】审核【失败】,审核结果已通过短信通知申请人
'),2==a&&1==e&&(this.tipMessage='
【课程所在院系】审核【通过】,下一步移交【专业所在院系审核】,已通过短信通知【专业所在院系审核】审核员
'),2==a&&2==e&&(this.tipMessage='
【课程所在院系】审核【失败】,审核结果已通过短信通知申请人
'),3==a&&1==e&&(this.tipMessage='
【专业所在院系】审核【通过】,下一步移交【教务处审核】,已通过短信通知【教务处审核】审核员
'),3==a&&2==e&&(this.tipMessage='
【专业所在院系】审核【失败】,审核结果已通过短信通知申请人
'),4==a&&1==e&&(this.tipMessage='
【教务处】审核【通过】,审核结果已通过短信通知申请人
'),4==a&&2==e&&(this.tipMessage='
【教务处】审核【失败】,审核结果已通过短信通知申请人
')}this.dialogVisible=!0})},async checkSteps(t){const{data:e}=await Object(l["checkSteps"])({id:t});this.stepDetail=e,e.lab&&(this.authLab=e.lab),e.lesson&&e.lesson.check_admin&&(this.authLesson=e.lesson),e.grade&&(this.authGrade=e.grade),e.school&&(this.authSchool=e.school)},handleClose(){this.code="",this.dialogVisible=!1,this.check_status="",this.process="success",this.userApply=!1},async showEdit(t){if(t.check_status){1==t.check_status&&this.process,2==t.check_status&&(this.process="error"),this.check_status=t.check_status;let e=t.check_status;await this.checkSteps(t.id),await this.getDetail(t.id,e)}else this.userApply=!0,this.code=0,await this.checkSteps(t.id),await this.getDetail(t.id,"")}}},r=n,o=(a("1d5c"),a("0b56")),c=Object(o["a"])(r,s,i,!1,null,"537fcdd9",null);e["default"]=c.exports},8033:function(t,e,a){var s=a("dd4a"),i=RangeError;t.exports=function(t){var e=s(t);if(e<0)throw i("The argument can't be less than 0");return e}},"80b4":function(t,e,a){},"858b":function(t,e,a){"use strict";a("f138")},"889a":function(t,e,a){var s=a("74b0"),i=a("c5a9"),l=a("9477"),n=s(s.bind);t.exports=function(t,e){return i(t),void 0===e?t:l?n(t,e):function(){return t.apply(e,arguments)}}},9252:function(t,e,a){var s=a("2dc4");t.exports=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"947d":function(t,e,a){},"96fa":function(t,e,a){},a5e3:function(t,e,a){"use strict";var s=a("9f37"),i=a("36c3"),l=a("7c9d"),n=a("3d0a"),r=a("7a42"),o=a("4640"),c=a("2dc4"),d=s.RangeError,h=s.Int8Array,u=h&&h.prototype,p=u&&u.set,m=l.aTypedArray,_=l.exportTypedArrayMethod,g=!c((function(){var t=new Uint8ClampedArray(2);return i(p,t,{length:1,0:3},1),3!==t[1]})),f=g&&l.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));_("set",(function(t){m(this);var e=r(arguments.length>1?arguments[1]:void 0,1),a=o(t);if(g)return i(p,this,a,e);var s=this.length,l=n(a),c=0;if(l+e>s)throw d("Wrong length");while(c{this.convertRes2Blob(t)})},convertRes2Blob(t){const e=t.headers["content-disposition"].match(/filename=(.*)(.*)/);console.log(e,"Mead");const a="停调补课申请单",s=new Blob([t.data],{type:"application/pdf"});if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(s,decodeURI(a));else{const t=window.URL.createObjectURL(s),e=document.createElement("a");e.style.display="none",e.href=t,e.setAttribute("download",decodeURI(a)),"undefined"===typeof e.download&&e.setAttribute("target","_blank"),document.body.appendChild(e),e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(t)}},async getSetting(){const{data:t}=await Object(c["getSetting"])({key:"TINGTIAOKE_TIPS"});this.tips=t.value},getWeeks(){let t=localStorage.getItem("term_weeks");for(let e=1;e<=t;e++)this.weekList.push({name:"第"+e+"周",value:e})},async getList(){const{data:t}=await Object(c["getRecordList"])(this.queryForm);this.list=t.list;const{pagination:e}=t.meta;this.total=e.total,this.listLoading=!1},queryData(){this.queryForm.page=1,this.getList()},handleSizeChange(t){this.queryForm.per_page=t,this.getList()},handleCurrentChange(t){this.queryForm.page=t,this.getList()},checkOutLiu(){this.$refs["liu-cheng"].showEdit({tips:this.tips})},handeleExport(){this.$refs["import"].showEdit()},handleEdit(){this.$router.push({path:"/courseTable/handleApply"})},handleDelete(t){this.$baseConfirm("您确定要撤销当前申请吗",null,async()=>{const{message:e}=await Object(c["doDelete"])({id:t.id});this.$baseMessage(e,"success",!1,"vab-hey-message-success"),await this.getList()})},setSelectRows(t){this.selectRows=t},handleCheckout(t){if(t.id)this.$refs["check-out"].showEdit(t.id,1,t);else if(this.selectRows.length>0){let t=this.selectRows.map(t=>t.id);this.$refs["check-out"].showEdit(t,2)}else this.$baseMessage("请选择要批量审核的数据!","error",!1,"vab-hey-message-error")},handleDetail(t){this.$refs["detail"].showEdit(t.id)},lookStep(t){this.$refs["check-step"].showEdit({id:t.id,time:t.created_at,tips:this.tips,apply_name:t.admin?t.admin.name:"--",lesson_department:t.lesson_department?t.lesson_department.name:"--",grade_department:t.grade_department?t.grade_department.name:"--"})},transformWeek:d["transformWeek"],transformAuth:d["transformAuth"]}},g=_,f=(a("7005"),a("0b56")),v=Object(f["a"])(g,s,i,!1,null,"87921186",null);e["default"]=v.exports},b522:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJUAAACYCAMAAADa4lujAAAAqFBMVEVHcEwCvg4Cvw0CwQ0Cvw4DvwsCwA0Bvw0DwA0CwA0CwA4Cvw0DwA4DvgwDwA4Cvw0DwA4DwA0Cvg4Dvw4DwA4CwQwCwA8DvQ8Dwg8Dvg0CwQ4Cvw8Cvw4DwA0Dwg8CvwwDvw4DwQ4Cvw8DwA0DwA0DwA0Dvg8CwAwCvw4DwA0Dvw8DwA4Dvw0CwA4Cvw0DwA0Dwg0Dvw4Dvw0DwA0DwAwDvwwDvw0DwA6E5RKzAAAAN3RSTlMAW1xfWUBegKpiVmFFT6JgiodXnZ9jZkJUS1dlWElDZEhGZJKal1N2bE5Aj4VaXYJMjZWnUVCl+AuioQAAApZJREFUeNrt3FeOFEEURNEHDNQM3nvvvYe7/53xgRDQ5bNiNPdjcgVHrcrMFxlSVx2v4xVfnRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRKFEoUShRLFkaP2D1HVjqr9Q1NtQNUQ6+hRQywBaoBlQPVZClSP5UDtsiSoHZYF9T9Lgzob+62CqKux7yqIuh/bg0HUXuy8CqI+xM72IOpE7B4Mok7GZoYg6mNsvgqizsRm0SDqVGxuD6IuxdJEEHUulnGCqINY8gqibsTyYBD1NJZSR1HdatS9WHYeR9WnlaibsUQ/gap6vwr1KPbOMImqupLYfatVM6iqy5vPqfWqWVTVl03XTItqAarqXfuF3KRahKp61jZPNaoWoqq+NkyerarFqKoXK4NDu2ri4O6znk+i7sbeRSdvkz7r2tKEvEk1c8X1WddHUbdjb8izU0KfdXEE9TL2sr1gdOmzfg6ivsfe2xfNU33WtwHUj1gLsHDI67P6qDexbmLx5Dn/XyufY43JinF4jnUn1uOsmtGnWQ9i7dLK4DDFehzrvFanmXHWk1gT1xCxxljnY/1gU+4bZj2MtZaNYXSIdSvWpTYn5D7rbazh3dAh77JOx3rnTcV2F0CRb9u7TbtvTLUR9S/rAinVZtRf1h4pVQD1h3VAShVB/Wa9JqUKoaCrV6RUMdT8299yVRC1cSlRKFEoUShRKFEoUShRKFEoUShRKFH8AqzrPnGoHdeIAAAAAElFTkSuQmCC"},b947:function(t,e,a){},bf8a:function(t,e,a){},d431:function(t,e,a){"use strict";a.r(e),a.d(e,"scheduleList",(function(){return i})),a.d(e,"reasonList",(function(){return l})),a.d(e,"getRoomaList",(function(){return n})),a.d(e,"stopCourse",(function(){return r})),a.d(e,"buCourse",(function(){return o})),a.d(e,"tiaoCourse",(function(){return c})),a.d(e,"getCalendar",(function(){return d})),a.d(e,"getTimeList",(function(){return h})),a.d(e,"lessonList",(function(){return u})),a.d(e,"addCourseTable",(function(){return p})),a.d(e,"doDelete",(function(){return m})),a.d(e,"doPause",(function(){return _})),a.d(e,"tableExport",(function(){return g})),a.d(e,"batchStop",(function(){return f})),a.d(e,"batchChange",(function(){return v})),a.d(e,"getClassList",(function(){return b})),a.d(e,"batchChangeClass",(function(){return y})),a.d(e,"batchChangeTeacher",(function(){return k})),a.d(e,"getTeacherList",(function(){return C}));var s=a("b775");function i(t){return Object(s["default"])({url:"/school/schedule",method:"get",params:t})}function l(t){return Object(s["default"])({url:"/base/category-select-options",method:"get",params:t})}function n(t){return Object(s["default"])({url:"/school/room-select-options",method:"get",params:t})}function r(t){return Object(s["default"])({url:"/school/schedule/stop-lesson-apply",method:"post",data:t})}function o(t){return Object(s["default"])({url:"/school/schedule/repair-lesson-apply",method:"post",data:t})}function c(t){return Object(s["default"])({url:"/school/schedule/change-lesson-apply",method:"post",data:t})}function d(t){return Object(s["default"])({url:"/school/schedule/calendar-simple",method:"post",data:t})}function h(t){return Object(s["default"])({url:"/school/time-select-options",method:"get",params:t})}function u(t){return Object(s["default"])({url:"/school/lesson-teacher-select-options",method:"get",params:t})}function p(t){return Object(s["default"])({url:"/school/schedule",method:"put",data:t})}function m(t){return Object(s["default"])({url:"/school/schedule/"+t,method:"delete"})}function _(t){return Object(s["default"])({url:"/school/schedule/pause",method:"get",params:t})}function g(t){return Object(s["default"])({url:"/school/schedule/export",method:"get",params:t})}function f(t){return Object(s["default"])({url:"/school/schedule/admin-batch-stop-lesson",method:"post",data:t})}function v(t){return Object(s["default"])({url:"/school/schedule/admin-batch-change-lesson",method:"post",data:t})}function b(t){return Object(s["default"])({url:"/base/department-tree",method:"get",params:t})}function y(t){return Object(s["default"])({url:"/school/schedule/admin-batch-update-room-lesson",method:"post",data:t})}function k(t){return Object(s["default"])({url:"/school/schedule/admin-batch-update-teacher-lesson",method:"post",data:t})}function C(t){return Object(s["default"])({url:"/base/admin-select-options",method:"get",params:t})}},d515:function(t,e,a){"use strict";var s=a("7c9d"),i=a("5cd1").findLastIndex,l=s.aTypedArray,n=s.exportTypedArrayMethod;n("findLastIndex",(function(t){return i(l(this),t,arguments.length>1?arguments[1]:void 0)}))},d96a:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{"before-close":t.handleClose,title:"停调课审核",visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("div",{staticClass:"content_1"},[t.detail&&1==t.type?s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.load,expression:"load"}],staticClass:"content"},[s("div",[s("div",{staticClass:"form-title"},[s("span",{staticStyle:{"font-weight":"550",display:"inline-block","margin-right":"10px"}},[t._v(" 课程信息 ")]),1==t.detail.type?s("el-tag",{attrs:{type:"danger"}},[t._v("停课申请")]):t._e(),2==t.detail.type?s("el-tag",{attrs:{type:"warning"}},[t._v("调课申请")]):t._e(),3==t.detail.type?s("el-tag",{attrs:{type:"success"}},[t._v("补课申请")]):t._e()],1),s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("课程名称:")]),s("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.lesson?t.detail.lesson.name:"--")+"( "+t._s(t.detail.schedule_data?t.detail.schedule_data.group_name:"--")+") ")])]),s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("指导教师:")]),s("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.schedule_data&&t.detail.schedule_data.teacher?t.detail.schedule_data.teacher.name:"--")+" ")])])]),s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("上课班级:")]),s("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.schedule_data&&t.detail.schedule_data.grade?t.detail.schedule_data.grade.name:"--")+" ")])])]),s("div",{staticClass:"line"})]),s("div",[s("div",{staticClass:"form-title"},[s("span",[t._v(" "+t._s(1==t.detail.type?"停课":2==t.detail.type?"调课":"补课")+"信息 ")])]),s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("原上课地点:")]),s("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.schedule_data&&t.detail.schedule_data.room?t.detail.schedule_data.room.name:"--")+" ")])]),s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("原上课时间:")]),s("div",{staticClass:"text time_1"},[t._v(" "+t._s(t.detail.schedule_data?t.detail.schedule_data.day:"--")+" / 第"+t._s(t.detail.schedule_data?t.detail.schedule_data.week:"--")+"周 / 星期"+t._s(t.detail.schedule_data?t.transformWeek(t.detail.schedule_data.week_index):"--")+" / "+t._s(t.detail.schedule_data&&t.detail.schedule_data.time?t.detail.schedule_data.time.name:"")+" ")])])]),t.detail.migrate_data?s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("调课地点:")]),s("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.migrate_data?t.detail.migrate_data.room_name:"")+" ")])]),t.detail.migrate_data?s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("调课时间:")]),s("div",{staticClass:"text time_1"},[t._v(" "+t._s(t.detail.migrate_data?t.detail.migrate_data.day:"")+" / 第"+t._s(t.detail.migrate_data?t.detail.migrate_data.week:"--")+"周 / 星期"+t._s(t.detail.migrate_data?t.transformWeek(t.detail.migrate_data.week_index):"--")+" / "+t._s(t.detail.migrate_data.time?t.detail.migrate_data.time.name:"")+" ")])]):t._e()]):t._e(),t.transformAuth("100208")?t._e():s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"label",staticStyle:{flex:"0 0 100px"}},[t._v("课程所在院系:")]),s("div",{staticClass:"text"},[t._v(" "+t._s(t.lesson_department_name)+" ")])]),s("div",{staticClass:"form"},[s("div",{staticClass:"label",staticStyle:{flex:"0 0 100px"}},[t._v("专业所在院系:")]),s("div",{staticClass:"text time_1"},[t._v(" "+t._s(t.grade_department_name)+" ")])])]),t.transformAuth("100208")?s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"label",staticStyle:{flex:"0 0 100px"}},[t._v("课程所在院系:")]),s("div",{staticClass:"text"},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择课程所在院系"},model:{value:t.checkForm.lesson_department_id,callback:function(e){t.$set(t.checkForm,"lesson_department_id",e)},expression:"checkForm.lesson_department_id"}},t._l(t.class_list,(function(t){return s("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)]),s("div",{staticClass:"form"},[s("div",{staticClass:"label",staticStyle:{flex:"0 0 100px"}},[t._v("专业所在院系:")]),s("div",{staticClass:"text"},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择专业所在院系"},model:{value:t.checkForm.grade_department_id,callback:function(e){t.$set(t.checkForm,"grade_department_id",e)},expression:"checkForm.grade_department_id"}},t._l(t.class_list,(function(t){return s("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)])]):t._e(),s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"label",staticStyle:{"font-weight":"550",color:"#000"}},[t._v(" 申请原因: ")]),s("div",{staticClass:"text",staticStyle:{color:"#ff8d1a"}},[t._v(" "+t._s(t.detail.body||"无")+" ")])])]),s("div",{staticClass:"line"}),s("div",{staticClass:"item"},[s("div",{staticClass:"form-title"},[s("span",[t._v(" "+t._s(1==t.detail.type?"停课":2==t.detail.type?"调课":"")+"审核 ")])])])])]):t._e(),s("el-form",{ref:"form",staticClass:"check-form",attrs:{"label-position":"left","label-width":"85px",model:t.checkForm,rules:t.rules}},[t.transformAuth("100206")?s("el-form-item",{attrs:{label:"审核角色:"}},[s("el-checkbox-group",{on:{change:t.changeType},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},[s("el-checkbox",{attrs:{label:1}},[t._v("实验中心")]),s("el-checkbox",{attrs:{label:2}},[t._v("课程所属院系")]),s("el-checkbox",{attrs:{label:3}},[t._v("专业所属院系")]),s("el-checkbox",{attrs:{label:4}},[t._v("教务处")])],1)],1):t._e(),s("el-form-item",{attrs:{label:"审核意见:",prop:"check_status"}},[s("el-radio-group",{model:{value:t.checkForm.check_status,callback:function(e){t.$set(t.checkForm,"check_status",e)},expression:"checkForm.check_status"}},[s("el-radio",{attrs:{label:1}},[t._v("通过")]),s("el-radio",{attrs:{label:2}},[t._v("驳回")])],1)],1),t.my_sign.length>0?s("el-form-item",{attrs:{label:"选择签章:"}},[s("el-radio-group",{on:{change:t.changeSignType},model:{value:t.sign,callback:function(e){t.sign=e},expression:"sign"}},[s("el-radio",{attrs:{label:1}},[t._v("已有签章")]),s("el-radio",{attrs:{label:2}},[t._v("添加签章")]),s("el-button",{attrs:{type:"text"},on:{click:t.mySign}},[t._v("刷新签章")])],1)],1):s("el-form-item",{attrs:{label:"上传签章:"}},[s("el-button",{attrs:{type:"primary"},on:{click:t.firstUploadSign}},[t._v(" 上传签章 ")])],1),t.imageUrl?s("el-form-item",[s("div",{staticClass:"image-posi"},[s("el-image",{staticStyle:{width:"200px",height:"160px",border:"dashed 1px rgba(0, 0, 0, 0.2)"},attrs:{fit:"contain",src:t.imageUrl}}),s("img",{staticClass:"right-select",attrs:{src:a("b522")}})],1)]):t._e(),s("el-form-item",{attrs:{label:"审核备注:",prop:"check_result"}},[2==t.checkForm.check_status?s("span",{staticClass:"star"},[t._v("*")]):t._e(),s("el-input",{attrs:{rows:8,type:"textarea"},model:{value:t.checkForm.check_result,callback:function(e){t.$set(t.checkForm,"check_result",e)},expression:"checkForm.check_result"}})],1)],1)],1),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:t.handleClose}},[t._v("取 消")]),s("el-button",{attrs:{type:"primary"},on:{click:t.doCheckOut}},[t._v("确 定")])],1),s("el-dialog",{attrs:{"append-to-body":"",title:"扫码上传签章",visible:t.dialogVisibleImage,width:"800px"},on:{"update:visible":function(e){t.dialogVisibleImage=e},close:function(e){t.dialogVisibleImage=!1}}},[s("div",{staticClass:"image-dia"},[s("image",{staticClass:"image",attrs:{src:""}})])]),s("sign",{ref:"upload-sign",on:{"fetch-data":t.getSign}}),s("shenheTip",{ref:"check-tips"})],1)},i=[],l=(a("9e01"),a("4fa1"),a("a5e3"),a("5e54"),a("794d"),a("022c")),n=a("d431"),r=a("d12b"),o=a("f121"),c=a("3362"),d=a("7cef"),h={name:"TemplateClassdialog",components:{sign:c["default"],shenheTip:d["default"]},data(){return{lesson_department_name:"",grade_department_name:"",defaultProps:{children:"children",label:"name",leaf:!0},class_list:[],degWidth:300,degHeight:200,dialogVisibleImage:!1,fullscreen:!1,lineWidth:6,lineColor:"#000000",bgColor:"",resultImg:"",isCrop:!1,dialogVisibleSign:!1,dialogVisible:!1,checkList:[],checkForm:{check_status:1,id:"",type:"",check_result:"",grade_department_id:"",lesson_department_id:""},detail:"",rules:{check_status:[{required:!0,trigger:"blur",message:"请选择审核状态"}]},load:!0,type:"",sign:1,sign_path:"",imageUrl:"",my_sign:[],is_reset:!1,action:"",uploadData:{file_type:"img",type:"signature"},limit:1}},created(){this.getClassList()},methods:{handleNodeClick(t){this.lesson_department_name=t.name,this.checkForm.lesson_department_id=t.id,this.$refs.selectblur_1.blur()},handleNodeClick_1(t){this.grade_department_name=t.name,this.checkForm.grade_department_id=t.id,this.$refs.selectblur.blur()},async getClassList(){const{data:t}=await Object(n["getClassList"])({status:1,parent_id:1});this.class_list=t},getSign(t){this.sign=t,this.mySign()},diaFullscreen(){this.fullscreen=!this.fullscreen},changeSignType(t){2==t&&this.$refs["upload-sign"].showEdit(),1==t&&(this.imageUrl=this.my_sign[0].path_url),3==t&&(this.dialogVisibleImage=!0)},firstUploadSign(){this.$refs["upload-sign"].showEdit()},async mySign(){const{data:t}=await Object(l["mySign"])();console.log(t,"pppp"),this.my_sign=t.list,t.list.length>0&&(this.imageUrl=t.list[0].path_url,this.sign_path=t.list[0].path)},changeType(t){console.log(t,"ppppp----+++++"),this.checkList=[];let e=t,a=1;var s;e.map(t=>{t>a&&(a=t)});let i=[];for(s=1;a>=s;s++)i.push(s);this.checkList=i,this.checkForm.type=a},async recordDetail(t){this.load=!0;const{data:e}=await Object(l["recordDetail"])(t);this.detail=e,this.checkForm.grade_department_id=e.grade_department?e.grade_department.id:"",this.checkForm.lesson_department_id=e.lesson_department?e.lesson_department.id:"",this.grade_department_name=e.grade_department?e.grade_department.name:"--",this.lesson_department_name=e.lesson_department?e.lesson_department.name:"--",this.load=!1},transformWeek:r["transformWeek"],transformAuth:r["transformAuth"],handleClose(){this.checkForm={check_status:1,id:"",check_result:""},this.detail="",this.checkList=[],this.$emit("fetch-data"),this.dialogVisible=!1},showEdit(t,e){this.action=o["baseURL"]+"/common/upload",this.fileList=[],console.log(this.$store.state.user.user_id,"index2"),this.mySign(),this.type=e,1==e&&(delete this.checkForm.ids,this.checkForm.id=t,this.recordDetail(t)),2==e&&(delete this.checkForm.id,this.checkForm.ids=t),this.dialogVisible=!0},doCheckOut(){console.log(this.detail,"p99999999999ppppp"),this.$refs["form"].validate(async t=>{if(t){if(this.transformAuth("100206")&&!this.checkForm.type)return void this.$message.warning("请选择审核角色!");if(!this.imageUrl)return void this.$message.warning("请上传签章!");if(2==this.checkForm.check_status&&!this.checkForm.check_result)return void this.$message.warning("请填写驳回原因!");if(1==this.type){const{message:t}=await Object(l["checkOut"])(this.checkForm);this.$baseMessage(t,"success",!1,"vab-hey-message-success");let e=this.detail.status,a=this.checkForm.check_status,s=this.detail.id;this.$refs["check-tips"].showEdit({code:e,check_status:a,id:s})}if(2==this.type){const{message:t}=await Object(l["batchCheck"])(this.checkForm);this.$baseMessage(t,"success",!1,"vab-hey-message-success")}this.$emit("fetch-data"),this.$emit("refs-data"),this.$refs["form"].resetFields(),this.handleClose()}})},handleAvatarSuccess(t){this.sign_path=t.data.path,this.imageUrl=t.data.url,this.$refs["form"].clearValidate("path")},clearFile(){console.log("上传之前"),this.imageUrl=""},async saveSign(){if(0==this.my_sign.length){if(!this.sign_path)return void this.$message.warning("请上传或者绘制签章!");await Object(l["doAddSign"])({admin_id:this.$store.state.user.user_id,path:this.sign_path,status:1}),this.$message.success("签章上传成功")}else await Object(l["doEditSign"])({admin_id:this.my_sign[0].admin.id,path:this.sign_path,status:1,id:this.my_sign[0].id}),this.$message.success("签章修改成功");this.is_reset=!1,await this.mySign()},handleReset(){this.$refs.esign.reset(),this.my_sign.length>0?(this.sign_path=this.my_sign[0].path,this.imageUrl=this.my_sign[0].path_url):(this.sign_path="",this.imageUrl="")},handleGenerate(){this.$refs.esign.generate().then(t=>{let e="logo.png",a=this.dataURLtoFile(t,e);console.log(typeof a,"imgFile");const s=new FormData;s.append("file",a),s.append("file_type","img"),s.append("type","signature"),this.uploadLogo(s),this.is_reset=!1,this.fullscreen=!1}).catch(t=>{alert(t)})},dataURLtoFile(t,e){var a=t.split(","),s=a[0].match(/:(.*?);/)[1],i=window.atob?atob(a[1]):this.atob(a[1]),l=i.length,n=new Uint8Array(l);while(l--)n[l]=i.charCodeAt(l);try{return new File([n],e||"123."+s.split("/")[1],{type:s})}catch(o){var r=new Blob([n],{type:s});return r.lastModifiedDate=new Date,r.lastModified=Date.now(),r.name=e||"123."+s.split("/")[1],r}},atob:function(t){t=t.replace(/\s|=/g,"");var e,a,s,i=0,l=[],n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";while(i>4));break;case 2:l.push(String.fromCharCode((15&a)<<4|e>>2));break;case 3:l.push(String.fromCharCode((3&a)<<6|e));break}a=e,i++}return l.join("")},async uploadLogo(t){const e=await Object(l["uploadLogo"])(t);this.sign_path=e.data.path,this.imageUrl=e.data.url},cancelCanvan(){this.is_reset=!1,this.fullscreen=!1,this.my_sign.length>0?(this.sign_path=this.my_sign[0].path,this.imageUrl=this.my_sign[0].path_url):(this.sign_path="",this.imageUrl="")},handleCloseSgin(){this.dialogVisibleSign=!1,this.cancelCanvan(),this.sign=1}}},u=h,p=(a("dfb4"),a("0b56")),m=Object(p["a"])(u,s,i,!1,null,"385b6edc",null);e["default"]=m.exports},dfb4:function(t,e,a){"use strict";a("947d")},e586:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{"before-close":t.handleClose,center:"",title:"停调补课详情",visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"content"},[a("div",[a("div",{staticClass:"form-title"},[a("span",{staticStyle:{"font-weight":"550",display:"inline-block","margin-right":"10px"}},[t._v(" 课程信息 ")]),1==t.detail.type?a("el-tag",{attrs:{type:"danger"}},[t._v("停课申请")]):t._e(),2==t.detail.type?a("el-tag",{attrs:{type:"warning"}},[t._v("调课申请")]):t._e(),3==t.detail.type?a("el-tag",{attrs:{type:"success"}},[t._v("补课申请")]):t._e()],1),a("div",{staticClass:"item"},[a("div",{staticClass:"form"},[a("div",{staticClass:"label"},[t._v("课程名称:")]),a("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.lesson?t.detail.lesson.name:"--")+"( "+t._s(t.detail.schedule_data?t.detail.schedule_data.group_name:"--")+") ")])]),a("div",{staticClass:"form"},[a("div",{staticClass:"label"},[t._v("指导教师:")]),a("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.schedule_data&&t.detail.schedule_data.teacher?t.detail.schedule_data.teacher.name:"--")+" ")])])]),a("div",{staticClass:"item"},[a("div",{staticClass:"form"},[a("div",{staticClass:"label"},[t._v("上课班级:")]),a("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.schedule_data&&t.detail.schedule_data.grade?t.detail.schedule_data.grade.name:"--")+" ")])])]),a("div",{staticClass:"line"})]),a("div",[a("div",{staticClass:"form-title"},[a("span",[t._v(" "+t._s(1==t.detail.type?"停课":2==t.detail.type?"调课":"")+"信息 ")])]),a("div",{staticClass:"item"},[a("div",{staticClass:"form"},[a("div",{staticClass:"label"},[t._v("原上课地点:")]),a("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.schedule_data&&t.detail.schedule_data.room?t.detail.schedule_data.room.name:"--")+" ")])]),a("div",{staticClass:"form"},[a("div",{staticClass:"label"},[t._v("原上课时间:")]),a("div",{staticClass:"text time_1"},[t._v(" "+t._s(t.detail.schedule_data?t.detail.schedule_data.day:"--")+" / 第"+t._s(t.detail.schedule_data?t.detail.schedule_data.week:"--")+"周 / 星期"+t._s(t.detail.schedule_data?t.transformWeek(t.detail.schedule_data.week_index):"--")+" / "+t._s(t.detail.schedule_data&&t.detail.schedule_data.time?t.detail.schedule_data.time.name:"")+" ")])])]),t.detail.migrate_data?a("div",{staticClass:"item"},[a("div",{staticClass:"form"},[a("div",{staticClass:"label"},[t._v("现上课地点:")]),a("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.migrate_data?t.detail.migrate_data.room_name:"")+" ")])]),t.detail.migrate_data?a("div",{staticClass:"form"},[a("div",{staticClass:"label"},[t._v("现上课时间:")]),a("div",{staticClass:"text time_1"},[t._v(" "+t._s(t.detail.migrate_data?t.detail.migrate_data.day:"")+" / 第"+t._s(t.detail.migrate_data?t.detail.migrate_data.week:"--")+"周 / 星期"+t._s(t.detail.migrate_data?t.transformWeek(t.detail.migrate_data.week_index):"--")+" / "+t._s(t.detail.migrate_data.time?t.detail.migrate_data.time.name:"")+" ")])]):t._e()]):t._e(),a("div",{staticClass:"line"})]),a("div",[a("div",{staticClass:"form-title"},[a("span",[t._v("申请原因")])]),a("div",{staticClass:"item"},[a("div",{staticClass:"form"},[a("div",{staticClass:"label"},[t._v("申请理由:")]),a("div",{staticClass:"text",staticStyle:{color:"#ff8d1a"}},[t._v(" "+t._s(t.detail.body||"无")+" ")])])])])]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("确 定")])],1)])},i=[],l=a("d12b"),n=a("022c"),r={name:"TemplateClassdialog",data(){return{dialogVisible:!1,detail:""}},methods:{transformWeek:l["transformWeek"],async recordDetail(t){const{data:e}=await Object(n["recordDetail"])(t);this.detail=e},handleClose(){this.dialogVisible=!1},showEdit(t){this.recordDetail(t),this.dialogVisible=!0}}},o=r,c=(a("36ee"),a("0b56")),d=Object(c["a"])(o,s,i,!1,null,"506c518c",null);e["default"]=d.exports},f138:function(t,e,a){}}]);