12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ce5385fc"],{"1d7f":function(e,t,a){"use strict";a.r(t);var s=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.sponsor,callback:function(t){e.$set(e.form,"sponsor",t)},expression:"form.sponsor"}},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","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:{options:e.cityList},on:{change:e.handleChangeCity},model:{value:e.form.city,callback:function(t){e.$set(e.form,"city",t)},expression:"form.city"}})],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.introduce,callback:function(t){e.$set(e.form,"introduce",t)},expression:"form.introduce"}})],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.form.signup_fields,(function(t,s){return a("el-checkbox",{key:s,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")],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,s){return a("div",{key:s,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(s,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==s?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(s)}}},[e._v("删除")])],1)],1)],1)})),0)])],1)],1),a("el-form-item",{staticStyle:{position:"fixed",bottom:"20px",right:"60px"}},[a("el-button",{attrs:{type:"primary"}},[e._v("预览")]),a("el-button",{attrs:{type:"success"}},[e._v("发布")]),a("el-button",{attrs:{type:"default"}},[e._v("保存并新增")]),a("el-button",{attrs:{type:"default"}},[e._v("保存")]),a("el-button",{attrs:{type:"danger",plain:""}},[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("新增会议")])}],l=a("5d89"),r={components:{fuEditor:l["a"]},data:function(){return{form:{is_signup:0,is_popular:0,is_recommend:0,city:[],signup_fields:[{name:"姓名",id:"1"},{name:"性别",id:"2"},{name:"年龄",id:"3"},{name:"职务",id:"4"},{name:"职称",id:"5"},{name:"职称",id:"5"}],speaker:[{name:"",intruduce:""}],img:""},optionList:[{name:"成都交通",id:"1"},{name:"成都交通",id:"1"}],organizerList:[],cityList:[],activeName:"first",imageUrl:""}},methods:{handleAvatarSuccess:function(e,t){this.form.img=t.response.data,console.log(this.form.img)},handleAvatarSuccess1:function(e,t,a){var s=this.form.speaker[e];s.img=a.response.data,this.$set(this.form.speaker,e,s)},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.form;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(){this.getData()}},o=r,n=(a("cd27"),a("5d22")),c=Object(n["a"])(o,s,i,!1,null,"2668156d",null);t["default"]=c.exports},ab99:function(e,t,a){},cd27:function(e,t,a){"use strict";a("ab99")}}]);
- //# sourceMappingURL=chunk-ce5385fc.c813c327.js.map
|