|
|
@@ -52,7 +52,7 @@ |
|
|
|
</el-row> |
|
|
|
</el-form-item> |
|
|
|
<template v-for="(item,index) in hotelList"> |
|
|
|
<el-card class="card" shadow="hover" :key="index"> |
|
|
|
<el-card class="card" shadow="hover" :key="'hotel'+index"> |
|
|
|
<el-row type="flex" justify="end" v-if="type=='add'"> |
|
|
|
<i class="el-icon-close" @click="delSinHotel(index)"></i> |
|
|
|
</el-row> |
|
|
@@ -66,7 +66,7 @@ |
|
|
|
</el-row> |
|
|
|
</el-form-item> |
|
|
|
<template v-for="(item,index) in hotelotherList"> |
|
|
|
<el-card class="card" shadow="hover" :key="index"> |
|
|
|
<el-card class="card" shadow="hover" :key="'hotelother'+index"> |
|
|
|
<el-row type="flex" justify="end" v-if="type=='add'"> |
|
|
|
<i class="el-icon-close" @click="delSinHotelOther(index)"></i> |
|
|
|
</el-row> |
|
|
@@ -163,10 +163,10 @@ |
|
|
|
this.hotelotherList.push(JSON.parse(JSON.stringify(this.hotelotherListObj))) |
|
|
|
}, |
|
|
|
delSinHotel(index) { |
|
|
|
this.hotelList.splice(index,1) |
|
|
|
this.hotelList.splice(index, 1) |
|
|
|
}, |
|
|
|
delSinHotelOther(index) { |
|
|
|
this.hotelotherList.splice(index,1) |
|
|
|
this.hotelotherList.splice(index, 1) |
|
|
|
}, |
|
|
|
onSubmit() { |
|
|
|
console.log('submit!'); |
|
|
|