eidt-school-legacy.f3b07fe4.js 8.6 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(s){return void t(s)}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.a921a064.js","./logo-legacy.56c05c44.js","./index-legacy.f6cd85d1.js","./area-legacy.b541a943.js","./index-legacy.abe63383.js","./index-legacy.4fb10b76.js","./index-legacy.c513976c.js","./index-legacy.509f8f47.js","./index-legacy.e4e6dd0a.js","./index-legacy.99cce788.js","./ImagePreview-legacy.1b7aa624.js","./index-legacy.70b1889d.js","./function-call-legacy.2cd9ba05.js","./index-legacy.daebca5d.js"],(function(e){"use strict";var t,a,o,c,i,u,s,l,d,f,p,g,m,b,A,v,h,y,w,R,x,j,k,O;return{setters:[function(e){t=e.O},function(e){a=e.s,o=e.l},function(e){c=e.d,i=e.ag,u=e.ah,s=e.r,l=e.R,d=e.$,f=e.bG,p=e.c,g=e.q,m=e.a5,b=e.B,A=e.F,v=e.f,h=e.m,y=e.o,w=e.k},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",c({name:"school-detail",setup:function(){var e=i(),c=u(),P=s({list:[],info:{},showArea:!1,columns:[],showProvince:""}),Z=s({address:"",logo:"",email:"",emergencyContact:"",addressLongitudeLatitude:""}),L=l();console.log(L.value);var V=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=(v.user.data.schoolInfos||[]).map((function(e){return e.id})).join(","),e.prev=1,e.next=4,h.get("/api-school/school/detail/".concat(n),{});case 4:t=e.sent,a=t.data,P.info=a,P.showProvince=a.provinceName+a.cityName,Z.logo=a.logo,Z.email=a.email,Z.emergencyContact=a.emergencyContact,Z.addressLongitudeLatitude=a.addressLongitudeLatitude,Z.address=a.address,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(1),y(e.t0.message);case 17:case"end":return e.stop()}}),e,null,[[1,14]])})));return function(){return e.apply(this,arguments)}}(),D=function(){var t=r(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Z.email){t.next=5;break}if(a=/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,Z.email.match(a)){t.next=5;break}return y("请输入正确的邮箱"),t.abrupt("return");case 5:if(Z.address){t.next=8;break}return y("请输入详细地址"),t.abrupt("return");case 8:return t.prev=8,t.next=11,h.post("/api-school/school/update",{hideLoading:!1,data:n({},Z)});case 11:"type"===c.query.page?e.go(-1):w({api:"back"}),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(8),y(t.t0.message);case 17:console.log("submitInfo");case 18:case"end":return t.stop()}}),t,null,[[8,14]])})));return function(){return t.apply(this,arguments)}}();d((function(){V()}));var C=function(){L.value.startUpload()};d((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=r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{w({api:"sourseMapApi",content:{type:"modify",orginPoint:Z.addressLongitudeLatitude}},(function(e){console.log(e.content.nowPoint,e.content.address,"------"),Z.addressLongitudeLatitude=e.content.nowPoint,Z.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 d((function(){f("sourseMapApi",(function(e){console.log(e.content.nowPoint,e.content.address),Z.addressLongitudeLatitude=e.content.nowPoint,Z.address=e.content.address}))})),function(){return p(A,null,[p("div",{class:a.schoolEidtWrap},[p("div",{class:a.eidtWrap},[p(j,{inset:!0},{default:function(){return[p("div",{class:a.schoolDtailWrap,onClick:C},[p(k,{width:50,height:50,fit:"cover",class:a.schoolICon,src:Z.logo?Z.logo:o},null),p("div",{class:a.schoolBtnWrap},[p("p",null,[g("修改校徽")]),p(m,{name:"arrow",size:"12px",color:"#aaa"},null)])])]}})]),p("div",{class:a.eidtWrap},[p(j,{inset:!0},{default:function(){return[p(O,{"label-align":"left",rows:3,modelValue:Z.emergencyContact,"onUpdate:modelValue":function(e){return Z.emergencyContact=e},maxlength:50,placeholder:"请输入姓名"},{label:function(){return p("p",{class:a.addP},[g("主管领导")])}}),p(O,{"label-align":"left",rows:3,modelValue:Z.email,"onUpdate:modelValue":function(e){return Z.email=e},maxlength:50,placeholder:"请输入邮箱账号"},{label:function(){return p("p",{class:a.addP},[g("邮箱账号")])}}),p(O,{"label-align":"top",maxlength:50,placeholder:"请选择学校地址",type:"textarea",disabled:!0,onClick:function(){return M()}},{extra:function(){return p("div",{class:a.loctionIconWrap},null)},label:function(){return p("p",{class:[a.addP,a.addDet]},[g("学校地址 "),p(k,{width:19,height:18,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAA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K9AAz66v7/0bWWv0Psg2Atkb131gAXqn/1tKvIAhuJ6IDSRfhNtT0daRh7XneSRF5jpnPLgaltfZ1RKTRf4OmIRFZ1yhTRLYZYx6bSxfW2huI6BERubKN8DOuDTpNRGfiOD6TyWReFhF94OpNtc+6iIh6a7XaxZ7nrRSRla5jVb763ZSI6CURuZuZT9Z9Nb1LU4CIMBFppKxP/aVZjKJanhWRmIieFpH9mqTTqaVlER8bG1uZzWZvUoAisoaIrgKwdJEINdFqxD6vgGZnZ48Xi0W1wjz6D4HbHVCZGLHzAAAAAElFTkSuQmCC"},null)])},input:function(){return p("div",{style:{paddingTop:"6px",paddingRight:"13px"}},[Z.address])}})]}}),p(x,{class:a.upload,cropper:!0,bucket:"gyt",path:"/orchestra/",modelValue:Z.logo,"onUpdate:modelValue":function(e){return Z.logo=e},ref:L},null)]),p(t,{position:"bottom"},{default:function(){return[p("div",{class:"btnGroup"},[p(b,{type:"primary",round:!0,block:!0,onClick:D},{default:function(){return[g("确认修改")]}})])]}})])])}}}))}}}))}();