1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppealDetail"],{"0b72":function(t,e,a){"use strict";a("167b")},"167b":function(t,e,a){},"530a":function(t,e,a){"use strict";a.d(e,"e",(function(){return s})),a.d(e,"d",(function(){return u})),a.d(e,"b",(function(){return c})),a.d(e,"i",(function(){return l})),a.d(e,"j",(function(){return d})),a.d(e,"c",(function(){return h})),a.d(e,"h",(function(){return f})),a.d(e,"f",(function(){return m})),a.d(e,"k",(function(){return p})),a.d(e,"g",(function(){return v})),a.d(e,"a",(function(){return y}));var r=a("4328"),n=a.n(r),o=a("981f").default,i="/api-teacher",s=function(t){return o({url:i+"/courseScheduleTeacherSalary/findTeacherSettlementCourseSalarys",method:"get",params:t})},u=function(t){return o({url:i+"/courseScheduleTeacherSalary/findTeacherRewards",method:"get",params:t})},c=function(t){return o({url:i+"/courseScheduleTeacherSalary/confirmTeacherMonthSalary",method:"post",data:n.a.stringify(t)})},l=function(t){return o({url:i+"/teacherSalaryComplaints/add",method:"post",data:n.a.stringify(t)})},d=function(t){return o({url:i+"/teacherSalaryComplaints/get",method:"get",params:t})},h=function(t){return o({url:i+"/teacherSalaryComplaints/findByMonth",method:"post",data:n.a.stringify(t)})},f=function(t){return o({url:i+"/teacherSalaryComplaints/repealComplaints",method:"post",data:n.a.stringify(t)})},m=function(t){return o({url:i+"/courseScheduleTeacherSalary/findTeacherYearSalarys",method:"get",params:t})},p=function(t){return o({url:i+"/teacherSalaryComplaints/queryPage",method:"get",params:t})},v=function(t){return o({url:i+"/courseReview/getOnlineCourse",method:"get",params:t})},y=function(t){return o({url:i+"/courseReview/addHomeWork",method:"post",data:t})}},"6e6e":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mheader"},[a("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[a("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),a("div",{staticClass:"m-nav-bar__title"},[t._t("default",(function(){return[t._v(t._s(t.name?t.name:t.$route.meta.descrition))]}))],2),a("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},n=[],o={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},i=o,s=(a("70bb"),a("2877")),u=Object(s["a"])(i,r,n,!1,null,"10a70108",null);e["a"]=u.exports},"70bb":function(t,e,a){"use strict";a("c905")},c905:function(t,e,a){},e32c:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wrap"},[t.headerStatus?a("m-header"):t._e(),a("van-field",{attrs:{rows:"15",disabled:1==t.haveComplaints,type:"textarea",placeholder:"请提交课程日期,时间,课程名称及情况说明"},model:{value:t.reason,callback:function(e){t.reason=e},expression:"reason"}}),a("div",{staticClass:"button-group"},[1==t.haveComplaints?a("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:t.onCancel}},[t._v("撤销")]):a("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:t.onSubmit}},[t._v("提交")])],1)],1)},n=[],o=a("6e6e"),i=a("ff51"),s=a("530a"),u={name:"teacherList",components:{MHeader:o["a"]},data:function(){var t=this.$route.query;return{headerStatus:!0,reason:null,haveComplaints:t.haveComplaints,appealDateStr:t.appealDateStr,isClick:!0}},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),document.title="申诉详情",t.history?this.headerStatus=!0:(Object(i["b"])().android||Object(i["b"])().iPhone)&&(this.headerStatus=!1),1==this.haveComplaints&&this.getList()},methods:{getList:function(){var t=this;Object(s["c"])({salarySettlementMonth:this.appealDateStr}).then((function(e){var a=e.data;200==a.code?(t.reason=a.data.reason,t.appealId=a.data.id):t.$toast(a.msg)}))},onSubmit:function(){var t=this;if(this.reason.trim()){var e={reason:this.reason,salarySettlementMonth:this.appealDateStr};this.isClick&&(this.isClick=!1,Object(s["i"])(e).then((function(e){var a=e.data;t.isClick=!0,200==a.code?(t.$toast("申诉提交成功"),t.$router.push("/remuneration")):t.$toast(a.msg)})))}else this.$toast("请输入申诉内容")},onCancel:function(){var t=this;this.$dialog.confirm({title:"撤销申诉",message:"您是否确认撤销本次申诉?"}).then((function(){Object(s["h"])({salarySettlementMonth:t.appealDateStr}).then((function(e){var a=e.data;200==a.code?(t.$toast("撤销申诉成功"),t.$route.query.record?t.$router.push("/appealRecord"):t.$router.push("/remuneration")):t.$toast(a.msg)}))})).catch((function(){}))}}},c=u,l=(a("0b72"),a("2877")),d=Object(l["a"])(c,r,n,!1,null,"e580f426",null);e["default"]=d.exports}}]);
|