1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["TeachingSchool"],{"19a3":function(t,e,n){"use strict";var r=n("55b2"),a=n.n(r);a.a},3354:function(t,e,n){},5115:function(t,e,n){"use strict";var r=n("3354"),a=n.n(r);a.a},"55b2":function(t,e,n){},"6c4a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"teachingschool"},[n("m-header",{attrs:{backUrl:t.backUrl}},[n("template",{slot:"right"},[n("router-link",{attrs:{to:{path:"/teachingset?type=create"}}},[t._v("添加")])],1)],2),t.schoolList.length>0?n("div",t._l(t.schoolList,function(e,r){return n("van-cell-group",{key:r},[n("van-cell",{attrs:{"title-class":"cell-title","label-class":"cell-label",border:!1}},[n("template",{slot:"title"},[t._v(t._s(e.name))]),n("template",{slot:"label"},[t._v(t._s(e.address))])],2),n("div",{staticClass:"operation-btn"},[n("span",{staticClass:"edit",on:{click:function(n){return t.onOperation("update",e)}}},[n("i"),t._v("编辑")]),n("span",{staticClass:"delete",on:{click:function(n){return t.onSchoolDel(e)}}},[n("i"),t._v("删除")])])],1)}),1):n("m-empty",{attrs:{msg:"暂无教学点"}})],1)},a=[],o=(n("7f7f"),n("6e6e")),u=n("d678"),i=n("9afb"),s=n("ff51"),c={name:"teachingschool",components:{MHeader:o["a"],MEmpty:u["a"]},data:function(){var t=this;return{schoolList:[],backUrl:{callBack:function(){Object(s["a"])().iPhone?window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"back"})):Object(s["a"])().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=this;Object(i["h"])({isDefault:1}).then(function(e){var n=e.data;200==n.code&&(t.schoolList=n.data)})},onSchoolDel:function(t){var e=this;this.$dialog.confirm({title:"提示",message:"您确认删除吗?"}).then(function(){Object(i["v"])({id:t.id}).then(function(t){var n=t.data;200==n.code?(e.$toast("删除成功"),e.getSchoolList()):e.$toast(n.msg)})})},onOperation:function(t,e){this.$router.push({path:"/teachingset",query:{type:t,id:e.id,name:e.name,address:e.address,longitudeLatitude:e.longitudeLatitude}})}}},d=c,l=(n("9941"),n("2877")),f=Object(l["a"])(d,r,a,!1,null,"711c12ee",null);e["default"]=f.exports},"6e6e":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mheader"},[n("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[n("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),n("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),n("div",{staticClass:"m-nav-bar__right"},[t._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 t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},u=o,i=(n("5115"),n("2877")),s=Object(i["a"])(u,r,a,!1,null,"61d0e2e4",null);e["a"]=s.exports},"7ee3":function(t,e,n){},9941:function(t,e,n){"use strict";var r=n("7ee3"),a=n.n(r);a.a},"9afb":function(t,e,n){"use strict";n.d(e,"o",function(){return i}),n.d(e,"t",function(){return s}),n.d(e,"p",function(){return c}),n.d(e,"g",function(){return d}),n.d(e,"C",function(){return l}),n.d(e,"f",function(){return f}),n.d(e,"h",function(){return h}),n.d(e,"u",function(){return m}),n.d(e,"v",function(){return g}),n.d(e,"w",function(){return v}),n.d(e,"e",function(){return y}),n.d(e,"B",function(){return b}),n.d(e,"s",function(){return S}),n.d(e,"n",function(){return k}),n.d(e,"b",function(){return C}),n.d(e,"k",function(){return _}),n.d(e,"j",function(){return B}),n.d(e,"c",function(){return L}),n.d(e,"d",function(){return w}),n.d(e,"x",function(){return A}),n.d(e,"y",function(){return j}),n.d(e,"q",function(){return O}),n.d(e,"r",function(){return q}),n.d(e,"A",function(){return $}),n.d(e,"i",function(){return p}),n.d(e,"l",function(){return D}),n.d(e,"m",function(){return x}),n.d(e,"a",function(){return G}),n.d(e,"z",function(){return I});var r=n("4328"),a=n.n(r),o=n("981f").default,u="/api-teacher",i=function(t){return o({url:u+"/snaker/task/queryMyCreatedList",method:"get",params:t})},s=function(t){return o({url:u+"/snaker/task/queryWaitList",method:"get",params:t})},c=function(t){return o({url:u+"/snaker/task/queryProcessedList",method:"get",params:t})},d=function(t){return o({url:u+"/subject/findTeacherSubjets",method:"get",params:t})},l=function(t){return o({url:u+"/vipGroupCategory/queryAll",method:"get",params:t})},f=function(t){return o({url:u+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})},h=function(t){return o({url:u+"/school/findVipSchoolByTeacher",method:"get",params:t})},p=function(t){return o({url:u+"/school/findVipSchoolByTeacher2",method:"get",params:t})},m=function(t){return o({url:u+"/school/add",method:"post",data:a.a.stringify(t)})},g=function(t){return o({url:u+"/school/del",method:"post",data:a.a.stringify(t)})},v=function(t){return o({url:u+"/school/update",method:"post",data:a.a.stringify(t)})},y=function(t){return o({url:u+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:t})},b=function(t){return o({url:u+"/teacherVipGroup/vipGroupApply",method:"post",data:t})},S=function(t){return o({url:u+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},k=function(t){return o({url:u+"/leaveCategory/queryPage",method:"post",data:t})},C=function(t){return o({url:u+"/teacherLeaveRecord/askForLeave",method:"post",data:a.a.stringify(t)})},_=function(t){return o({url:u+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:t})},B=function(t){return o({url:u+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:t})},L=function(t){return o({url:u+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:a.a.stringify(t)})},w=function(t){return o({url:u+"/teacherCourseSchedule/courseSwap",method:"post",data:a.a.stringify(t)})},A=function(t){return o({url:u+"/teacherCourseSchedule/statisticsInfo",method:"get",params:t})},j=function(t){return o({url:u+"/teacherCourseSchedule/statisticsList",method:"get",params:t})},O=function(t){return o({url:u+"/teacher/queryStudentApply",method:"get",params:t})},q=function(t){return o({url:u+"/teacher/querySubByMusicGroupId",method:"get",params:t})},$=function(t){return o({url:u+"/studentRegistration/updateSubject",method:"post",data:a.a.stringify(t)})},D=function(){return o({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},x=function(){return o({url:"/api-web/api/practiceSum",method:"get"})},G=function(t){return o({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},I=function(t){return o({url:"/api-teacher/studyReport/info",method:"get",params:t})}},d678:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mempty"},[n("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),n("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},a=[],o={name:"mempty",props:{icon:String,msg:String}},u=o,i=(n("19a3"),n("2877")),s=Object(i["a"])(u,r,a,!1,null,"67669af7",null);e["a"]=s.exports}}]);
|