Commit d9f20ed3 authored by 黄奎's avatar 黄奎

线路

parent 72ef2902
This diff is collapsed.
......@@ -8,7 +8,7 @@
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex(),getList()" />
<input type="button" @click="outerVisible = true,dialogTitle='新增景点'" class="normalBtn" :value="$t('pub.addBtn')" />
<input type="button" @click="addjd(),dialogTitle='新增景点'" class="normalBtn" :value="$t('pub.addBtn')" />
</li>
</ul>
</div>
......@@ -58,6 +58,10 @@
<el-form-item label="景点名称" prop="Name">
<el-input class='w600' type="text" v-model="addMsg.Name" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="景点拼音">
<el-input class='w600' type="text" v-model="addMsg.PinYin" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="景点地址">
<el-select v-model="addMsg.ProvinceId" class="w150" filterable @change="getProvinceList(addMsg.ProvinceId,2)" :placeholder="$t('hotel.hotel_province')">
......@@ -122,7 +126,8 @@
Name:'',
DistrictId:'',
CityId:'',
ProvinceId:''
ProvinceId:'',
PinYin:'',
},
rules:{
......@@ -155,6 +160,17 @@
this.getProvinceList(2,1)
},
methods: {
addjd(){
this.outerVisible=true;
this.addMsg={
Id:'-1',
Name:'',
DistrictId:'',
CityId:'',
ProvinceId:'',
PinYin:'',
}
},
getProvinceList(ID,type) {
//根据省份获取城市
let msg = { Id: ID };
......@@ -200,13 +216,17 @@
}, err => {})
},
Edit(row){
this.outerVisible=true;
this.dialogTitle='修改景点'
this.addMsg.Name = row.Name;
this.addMsg.Id = row.Id;
this.addMsg.ProvinceId = row.ProvinceId;
this.getProvinceList(this.addMsg.ProvinceId,2)
this.addMsg.CityId = row.CityId;
this.getProvinceList(this.addMsg.CityId,3)
this.addMsg.DistrictId = row.DistrictId;
this.outerVisible=true;
},
addNotice(_status){
......
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