TeachingSet.a024876a.js 20 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["TeachingSet"],{"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:"",readonly:"",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)},o=[],a=r("6e6e"),i=r("9afb"),u=r("3908");function c(t){return c="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},c(t)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(E){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,a=Object.create(o.prototype),i=new _(n||[]);return a._invoke=function(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return C()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=k(i,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=h(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var d={};function f(){}function p(){}function m(){}var g={};u(g,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(G([])));y&&y!==e&&r.call(y,o)&&(g=y);var b=m.prototype=f.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,a,i,u){var s=h(t[o],t,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==c(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(d).then((function(t){l.value=t,i(l)}),(function(t){return n("throw",t,i,u)}))}u(s.arg)}var o;this._invoke=function(t,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function G(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=m,u(b,"constructor",m),u(m,"constructor",p),p.displayName=u(m,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,i,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(S.prototype),u(S.prototype,a,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new S(l(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(b),u(b,i,"Generator"),u(b,o,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=G,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:G(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function l(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(s){return void r(s)}u.done?e(c):Promise.resolve(c).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){l(a,n,o,i,u,"next",t)}function u(t){l(a,n,o,i,u,"throw",t)}i(void 0)}))}}var d={name:"teachingset",components:{MHeader:a["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=h(s().mark((function t(){var e=this;return s().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.addressDetail){t.next=3;break}return this.$toast("请选择教学地点"),t.abrupt("return");case 3:if(this.teachingSchool){t.next=6;break}return this.$toast("请输入教学点名称"),t.abrupt("return");case 6:if("create"!=this.type){t.next=12;break}return Object(u["a"])(!0),t.next=10,Object(i["P"])({name:this.teachingSchool,address:this.addressDetail,longitudeLatitude:this.lnglat}).then((function(t){Object(u["a"])(!1);var r=t.data;200==r.code?(e.$toast("添加成功"),e.$router.push("/teachingSchool")):e.$toast(r.msg)})).catch((function(){Object(u["a"])(!1)}));case 10:t.next=16;break;case 12:if("update"!=this.type){t.next=16;break}return Object(u["a"])(!0),t.next=16,Object(i["R"])({id:this.$route.query.id,name:this.teachingSchool,address:this.addressDetail,longitudeLatitude:this.lnglat}).then((function(t){Object(u["a"])(!1);var r=t.data;200==r.code?(e.$toast("修改成功"),e.$router.push("/teachingSchool")):e.$toast(r.msg)})).catch((function(){Object(u["a"])(!1)}));case 16:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),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);r.poiList&&r.poiList.pois.length<=0&&t.$toast("请输入详细地址")}}))}},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("请重新选择地址")}))}}}}},f=d,p=(r("90dc"),r("2877")),m=Object(p["a"])(f,n,o,!1,null,"dc1bb080",null);e["default"]=m.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"},[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",(function(){return[t._v(t._s(t.name?t.name:t.$route.meta.descrition))]}))],2),r("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},o=[],a={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)}}},i=a,u=(r("70bb"),r("2877")),c=Object(u["a"])(i,n,o,!1,null,"10a70108",null);e["a"]=c.exports},"70bb":function(t,e,r){"use strict";r("c905")},"90dc":function(t,e,r){"use strict";r("d819")},"9afb":function(t,e,r){"use strict";r.d(e,"F",(function(){return u})),r.d(e,"O",(function(){return c})),r.d(e,"H",(function(){return s})),r.d(e,"V",(function(){return h})),r.d(e,"k",(function(){return l})),r.d(e,"bb",(function(){return d})),r.d(e,"i",(function(){return f})),r.d(e,"m",(function(){return p})),r.d(e,"P",(function(){return g})),r.d(e,"Q",(function(){return v})),r.d(e,"R",(function(){return y})),r.d(e,"h",(function(){return b})),r.d(e,"Z",(function(){return w})),r.d(e,"ab",(function(){return S})),r.d(e,"N",(function(){return k})),r.d(e,"A",(function(){return x})),r.d(e,"c",(function(){return L})),r.d(e,"q",(function(){return _})),r.d(e,"p",(function(){return G})),r.d(e,"e",(function(){return C})),r.d(e,"g",(function(){return E})),r.d(e,"S",(function(){return O})),r.d(e,"T",(function(){return j})),r.d(e,"I",(function(){return P})),r.d(e,"L",(function(){return R})),r.d(e,"v",(function(){return I})),r.d(e,"Y",(function(){return q})),r.d(e,"n",(function(){return m})),r.d(e,"s",(function(){return A})),r.d(e,"y",(function(){return B})),r.d(e,"a",(function(){return $})),r.d(e,"U",(function(){return T})),r.d(e,"l",(function(){return V})),r.d(e,"x",(function(){return N})),r.d(e,"t",(function(){return z})),r.d(e,"b",(function(){return D})),r.d(e,"o",(function(){return F})),r.d(e,"f",(function(){return M})),r.d(e,"X",(function(){return U})),r.d(e,"w",(function(){return H})),r.d(e,"d",(function(){return W})),r.d(e,"J",(function(){return J})),r.d(e,"z",(function(){return Q})),r.d(e,"cb",(function(){return X})),r.d(e,"db",(function(){return Z})),r.d(e,"j",(function(){return tt})),r.d(e,"E",(function(){return K})),r.d(e,"C",(function(){return et})),r.d(e,"B",(function(){return rt})),r.d(e,"r",(function(){return nt})),r.d(e,"M",(function(){return ot})),r.d(e,"G",(function(){return at})),r.d(e,"D",(function(){return ut})),r.d(e,"u",(function(){return it})),r.d(e,"K",(function(){return Y})),r.d(e,"W",(function(){return ct}));var n=r("4328"),o=r.n(n),a=r("981f").default,i="/api-teacher",u=function(t){return a({url:i+"/snaker/task/queryMyCreatedList",method:"get",params:t})},c=function(t){return a({url:i+"/snaker/task/queryWaitList",method:"get",params:t})},s=function(t){return a({url:i+"/snaker/task/queryProcessedList",method:"get",params:t})},l=function(t){return a({url:i+"/subject/findTeacherSubjets",method:"get",params:t})},h=function(t){return a({url:i+"/subject/findSubSubjects",method:"get",params:t})},d=function(t){return a({url:i+"/vipGroupCategory/queryAll",method:"get",params:t})},f=function(t){return a({url:i+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})},p=function(t){return a({url:i+"/school/findVipSchoolByTeacher",method:"get",params:t})},m=function(t){return a({url:i+"/school/findVipSchoolByTeacher2",method:"get",params:t})},g=function(t){return a({url:i+"/school/add",method:"post",data:o.a.stringify(t)})},v=function(t){return a({url:i+"/school/del",method:"post",data:o.a.stringify(t)})},y=function(t){return a({url:i+"/school/update",method:"post",data:o.a.stringify(t)})},b=function(t){return a({url:i+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:t})},w=function(t){return a({url:i+"/teacherVipGroup/vipGroupApply",method:"post",data:t})},S=function(t){return a({url:i+"/teacherVipGroup/vipGroupApplyForDouble11",method:"post",data:t})},k=function(t){return a({url:i+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},x=function(t){return a({url:i+"/leaveCategory/queryPage",method:"post",data:t})},L=function(t){return a({url:i+"/teacherLeaveRecord/askForLeave",method:"post",data:o.a.stringify(t)})},_=function(t){return a({url:i+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:t})},G=function(t){return a({url:i+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:t})},C=function(t){return a({url:i+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:o.a.stringify(t)})},E=function(t){return a({url:i+"/teacherCourseSchedule/courseSwap",method:"post",data:o.a.stringify(t)})},O=function(t){return a({url:i+"/teacherCourseSchedule/statisticsInfo",method:"get",params:t})},j=function(t){return a({url:i+"/teacherCourseSchedule/statisticsList",method:"get",params:t})},P=function(t){return a({url:i+"/teacher/queryStudentApply",method:"get",params:t})},R=function(t){return a({url:i+"/teacher/querySubByMusicGroupId",method:"get",params:t})},I=function(t){return a({url:i+"/teacher/getRegisterOrPreList",method:"get",params:t})},q=function(t){return a({url:i+"/studentRegistration/updateSubject",method:"post",data:o.a.stringify(t)})},A=function(){return a({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},B=function(){return a({url:"/api-web/api/practiceSum",method:"get"})},$=function(t){return a({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},D=function(t){return a({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:t})},T=function(t){return a({url:"/api-teacher/studyReport/info",method:"get",params:t})},N=function(t){return a({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:t})},V=function(t){return a({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:t})},z=function(t){return a({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:t})},F=function(t){return a({url:"/api-teacher/courseReview/getCourseInfoHead",method:"get",params:t})},M=function(t){return a({url:"/api-teacher/courseReview/add",method:"post",data:t})},U=function(t){return a({url:"/api-teacher/courseReview/updateReviewInfo",method:"post",data:o.a.stringify(t)})},H=function(t){return a({url:"/api-teacher/courseReview/getReviewInfo",method:"get",params:t})},W=function(t){return a({url:"/api-teacher/teacherCourseHomeworkReply/checkeIsAssignHomework",method:"get",params:t})},J=function(t){return a({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacher",method:"get",params:t})},Y=function(t){return a({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacherByOrganId",method:"get",params:t})},K=function(t){return a({url:"/api-teacher/teacherVipGroup/queryDouble11Students",method:"get",params:t})},Q=function(t){return a({url:"/api-teacher/visit/queryPage",method:"get",params:t})},X=function(t){return a({url:"/api-teacher/visit/add",method:"post",data:o.a.stringify(t)})},Z=function(t){return a({url:"/api-teacher/visit/getInfo",method:"get",params:t})},tt=function(t){return a({url:"/api-teacher/employeePosition/findOrganPosition",method:"get",params:t})},et=function(t){return a({url:"/api-cms/news/query",method:"get",params:t})},rt=function(t){return a({url:"/api-cms/news/list",method:"get",params:t})},nt=function(t){return a({url:"/api-teacher/classGroup/getCourseStudents",method:"get",params:t})},ot=function(t){return a({url:"/api-auth/user/queryUserById/"+t.userId,method:"get"})},at=function(t){return a({url:"/api-teacher/teacherPracticeGroup/queryPracticeGroupSellPrice",method:"get",params:t})},it=function(t){return a({url:"/api-teacher/teacherPracticeGroup/getPracticeGroupCostCount",method:"get",params:t})},ut=function(t){return a({url:i+"/teacherPracticeGroup/practiceGroupApply",method:"post",data:t})},ct=function(t){return a({url:i+"/tenantConfig/get",method:"get",params:t})}},c905:function(t,e,r){},d819:function(t,e,r){}}]);