chunk-c0d61ea8.a63fedc2.js 9.3 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c0d61ea8"],{"0330":function(e,t,a){"use strict";a("c18b")},"129d":function(e,t,a){"use strict";a("a210")},"34bf":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e._m(0),a("div",{staticClass:"content"},[a("div",{staticClass:"filter"},[a("el-form",{attrs:{size:"small","label-width":"70px",inline:!0,"label-position":"left"}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入标题"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"}},[e._v("搜索")])],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.addConference}},[e._v("新增会议")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.list,height:"50vh",border:"","default-expand-all":"","row-key":"id"}},[a("el-table-column",{attrs:{prop:"name",label:"会议名称"}}),a("el-table-column",{attrs:{prop:"username",label:"会议海报"}}),a("el-table-column",{attrs:{prop:"username",label:"主办方"}}),a("el-table-column",{attrs:{prop:"username",label:"主讲人"}}),a("el-table-column",{attrs:{prop:"",label:"会议时间"}}),a("el-table-column",{attrs:{prop:"",label:"会议简介"}}),a("el-table-column",{attrs:{prop:"",label:"酒店信息"}}),a("el-table-column",{attrs:{prop:"",label:"状态"}}),a("el-table-column",{attrs:{prop:"zip",width:"150",label:"操作"}},[[a("el-button",{attrs:{type:"text"}},[e._v("添加酒店")]),a("el-button",{staticClass:"edit",attrs:{type:"text"}},[e._v("查看酒店")])]],2)],1),a("Page",{ref:"pageButton",attrs:{current:e.form.page,page_size:e.form.page_size,total:e.total},on:{pageChange:e.gopage}})],1),a("el-dialog",{attrs:{width:"80%",title:e.dialogTitle,"close-on-click-modal":!1,visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("Hotel")],1)],1)},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("span",[e._v("会议系统>")]),e._v("会议管理")])}],r=a("9973"),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"add_hotel"},[a("el-form",{attrs:{"label-width":"100px",size:"small"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"会议名称"}},[a("el-input",{attrs:{disabled:""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"选择历史酒店"}},[a("el-select",{attrs:{placeholder:"请选择酒店",clearable:"",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:24}},[a("h2",{staticClass:"title"},[e._v("填写酒店信息")])]),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"酒店名称"}},[a("el-input",{attrs:{clearable:""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"酒店电话"}},[a("el-input",{attrs:{clearable:""},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"酒店地址"}},[a("el-input",{attrs:{clearable:""},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticClass:"hotel_imgs",attrs:{label:"酒店图片"}},[a("el-upload",{attrs:{action:"/api/admin/uploadfile","list-type":"picture-card"}},[a("i",{staticClass:"el-icon-plus"})]),a("span",{staticStyle:{"font-size":"12px",color:"#999999"}},[e._v("建议图片尺寸为:210*160")])],1)],1),a("el-col",{attrs:{span:24}},[a("h2",{staticClass:"title"},[e._v("填写房型信息")])]),e._l(e.form.type,(function(t,l){return a("el-row",{key:l},[a("el-col",{staticClass:"hotel_type",attrs:{span:20}},[a("el-form",{attrs:{inline:!0,"label-width":"70px",size:"small"}},[a("el-form-item",{attrs:{label:"房型名称"}},[a("el-input",{attrs:{clearable:""},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:{clearable:""},model:{value:t.number,callback:function(a){e.$set(t,"number",a)},expression:"item.number"}})],1),a("el-form-item",{attrs:{label:"房型数量"}},[a("el-input",{attrs:{clearable:""},model:{value:e.form.amount,callback:function(t){e.$set(e.form,"amount",t)},expression:"form.amount"}})],1),a("el-form-item",{attrs:{label:"面积"}},[a("el-input",{attrs:{clearable:""},model:{value:e.form.area,callback:function(t){e.$set(e.form,"area",t)},expression:"form.area"}})],1),a("el-form-item",{attrs:{label:"楼层"}},[a("el-input",{attrs:{clearable:""},model:{value:e.form.amount,callback:function(t){e.$set(e.form,"amount",t)},expression:"form.amount"}})],1),a("el-form-item",{attrs:{label:"床型"}},[a("el-input",{attrs:{clearable:""},model:{value:e.form.floor,callback:function(t){e.$set(e.form,"floor",t)},expression:"form.floor"}})],1),a("el-form-item",{attrs:{label:"餐食"}},[a("el-input",{attrs:{clearable:""},model:{value:e.form.meal,callback:function(t){e.$set(e.form,"meal",t)},expression:"form.meal"}})],1),a("el-form-item",{attrs:{label:"窗户"}},[a("el-input",{attrs:{clearable:""},model:{value:e.form.window,callback:function(t){e.$set(e.form,"window",t)},expression:"form.window"}})],1),a("el-form-item",{attrs:{label:"房型"}},[a("el-select",{attrs:{clearable:""},model:{value:e.form.mattess,callback:function(t){e.$set(e.form,"mattess",t)},expression:"form.mattess"}},e._l(e.hotel_type,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"房价"}},[a("el-input",{attrs:{clearable:""},model:{value:e.form.price,callback:function(t){e.$set(e.form,"price",t)},expression:"form.price"}})],1),a("br"),a("el-form-item",{staticClass:"hotel_imgs",attrs:{label:"酒店图片"}},[a("el-upload",{attrs:{action:"/api/admin/uploadfile","list-type":"picture-card"}},[a("i",{staticClass:"el-icon-plus"})])],1)],1)],1),a("el-col",{attrs:{span:3,offset:1}},[a("el-button",{attrs:{size:"mini",plain:"",type:"primary",icon:"el-icon-top"}}),a("br"),a("br"),a("el-button",{attrs:{size:"mini",plain:"",type:"primary",icon:"el-icon-bottom"}}),a("br"),a("br"),a("el-button",{attrs:{size:"mini",plain:"",type:"danger",icon:"el-icon-delete"},on:{click:function(t){return e.del(l)}}})],1)],1)})),a("el-col",{attrs:{span:24}},[a("el-button",{attrs:{type:"info",plain:""},on:{click:e.add_type}},[e._v("添加房型")])],1)],2)],1)],1)},s=[],i={name:"hotel",data:function(){return{organizerList:[],cityList:[],form:{type:[{}]},hotel_type:[{name:"单人间",value:1},{name:"一人单住或标间合住",value:2}]}},methods:{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}))},add_type:function(){this.form.type.push({})},del:function(e){this.form.type.splice(e,1)}},created:function(){this.getData()}},c=i,m=(a("bc6c"),a("5d22")),u=Object(m["a"])(c,o,s,!1,null,null,null),p=u.exports,f={components:{Page:r["a"],Hotel:p},data:function(){return{edit:0,form:{name:"",page:1,page_size:20},form1:{},total:1,list:[{name:"2333"}],loading:!1,input:"",dialogVisible:!0,dialogTitle:"添加酒店",defaultProps:{},data:[]}},methods:{addConference:function(){this.$router.push({path:"/conference/conference/add"})},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,t=this.form;this.loading=!0,this.$api.getEnterpriseList(t).then((function(t){e.list=t.data.data.list,e.total=t.data.data.total,e.loading=!1}))},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(){}},d=f,b=(a("0330"),Object(m["a"])(d,l,n,!1,null,null,null));t["default"]=b.exports},"992c":function(e,t,a){},9973:function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-pagination",{attrs:{background:"","page-size":e.page_size?e.page_size:20,"current-page":e.current,"page-sizes":[10,20,30,40,50,60,70,80,90,100],layout:"total,sizes,prev, pager, next",total:e.total},on:{"current-change":e.getData,"size-change":e.handleSizeChange}})},n=[],r={data:function(){return{page:1}},props:{total:"",page_size:"",current:""},methods:{getData:function(e){this.page=e,this.$emit("pageChange")},handleSizeChange:function(e){this.$emit("pageChange",e)}},created:function(){}},o=r,s=(a("129d"),a("5d22")),i=Object(s["a"])(o,l,n,!1,null,null,null);t["a"]=i.exports},a210:function(e,t,a){},bc6c:function(e,t,a){"use strict";a("992c")},c18b:function(e,t,a){}}]);
  2. //# sourceMappingURL=chunk-c0d61ea8.a63fedc2.js.map