chunk-cee74608.0ae44c45.js 6.6 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cee74608"],{"0330":function(t,e,a){"use strict";a("c18b")},"34bf":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",[t._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:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.getData}},[t._v("搜索")])],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.addConference}},[t._v("新增会议")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.list,height:"59vh",border:"","default-expand-all":"","row-key":"id"}},[a("el-table-column",{attrs:{prop:"name",width:"200",label:"会议名称"}}),a("el-table-column",{attrs:{prop:"username",label:"会议海报"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("img",{attrs:{width:"100",src:t.row.img,alt:""}})]}}])}),a("el-table-column",{attrs:{prop:"username",label:"主办方"}}),a("el-table-column",{attrs:{prop:"",label:"主讲人"}}),a("el-table-column",{attrs:{prop:"",width:"120",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_signup?a("el-tag",[t._v("可报名")]):a("el-tag",{attrs:{type:"info"}},[t._v("不可报名")])]}}])}),a("el-table-column",{attrs:{width:"220",label:"会议时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 开始:"+t._s(e.row.begin_time)+" "),a("br"),t._v("\n 结束:"+t._s(e.row.end_time)+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"desc",width:"300",label:"会议简介"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"desc"},[t._v(t._s(e.row.desc))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"酒店信息"}}),a("el-table-column",{attrs:{prop:"zip",width:"220",fixed:"right",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.dialogVisible1=!0,t.cur_id=e.row.id,t.name=e.row.name,t.getHotel(e.row.id)}}},[t._v("管理酒店")]),a("el-button",{staticClass:"edit",attrs:{type:"text"},on:{click:function(a){return t.$router.push({path:"/conference/conference/add",query:{id:e.row.id}})}}},[t._v("编辑会议")]),a("el-button",{staticClass:"del",attrs:{type:"text"},on:{click:function(a){return t.del(e.row.id)}}},[t._v("删除会议")])]}}])})],1),a("Page",{ref:"pageButton",attrs:{current:t.form.page,page_size:t.form.page_size,total:t.total},on:{pageChange:t.gopage}})],1),a("el-dialog",{staticClass:"hotel",attrs:{width:"80%",title:"酒店列表","close-on-click-modal":!1,visible:t.dialogVisible1},on:{"update:visible":function(e){t.dialogVisible1=e}}},[t._v("\n 会议名称:"+t._s(t.name)+"\n "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.dialogVisible=!0,t.status="bind"}}},[t._v("添加酒店")]),a("el-table",{staticClass:"table",staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:t.hotel_list,height:"400","default-expand-all":""}},[a("el-table-column",{attrs:{prop:"name",label:"酒店名称"}}),a("el-table-column",{attrs:{prop:"telephone",label:"电话"}}),a("el-table-column",{attrs:{prop:"address",label:"地址"}}),a("el-table-column",{attrs:{prop:"ctime",label:"创建时间"}}),a("el-table-column",{attrs:{prop:"zip",width:"220",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.dialogVisible=!0,t.dialogTitle="编辑酒店",t.status="edit",t.h_id=e.row.id}}},[t._v("编辑")]),a("el-button",{staticClass:"del",attrs:{type:"text"},on:{click:function(a){return t.delHotel(e.row.id)}}},[t._v("删除")]),a("el-button",{staticClass:"edit",attrs:{type:"text"},on:{click:function(a){return t.updown(e.row.id,"up")}}},[t._v("上移")]),a("el-button",{staticClass:"edit",attrs:{type:"text"},on:{click:function(a){return t.updown(e.row.id,"down")}}},[t._v("下移")])]}}])})],1)],1),a("el-dialog",{staticClass:"hotel",attrs:{width:"80%",title:t.dialogTitle,"close-on-click-modal":!1,visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("Hotel",{attrs:{status:t.status,huiyi_name:t.name,huiyi_id:t.cur_id,cur_id:t.h_id},on:{addSuccess:t.add}})],1)],1)},l=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("span",[t._v("会议系统>")]),t._v("会议管理")])}],n=a("9973"),o=a("fd49"),s={components:{Page:n["a"],Hotel:o["a"]},data:function(){return{edit:0,cur_id:"",h_id:"",name:"",status:"",form:{name:"",page:1,page_size:20},form1:{},total:1,list:[{name:"2333"}],loading:!1,input:"",dialogVisible:!1,dialogVisible1:!1,dialogTitle:"添加酒店",defaultProps:{},data:[],hotel_list:[]}},methods:{addConference:function(){this.$router.push({path:"/conference/conference/add"})},add:function(){this.dialogVisible=!1,this.getHotel(this.cur_id)},gopage:function(t){t&&(this.form.page_size=t),this.form.page=this.$refs.pageButton.page,this.getData()},getPermissions:function(){var t=this;this.$api.getUserPermissions().then((function(e){t.data=e.data.data}))},getHotel:function(t){var e=this;this.$api.getConferenceHotel({conference_id:t}).then((function(t){e.hotel_list=t.data.data}))},updown:function(t,e){var a=this;this.$api.updown({rank:e,hotel_id:t,conference_id:this.cur_id}).then((function(t){0==t.data.code?a.getHotel(a.cur_id):a.$message({message:t.data.message,type:"error"})}))},getData:function(){var t=this,e=this.form;this.loading=!0,this.$api.getConferenceList(e).then((function(e){t.list=e.data.data.list,t.total=e.data.data.total,t.loading=!1}))},del:function(t){var e=this;this.$confirm("确定删除吗","提示",{type:"warning"}).then((function(){e.$api.deleteConference({id:t}).then((function(t){e.$message({message:"删除成功",type:"success"}),e.getData()}))}))},delHotel:function(t){var e=this;this.$confirm("确定删除吗","提示",{type:"warning"}).then((function(){e.$api.deleteConferenceHotel({hotel_id:t,conference_id:e.cur_id}).then((function(t){e.$message({message:"删除成功",type:"success"}),e.getHotel(e.cur_id)}))}))}},created:function(){this.getData()}},r=s,c=(a("0330"),a("5d22")),d=Object(c["a"])(r,i,l,!1,null,null,null);e["default"]=d.exports},c18b:function(t,e,a){}}]);
  2. //# sourceMappingURL=chunk-cee74608.0ae44c45.js.map