TeachingSchool.23d992e4.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["TeachingSchool"],{"02d3":function(t,e,r){},"10bd":function(t,e,r){"use strict";var n=r("02d3"),a=r.n(n);a.a},"38f0":function(t,e,r){"use strict";var n=r("5b7e"),a=r.n(n);a.a},"51c7":function(t,e,r){},"5b7e":function(t,e,r){},"6c4a":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"teachingschool"},[r("m-header",{attrs:{backUrl:t.backUrl}},[r("template",{slot:"right"},[r("router-link",{attrs:{to:{path:"/teachingset?type=create"}}},[t._v("添加")])],1)],2),t.schoolList.length>0?r("div",t._l(t.schoolList,function(e,n){return r("van-cell-group",{key:n},[r("van-cell",{attrs:{"title-class":"cell-title","label-class":"cell-label",border:!1}},[r("template",{slot:"title"},[t._v(t._s(e.name))]),r("template",{slot:"label"},[t._v(t._s(e.address))])],2),r("div",{staticClass:"operation-btn"},[r("span",{staticClass:"edit",on:{click:function(r){return t.onOperation("update",e)}}},[r("i"),t._v("编辑")]),r("span",{staticClass:"delete",on:{click:function(r){return t.onSchoolDel(e)}}},[r("i"),t._v("删除")])])],1)}),1):r("m-empty",{attrs:{msg:"暂无教学点"}})],1)},a=[],u=r("a34a"),o=r.n(u),i=r("6e6e"),c=r("d678"),s=r("9afb"),d=r("ff51"),l=r("3908");function f(t,e,r,n,a,u,o){try{var i=t[u](o),c=i.value}catch(s){return void r(s)}i.done?e(c):Promise.resolve(c).then(n,a)}function p(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var u=t.apply(e,r);function o(t){f(u,n,a,o,i,"next",t)}function i(t){f(u,n,a,o,i,"throw",t)}o(void 0)})}}var h={name:"teachingschool",components:{MHeader:i["a"],MEmpty:c["a"]},data:function(){var t=this;return{schoolList:[],backUrl:{callBack:function(){Object(d["b"])().iPhone?window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"back"})):Object(d["b"])().android?DAYA.postMessage(JSON.stringify({api:"back"})):t.$router.push("/business")}}}},created:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),this.getSchoolList()},mounted:function(){},methods:{getSchoolList:function(){var t=p(o.a.mark(function t(){var e=this;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return Object(l["a"])(!0),t.next=3,Object(s["m"])({isDefault:1}).then(function(t){var r=t.data;200==r.code&&(e.schoolList=r.data)});case 3:Object(l["a"])(!1);case 4:case"end":return t.stop()}},t)}));function e(){return t.apply(this,arguments)}return e}(),onSchoolDel:function(t){var e=this;this.$dialog.confirm({title:"提示",message:"您确认删除吗?"}).then(p(o.a.mark(function r(){return o.a.wrap(function(r){while(1)switch(r.prev=r.next){case 0:return Object(l["a"])(!0),r.next=3,Object(s["O"])({id:t.id}).then(function(t){var r=t.data;Object(l["a"])(!1),200==r.code?(e.$toast("删除成功"),e.getSchoolList()):e.$toast(r.msg)}).catch(function(){Object(l["a"])(!1)});case 3:case"end":return r.stop()}},r)})))},onOperation:function(t,e){this.$router.push({path:"/teachingset",query:{type:t,id:e.id,name:e.name,address:e.address,longitudeLatitude:e.longitudeLatitude}})}}},m=h,g=(r("10bd"),r("2877")),v=Object(g["a"])(m,n,a,!1,null,"0225f0e0",null);e["default"]=v.exports},"6e6e":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mheader",style:{height:"calc("+t.titleHeight+"px + "+t.navBarHeight+"px)"}},[r("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""],style:[t.headStyle]},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),r("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},a=[],u=r("a34a"),o=r.n(u),i=r("ddf4");function c(t,e,r,n,a,u,o){try{var i=t[u](o),c=i.value}catch(s){return void r(s)}i.done?e(c):Promise.resolve(c).then(n,a)}function s(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var u=t.apply(e,r);function o(t){c(u,n,a,o,i,"next",t)}function i(t){c(u,n,a,o,i,"throw",t)}o(void 0)})}}var d={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(i["b"])({api:"setBarStatus",content:{status:0}}),this.getNav(),this.isBack=!1)},methods:{getNav:function(){var t=s(o.a.mark(function t(){var e,r,n=this;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=sessionStorage.getItem("navHeight"),r=sessionStorage.getItem("titleHeight"),!e||!r){t.next=7;break}this.navBarHeight=e,this.headStyle={paddingTop:e+"px",height:r+"px",lineHeight:r+"px"},t.next=9;break;case 7:return t.next=9,Object(i["b"])({api:"getNavHeight"},function(t){var e=t.content,r={},a=e.dpi||2;if(e.navHeight){var u=e.navHeight/a;sessionStorage.setItem("navHeight",u),n.navBarHeight=u,r={paddingTop:u+"px"}}if(e.titleHeight){var o=e.titleHeight/a;sessionStorage.setItem("titleHeight",o),n.titleHeight=o,r.height=o+"px",r.lineHeight=o+"px"}n.headStyle=r});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(i["b"])({api:"setBarStatus",content:{status:1}}),this.isBack=!0)}},l=d,f=(r("38f0"),r("2877")),p=Object(f["a"])(l,n,a,!1,null,"6a74717c",null);e["a"]=p.exports},"9afb":function(t,e,r){"use strict";r.d(e,"F",function(){return i}),r.d(e,"T",function(){return s}),r.d(e,"k",function(){return c}),r.d(e,"Z",function(){return d}),r.d(e,"i",function(){return l}),r.d(e,"m",function(){return f}),r.d(e,"N",function(){return h}),r.d(e,"O",function(){return m}),r.d(e,"P",function(){return g}),r.d(e,"h",function(){return v}),r.d(e,"X",function(){return y}),r.d(e,"Y",function(){return b}),r.d(e,"M",function(){return S}),r.d(e,"A",function(){return w}),r.d(e,"c",function(){return O}),r.d(e,"q",function(){return k}),r.d(e,"p",function(){return j}),r.d(e,"e",function(){return C}),r.d(e,"g",function(){return B}),r.d(e,"Q",function(){return x}),r.d(e,"R",function(){return P}),r.d(e,"H",function(){return _}),r.d(e,"K",function(){return H}),r.d(e,"v",function(){return A}),r.d(e,"W",function(){return G}),r.d(e,"n",function(){return p}),r.d(e,"s",function(){return I}),r.d(e,"y",function(){return R}),r.d(e,"a",function(){return D}),r.d(e,"S",function(){return q}),r.d(e,"l",function(){return T}),r.d(e,"x",function(){return N}),r.d(e,"t",function(){return V}),r.d(e,"b",function(){return L}),r.d(e,"o",function(){return $}),r.d(e,"f",function(){return M}),r.d(e,"V",function(){return U}),r.d(e,"w",function(){return E}),r.d(e,"d",function(){return J}),r.d(e,"I",function(){return z}),r.d(e,"z",function(){return W}),r.d(e,"ab",function(){return K}),r.d(e,"bb",function(){return Q}),r.d(e,"j",function(){return X}),r.d(e,"E",function(){return Y}),r.d(e,"C",function(){return Z}),r.d(e,"B",function(){return tt}),r.d(e,"r",function(){return et}),r.d(e,"L",function(){return rt}),r.d(e,"G",function(){return nt}),r.d(e,"D",function(){return ut}),r.d(e,"u",function(){return at}),r.d(e,"J",function(){return F}),r.d(e,"U",function(){return ot});var n=r("4328"),a=r.n(n),u=r("981f").default,o="/api-teacher",i=function(t){return u({url:o+"/snaker/task/queryMyCreatedList",method:"get",params:t})},c=function(t){return u({url:o+"/subject/findTeacherSubjets",method:"get",params:t})},s=function(t){return u({url:o+"/subject/findSubSubjects",method:"get",params:t})},d=function(t){return u({url:o+"/vipGroupCategory/queryAll",method:"get",params:t})},l=function(t){return u({url:o+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})},f=function(t){return u({url:o+"/school/findVipSchoolByTeacher",method:"get",params:t})},p=function(t){return u({url:o+"/school/findVipSchoolByTeacher2",method:"get",params:t})},h=function(t){return u({url:o+"/school/add",method:"post",data:a.a.stringify(t)})},m=function(t){return u({url:o+"/school/del",method:"post",data:a.a.stringify(t)})},g=function(t){return u({url:o+"/school/update",method:"post",data:a.a.stringify(t)})},v=function(t){return u({url:o+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:t})},y=function(t){return u({url:o+"/teacherVipGroup/vipGroupApply",method:"post",data:t})},b=function(t){return u({url:o+"/teacherVipGroup/vipGroupApplyForDouble11",method:"post",data:t})},S=function(t){return u({url:o+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},w=function(t){return u({url:o+"/leaveCategory/queryPage",method:"post",data:t})},O=function(t){return u({url:o+"/teacherLeaveRecord/askForLeave",method:"post",data:a.a.stringify(t)})},k=function(t){return u({url:o+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:t})},j=function(t){return u({url:o+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:t})},C=function(t){return u({url:o+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:a.a.stringify(t)})},B=function(t){return u({url:o+"/teacherCourseSchedule/courseSwap",method:"post",data:a.a.stringify(t)})},x=function(t){return u({url:o+"/teacherCourseSchedule/statisticsInfo",method:"get",params:t})},P=function(t){return u({url:o+"/teacherCourseSchedule/statisticsList",method:"get",params:t})},_=function(t){return u({url:o+"/teacher/queryStudentApply",method:"get",params:t})},H=function(t){return u({url:o+"/teacher/querySubByMusicGroupId",method:"get",params:t})},A=function(t){return u({url:o+"/teacher/getRegisterOrPreList",method:"get",params:t})},G=function(t){return u({url:o+"/studentRegistration/updateSubject",method:"post",data:a.a.stringify(t)})},I=function(){return u({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},R=function(){return u({url:"/api-web/api/practiceSum",method:"get"})},D=function(t){return u({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},L=function(t){return u({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:t})},q=function(t){return u({url:"/api-teacher/studyReport/info",method:"get",params:t})},N=function(t){return u({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:t})},T=function(t){return u({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:t})},V=function(t){return u({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:t})},$=function(t){return u({url:"/api-teacher/courseReview/getCourseInfoHead",method:"get",params:t})},M=function(t){return u({url:"/api-teacher/courseReview/add",method:"post",data:t})},U=function(t){return u({url:"/api-teacher/courseReview/updateReviewInfo",method:"post",data:a.a.stringify(t)})},E=function(t){return u({url:"/api-teacher/courseReview/getReviewInfo",method:"get",params:t})},J=function(t){return u({url:"/api-teacher/teacherCourseHomeworkReply/checkeIsAssignHomework",method:"get",params:t})},z=function(t){return u({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacher",method:"get",params:t})},F=function(t){return u({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacherByOrganId",method:"get",params:t})},Y=function(t){return u({url:"/api-teacher/teacherVipGroup/queryDouble11Students",method:"get",params:t})},W=function(t){return u({url:"/api-teacher/visit/queryPage",method:"get",params:t})},K=function(t){return u({url:"/api-teacher/visit/add",method:"post",data:a.a.stringify(t)})},Q=function(t){return u({url:"/api-teacher/visit/getInfo",method:"get",params:t})},X=function(t){return u({url:"/api-teacher/employeePosition/findOrganPosition",method:"get",params:t})},Z=function(t){return u({url:"/api-cms/news/query",method:"get",params:t})},tt=function(t){return u({url:"/api-cms/news/list",method:"get",params:t})},et=function(t){return u({url:"/api-teacher/classGroup/getCourseStudents",method:"get",params:t})},rt=function(t){return u({url:"/api-auth/user/queryUserById/"+t.userId,method:"get"})},nt=function(t){return u({url:"/api-teacher/teacherPracticeGroup/queryPracticeGroupSellPrice",method:"get",params:t})},at=function(t){return u({url:"/api-teacher/teacherPracticeGroup/getPracticeGroupCostCount",method:"get",params:t})},ut=function(t){return u({url:o+"/teacherPracticeGroup/practiceGroupApply",method:"post",data:t})},ot=function(t){return u({url:o+"/tenantConfig/get",method:"get",params:t})}},c063:function(t,e,r){"use strict";var n=r("51c7"),a=r.n(n);a.a},d678:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mempty",class:t.full?"full":null},[r("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),r("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},a=[],u={name:"mempty",props:{icon:String,msg:String,full:Boolean}},o=u,i=(r("c063"),r("2877")),c=Object(i["a"])(o,n,a,!1,null,"45d1a48f",null);e["a"]=c.exports},ddf4:function(t,e,r){"use strict";r.d(e,"b",function(){return f}),r.d(e,"a",function(){return p});var n=r("ff51");function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){o(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t){return i="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},i(t)}var c=function(){},s={},d=Object(n["b"])();d.isApp&&window.addEventListener("message",function(t){try{var e=t.data?"object"===i(t.data)?t.data:JSON.parse(t.data):{},r=e.content.uuid||e.uuid;try{e.content&&(e.content=JSON.parse(e.content))}catch(m){}if(!r){var n=Object.keys(s).filter(function(t){return 0===t.indexOf(e.api)}),a=!0,u=!1,o=void 0;try{for(var d,l=n[Symbol.iterator]();!(a=(d=l.next()).done);a=!0){var f=d.value,p=s[f]||c;p(e)}}catch(g){u=!0,o=g}finally{try{a||null==l.return||l.return()}finally{if(u)throw o}}return}var h=s[e.content.uuid||e.uuid||e.api+e.uuid]||c;h(e)}catch(m){console.error("通信消息解析错误",m)}});var l=window.DAYA||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DAYA,f=function(t,e){if(d.isApp){var r=Object(n["g"])();s[r]=e||c,t.content=t.content?u({},t.content,{uuid:r}):{uuid:r},l.postMessage(JSON.stringify(t))}},p=function(t,e){if(d.isApp){var r=t+Object(n["g"])();s[r]=e||c}}}}]);