AppealDetail.b57c3f19.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppealDetail"],{4127:function(e,t,r){"use strict";var n=r("d2334"),a=r("b313"),o=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,s=Array.prototype.push,l=function(e,t){s.apply(e,c(t)?t:[t])},u=Date.prototype.toISOString,f=a["default"],d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:a.formatters[f],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},h=function e(t,r,a,o,i,s,u,f,h,m,y,b,g){var v=t;if("function"===typeof u?v=u(r,v):v instanceof Date?v=m(v):"comma"===a&&c(v)&&(v=v.join(",")),null===v){if(o)return s&&!b?s(r,d.encoder,g):r;v=""}if(p(v)||n.isBuffer(v)){if(s){var S=b?r:s(r,d.encoder,g);return[y(S)+"="+y(s(v,d.encoder,g))]}return[y(r)+"="+y(String(v))]}var j,O=[];if("undefined"===typeof v)return O;if(c(u))j=u;else{var w=Object.keys(v);j=f?w.sort(f):w}for(var C=0;C<j.length;++C){var k=j[C];i&&null===v[k]||(c(v)?l(O,e(v[k],"function"===typeof a?a(r,k):r,a,o,i,s,u,f,h,m,y,b,g)):l(O,e(v[k],r+(h?"."+k:"["+k+"]"),a,o,i,s,u,f,h,m,y,b,g)))}return O},m=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=a["default"];if("undefined"!==typeof e.format){if(!o.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=a.formatters[r],i=d.filter;return("function"===typeof e.filter||c(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?d.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:d.encode,encoder:"function"===typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:i,formatter:n,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r,n,a=e,o=m(t);"function"===typeof o.filter?(n=o.filter,a=n("",a)):c(o.filter)&&(n=o.filter,r=n);var s,u=[];if("object"!==typeof a||null===a)return"";s=t&&t.arrayFormat in i?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=i[s];r||(r=Object.keys(a)),o.sort&&r.sort(o.sort);for(var d=0;d<r.length;++d){var p=r[d];o.skipNulls&&null===a[p]||l(u,h(a[p],p,f,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset))}var y=u.join(o.delimiter),b=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),y.length>0?b+y:""}},4328:function(e,t,r){"use strict";var n=r("4127"),a=r("9e6a"),o=r("b313");e.exports={formats:o,parse:a,stringify:n}},"530a":function(e,t,r){"use strict";r.d(t,"e",function(){return c}),r.d(t,"d",function(){return s}),r.d(t,"b",function(){return l}),r.d(t,"i",function(){return u}),r.d(t,"j",function(){return f}),r.d(t,"c",function(){return d}),r.d(t,"h",function(){return p}),r.d(t,"f",function(){return h}),r.d(t,"k",function(){return m}),r.d(t,"g",function(){return y}),r.d(t,"a",function(){return b});var n=r("4328"),a=r.n(n),o=r("981f").default,i="/api-teacher",c=function(e){return o({url:i+"/courseScheduleTeacherSalary/findTeacherSettlementCourseSalarys",method:"get",params:e})},s=function(e){return o({url:i+"/courseScheduleTeacherSalary/findTeacherRewards",method:"get",params:e})},l=function(e){return o({url:i+"/courseScheduleTeacherSalary/confirmTeacherMonthSalary",method:"post",data:a.a.stringify(e)})},u=function(e){return o({url:i+"/teacherSalaryComplaints/add",method:"post",data:a.a.stringify(e)})},f=function(e){return o({url:i+"/teacherSalaryComplaints/get",method:"get",params:e})},d=function(e){return o({url:i+"/teacherSalaryComplaints/findByMonth",method:"post",data:a.a.stringify(e)})},p=function(e){return o({url:i+"/teacherSalaryComplaints/repealComplaints",method:"post",data:a.a.stringify(e)})},h=function(e){return o({url:i+"/courseScheduleTeacherSalary/findTeacherYearSalarys",method:"get",params:e})},m=function(e){return o({url:i+"/teacherSalaryComplaints/queryPage",method:"get",params:e})},y=function(e){return o({url:i+"/courseReview/getOnlineCourse",method:"get",params:e})},b=function(e){return o({url:i+"/courseReview/addHomeWork",method:"post",data:e})}},"6e6e":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"mheader"},[r("header",{staticClass:"m-nav-header",class:[e.isFixed?"fixed":""]},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:e.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[e._t("default",[e._v(e._s(e.name?e.name:this.$route.meta.descrition))])],2),r("div",{staticClass:"m-nav-bar__right"},[e._t("right")],2)])])},a=[],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 e=this.backUrl;"function"==typeof e.callBack?e.callBack():e.path?this.$router.push({path:e.path,query:e.params}):history.go(-1)}}},i=o,c=(r("d133"),r("2877")),s=Object(c["a"])(i,n,a,!1,null,"0e835508",null);t["a"]=s.exports},"981f":function(e,t,r){"use strict";r.r(t);var n=r("bc3a"),a=r.n(n),o=r("ff51"),i={},c=a.a.create(i);c.interceptors.request.use(function(e){if(Object(o["b"])().android||Object(o["b"])().iPhone){var t=decodeURI(localStorage.getItem("Authorization"));t&&(e.headers["Authorization"]=t)}else{var r=decodeURI(localStorage.getItem("userInfo"));r&&(e.headers["Authorization"]=r)}return e},function(e){return Promise.reject(e)}),c.interceptors.response.use(function(e){return 403==e.data.code&&(window.localStorage.removeItem("userInfo"),window.localStorage.removeItem("Authorization"),Object(o["b"])().android?DAYA.postMessage(JSON.stringify({api:"login"})):Object(o["b"])().iPhone&&window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"login"}))),e},function(e){return Promise.reject(e)}),t["default"]=c},"9c5e":function(e,t,r){},"9e6a":function(e,t,r){"use strict";var n=r("d2334"),a=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},c="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",l=function(e,t){var r,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,f),p=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r<d.length;++r)0===d[r].indexOf("utf8=")&&(d[r]===s?h="utf-8":d[r]===c&&(h="iso-8859-1"),p=r,r=d.length);for(r=0;r<d.length;++r)if(r!==p){var m,y,b=d[r],g=b.indexOf("]="),v=-1===g?b.indexOf("="):g+1;-1===v?(m=t.decoder(b,o.decoder,h),y=t.strictNullHandling?null:""):(m=t.decoder(b.slice(0,v),o.decoder,h),y=t.decoder(b.slice(v+1),o.decoder,h)),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=i(y)),y&&t.comma&&y.indexOf(",")>-1&&(y=y.split(",")),a.call(l,m)?l[m]=n.combine(l[m],y):l[m]=y}return l},u=function(e,t,r){for(var n=t,a=e.length-1;a>=0;--a){var o,i=e[a];if("[]"===i&&r.parseArrays)o=[].concat(n);else{o=r.plainObjects?Object.create(null):{};var c="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,s=parseInt(c,10);r.parseArrays||""!==c?!isNaN(s)&&i!==c&&String(s)===c&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(o=[],o[s]=n):o[c]=n:o={0:n}}n=o}return n},f=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,c=r.depth>0&&o.exec(n),s=c?n.slice(0,c.index):n,l=[];if(s){if(!r.plainObjects&&a.call(Object.prototype,s)&&!r.allowPrototypes)return;l.push(s)}var f=0;while(r.depth>0&&null!==(c=i.exec(n))&&f<r.depth){if(f+=1,!r.plainObjects&&a.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(c[1])}return c&&l.push("["+n.slice(c.index)+"]"),u(l,t,r)}},d=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?o.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:o.comma,decoder:"function"===typeof e.decoder?e.decoder:o.decoder,delimiter:"string"===typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}};e.exports=function(e,t){var r=d(t);if(""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var a="string"===typeof e?l(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(a),c=0;c<i.length;++c){var s=i[c],u=f(s,a[s],r);o=n.merge(o,u,r)}return n.compact(o)}},b313:function(e,t,r){"use strict";var n=String.prototype.replace,a=/%20/g,o=r("d2334"),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return String(e)}}},i)},b8f4:function(e,t,r){"use strict";var n=r("9c5e"),a=r.n(n);a.a},bb2c:function(e,t,r){},d133:function(e,t,r){"use strict";var n=r("bb2c"),a=r.n(n);a.a},d2334:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,a=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e){while(e.length>1){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],o=0;o<r.length;++o)"undefined"!==typeof r[o]&&n.push(r[o]);t.obj[t.prop]=n}}},c=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!==typeof e[n]&&(r[n]=e[n]);return r},s=function e(t,r,o){if(!r)return t;if("object"!==typeof r){if(a(t))t.push(r);else{if(!t||"object"!==typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(r);var i=t;return a(t)&&!a(r)&&(i=c(t,o)),a(t)&&a(r)?(r.forEach(function(r,a){if(n.call(t,a)){var i=t[a];i&&"object"===typeof i&&r&&"object"===typeof r?t[a]=e(i,r,o):t.push(r)}else t[a]=r}),t):Object.keys(r).reduce(function(t,a){var i=r[a];return n.call(t,a)?t[a]=e(t[a],i,o):t[a]=i,t},i)},l=function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},u=function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(a){return n}},f=function(e,t,r){if(0===e.length)return e;var n=e;if("symbol"===typeof e?n=Symbol.prototype.toString.call(e):"string"!==typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var a="",i=0;i<n.length;++i){var c=n.charCodeAt(i);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?a+=n.charAt(i):c<128?a+=o[c]:c<2048?a+=o[192|c>>6]+o[128|63&c]:c<55296||c>=57344?a+=o[224|c>>12]+o[128|c>>6&63]+o[128|63&c]:(i+=1,c=65536+((1023&c)<<10|1023&n.charCodeAt(i)),a+=o[240|c>>18]+o[128|c>>12&63]+o[128|c>>6&63]+o[128|63&c])}return a},d=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var a=t[n],o=a.obj[a.prop],c=Object.keys(o),s=0;s<c.length;++s){var l=c[s],u=o[l];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:o,prop:l}),r.push(u))}return i(t),e},p=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},h=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},m=function(e,t){return[].concat(e,t)};e.exports={arrayToObject:c,assign:l,combine:m,compact:d,decode:u,encode:f,isBuffer:h,isRegExp:p,merge:s}},e32c:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"wrap"},[e.headerStatus?r("m-header"):e._e(),r("van-field",{attrs:{rows:"15",disabled:1==e.haveComplaints,type:"textarea",placeholder:"请提交课程日期,时间,课程名称及情况说明"},model:{value:e.reason,callback:function(t){e.reason=t},expression:"reason"}}),r("div",{staticClass:"button-group"},[1==e.haveComplaints?r("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:e.onCancel}},[e._v("撤销")]):r("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:e.onSubmit}},[e._v("提交")])],1)],1)},a=[],o=r("6e6e"),i=r("ff51"),c=r("530a"),s={name:"teacherList",components:{MHeader:o["a"]},data:function(){var e=this.$route.query;return{headerStatus:!0,reason:null,haveComplaints:e.haveComplaints,appealDateStr:e.appealDateStr,isClick:!0}},mounted:function(){var e=this.$route.query;e.Authorization&&(localStorage.setItem("Authorization",decodeURI(e.Authorization)),localStorage.setItem("userInfo",decodeURI(e.Authorization))),document.title="申诉详情",e.history?this.headerStatus=!0:(Object(i["b"])().android||Object(i["b"])().iPhone)&&(this.headerStatus=!1),1==this.haveComplaints&&this.getList()},methods:{getList:function(){var e=this;Object(c["c"])({salarySettlementMonth:this.appealDateStr}).then(function(t){var r=t.data;200==r.code?(e.reason=r.data.reason,e.appealId=r.data.id):e.$toast(r.msg)})},onSubmit:function(){var e=this;if(this.reason.trim()){var t={reason:this.reason,salarySettlementMonth:this.appealDateStr};this.isClick&&(this.isClick=!1,Object(c["i"])(t).then(function(t){var r=t.data;e.isClick=!0,200==r.code?(e.$toast("申诉提交成功"),e.$router.push("/remuneration")):e.$toast(r.msg)}))}else this.$toast("请输入申诉内容")},onCancel:function(){var e=this;this.$dialog.confirm({title:"撤销申诉",message:"您是否确认撤销本次申诉?"}).then(function(){Object(c["h"])({salarySettlementMonth:e.appealDateStr}).then(function(t){var r=t.data;200==r.code?(e.$toast("撤销申诉成功"),e.$route.query.record?e.$router.push("/appealRecord"):e.$router.push("/remuneration")):e.$toast(r.msg)})}).catch(function(){})}}},l=s,u=(r("b8f4"),r("2877")),f=Object(u["a"])(l,n,a,!1,null,"6ef55293",null);t["default"]=f.exports}}]);