eidt-school-legacy.bbc9d7f8.js 8.6 KB

1
  1. !function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function n(n){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){t(n,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}))}return n}function t(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function r(e,n,t,r,a,o,c){try{var i=e[o](c),u=i.value}catch(s){return void t(s)}i.done?n(u):Promise.resolve(u).then(r,a)}function a(e){return function(){var n=this,t=arguments;return new Promise((function(a,o){var c=e.apply(n,t);function i(e){r(c,a,o,i,u,"next",e)}function u(e){r(c,a,o,i,u,"throw",e)}i(void 0)}))}}System.register(["./index-legacy.48c8d62c.js","./index-legacy.8cf5f94f.js","./logo-legacy.56c05c44.js","./area-legacy.b541a943.js","./index-legacy.7e16ed1b.js","./index-legacy.269a0b91.js","./index-legacy.0e0de364.js","./index-legacy.55fe5b03.js","./index-legacy.3a3809b6.js","./index-legacy.71f28922.js","./ImagePreview-legacy.caacc6f4.js","./index-legacy.71047e87.js","./function-call-legacy.ac971547.js","./index-legacy.087e0425.js"],(function(e){"use strict";var t,r,o,c,i,u,s,l,d,f,p,g,m,b,A,v,y,h,w,R,x,j,k,O;return{setters:[function(e){t=e.d,r=e.ag,o=e.aV,c=e.r,i=e.R,u=e.$,s=e.bF,l=e.c,d=e.q,f=e.a5,p=e.B,g=e.F,m=e.f,b=e.m,A=e.o,v=e.k},function(e){y=e.O},function(e){h=e.s,w=e.l},function(e){R=e.a},function(e){x=e.O},function(e){j=e.C},function(e){k=e.I},function(e){O=e.F},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){e("default",t({name:"school-detail",setup:function(){var e=r(),t=o(),P=c({list:[],info:{},showArea:!1,columns:[],showProvince:""}),V=c({address:"",logo:"",email:"",emergencyContact:"",addressLongitudeLatitude:""}),Z=i();console.log(Z.value);var L=function(){var e=a(regeneratorRuntime.mark((function e(){var n,t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(m.user.data.schoolInfos||[]).map((function(e){return e.id})).join(","),e.prev=1,e.next=4,b.get("/api-school/school/detail/".concat(n),{});case 4:t=e.sent,r=t.data,P.info=r,P.showProvince=r.provinceName+r.cityName,V.logo=r.logo,V.email=r.email,V.emergencyContact=r.emergencyContact,V.addressLongitudeLatitude=r.addressLongitudeLatitude,V.address=r.address,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(1),A(e.t0.message);case 17:case"end":return e.stop()}}),e,null,[[1,14]])})));return function(){return e.apply(this,arguments)}}(),D=function(){var r=a(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!V.email){r.next=5;break}if(a=/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,V.email.match(a)){r.next=5;break}return A("请输入正确的邮箱"),r.abrupt("return");case 5:if(V.address){r.next=8;break}return A("请输入详细地址"),r.abrupt("return");case 8:return r.prev=8,r.next=11,b.post("/api-school/school/update",{hideLoading:!1,data:n({},V)});case 11:"type"===t.query.page?e.go(-1):v({api:"back"}),r.next=17;break;case 14:r.prev=14,r.t0=r.catch(8),A(r.t0.message);case 17:console.log("submitInfo");case 18:case"end":return r.stop()}}),r,null,[[8,14]])})));return function(){return r.apply(this,arguments)}}();u((function(){L()}));var C=function(){Z.value.startUpload()};u((function(){var e=[];R.forEach((function(n){var t={name:n.name,code:n.code,areas:[]};n.areas&&n.areas.length>0&&n.areas.forEach((function(e){t.areas.push({name:e.name,code:e.code})})),e.push(t)})),P.columns=e||[]}));var M=function(){var e=a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{v({api:"sourseMapApi",content:{type:"modify",orginPoint:V.addressLongitudeLatitude}},(function(e){console.log(e.content.nowPoint,e.content.address,"------"),V.addressLongitudeLatitude=e.content.nowPoint,V.address=e.content.address}))}catch(n){console.log(n)}case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return u((function(){s("sourseMapApi",(function(e){console.log(e.content.nowPoint,e.content.address),V.addressLongitudeLatitude=e.content.nowPoint,V.address=e.content.address}))})),function(){return l(g,null,[l("div",{class:h.schoolEidtWrap},[l("div",{class:h.eidtWrap},[l(j,{inset:!0},{default:function(){return[l("div",{class:h.schoolDtailWrap,onClick:C},[l(k,{width:50,height:50,fit:"cover",class:h.schoolICon,src:V.logo?V.logo:w},null),l("div",{class:h.schoolBtnWrap},[l("p",null,[d("修改校徽")]),l(f,{name:"arrow",size:"12px",color:"#aaa"},null)])])]}})]),l("div",{class:h.eidtWrap},[l(j,{inset:!0},{default:function(){return[l(O,{"label-align":"left",rows:3,modelValue:V.emergencyContact,"onUpdate:modelValue":function(e){return V.emergencyContact=e},maxlength:50,placeholder:"请输入姓名"},{label:function(){return l("p",{class:h.addP},[d("主管领导")])}}),l(O,{"label-align":"left",rows:3,modelValue:V.email,"onUpdate:modelValue":function(e){return V.email=e},maxlength:50,placeholder:"请输入邮箱账号"},{label:function(){return l("p",{class:h.addP},[d("邮箱账号")])}}),l(O,{"label-align":"top",maxlength:50,placeholder:"请选择学校地址",type:"textarea",disabled:!0,onClick:function(){return M()}},{extra:function(){return l("div",{class:h.loctionIconWrap},null)},label:function(){return l("p",{class:[h.addP,h.addDet]},[d("学校地址 "),l(k,{width:19,height:18,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAkCAYAAADl9UilAAAAA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2Atkb131gAXqn/1tKvIAhuJ6IDSRfhNtT0daRh7XneSRF5jpnPLgaltfZ1RKTRf4OmIRFZ1yhTRLYZYx6bSxfW2huI6BERubKN8DOuDTpNRGfiOD6TyWReFhF94OpNtc+6iIh6a7XaxZ7nrRSRla5jVb763ZSI6CURuZuZT9Z9Nb1LU4CIMBFppKxP/aVZjKJanhWRmIieFpH9mqTTqaVlER8bG1uZzWZvUoAisoaIrgKwdJEINdFqxD6vgGZnZ48Xi0W1wjz6D4HbHVCZGLHzAAAAAElFTkSuQmCC"},null)])},input:function(){return l("div",{style:{paddingTop:"6px",paddingRight:"13px"}},[V.address])}})]}}),l(x,{class:h.upload,cropper:!0,bucket:"gyt",path:"/orchestra/",modelValue:V.logo,"onUpdate:modelValue":function(e){return V.logo=e},ref:Z},null)]),l(y,{position:"bottom"},{default:function(){return[l("div",{class:"btnGroup"},[l(p,{type:"primary",round:!0,block:!0,onClick:D},{default:function(){return[d("确认修改")]}})])]}})])])}}}))}}}))}();