PeriodRecord.04e191d9.js 6.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PeriodRecord"],{"19a3":function(t,e,a){"use strict";var n=a("55b2"),r=a.n(n);r.a},3354:function(t,e,a){},5115:function(t,e,a){"use strict";var n=a("3354"),r=a.n(n);r.a},"55b2":function(t,e,a){},"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"},[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",[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=[],s={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)}}},u=s,i=(a("5115"),a("2877")),o=Object(i["a"])(u,n,r,!1,null,"61d0e2e4",null);e["a"]=o.exports},"964b":function(t,e,a){},"9e0f":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:"periodExchange"},[t.headerStatus?a("m-header"):t._e(),t.dataShow?a("van-list",{key:"data",attrs:{finished:t.finished,"finished-text":"没有更多数据了"},on:{load:t.getTeacherCourse},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[a("van-cell-group",t._l(t.dataList,function(e,n){return a("van-cell",{key:n,attrs:{center:!0}},[a("template",{slot:"title"},[a("p",{staticClass:"exchangeText"},[t._v(t._s(e.name))])]),a("template",{slot:"label"},[a("p",{staticClass:"info"},[t._v(t._s(t._f("periodRecordStatus")(e.status)))]),a("p",{staticClass:"info"},[t._v(t._s(e.createTime))])]),a("template",{slot:"default"},[a("p",{staticClass:"exchangeText enum"},[t._v("占用"+t._s(t._f("calcMinute")(e.freezeMinutes)))]),a("p",{staticClass:"info"},[t._v("已消耗"+t._s(t._f("calcMinute")(e.consumeMinutes)))])])],2)}),1)],1):a("m-empty",{key:"data",staticClass:"empty",attrs:{msg:"暂无课时使用记录"}})],1)},r=[],s=a("6e6e"),u=a("d678"),i=a("ff51"),o=a("b562"),c={name:"courseApply",components:{MHeader:s["a"],MEmpty:u["a"]},data:function(){return{headerStatus:!0,loading:!1,finished:!1,params:{page:1,rows:20},dataShow:!0,dataList:[]}},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),document.title="课时使用记录",(Object(i["b"])().android||Object(i["b"])().iPhone)&&(this.headerStatus=!1)},methods:{getTeacherCourse:function(){var t=this,e=this.params;Object(o["p"])(e).then(function(a){var n=a.data;t.loading=!1,200==n.code?(e.page=n.data.pageNo,t.dataList=t.dataList.concat(n.data.rows),e.page>=n.data.totalPage&&(t.finished=!0),t.params.page++):t.finished=!0,t.dataList.length<=0&&(t.dataShow=!1)})}}},d=c,l=(a("c04c"),a("2877")),f=Object(l["a"])(d,n,r,!1,null,"1b97fe9e",null);e["default"]=f.exports},b562:function(t,e,a){"use strict";a.d(e,"s",function(){return i}),a.d(e,"m",function(){return o}),a.d(e,"n",function(){return c}),a.d(e,"r",function(){return d}),a.d(e,"e",function(){return f}),a.d(e,"b",function(){return p}),a.d(e,"c",function(){return m}),a.d(e,"o",function(){return h}),a.d(e,"j",function(){return g}),a.d(e,"g",function(){return C}),a.d(e,"h",function(){return w}),a.d(e,"p",function(){return v}),a.d(e,"q",function(){return y}),a.d(e,"l",function(){return k}),a.d(e,"d",function(){return _}),a.d(e,"i",function(){return b}),a.d(e,"f",function(){return S}),a.d(e,"a",function(){return x}),a.d(e,"k",function(){return l});var n=a("4328"),r=a.n(n),s=a("981f").default,u="/api-teacher",i=function(t){return s({url:"/api-auth/usernameLogin",method:"post",data:r.a.stringify(t)})},o=function(t){return s({url:"/api-student/code/sendSms",method:"post",data:r.a.stringify(t)})},c=function(t){return s({url:"/api-auth/smsLogin",method:"post",data:r.a.stringify(t)})},d=function(t){return s({url:"/api-auth/user/setPassword",method:"post",data:r.a.stringify(t)})},l=function(t){return s({url:"/api-auth/user/noAuth/queryUserByPhone",method:"get",params:t})},f=function(t){return s({url:"/api-student/courseGroup/getGroupDetail",method:"get",params:t})},p=function(t){return s({url:"/api-student/courseGroup/buyCourseGroup",method:"post",data:r.a.stringify(t)})},m=function(t){return s({url:u+"/courseGroup/createCourseGroup",method:"post",data:t})},h=function(t){return s({url:u+"/sysTenantAccount/get",method:"get",params:t})},g=function(t){return s({url:u+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:t})},v=function(t){return s({url:u+"/teacherCourseSchedule/teacherCourseMinutes",method:"get",params:t})},y=function(t){return s({url:u+"/tenantEntryActivities/queryPage",method:"get",params:t})},_=function(t){return s({url:u+"/tenantPaymentOrder/createOrder",method:"post",data:r.a.stringify(t)})},b=function(t){return s({url:u+"/teacherOrder/queryByOrderNo",method:"get",params:t})},C=function(t){return s({url:"/api-cms/helpCenterCatalog/list",method:"get",params:t})},w=function(t){return s({url:"/api-cms/helpCenterContent/list",method:"get",params:t})},k=function(t){return s({url:"/api-auth/queryUserInfo",method:"get",params:t})},S=function(t){return s({url:u+"/courseReview/getStuAndTeaReview",method:"get",params:t})},x=function(t){return s({url:u+"/courseReview/batchAdd",method:"post",data:t})}},c04c:function(t,e,a){"use strict";var n=a("964b"),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"},[a("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),a("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},r=[],s={name:"mempty",props:{icon:String,msg:String}},u=s,i=(a("19a3"),a("2877")),o=Object(i["a"])(u,n,r,!1,null,"67669af7",null);e["a"]=o.exports}}]);