1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["MonthAppeal"],{"2d23":function(t,e,a){},"38f0":function(t,e,a){"use strict";var n=a("5b7e"),r=a.n(n);r.a},"51c7":function(t,e,a){},"530a":function(t,e,a){"use strict";a.d(e,"e",function(){return s}),a.d(e,"d",function(){return c}),a.d(e,"b",function(){return u}),a.d(e,"i",function(){return l}),a.d(e,"j",function(){return d}),a.d(e,"c",function(){return f}),a.d(e,"h",function(){return h}),a.d(e,"f",function(){return p}),a.d(e,"k",function(){return v}),a.d(e,"g",function(){return m}),a.d(e,"a",function(){return g});var n=a("4328"),r=a.n(n),i=a("981f").default,o="/api-teacher",s=function(t){return i({url:o+"/courseScheduleTeacherSalary/findTeacherSettlementCourseSalarys",method:"get",params:t})},c=function(t){return i({url:o+"/courseScheduleTeacherSalary/findTeacherRewards",method:"get",params:t})},u=function(t){return i({url:o+"/courseScheduleTeacherSalary/confirmTeacherMonthSalary",method:"post",data:r.a.stringify(t)})},l=function(t){return i({url:o+"/teacherSalaryComplaints/add",method:"post",data:r.a.stringify(t)})},d=function(t){return i({url:o+"/teacherSalaryComplaints/get",method:"get",params:t})},f=function(t){return i({url:o+"/teacherSalaryComplaints/findByMonth",method:"post",data:r.a.stringify(t)})},h=function(t){return i({url:o+"/teacherSalaryComplaints/repealComplaints",method:"post",data:r.a.stringify(t)})},p=function(t){return i({url:o+"/courseScheduleTeacherSalary/findTeacherYearSalarys",method:"get",params:t})},v=function(t){return i({url:o+"/teacherSalaryComplaints/queryPage",method:"get",params:t})},m=function(t){return i({url:o+"/courseReview/getOnlineCourse",method:"get",params:t})},g=function(t){return i({url:o+"/courseReview/addHomeWork",method:"post",data:t})}},"5b7e":function(t,e,a){},"622a":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",{attrs:{backUrl:t.backUrl}},[a("template",{slot:"right"},[a("div",{on:{click:t.onAppealRecord}},[t._v("申诉记录")])])],2):t._e(),a("van-dropdown-menu",{attrs:{"active-color":"#01C1B5"}},[a("van-dropdown-item",{attrs:{options:t.option1},on:{change:t.getList},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}})],1),t.dataShow?a("div",[a("van-cell-group",t._l(t.dataList,function(e,n){return a("van-cell",{key:n,attrs:{"is-link":""},on:{click:function(a){return t.onSure(e)}},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n "+t._s(e.monthStr)+"\n "),2!=e.confirmStatus?a("van-tag",{attrs:{color:"#FF8282"}},[t._v("未确认")]):t._e(),2==e.confirmStatus?a("van-tag",[t._v("已确认")]):t._e()]},proxy:!0},{key:"default",fn:function(){return[t._v("\n 总计:"),a("span",{staticClass:"countMoney"},[t._v(t._s(e.totalActualSalary)+"元")])]},proxy:!0}],null,!0)})}),1),a("div",{staticClass:"allCount"},[t._v("\n 合计:"),a("span",{staticClass:"allMoney"},[t._v(t._s(t.totalSalary)),a("i",[t._v("元")])])])],1):a("m-empty",{key:"data",staticClass:"empty",attrs:{msg:"暂无数据"}})],1)},r=[],i=a("6e6e"),o=a("d678"),s=a("ff51"),c=a("530a"),u={name:"teacherList",components:{MHeader:i["a"],MEmpty:o["a"]},data:function(){return{headerStatus:!0,value1:(new Date).getFullYear(),option1:[{text:"2020年",value:2020},{text:"2021年",value:2021},{text:"2022年",value:2022}],dataShow:!0,dataList:[],totalSalary:0,backUrl:{callBack:function(){Object(s["b"])().android?DAYA.postMessage(JSON.stringify({api:"back"})):Object(s["b"])().iPhone&&window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"back"}))}}}},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),document.title="月度课酬列表",this.getList()},methods:{getList:function(){var t=this;this.$toast.loading({duration:0,forbidClick:!0,message:"加载中..."}),Object(c["f"])({year:this.value1}).then(function(e){var a=e.data;if(t.$toast.clear(),200==a.code){t.totalSalary=a.data.totalSalary;var n=new Date;n.setMonth(n.getMonth()-1);var r=n.getFullYear()+"-"+Object(s["h"])(n.getMonth()+1);a.data.monthSalarys.forEach(function(t){t.month==r?t.isNow=!0:t.isNow=!1;var e=new Date(t.month+"-01");t.monthStr=e.getMonth()+1+"月"}),t.dataList=a.data.monthSalarys.reverse(),t.dataList.length<=0?t.dataShow=!1:t.dataShow=!0}else t.$toast(a.msg)})},onSure:function(t){this.$router.push({path:"/remuneration",query:{month:t.month,isHide:1}})},onAppealRecord:function(){this.$router.push({path:"appealRecord"})}}},l=u,d=(a("b994"),a("2877")),f=Object(d["a"])(l,n,r,!1,null,"0a8273e7",null);e["default"]=f.exports},"6e6e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mheader",style:{height:"calc("+t.titleHeight+"px + "+t.navBarHeight+"px)"}},[a("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""],style:[t.headStyle]},[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",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),a("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},r=[],i=a("a34a"),o=a.n(i),s=a("ddf4");function c(t,e,a,n,r,i,o){try{var s=t[i](o),c=s.value}catch(u){return void a(u)}s.done?e(c):Promise.resolve(c).then(n,r)}function u(t){return function(){var e=this,a=arguments;return new Promise(function(n,r){var i=t.apply(e,a);function o(t){c(i,n,r,o,s,"next",t)}function s(t){c(i,n,r,o,s,"throw",t)}o(void 0)})}}var l={name:"mheader",props:{name:String,isNative:{type:Boolean,default:!0},isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},data:function(){return{navBarHeight:0,headStyle:{},titleHeight:44}},mounted:function(){this.isNative||(Object(s["b"])({api:"setBarStatus",content:{status:0}}),this.getNav(),this.isBack=!1)},methods:{getNav:function(){var t=u(o.a.mark(function t(){var e,a,n=this;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=sessionStorage.getItem("navHeight"),a=sessionStorage.getItem("titleHeight"),!e||!a){t.next=7;break}this.navBarHeight=e,this.headStyle={paddingTop:e+"px",height:a+"px",lineHeight:a+"px"},t.next=9;break;case 7:return t.next=9,Object(s["b"])({api:"getNavHeight"},function(t){var e=t.content,a={},r=e.dpi||2;if(e.navHeight){var i=e.navHeight/r;sessionStorage.setItem("navHeight",i),n.navBarHeight=i,a={paddingTop:i+"px"}}if(e.titleHeight){var o=e.titleHeight/r;sessionStorage.setItem("titleHeight",o),n.titleHeight=o,a.height=o+"px",a.lineHeight=o+"px"}n.headStyle=a});case 9:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),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)}},beforeDestroy:function(){this.isNative||(Object(s["b"])({api:"setBarStatus",content:{status:1}}),this.isBack=!0)}},d=l,f=(a("38f0"),a("2877")),h=Object(f["a"])(d,n,r,!1,null,"6a74717c",null);e["a"]=h.exports},b994:function(t,e,a){"use strict";var n=a("2d23"),r=a.n(n);r.a},c063:function(t,e,a){"use strict";var n=a("51c7"),r=a.n(n);r.a},d678:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mempty",class:t.full?"full":null},[a("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),a("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},r=[],i={name:"mempty",props:{icon:String,msg:String,full:Boolean}},o=i,s=(a("c063"),a("2877")),c=Object(s["a"])(o,n,r,!1,null,"45d1a48f",null);e["a"]=c.exports},ddf4:function(t,e,a){"use strict";a.d(e,"b",function(){return f}),a.d(e,"a",function(){return h});var n=a("ff51");function r(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,n)}return a}function i(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?r(Object(a),!0).forEach(function(e){o(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function o(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var c=function(){},u={},l=Object(n["b"])();l.isApp&&window.addEventListener("message",function(t){try{var e=t.data?"object"===s(t.data)?t.data:JSON.parse(t.data):{},a=e.content.uuid||e.uuid;try{e.content&&(e.content=JSON.parse(e.content))}catch(v){}if(!a){var n=Object.keys(u).filter(function(t){return 0===t.indexOf(e.api)}),r=!0,i=!1,o=void 0;try{for(var l,d=n[Symbol.iterator]();!(r=(l=d.next()).done);r=!0){var f=l.value,h=u[f]||c;h(e)}}catch(m){i=!0,o=m}finally{try{r||null==d.return||d.return()}finally{if(i)throw o}}return}var p=u[e.content.uuid||e.uuid||e.api+e.uuid]||c;p(e)}catch(v){console.error("通信消息解析错误",v)}});var d=window.DAYA||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DAYA,f=function(t,e){if(l.isApp){var a=Object(n["g"])();u[a]=e||c,t.content=t.content?i({},t.content,{uuid:a}):{uuid:a},d.postMessage(JSON.stringify(t))}},h=function(t,e){if(l.isApp){var a=t+Object(n["g"])();u[a]=e||c}}}}]);
|