|
|
@@ -88,11 +88,10 @@
|
|
|
prop="zip" width="220" fixed="right"
|
|
|
label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button @click="dialogVisible1=true,cur_id=scope.row.id,name=scope.row.name" type="text" >管理酒店</el-button>
|
|
|
+ <el-button @click="dialogVisible1=true,cur_id=scope.row.id,name=scope.row.name,getHotel(scope.row.id)" type="text" >管理酒店</el-button>
|
|
|
<!-- <el-button @click="dialogVisible=true,status='bind',cur_id=scope.row.id,name=scope.row.name" type="text" >添加酒店</el-button> -->
|
|
|
<el-button @click="$router.push({path:'/conference/conference/add',query:{id:scope.row.id}})" class="edit" type="text">编辑会议</el-button>
|
|
|
<el-button @click="del(scope.row.id)" type="text" class="del">删除会议</el-button>
|
|
|
-
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -104,11 +103,33 @@
|
|
|
:visible.sync="dialogVisible1">
|
|
|
会议名称:{{name}}
|
|
|
<el-button size="small" @click="dialogVisible=true,status='bind'" type="primary">添加酒店</el-button>
|
|
|
+ <el-table
|
|
|
+ class="table"
|
|
|
+ :data="hotel_list" height="400"
|
|
|
+ default-expand-all
|
|
|
+ style="width: 100%;margin-top:10px;">
|
|
|
+ <el-table-column prop="name" label="酒店名称">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="telephone" label="电话">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="address" label="地址">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="ctime" label="创建时间">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="zip" width="220"
|
|
|
+ label="操作">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button @click="dialogVisible=true,dialogTitle='编辑酒店',status='edit',h_id=scope.row.id" class="edit" type="text">编辑</el-button>
|
|
|
+ <el-button @click="delHotel(scope.row.id)" type="text" class="del">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
</el-dialog>
|
|
|
<el-dialog width="80%" class="hotel"
|
|
|
:title="dialogTitle" :close-on-click-modal='false'
|
|
|
:visible.sync="dialogVisible">
|
|
|
- <Hotel :status='status' :huiyi_name='name' :huiyi_id='cur_id' @addSuccess='add'/>
|
|
|
+ <Hotel :status='status' :huiyi_name='name' :huiyi_id='cur_id' :cur_id='h_id' @addSuccess='add'/>
|
|
|
</el-dialog>
|
|
|
</section>
|
|
|
</template>
|
|
|
@@ -124,6 +145,7 @@ export default {
|
|
|
return{
|
|
|
edit:0,
|
|
|
cur_id:'',
|
|
|
+ h_id:'',
|
|
|
name:'',
|
|
|
status:'',
|
|
|
form:{name:'',page:1,page_size:20},
|
|
|
@@ -137,6 +159,7 @@ export default {
|
|
|
dialogTitle:"添加酒店",
|
|
|
defaultProps:{},
|
|
|
data: [],
|
|
|
+ hotel_list:[]
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
@@ -145,8 +168,8 @@ export default {
|
|
|
},
|
|
|
//添加酒店
|
|
|
add(){
|
|
|
- this.dialogVisible=false;
|
|
|
-
|
|
|
+ this.dialogVisible=false;
|
|
|
+ this.getHotel(this.cur_id)
|
|
|
},
|
|
|
gopage(size){
|
|
|
if(size){
|
|
|
@@ -160,6 +183,12 @@ export default {
|
|
|
this.data = res.data.data
|
|
|
})
|
|
|
},
|
|
|
+ getHotel(id){
|
|
|
+ this.$api.getConferenceHotel({conference_id:id}).then(res=>{
|
|
|
+ console.log(res.data)
|
|
|
+ this.hotel_list=res.data.data;
|
|
|
+ })
|
|
|
+ },
|
|
|
getData(){
|
|
|
var parm=this.form;
|
|
|
this.loading=true
|
|
|
@@ -182,6 +211,19 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ delHotel(id){
|
|
|
+ this.$confirm('确定删除吗', '提示', {
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.$api.deleteConferenceHotel({hotel_id:id,conference_id:this.cur_id}).then((res)=>{
|
|
|
+ this.$message({
|
|
|
+ message: '删除成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ this.getHotel(this.cur_id)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
created(){
|
|
|
// this.getPermissions()
|