1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["TeachingSet"],{3354:function(t,e,r){},"4ca3":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:"teachingset"},[r("m-header"),r("van-search",{attrs:{shape:"round",placeholder:"搜小区、学校",background:"transparent","show-action":""},on:{search:t.onSearch},model:{value:t.search_value,callback:function(e){t.search_value=e},expression:"search_value"}},[r("div",{attrs:{slot:"action"},on:{click:t.onSearch},slot:"action"},[t._v("搜索")])]),r("el-amap",{attrs:{zoom:t.zoom,events:t.amapEvents(),plugin:t.plugin,center:t.center}},t._l(t.markers,(function(t,e){return r("el-amap-marker",{key:e,attrs:{clickable:!0,events:t.events,position:t.position}})})),1),r("van-cell-group",[r("van-field",{attrs:{type:"textarea",rows:"1",autosize:"",disabled:!0,label:"教学地址",placeholder:"详情地址"},model:{value:t.addressDetail,callback:function(e){t.addressDetail=e},expression:"addressDetail"}}),r("van-field",{attrs:{type:"text",label:"教学点名称",placeholder:"请输入名称"},model:{value:t.teachingSchool,callback:function(e){t.teachingSchool=e},expression:"teachingSchool"}})],1),r("div",{staticClass:"button-group"},[r("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:t.onSubmit}},[t._v("确认")])],1)],1)},a=[],o=r("6e6e"),u=r("9afb"),i={name:"teachingset",components:{MHeader:o["a"]},data:function(){var t=this;return{type:this.$route.query.type,search_value:"",zoom:12,center:[114.34371,30.55939],markers:[],searchResult:[],plugin:[{pName:"Geolocation",events:{init:function(e){"create"==t.type&&e.getCurrentPosition((function(e,r){r&&r.position&&(t.lng=r.position.lng,t.lat=r.position.lat,t.center=[t.lng,t.lat],t.loaded=!0,t.$nextTick())}))}}},{pName:"ToolBar",events:{init:function(){}}}],searchOption:{pageSize:1,pageIndex:1,autoFitView:!0},addressDetail:null,teachingSchool:null,lnglat:null}},mounted:function(){document.title="教学点设置";var t=this.$route.query;if(t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),"update"==t.type){this.addressDetail=t.address,this.teachingSchool=t.name,this.lnglat=t.longitudeLatitude;var e=t.longitudeLatitude.split(",");this.center=[e[0],e[1]],this.markers.push({position:[e[0],e[1]],events:this.markerEvents()})}},methods:{amapEvents:function(){return{complete:function(){}}},onSubmit:function(){var t=this;this.addressDetail?this.teachingSchool?"create"==this.type?Object(u["E"])({name:this.teachingSchool,address:this.addressDetail,longitudeLatitude:this.lnglat}).then((function(e){var r=e.data;200==r.code?(t.$toast("添加成功"),t.$router.push("/teachingSchool")):t.$toast(r.msg)})):"update"==this.type&&Object(u["G"])({id:this.$route.query.id,name:this.teachingSchool,address:this.addressDetail,longitudeLatitude:this.lnglat}).then((function(e){var r=e.data;200==r.code?(t.$toast("修改成功"),t.$router.push("/teachingSchool")):t.$toast(r.msg)})):this.$toast("请输入教学点名称"):this.$toast("请选择教学地点")},onSearch:function(){var t=this;if(this.search_value){this.markers=[];var e=new AMap.PlaceSearch(this.searchOption);e.search(this.search_value,(function(e,r){if(r&&r.poiList&&r.poiList.count){var n=r.poiList.pois[0];t.searchResult.push(n),t.markers.push({position:[n.location.lng,n.location.lat],events:t.markerEvents(n)}),t.center=[n.location.lng,n.location.lat]}else if(void 0===r.poiList)throw new Error(r)}))}},markerEvents:function(){var t=this;return{click:function(e){var r=new AMap.Geocoder;r.getAddress(e.lnglat,(function(r,n){"complete"===r&&n.regeocode?(t.lnglat=e.lnglat.lng+","+e.lnglat.lat,t.addressDetail=n.regeocode.formattedAddress):t.$toast("请重新选择地址")}))}}}}},s=i,c=(r("6f54"),r("2877")),d=Object(c["a"])(s,n,a,!1,null,"2d2b2712",null);e["default"]=d.exports},"4ff2":function(t,e,r){},5115:function(t,e,r){"use strict";var n=r("3354"),a=r.n(n);a.a},"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"},[r("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[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=[],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=(r("5115"),r("2877")),s=Object(i["a"])(u,n,a,!1,null,"61d0e2e4",null);e["a"]=s.exports},"6f54":function(t,e,r){"use strict";var n=r("4ff2"),a=r.n(n);a.a},"9afb":function(t,e,r){"use strict";r.d(e,"x",(function(){return i})),r.d(e,"D",(function(){return s})),r.d(e,"y",(function(){return c})),r.d(e,"K",(function(){return l})),r.d(e,"j",(function(){return d})),r.d(e,"O",(function(){return h})),r.d(e,"i",(function(){return p})),r.d(e,"l",(function(){return f})),r.d(e,"E",(function(){return g})),r.d(e,"F",(function(){return v})),r.d(e,"G",(function(){return y})),r.d(e,"h",(function(){return S})),r.d(e,"N",(function(){return k})),r.d(e,"C",(function(){return b})),r.d(e,"w",(function(){return w})),r.d(e,"c",(function(){return C})),r.d(e,"p",(function(){return _})),r.d(e,"o",(function(){return R})),r.d(e,"e",(function(){return B})),r.d(e,"g",(function(){return L})),r.d(e,"H",(function(){return $})),r.d(e,"I",(function(){return A})),r.d(e,"z",(function(){return I})),r.d(e,"B",(function(){return q})),r.d(e,"M",(function(){return G})),r.d(e,"m",(function(){return m})),r.d(e,"q",(function(){return x})),r.d(e,"u",(function(){return D})),r.d(e,"a",(function(){return j})),r.d(e,"J",(function(){return E})),r.d(e,"k",(function(){return T})),r.d(e,"t",(function(){return O})),r.d(e,"r",(function(){return V})),r.d(e,"b",(function(){return z})),r.d(e,"n",(function(){return M})),r.d(e,"f",(function(){return P})),r.d(e,"L",(function(){return F})),r.d(e,"s",(function(){return H})),r.d(e,"d",(function(){return N})),r.d(e,"A",(function(){return U})),r.d(e,"v",(function(){return J})),r.d(e,"P",(function(){return W})),r.d(e,"Q",(function(){return K}));var n=r("4328"),a=r.n(n),o=r("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+"/subject/findSubSubjects",method:"get",params:t})},h=function(t){return o({url:u+"/vipGroupCategory/queryAll",method:"get",params:t})},p=function(t){return o({url:u+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})},f=function(t){return o({url:u+"/school/findVipSchoolByTeacher",method:"get",params:t})},m=function(t){return o({url:u+"/school/findVipSchoolByTeacher2",method:"get",params:t})},g=function(t){return o({url:u+"/school/add",method:"post",data:a.a.stringify(t)})},v=function(t){return o({url:u+"/school/del",method:"post",data:a.a.stringify(t)})},y=function(t){return o({url:u+"/school/update",method:"post",data:a.a.stringify(t)})},S=function(t){return o({url:u+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:t})},k=function(t){return o({url:u+"/teacherVipGroup/vipGroupApply",method:"post",data:t})},b=function(t){return o({url:u+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},w=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})},R=function(t){return o({url:u+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:t})},B=function(t){return o({url:u+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:a.a.stringify(t)})},L=function(t){return o({url:u+"/teacherCourseSchedule/courseSwap",method:"post",data:a.a.stringify(t)})},$=function(t){return o({url:u+"/teacherCourseSchedule/statisticsInfo",method:"get",params:t})},A=function(t){return o({url:u+"/teacherCourseSchedule/statisticsList",method:"get",params:t})},I=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})},G=function(t){return o({url:u+"/studentRegistration/updateSubject",method:"post",data:a.a.stringify(t)})},x=function(){return o({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},D=function(){return o({url:"/api-web/api/practiceSum",method:"get"})},j=function(t){return o({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},z=function(t){return o({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:t})},E=function(t){return o({url:"/api-teacher/studyReport/info",method:"get",params:t})},O=function(t){return o({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:t})},T=function(t){return o({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:t})},V=function(t){return o({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:t})},M=function(t){return o({url:"/api-teacher/courseReview/getCourseInfoHead",method:"get",params:t})},P=function(t){return o({url:"/api-teacher/courseReview/add",method:"post",data:a.a.stringify(t)})},F=function(t){return o({url:"/api-teacher/courseReview/updateReviewInfo",method:"post",data:a.a.stringify(t)})},H=function(t){return o({url:"/api-teacher/courseReview/getReviewInfo",method:"get",params:t})},N=function(t){return o({url:"/api-teacher/teacherCourseHomeworkReply/checkeIsAssignHomework",method:"get",params:t})},U=function(t){return o({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacher",method:"get",params:t})},J=function(t){return o({url:"/api-teacher/visit/queryPage",method:"get",params:t})},W=function(t){return o({url:"/api-teacher/visit/add",method:"post",data:a.a.stringify(t)})},K=function(t){return o({url:"/api-teacher/visit/getInfo",method:"get",params:t})}}}]);
|