mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
优化代码
This commit is contained in:
parent
34dc12e2eb
commit
0d78bc7f2c
@ -1,5 +1,4 @@
|
||||
<div id="addCommunityModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div id="addCommunityModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body">
|
||||
@ -11,45 +10,37 @@
|
||||
<label class="col-sm-2 col-form-label">小区名称</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="addCommunityInfo.name" type="text" placeholder="必填,请填写小区名称"
|
||||
class="form-control">
|
||||
class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">小区地区</label>
|
||||
<div class="col-sm-10">
|
||||
<select id="pro" class="form-control form-control-sm"
|
||||
style="width: 30%;display: inline;"
|
||||
v-model="selectProv"
|
||||
@change="getProv(selectProv)">
|
||||
style="width: 30%;display: inline;" v-model="selectProv"
|
||||
@change="getProv(selectProv)">
|
||||
<option value='' disabled selected style='display:none;'>请选择省</option>
|
||||
<option v-for="item in provs"
|
||||
:label="item.areaName"
|
||||
:value="item.areaCode">{{item.areaName}}
|
||||
<option v-for="item in provs" :label="item.areaName" :value="item.areaCode">
|
||||
{{item.areaName}}
|
||||
</option>
|
||||
|
||||
</select>
|
||||
|
||||
<select id="city" class="form-control form-control-sm"
|
||||
style="width: 30%;display: inline;"
|
||||
v-if="selectProv!=''"
|
||||
v-model="selectCity"
|
||||
@change="getCity(selectCity)">
|
||||
style="width: 30%;display: inline;" v-if="selectProv!=''" v-model="selectCity"
|
||||
@change="getCity(selectCity)">
|
||||
<option value='' disabled selected style='display:none;'>请选择城市</option>
|
||||
<option v-for="item in citys"
|
||||
:label="item.areaName"
|
||||
:value="item.areaCode">{{item.areaName}}
|
||||
<option v-for="item in citys" :label="item.areaName" :value="item.areaCode">
|
||||
{{item.areaName}}
|
||||
</option>
|
||||
</select>
|
||||
|
||||
<select id="area" class="form-control form-control-sm"
|
||||
style="width: 30%;display: inline;"
|
||||
v-if="selectCity!=''"
|
||||
v-model="selectArea"
|
||||
@change="getArea(selectArea)">
|
||||
style="width: 30%;display: inline;" v-if="selectCity!=''" v-model="selectArea"
|
||||
@change="getArea(selectArea)">
|
||||
<option value='' disabled selected style='display:none;'>请选择区县</option>
|
||||
<option v-for="item in areas"
|
||||
:label="item.areaName"
|
||||
:value="item.areaCode">{{item.areaName}}
|
||||
<option v-for="item in areas" :label="item.areaName" :value="item.areaCode">
|
||||
{{item.areaName}}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
@ -58,23 +49,23 @@
|
||||
<label class="col-sm-2 col-form-label">小区地址</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="addCommunityInfo.tmpAddress" type="text" placeholder="必填,请填写小区地址"
|
||||
class="form-control">
|
||||
class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">附近地标</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="addCommunityInfo.nearbyLandmarks" type="text"
|
||||
placeholder="必填,请填写附近地标" class="form-control">
|
||||
placeholder="必填,请填写附近地标" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ibox-content">
|
||||
<button class="btn btn-primary float-right" type="button"
|
||||
v-on:click="saveCommunityInfo()"><i class="fa fa-check"></i> 保存
|
||||
v-on:click="saveCommunityInfo()"><i class="fa fa-check"></i> 保存
|
||||
</button>
|
||||
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
|
||||
data-dismiss="modal">取消
|
||||
data-dismiss="modal">取消
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -83,4 +74,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -164,7 +164,7 @@
|
||||
feeTypeCd:'',
|
||||
configId:'',
|
||||
billType:'',
|
||||
roomState:'',
|
||||
roomState:'2001',
|
||||
isMore:false,
|
||||
locationTypeCdName:'',
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user