12 |
- (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 n=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:{width:"350",label:"会议时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.begin_time)+"-"+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:"",label:"状态"}}),a("el-table-column",{attrs:{prop:"zip",width:"200",fixed:"right",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.dialogVisible=!0,t.status="bind",t.cur_id=e.row.id,t.name=e.row.name}}},[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: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},on:{addSuccess:t.add}})],1)],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("span",[t._v("会议系统>")]),t._v("会议管理")])}],l=a("9973"),o=a("fd49"),s={components:{Page:l["a"],Hotel:o["a"]},data:function(){return{edit:0,cur_id:"",name:"",status:"",form:{name:"",page:1,page_size:20},form1:{},total:1,list:[{name:"2333"}],loading:!1,input:"",dialogVisible:!1,dialogTitle:"添加酒店",defaultProps:{},data:[]}},methods:{addConference:function(){this.$router.push({path:"/conference/conference/add"})},add:function(){},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}))},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()}))}))}},created:function(){this.getData()}},r=s,c=(a("0330"),a("5d22")),d=Object(c["a"])(r,n,i,!1,null,null,null);e["default"]=d.exports},c18b:function(t,e,a){}}]);
- //# sourceMappingURL=chunk-cee74608.18fffbca.js.map
|