Commit 1b35278f authored by 黄奎's avatar 黄奎

页面修改

parent 5ee7f8bb
...@@ -116,14 +116,14 @@ ...@@ -116,14 +116,14 @@
<el-input type="text" v-model="addMsg.SHotelName" maxlength="100" class="w300"></el-input> <el-input type="text" v-model="addMsg.SHotelName" maxlength="100" class="w300"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="国家"> <el-form-item label="国家">
<el-select size="small" v-model="addMsg.SCountryId" placeholder="国家" <el-select size="small" v-model="addMsg.SCountryId" class="w300" placeholder="国家"
@change="getProvinceList(addMsg.SCountryId,1,1)" filterable> @change="getProvinceList(addMsg.SCountryId,1,1)" filterable>
<el-option label="すべて" :value='0'></el-option> <el-option label="すべて" :value='0'></el-option>
<el-option v-for="item in countryList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option> <el-option v-for="item in countryList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="省"> <el-form-item label="省">
<el-select size="small" v-model="addMsg.SProvinceId" placeholder="省" <el-select size="small" v-model="addMsg.SProvinceId" class="w300" placeholder="省"
@change="getProvinceList(addMsg.SProvinceId,2,1)" filterable> @change="getProvinceList(addMsg.SProvinceId,2,1)" filterable>
<el-option label="すべて" :value='0'></el-option> <el-option label="すべて" :value='0'></el-option>
<el-option v-for="item in provinceList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option> <el-option v-for="item in provinceList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
...@@ -166,7 +166,8 @@ ...@@ -166,7 +166,8 @@
<div class="HotelRight" style="float:left;width:510px;margin-top:30px;"> <div class="HotelRight" style="float:left;width:510px;margin-top:30px;">
<el-form-item label="活動施設サービス"> <el-form-item label="活動施設サービス">
<el-select multiple placeholder="選んでください" class='multiple_input w300' v-model="activeServiceArray"> <el-select multiple placeholder="選んでください" class='multiple_input w300' v-model="activeServiceArray">
<el-option v-for="item in ActivityFacilities" :key="item.HConfigId" :label="item.HName" :value="item.HName"> <el-option v-for="item in ActivityFacilities" :key="item.HConfigId" :label="item.HName"
:value="item.HName">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -221,8 +222,9 @@ ...@@ -221,8 +222,9 @@
</div> </div>
</div> </div>
<div class="btn-list" style="margin-left:60px;"><span class="common-lefttit"></span><button <div class="btn-list" style="margin-left:60px;"><span class="common-lefttit"></span><button
style="margin-right:20px;" class="chaxunSpan" :class="{'disClick':!isSubmit}" @click="submitForm('addMsg')">保存</button><button style="margin-right:20px;" class="chaxunSpan" :class="{'disClick':!isSubmit}"
class="chaxunSpan" @click="goUrl('HotelManagement')">キャンセル</button></div> @click="submitForm('addMsg')">保存</button><button class="chaxunSpan"
@click="goUrl('HotelManagement')">キャンセル</button></div>
</div> </div>
</template> </template>
<script> <script>
...@@ -317,7 +319,6 @@ ...@@ -317,7 +319,6 @@
} }
}); });
}, },
//保存数据 //保存数据
saveData() { saveData() {
this.addMsg.PublicFacilities = this.publicServiceArray.toString(); this.addMsg.PublicFacilities = this.publicServiceArray.toString();
...@@ -394,7 +395,6 @@ ...@@ -394,7 +395,6 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
this.addMsg.SID = tempData.SID; this.addMsg.SID = tempData.SID;
this.addMsg.SHotelName = tempData.SHotelName; this.addMsg.SHotelName = tempData.SHotelName;
this.addMsg.SHotelAddress = tempData.SHotelAddress; this.addMsg.SHotelAddress = tempData.SHotelAddress;
...@@ -456,8 +456,6 @@ ...@@ -456,8 +456,6 @@
if (this.addMsg.SPayType != "") { if (this.addMsg.SPayType != "") {
var arr5 = this.addMsg.SPayType.split(","); var arr5 = this.addMsg.SPayType.split(",");
if (arr5 && arr5.length > 0) { if (arr5 && arr5.length > 0) {
arr5.forEach(x => { arr5.forEach(x => {
this.payTypeChooseArray.push(x); this.payTypeChooseArray.push(x);
}); });
...@@ -479,18 +477,17 @@ ...@@ -479,18 +477,17 @@
} }
}, null); }, null);
}, },
init() { //初始化星级
GetStarList() {
this.apipost("hotel_post_GetStar", {}, this.apipost("hotel_post_GetStar", {},
response => { response => {
//初始化星级
if (response.data.resultCode == 1) { if (response.data.resultCode == 1) {
this.starslevel = response.data.data; this.starslevel = response.data.data;
} }
}, null); }, null);
}, },
getProvinceList(ID, type, isClear) {
//根据省份获取城市 //根据省份获取城市
getProvinceList(ID, type, isClear) {
let msg = { let msg = {
Id: ID Id: ID
}; };
...@@ -551,6 +548,7 @@ ...@@ -551,6 +548,7 @@
this.hotelID = this.$route.query.SID; this.hotelID = this.$route.query.SID;
this.getCountryList(); this.getCountryList();
this.getConfig(); this.getConfig();
this.GetStarList();
if (this.hotelID > 0) { if (this.hotelID > 0) {
this.getData(); this.getData();
} }
......
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