eidt-school-legacy.a2876e89.js 8.7 KB

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