(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-604d976d"],{"0353":function(e,t,a){"use strict";var r=a("6bf8"),i=RegExp.prototype.exec,n=String.prototype.replace,s=i,o="lastIndex",l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[o]||0!==t[o]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(s=function(e){var t,a,s,u,f=this;return c&&(a=new RegExp("^"+f.source+"$(?!\\s)",r.call(f))),l&&(t=f[o]),s=i.call(f,e),l&&s&&(f[o]=f.global?s.index+s[0].length:t),c&&s&&s.length>1&&n.call(s[0],a,(function(){for(u=1;u=c?e?"":void 0:(n=o.charCodeAt(l),n<55296||n>56319||l+1===c||(s=o.charCodeAt(l+1))<56320||s>57343?e?o.charAt(l):n:e?o.slice(l,l+2):s-56320+(n-55296<<10)+65536)}}},"1d7f":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e._m(0),a("div",{staticClass:"content"},[a("el-form",{staticClass:"over_y",attrs:{size:"small","label-width":"140px"}},[a("el-form-item",{attrs:{label:"会议名称:"}},[a("el-input",{attrs:{placeholder:"请输入会议名称",clearable:""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"主办方:"}},[a("el-select",{attrs:{placeholder:"请选择主办方",filterable:""},model:{value:e.form.organizer_id,callback:function(t){e.$set(e.form,"organizer_id",t)},expression:"form.organizer_id"}},e._l(e.organizerList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:12,offset:2}},[a("el-form-item",{attrs:{label:"会议时间:"}},[a("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.time,callback:function(t){e.$set(e.form,"time",t)},expression:"form.time"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"城市:"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{props:e.props,options:e.cityList},on:{change:e.handleChangeCity},model:{value:e.form.citys,callback:function(t){e.$set(e.form,"citys",t)},expression:"form.citys"}})],1)],1),a("el-col",{attrs:{span:12,offset:2}},[a("el-form-item",{attrs:{label:"地址"}},[a("el-input",{attrs:{placeholder:"请输入详细地址"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1)],1)],1),a("el-form-item",{attrs:{label:"会议简介:"}},[a("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入会议介绍"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"是否报名:"}},[a("el-switch",{attrs:{"active-text":"可报名","inactive-text":"不可报名"},model:{value:e.form.is_signup,callback:function(t){e.$set(e.form,"is_signup",t)},expression:"form.is_signup"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"是否热门:"}},[a("el-switch",{attrs:{"active-text":"热门","inactive-text":"不热门"},model:{value:e.form.is_popular,callback:function(t){e.$set(e.form,"is_popular",t)},expression:"form.is_popular"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"是否推荐:"}},[a("el-switch",{attrs:{"active-text":"推荐","inactive-text":"不推荐"},model:{value:e.form.is_recommend,callback:function(t){e.$set(e.form,"is_recommend",t)},expression:"form.is_recommend"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"报名需提交信息:"}},[a("el-checkbox-group",{model:{value:e.form.signup_fields,callback:function(t){e.$set(e.form,"signup_fields",t)},expression:"form.signup_fields"}},e._l(e.signup_fields,(function(t,r){return a("el-checkbox",{key:r,attrs:{label:t.id}},[e._v(e._s(t.name))])})),1)],1)],1)],1),a("el-form-item",{attrs:{label:"封面图:"}},[a("el-upload",{staticClass:"avatar-uploader",attrs:{action:"/api/admin/uploadfile","show-file-list":!1,"on-success":e.handleAvatarSuccess}},[e.form.img?a("img",{staticClass:"avatar",attrs:{src:e.form.img}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),a("span",{staticStyle:{"font-size":"12px",color:"#999999"}},[e._v("建议图片尺寸为:210*160")])],1),a("el-form-item",{attrs:{label:""}},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"会议详情",name:"first"}},[a("fuEditor",{ref:"editor",attrs:{value:e.form.content}})],1),a("el-tab-pane",{attrs:{label:"主讲人",name:"second"}},[a("section",{staticStyle:{height:"544px",padding:"10px 0px",border:"1px solid #ccc"}},e._l(e.form.speaker,(function(t,r){return a("div",{key:r,staticClass:"speaker"},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"主讲人姓名"}},[a("el-input",{attrs:{placeholder:"请输入主讲人姓名"},model:{value:t.name,callback:function(a){e.$set(t,"name",a)},expression:"item.name"}})],1),a("el-form-item",{attrs:{label:"主讲人简介"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入主讲人简介"},model:{value:t.intruduce,callback:function(a){e.$set(t,"intruduce",a)},expression:"item.intruduce"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"主讲人头像"}},[a("el-upload",{staticClass:"avatar-uploader speaker_avatar",attrs:{action:"/api/admin/uploadfile","show-file-list":!1,"on-success":function(t,a){e.handleAvatarSuccess1(r,t,a)}}},[t.img?a("img",{staticClass:"avatar",attrs:{src:t.img}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1)],1),a("el-col",{attrs:{span:4}},[0==r?a("el-button",{attrs:{size:"mini",type:"primary",plain:"",icon:"el-icon-plus"},on:{click:e.addSpeaker}},[e._v("添加主讲人")]):a("el-button",{attrs:{type:"danger",size:"mini",plain:""},on:{click:function(t){return e.clearSpeaker(r)}}},[e._v("删除")])],1)],1)],1)})),0)])],1)],1),a("el-form-item",{staticStyle:{position:"fixed",bottom:"10px",right:"60px"}},[a("el-button",{attrs:{type:"success"},on:{click:e.save}},[e._v("发布")]),a("el-button",{attrs:{type:"info",plain:""},on:{click:function(t){return e.$router.go(-1)}}},[e._v("返回")])],1)],1)],1)])},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("span",[e._v("会议管理>")]),e._v("新增会议")])}],n=(a("fc02"),a("a450"),a("5d89")),s={components:{fuEditor:n["a"]},data:function(){return{signup_fields:[{name:"姓名",id:"name"},{name:"性别",id:"sex"},{name:"年龄",id:"age"},{name:"职务",id:"job"},{name:"职称",id:"title"},{name:"公司",id:"company"},{name:"电话",id:"phone"},{name:"邮箱",id:"email"}],form:{is_signup:0,is_popular:0,is_recommend:0,citys:[],signup_fields:[],speaker:[{name:"",intruduce:""}],img:""},optionList:[{name:"成都交通",id:"1"},{name:"成都交通",id:"1"}],organizerList:[],cityList:[],activeName:"first",imageUrl:"",props:{value:"name"}}},methods:{save:function(){var e=this,t=this.$refs.editor.getEditor(),a=this.form;a.content=t,a.city=a.citys.join(" "),a.time&&(a.begin_time=a.time[0],a.end_time=a.time[1]),a.name?a.organizer_id?a.time?a.address?a.img?(console.log(a),this.id?this.$api.putConference(a).then((function(t){0==t.data.code?(e.$message({message:"修改成功",type:"success"}),e.$router.push({path:"/conference/conference"})):e.$message({message:t.data.message,type:"error"})})):this.$api.addConference(a).then((function(t){0==t.data.code?(e.$message({message:"发布成功",type:"success"}),e.$router.push({path:"/conference/conference"})):e.$message({message:t.data.message,type:"error"})}))):this.$message({message:"请上传封面图",type:"error"}):this.$message({message:"请输入会议地址",type:"error"}):this.$message({message:"请选择会议时间",type:"error"}):this.$message({message:"请选择主办方",type:"error"}):this.$message({message:"请输入会议名称",type:"error"})},handleAvatarSuccess:function(e,t){this.form.img=t.response.data,console.log(this.form.img)},handleAvatarSuccess1:function(e,t,a){var r=this.form.speaker[e];r.img=a.response.data,this.$set(this.form.speaker,e,r)},beforeAvatarUpload:function(){},handleClick:function(){},addSpeaker:function(){this.form.speaker.push({name:"",intruduce:""})},clearSpeaker:function(e){this.form.speaker.splice(e,1)},addHotelType:function(){this.form.hotel.type.push({})},handleChangeCity:function(e){console.log(e,222222222)},gopage:function(e){e&&(this.form.page_size=e),this.form.page=this.$refs.pageButton.page,this.getData()},getPermissions:function(){var e=this;this.$api.getUserPermissions().then((function(t){e.data=t.data.data}))},getData:function(){var e=this;this.$api.getAllOrganizer().then((function(t){e.organizerList=t.data.data})),this.$api.getCityList().then((function(t){e.cityList=t.data.data}))},del:function(e){var t=this;this.$confirm("确定删除吗","提示",{type:"warning"}).then((function(){t.$api.deleteEnterprise({id:e}).then((function(e){t.$message({message:"删除成功",type:"success"}),t.getData()}))}))}},created:function(){var e=this;this.getData(),console.log(this.$route),this.$route.query.id&&(this.id=this.$route.query.id,this.$api.getConference({id:this.id}).then((function(t){e.form=t.data.data,e.form.is_signup=Boolean(e.form.is_signup),e.form.is_popular=Boolean(e.form.is_popular),e.form.is_recommend=Boolean(e.form.is_recommend),e.form.citys=e.form.city.split(" "),e.form.time=[e.form.begin_time,e.form.end_time]})))}},o=s,l=(a("cd78"),a("5d22")),c=Object(l["a"])(o,r,i,!1,null,"db261e2e",null);t["default"]=c.exports},"43ec":function(e,t,a){"use strict";var r=a("1663")(!0);e.exports=function(e,t,a){return t+(a?r(e,t).length:1)}},"63a2":function(e,t,a){},"6bf8":function(e,t,a){"use strict";var r=a("a86f");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"804d":function(e,t,a){var r=a("9cff"),i=a("cea2"),n=a("839a")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[n])?!!t:"RegExp"==i(e))}},a450:function(e,t,a){var r=a("bb8b").f,i=Function.prototype,n=/^\s*function ([^ (]*)/,s="name";s in i||a("26df")&&r(i,s,{configurable:!0,get:function(){try{return(""+this).match(n)[1]}catch(e){return""}}})},bf73:function(e,t,a){"use strict";var r=a("0353");a("e99b")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},c46f:function(e,t,a){"use strict";a("bf73");var r=a("84e8"),i=a("065d"),n=a("0926"),s=a("3ab0"),o=a("839a"),l=a("0353"),c=o("species"),u=!n((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var a="ab".split(e);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();e.exports=function(e,t,a){var p=o(e),m=!n((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),d=m?!n((function(){var t=!1,a=/a/;return a.exec=function(){return t=!0,null},"split"===e&&(a.constructor={},a.constructor[c]=function(){return a}),a[p](""),!t})):void 0;if(!m||!d||"replace"===e&&!u||"split"===e&&!f){var h=/./[p],g=a(s,p,""[e],(function(e,t,a,r,i){return t.exec===l?m&&!i?{done:!0,value:h.call(t,a,r)}:{done:!0,value:e.call(a,t,r)}:{done:!1}})),v=g[0],b=g[1];r(String.prototype,e,v),i(RegExp.prototype,p,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},cd78:function(e,t,a){"use strict";a("63a2")},f417:function(e,t,a){"use strict";var r=a("d445"),i=RegExp.prototype.exec;e.exports=function(e,t){var a=e.exec;if("function"===typeof a){var n=a.call(e,t);if("object"!==typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},fc02:function(e,t,a){"use strict";var r=a("804d"),i=a("a86f"),n=a("1b0b"),s=a("43ec"),o=a("201c"),l=a("f417"),c=a("0353"),u=a("0926"),f=Math.min,p=[].push,m="split",d="length",h="lastIndex",g=4294967295,v=!u((function(){RegExp(g,"y")}));a("c46f")("split",2,(function(e,t,a,u){var b;return b="c"=="abbc"[m](/(b)*/)[1]||4!="test"[m](/(?:)/,-1)[d]||2!="ab"[m](/(?:ab)*/)[d]||4!="."[m](/(.?)(.?)/)[d]||"."[m](/()()/)[d]>1||""[m](/.?/)[d]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return a.call(i,e,t);var n,s,o,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,m=void 0===t?g:t>>>0,v=new RegExp(e.source,u+"g");while(n=c.call(v,i)){if(s=v[h],s>f&&(l.push(i.slice(f,n.index)),n[d]>1&&n.index=m))break;v[h]===n.index&&v[h]++}return f===i[d]?!o&&v.test("")||l.push(""):l.push(i.slice(f)),l[d]>m?l.slice(0,m):l}:"0"[m](void 0,0)[d]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,r){var i=e(this),n=void 0==a?void 0:a[t];return void 0!==n?n.call(a,i,r):b.call(String(i),a,r)},function(e,t){var r=u(b,e,this,t,b!==a);if(r.done)return r.value;var c=i(e),p=String(this),m=n(c,RegExp),d=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),x=new m(v?c:"^(?:"+c.source+")",h),y=void 0===t?g:t>>>0;if(0===y)return[];if(0===p.length)return null===l(x,p)?[p]:[];var _=0,k=0,$=[];while(k