Commit 72002130 authored by zhengke's avatar zhengke

修改

parent 2fe5a92e
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="UpdateTimeStr" label="修改时间"> <el-table-column prop="UpdateTimeStr" label="修改时间">
</el-table-column> </el-table-column>
<el-table-column label="操作" width="100"> <el-table-column label="操作" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <button @click="goSubInfo('GnHotelInfo',scope.row.ID)" class="hotelBtnMan">修改</button> --> <!-- <button @click="goSubInfo('GnHotelInfo',scope.row.ID)" class="hotelBtnMan">修改</button> -->
<!-- <button @click="goUrl('HotelProductManage',item)" class="hotelBtnMan">报价与库存</button> --> <!-- <button @click="goUrl('HotelProductManage',item)" class="hotelBtnMan">报价与库存</button> -->
...@@ -339,6 +339,10 @@ ...@@ -339,6 +339,10 @@
<el-button @click="goUrl('HotelProductManage',scope.row)" style="font-size:12px;" type="primary" <el-button @click="goUrl('HotelProductManage',scope.row)" style="font-size:12px;" type="primary"
icon="iconfont icon-shouye1-copy" circle></el-button> icon="iconfont icon-shouye1-copy" circle></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top">
<el-button @click="delHotelInfo(scope.row.ID)" style="font-size:12px;" type="danger"
icon="iconfont icon-remove" circle></el-button>
</el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -399,6 +403,26 @@ ...@@ -399,6 +403,26 @@
}; };
}, },
methods: { methods: {
//删除酒店
delHotelInfo(ID){
var that = this;
that.Confirm(this.$t("tips.shifoushanchu"), function () {
var msg = {
hotelID: ID
};
that.apipost(
"hotel_post_Remove",
msg,
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.selectResource();
}
},
null
);
});
},
//批量上下架 //批量上下架
goShelves(type) { goShelves(type) {
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment