chunk-0098b6b5.aaa08a37.js 14 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0098b6b5"],{"0353":function(e,t,a){"use strict";var r=a("6bf8"),i=RegExp.prototype.exec,s=String.prototype.replace,n=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&&(n=function(e){var t,a,n,u,m=this;return c&&(a=new RegExp("^"+m.source+"$(?!\\s)",r.call(m))),l&&(t=m[o]),n=i.call(m,e),l&&n&&(m[o]=m.global?n.index+n[0].length:t),c&&n&&n.length>1&&s.call(n[0],a,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(n[u]=void 0)})),n}),e.exports=n},1663:function(e,t,a){var r=a("212e"),i=a("3ab0");e.exports=function(e){return function(t,a){var s,n,o=String(i(t)),l=r(a),c=o.length;return l<0||l>=c?e?"":void 0:(s=o.charCodeAt(l),s<55296||s>56319||l+1===c||(n=o.charCodeAt(l+1))<56320||n>57343?e?o.charAt(l):s:e?o.slice(l,l+2):n-56320+(s-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:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","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),e.form.is_signup?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:{disabled:t.disabled,label:t.id}},[e._v(e._s(t.name))])})),1)],1)],1):e._e()],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("新增会议")])}],s=(a("fc02"),a("a450"),a("5d89")),n={components:{fuEditor:s["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",disabled:!0},{name:"邮箱",id:"email"}],form:{is_signup:0,is_popular:0,is_recommend:0,citys:[],signup_fields:["name","sex","age","job","title","company","phone","email"],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]),console.log(a),a.name?a.organizer_id?a.time?a.address?a.img?a.desc?a.speaker.length<=0?this.$message({message:"请添加主讲人",type:"error"}):a.speaker[0].name?a.speaker[0].img?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"}):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=n,l=(a("63a2"),a("5d22")),c=Object(l["a"])(o,r,i,!1,null,"5a00817e",null);t["default"]=c.exports},"353e":function(e,t,a){},"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){"use strict";a("353e")},"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"),s=a("839a")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==i(e))}},a450:function(e,t,a){var r=a("bb8b").f,i=Function.prototype,s=/^\s*function ([^ (]*)/,n="name";n in i||a("26df")&&r(i,n,{configurable:!0,get:function(){try{return(""+this).match(s)[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"),s=a("0926"),n=a("3ab0"),o=a("839a"),l=a("0353"),c=o("species"),u=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),m=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),f=!s((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),d=f?!s((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(!f||!d||"replace"===e&&!u||"split"===e&&!m){var g=/./[p],h=a(n,p,""[e],(function(e,t,a,r,i){return t.exec===l?f&&!i?{done:!0,value:g.call(t,a,r)}:{done:!0,value:e.call(a,t,r)}:{done:!1}})),v=h[0],b=h[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)})}}},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 s=a.call(e,t);if("object"!==typeof s)throw new TypeError("RegExp exec method returned something other than an Object or null");return s}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"),s=a("1b0b"),n=a("43ec"),o=a("201c"),l=a("f417"),c=a("0353"),u=a("0926"),m=Math.min,p=[].push,f="split",d="length",g="lastIndex",h=4294967295,v=!u((function(){RegExp(h,"y")}));a("c46f")("split",2,(function(e,t,a,u){var b;return b="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[d]||2!="ab"[f](/(?:ab)*/)[d]||4!="."[f](/(.?)(.?)/)[d]||"."[f](/()()/)[d]>1||""[f](/.?/)[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 s,n,o,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,f=void 0===t?h:t>>>0,v=new RegExp(e.source,u+"g");while(s=c.call(v,i)){if(n=v[g],n>m&&(l.push(i.slice(m,s.index)),s[d]>1&&s.index<i[d]&&p.apply(l,s.slice(1)),o=s[0][d],m=n,l[d]>=f))break;v[g]===s.index&&v[g]++}return m===i[d]?!o&&v.test("")||l.push(""):l.push(i.slice(m)),l[d]>f?l.slice(0,f):l}:"0"[f](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),s=void 0==a?void 0:a[t];return void 0!==s?s.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),f=s(c,RegExp),d=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),x=new f(v?c:"^(?:"+c.source+")",g),y=void 0===t?h:t>>>0;if(0===y)return[];if(0===p.length)return null===l(x,p)?[p]:[];var _=0,k=0,$=[];while(k<p.length){x.lastIndex=v?k:0;var w,C=l(x,v?p:p.slice(k));if(null===C||(w=m(o(x.lastIndex+(v?0:k)),p.length))===_)k=n(p,k,d);else{if($.push(p.slice(_,k)),$.length===y)return $;for(var E=1;E<=C.length-1;E++)if($.push(C[E]),$.length===y)return $;k=_=w}}return $.push(p.slice(_)),$}]}))}}]);
  2. //# sourceMappingURL=chunk-0098b6b5.aaa08a37.js.map