Commit a75c9f8b authored by 黄奎's avatar 黄奎

页面修改

parent d4623756
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
<td> <td>
{{item.IsCancelStr}} {{item.IsCancelStr}}
<template v-if="item.IsCancel"> <template v-if="item.IsCancel">
<br/> {{item.CancelTime}} <br /> {{item.CancelTime}}
</template> </template>
</td> </td>
<td class="DaysInfo"> <td class="DaysInfo">
...@@ -447,25 +447,23 @@ ...@@ -447,25 +447,23 @@
}, },
//删除房型图片 //删除房型图片
delHotelImg(item, index) { delHotelImg(item, index) {
if (item.ID > 0) { var that = this
let msg = { that.Confirm("删除图片将不能恢复?", function () {
Id: item.ID, if (item.ID > 0) {
PicId: item.Pic let msg = {
} Id: item.ID,
this.$confirm('是否删除?', '提示', { PicId: item.Pic
confirmButtonText: '确定', }
cancelButtonText: '取消', that.apipost("hotel_post_RemoveHotelImage", msg, res => {
type: 'warning' console.log(res)
}).then(() => { if (res.data.resultCode == 1) {
this.apipost("hotel_post_RemoveHotelImage", msg, res => { that.addMsg.RoomImage.splice(index, 1);
}
}); });
}).catch(() => { } else {
that.addMsg.RoomImage.splice(index, 1);
}); }
} else { });
this.addMsg.RoomImage.splice(index, 1);
}
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
......
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