chunk-d7f12796.986f1bfe.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d7f12796"],{"0288":function(e,t,n){},"09f4":function(e,t,n){"use strict";n.d(t,"a",function(){return s}),Math.easeInOutQuad=function(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var s=i(),o=e-s,l=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=l;var i=Math.easeInOutQuad(u,s,o,t);a(i),u<t?r(e):n&&"function"===typeof n&&n()};c()}},"6a3d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[e._m(0),e._v(" "),n("div",{staticClass:"m-core"},[n("el-form",{attrs:{inline:!0,model:e.searchForm}},[n("el-form-item",[n("el-input",{attrs:{placeholder:"老师名称"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),n("el-form-item",[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.organList,function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),n("el-form-item",[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:"申诉状态"},model:{value:e.searchForm.complaintsStatus,callback:function(t){e.$set(e.searchForm,"complaintsStatus","string"===typeof t?t.trim():t)},expression:"searchForm.complaintsStatus"}},[n("el-option",{attrs:{label:"已拒绝",value:0}}),e._v(" "),n("el-option",{attrs:{label:"已通过",value:1}}),e._v(" "),n("el-option",{attrs:{label:"待处理",value:2}}),e._v(" "),n("el-option",{attrs:{label:"已撤销",value:3}})],1)],1),e._v(" "),n("el-form-item",[n("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.timer,callback:function(t){e.$set(e.searchForm,"timer","string"===typeof t?t.trim():t)},expression:"searchForm.timer"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"courseScheduleName",label:"课程名称"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",width:"180",prop:"courseScheduleTime",label:"课程时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("p",[e._v(e._s(t.row.courseScheduleTime)+" "+e._s(e._f("timerForMinFormat")(t.row.courseScheduleStartTime))+"-"+e._s(e._f("timerForMinFormat")(t.row.courseScheduleEndTime)))])])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"status",label:"签到状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("p",[e._v(e._s(e._f("attendanceType")(t.row.signInStatus)))])])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"status",label:"签退状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("p",[e._v(e._s(e._f("attendanceOutType")(t.row.signOutStatus)))])])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"老师名称"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e._f("complaintsStatusEnum")(t.row.complaintsStatusEnum))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"operatorName",label:"申诉处理者"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e.permission("teacherAttendance/operation")?n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.lookDetail(t.row)}}},[e._v("操作")]):e._e()],1)]}}])})],1),e._v(" "),n("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),n("el-dialog",{attrs:{title:"课时申述",visible:e.dialogVisible,width:"400px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("div",[n("div",{staticClass:"titleP"},[n("p",[e._v("签到时间:"+e._s(e.visibleForm.signInTime))]),e._v(" "),n("p",[e._v("签退时间:"+e._s(e.visibleForm.signOutTime))])]),e._v(" "),n("el-form",{ref:"visibleForm",staticClass:"visibleForm",attrs:{model:e.visibleForm}},[n("el-form-item",{attrs:{label:"申诉内容",rules:[{required:!0,message:"请填写申诉内容",trigger:"blur"}],prop:"complaintsContent"}},[n("el-input",{attrs:{type:"textarea",rows:5,disabled:"2"!=e.visibleForm.complaintsStatusEnum},model:{value:e.visibleForm.complaintsContent,callback:function(t){e.$set(e.visibleForm,"complaintsContent","string"===typeof t?t.trim():t)},expression:"visibleForm.complaintsContent"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"处理意见",rules:[{required:!0,message:"请填写处理意见",trigger:"blur"}],prop:"disposeContent"}},[n("el-input",{attrs:{type:"textarea",rows:5,disabled:"2"!=e.visibleForm.complaintsStatusEnum},model:{value:e.visibleForm.disposeContent,callback:function(t){e.$set(e.visibleForm,"disposeContent","string"===typeof t?t.trim():t)},expression:"visibleForm.disposeContent"}})],1),e._v(" "),"2"==e.visibleForm.complaintsStatusEnum?n("el-form-item",{attrs:{label:"请选择需要补正的状态"}},[n("br"),e._v(" "),n("el-checkbox",{model:{value:e.visibleForm.reSignInStatus,callback:function(t){e.$set(e.visibleForm,"reSignInStatus",t)},expression:"visibleForm.reSignInStatus"}},[e._v("签到状态")]),e._v(" "),n("el-checkbox",{model:{value:e.visibleForm.reSignOutStatus,callback:function(t){e.$set(e.visibleForm,"reSignOutStatus",t)},expression:"visibleForm.reSignOutStatus"}},[e._v("签退状态")])],1):e._e()],1)],1),e._v(" "),"2"==e.visibleForm.complaintsStatusEnum?n("div",{attrs:{slot:"footer"},slot:"footer"},[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"teacherAttendance/rejectTeacherAttendanceComplaints",expression:"'teacherAttendance/rejectTeacherAttendanceComplaints'"}],on:{click:function(t){return e.subreset("DENIED")}}},[e._v("拒绝")]),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"teacherAttendance/agreeTeacherAttendanceComplaints",expression:"'teacherAttendance/agreeTeacherAttendanceComplaints'"}],attrs:{type:"primary"},on:{click:function(t){return e.subreset("AGREED")}}},[e._v("同意")])],1):e._e()])],1)},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("课时申诉\n ")])}],i=(n("386d"),n("bc3a"),n("5f87"),n("333d")),s=(n("3908"),n("1cc7")),o=n("ec8a"),l=n("d8fc"),u={components:{pagination:i["a"]},data:function(){return{searchForm:{search:null,organId:null,complaintsStatus:null,timer:[]},teacherList:[],tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},dialogVisible:!1,visibleForm:{complaintsContent:null,complaintsStatusEnum:null,disposeContent:null,signInStatus:null,signOutStatus:null,teacherAttendanceId:null,reSignInStatus:null,reSignOutStatus:null}}},created:function(){},mounted:function(){var e=this;Object(s["V"])().then(function(t){200==t.code&&(e.organList=t.data)})},activated:function(){this.init()},methods:{init:function(){this.getList()},permission:function(e){return Object(o["a"])(e)},getList:function(){var e=this,t={};Object.assign(t,this.searchForm),t.timer&&t.timer.length>0&&(t.courseScheduleStartDate=t.timer[0],t.courseScheduleEndDate=t.timer[1]),t.rows=this.rules.limit,t.page=this.rules.page,delete t.timer,Object(l["n"])(t).then(function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows)})},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,organId:null,complaintsStatus:null,timer:[]},this.search()},subreset:function(e){var t=this;"AGREED"==e?this.$refs["visibleForm"].validate(function(e){if(e){var n={};if(!t.visibleForm.reSignInStatus&&!t.visibleForm.reSignOutStatus)return void t.$message.error("请修正签到状态或签退状态");t.visibleForm.reSignInStatus&&(n.signInStatus=1),t.visibleForm.reSignOutStatus&&(n.signOutStatus=1),n.content=t.visibleForm.disposeContent,n.teacherAttendanceId=t.visibleForm.teacherAttendanceId,Object(l["a"])(n).then(function(e){200==e.code&&(t.dialogVisible=!1,t.$message.success("同意申诉成功"),t.getList())})}}):this.$refs["visibleForm"].validate(function(e){if(e){var n={};n.content=t.visibleForm.disposeContent,n.teacherAttendanceId=t.visibleForm.teacherAttendanceId,Object(l["p"])(n).then(function(e){200==e.code&&(t.dialogVisible=!1,t.$message.success("拒绝申诉成功"),t.getList())})}})},lookDetail:function(e){this.visibleForm={complaintsContent:e.complaintsContent,complaintsStatusEnum:e.complaintsStatusEnum,disposeContent:e.disposeContent,signInStatus:e.signInStatus,signOutStatus:e.signOutStatus,signInTime:e.signInTime,signOutTime:e.signOutTime,teacherAttendanceId:e.teacherAttendanceId,reSignInStatus:null,reSignOutStatus:null},this.dialogVisible=!0}},watch:{dialogVisible:function(e){e||(this.visibleForm={complaintsContent:null,complaintsStatusEnum:null,disposeContent:null,signInStatus:null,signOutStatus:null,teacherAttendanceId:null,reSignInStatus:null,reSignOutStatus:null})}}},c=u,d=(n("e9f0"),n("2877")),m=Object(d["a"])(c,r,a,!1,null,"1a050ada",null);t["default"]=m.exports},d8fc:function(e,t,n){"use strict";n.d(t,"l",function(){return o}),n.d(t,"r",function(){return l}),n.d(t,"q",function(){return u}),n.d(t,"m",function(){return c}),n.d(t,"f",function(){return d}),n.d(t,"k",function(){return m}),n.d(t,"b",function(){return p}),n.d(t,"i",function(){return f}),n.d(t,"o",function(){return b}),n.d(t,"h",function(){return h}),n.d(t,"c",function(){return v}),n.d(t,"v",function(){return g}),n.d(t,"g",function(){return S}),n.d(t,"j",function(){return y}),n.d(t,"d",function(){return _}),n.d(t,"u",function(){return F}),n.d(t,"s",function(){return O}),n.d(t,"t",function(){return C}),n.d(t,"e",function(){return T}),n.d(t,"n",function(){return k}),n.d(t,"a",function(){return I}),n.d(t,"p",function(){return w});var r=n("b775"),a=n("4328"),i=n.n(a),s="/api-web";function o(e){return Object(r["a"])({url:s+"/sysMessage/queryCountOfUnread",method:"get",params:e})}function l(e){return Object(r["a"])({url:s+"/sysMessage/list",method:"get",params:e})}function u(e){return Object(r["a"])({url:s+"/sysMessage/setRead",method:"post",data:i.a.stringify(e)})}function c(e){return Object(r["a"])({url:s+"/courseSchedule/queryCourseScheduleComplaintsDetail",method:"get",params:e})}function d(e){return Object(r["a"])({url:s+"/courseSchedule/courseScheduleCommplaintAudit",method:"post",data:i.a.stringify(e)})}function m(e){return Object(r["a"])({url:s+"/vipGroupManage/queryApplyRefundDetail",method:"get",params:e})}function p(e){return Object(r["a"])({url:s+"/vipGroupManage/applyRefundAudit",method:"POST",data:i.a.stringify(e)})}function f(e){return Object(r["a"])({url:s+"/musicGroupQuit/query",method:"get",params:e})}function b(e){return Object(r["a"])({url:s+"/musicGroupQuit/quitMusicGroup",method:"POST",data:i.a.stringify(e)})}function h(e){return Object(r["a"])({url:s+"/teacherLeaveRecord/queryDetail",method:"get",params:e})}function v(e){return Object(r["a"])({url:s+"/teacherLeaveRecord/approve",method:"POST",data:i.a.stringify(e)})}function g(e){return Object(r["a"])({url:s+"/vipGroupManage/vipApplyAudit",method:"POST",data:i.a.stringify(e)})}function S(e){return Object(r["a"])({url:s+"/courseScheduleTeacherSalary/findIsSettlementCourseSalarys",method:"GET",params:e})}function y(e){return Object(r["a"])({url:s+"/courseScheduleTeacherSalary/openSalaryConfirm",method:"GET",params:e})}function _(e){return Object(r["a"])({url:s+"/courseScheduleTeacherSalary/closeSalaryConfirm",method:"GET",params:e})}function F(e){return Object(r["a"])({url:s+"/teacherSalaryModifyLog/add",method:"POST",data:i.a.stringify(e)})}function O(e){return Object(r["a"])({url:s+"/teacherSalaryComplaints/queryPage",method:"GET",params:e})}function C(e){return Object(r["a"])({url:s+"/teacherSalaryComplaints/get",method:"GET",params:e})}function T(e){return Object(r["a"])({url:s+"/teacherSalaryComplaints/complaintsDispose",method:"post",data:i.a.stringify(e)})}function k(e){return Object(r["a"])({url:s+"/teacherAttendance/queryTeacherAttendanceComplaints",method:"post",data:i.a.stringify(e)})}function I(e){return Object(r["a"])({url:s+"/teacherAttendance/agreeTeacherAttendanceComplaints",method:"post",data:i.a.stringify(e)})}function w(e){return Object(r["a"])({url:s+"/teacherAttendance/rejectTeacherAttendanceComplaints",method:"post",data:i.a.stringify(e)})}},e9f0:function(e,t,n){"use strict";var r=n("0288"),a=n.n(r);a.a},ec8a:function(e,t,n){"use strict";n.d(t,"a",function(){return r});n("6762"),n("2fdb"),n("28a5");function r(e,t){var n=window.localStorage.getItem("permission");return n=n.split(","),t=t||null,!(!n.includes(e)||t)||!(!n.includes(e)||!n.includes(t))}}}]);