AppealDetail.2e0141ed.js 2.5 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppealDetail"],{"9c5e":function(t,e,a){},b8f4:function(t,e,a){"use strict";var n=a("9c5e"),o=a.n(n);o.a},e32c:function(t,e,a){"use strict";a.r(e);var n=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)},o=[],r=a("6e6e"),s=a("ff51"),i=a("530a"),c={name:"teacherList",components:{MHeader:r["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(s["b"])().android||Object(s["b"])().iPhone)&&(this.headerStatus=!1),1==this.haveComplaints&&this.getList()},methods:{getList:function(){var t=this;Object(i["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(i["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(i["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(){})}}},u=c,l=(a("b8f4"),a("2877")),h=Object(l["a"])(u,n,o,!1,null,"6ef55293",null);e["default"]=h.exports}}]);