12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c68f0f4"],{"0353":function(e,t,a){"use strict";var r=a("6bf8"),i=RegExp.prototype.exec,n=String.prototype.replace,o=i,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(o=function(e){var t,a,o,u,f=this;return c&&(a=new RegExp("^"+f.source+"$(?!\\s)",r.call(f))),l&&(t=f[s]),o=i.call(f,e),l&&o&&(f[s]=f.global?o.index+o[0].length:t),c&&o&&o.length>1&&n.call(o[0],a,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o}),e.exports=o},"0ead":function(e,t,a){},1663:function(e,t,a){var r=a("212e"),i=a("3ab0");e.exports=function(e){return function(t,a){var n,o,s=String(i(t)),l=r(a),c=s.length;return l<0||l>=c?e?"":void 0:(n=s.charCodeAt(l),n<55296||n>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):n:e?s.slice(l,l+2):o-56320+(n-55296<<10)+65536)}}},"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)}},"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}},"6dab":function(e,t,a){"use strict";a("0ead")},"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))}},"8a3a":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:{disabled:"",clearable:""},model:{value:e.form.journal_name,callback:function(t){e.$set(e.form,"journal_name",t)},expression:"form.journal_name"}})],1),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:12}},[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}},[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}},[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),a("el-col",{attrs:{span:12}},[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)],1),a("el-row",[a("el-col",{attrs:{span:24}},[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_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)],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:"20px",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("5d89")),o={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]),console.log(a),this.id?this.$api.putActivity(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.addActivity(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"})}))},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}))}},created:function(){var e=this;this.getData(),console.log(this.$route),this.$route.query.id&&(this.id=this.$route.query.id,this.$api.getActivity({id:this.id}).then((function(t){e.form=t.data.data,e.form.citys=e.form.city.split(" "),e.form.time=[e.form.begin_time,e.form.end_time]})))}},s=o,l=(a("6dab"),a("5d22")),c=Object(l["a"])(s,r,i,!1,null,"3101cd46",null);t["default"]=c.exports},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"),o=a("3ab0"),s=a("839a"),l=a("0353"),c=s("species"),u=!n((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),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=s(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],v=a(o,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}})),g=v[0],b=v[1];r(String.prototype,e,g),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 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"),o=a("43ec"),s=a("201c"),l=a("f417"),c=a("0353"),u=a("0926"),f=Math.min,p=[].push,m="split",d="length",h="lastIndex",v=4294967295,g=!u((function(){RegExp(v,"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,o,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,m=void 0===t?v:t>>>0,g=new RegExp(e.source,u+"g");while(n=c.call(g,i)){if(o=g[h],o>f&&(l.push(i.slice(f,n.index)),n[d]>1&&n.index<i[d]&&p.apply(l,n.slice(1)),s=n[0][d],f=o,l[d]>=m))break;g[h]===n.index&&g[h]++}return f===i[d]?!s&&g.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":"")+(g?"y":"g"),x=new m(g?c:"^(?:"+c.source+")",h),y=void 0===t?v:t>>>0;if(0===y)return[];if(0===p.length)return null===l(x,p)?[p]:[];var k=0,_=0,$=[];while(_<p.length){x.lastIndex=g?_:0;var w,C=l(x,g?p:p.slice(_));if(null===C||(w=f(s(x.lastIndex+(g?0:_)),p.length))===k)_=o(p,_,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(k)),$}]}))}}]);
- //# sourceMappingURL=chunk-6c68f0f4.ab21c487.js.map
|