System.register(["./upload-gray-legacy.7de7f815.js","./index-legacy.a084919e.js"],(function(t,a){"use strict";var i,e,r,o,n,s,l,d=document.createElement("style");return d.textContent=".el-input.path .el-input__inner{width:420px;height:30px}.el-input.name .el-input__inner{height:50px}.el-input.desc .el-input__inner{height:60px}.el-form-item .el-form-item__label{font-size:14px;line-height:30px}.upload-information[data-v-f825f29c]{width:1020px;height:540px;padding:50px 80px 60px;color:var(--color-black);background:var(--color-white);box-shadow:0 0 20px rgba(0,0,0,.16);border-radius:34px;margin:206px auto 334px;display:flex}.upload-information .left[data-v-f825f29c]{width:270px;height:430px;color:#707070;font-size:13px;line-height:16px;background:#EDEDED;border-radius:10px;padding:15px;text-align:center;margin-right:58px}.left .upload-region[data-v-f825f29c]{position:relative;width:240px;height:329px;border:1px dashed #0071E3;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:31px}.left .upload-region img.icon[data-v-f825f29c]{width:35px;height:35px}.left .upload-region img.avatar[data-v-f825f29c]{position:absolute}.upload-information .right[data-v-f825f29c]{width:533px}.right .right-top[data-v-f825f29c]{display:flex;align-items:center;justify-content:space-between}.right .right-top .right-top-left[data-v-f825f29c]{font-size:14px;line-height:30px;display:flex;align-items:center}.right .right-top .right-top-left img[data-v-f825f29c]{width:49px;height:49px;border-radius:50%;margin-right:10px}.right .right-top .right-top-right img[data-v-f825f29c]{width:46px;height:46px;box-shadow:0 0 6px rgba(0,0,0,.16);border-radius:50%;cursor:pointer}.right .right-form[data-v-f825f29c]{margin:27px 0 60px}.right .right-button[data-v-f825f29c]{text-align:right}.right .right-button .el-button[data-v-f825f29c]{width:86px;height:40px;color:var(--color-white);font-size:14px;background-color:#999;border:1px solid #999;border-radius:20px}\n",document.head.appendChild(d),{setters:[function(t){i=t.U,e=t._},function(t){r=t.n,o=t.j,n=t.o,s=t.a,l=t._}],execute:function(){t("default",r({name:"upload-information",components:{Upload:i},data:function(){return{data:{tag:"files"},form:{data:{image:"",url:"",name:"",content:""},rules:{}}}},methods:{onupload:function(t){this.form.data.image=t},toCategory:function(){var t=this.$route.query.category;sessionStorage.setItem("conf_upload",JSON.stringify(this.form.data)),this.userInfo.member_type===o.enterprise&&n.includes(this.id)?this.$router.push({path:"/upload/card",query:{id:this.id,category:t}}):this.$router.push({path:"/upload/".concat(t),query:{id:this.id}})}},computed:{id:function(){return parseInt(this.$route.query.id)},userInfo:function(){return this.$store.state.userInfo},disabled:function(){var t=this.form.data,a=t.url,i=t.image;return!(a||i)}}},(function(){var t=this,a=t._self._c;return a("div",{staticClass:"upload-information"},[a("div",{staticClass:"left"},[a("Upload",{attrs:{data:t.data},on:{onupload:t.onupload}},[a("div",{staticClass:"upload-region"},[t.form.data&&t.form.data.image?a("img",{staticClass:"avatar",attrs:{src:t.form.data.image}}):t._e(),a("img",{staticClass:"icon",attrs:{src:e,alt:"upload icon"}}),a("br"),t._v(" "+t._s(t.$t("upload.information.drag"))+" ")])]),t._v(" "+t._s(t.$t("upload.information.uploadTip"))+" ")],1),a("div",{staticClass:"right"},[a("div",{staticClass:"right-top"},[a("div",{staticClass:"right-top-left"},[t.userInfo.avatar?a("img",{attrs:{src:t.userInfo.avatar,alt:"thumb"}}):a("img",{attrs:{src:s,alt:"thumb"}}),a("b",[t._v(t._s(t.userInfo.name))])]),a("div",{staticClass:"right-top-right"},[a("router-link",{attrs:{to:"/upload"}},[a("img",{attrs:{src:l,alt:"back"}})])],1)]),a("div",{staticClass:"right-form"},[a("el-form",{ref:"form",attrs:{model:t.form.data,rules:t.form.rules}},[a("el-form-item",{staticClass:"path",attrs:{prop:"url",label:t.$t("upload.information.person.path")}},[a("el-input",{staticClass:"path",model:{value:t.form.data.url,callback:function(a){t.$set(t.form.data,"url",a)},expression:"form.data.url"}})],1),a("el-form-item",{staticClass:"name",attrs:{prop:"name",label:t.$t("upload.information.person.name")}},[a("el-input",{staticClass:"name",attrs:{clearable:""},model:{value:t.form.data.name,callback:function(a){t.$set(t.form.data,"name",a)},expression:"form.data.name"}})],1),a("el-form-item",{staticClass:"desc",attrs:{prop:"content",label:t.$t("upload.information.person.desc")}},[a("el-input",{staticClass:"desc",attrs:{clearable:""},model:{value:t.form.data.content,callback:function(a){t.$set(t.form.data,"content",a)},expression:"form.data.content"}})],1)],1)],1),a("div",{staticClass:"right-button"},[a("el-button",{attrs:{type:"primary",disabled:t.disabled,round:""},on:{click:t.toCategory}},[t._v(t._s(t.$t("common.save")))])],1)])])}),[],!1,null,"f825f29c",null,null).exports)}}}));
