12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-688ecfe3"],{"058e":function(t,e,a){},"9ee2":function(t,e,a){"use strict";a("058e")},e0c7:function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"signup_mannage"},[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-select",{attrs:{clearable:"",placeholder:"请选择会议"},model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}})],1),a("el-form-item",{attrs:{label:""}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择酒店"},model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"}},[t._v("搜索")])],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{icon:"el-icon-plud",type:"primary"},on:{click:function(e){t.dialogVisible=!0,t.dialogTitle="添加酒店",t.status="add"}}},[t._v("添加酒店")]),a("el-button",{attrs:{plain:"",icon:"el-icon-download",type:"primary"}},[t._v("导出Excel")])],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",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:"zip",width:"200",fixed:"right",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"edit",attrs:{type:"text"},on:{click:function(a){t.dialogVisible=!0,t.dialogTitle="酒店信息",t.status="view",t.cur_id=e.row.id}}},[t._v("查看")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.dialogVisible=!0,t.dialogTitle="编辑酒店",t.status="edit",t.cur_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,cur_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("酒店管理")])}],o=a("9973"),s=a("fd49"),n={components:{Page:o["a"],Hotel:s["a"]},data:function(){return{form:{},order_status:"-3",list:[{}],reason:[],invoice:{},total:0,loading:!1,dialogTitle:"添加酒店",dialogVisible:!1,status:"add",cur_id:""}},methods:{add:function(){this.dialogVisible=!1,this.getData()},del:function(t){var e=this;this.$confirm("确定删除吗","提示",{type:"warning"}).then((function(){e.$api.delHotel({id:t}).then((function(t){e.$message({message:"删除成功",type:"success"}),e.getData()}))}))},gopage:function(t){t&&(this.form.page_size=t),this.form.page=this.$refs.pageButton.page,this.getData()},tabClick:function(){},getData:function(){var t=this,e=this.form;this.loading=!0,this.$api.getHotelList(e).then((function(e){t.list=e.data.data.list,t.total=e.data.data.total,t.loading=!1}))}},created:function(){this.getData()}},r=n,c=(a("9ee2"),a("5d22")),d=Object(c["a"])(r,l,i,!1,null,null,null);e["default"]=d.exports}}]);
- //# sourceMappingURL=chunk-688ecfe3.42001305.js.map
|