Files
PropertyDeployment/resources/Web/MicroCommunityWeb/html/components/property/editLocation/editLocation.html
2025-12-09 20:22:03 +08:00

168 lines
12 KiB
HTML

<div id="editLocationModel" 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">
<h3 class="m-t-none m-b ">
<span><vc:i18n name="修改" namespace="editLocation"></vc:i18n></span>
</h3>
<div class="ibox-content">
<div>
<div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">
<span><vc:i18n name="位置名称" namespace="editLocation"></vc:i18n></span>
</label>
<div class="col-sm-10">
<input v-model="editLocationInfo.locationName" type="text"
:placeholder="vc.i18n('必填,请填写位置名称','editLocation')" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">
<span><vc:i18n name="位置类型" namespace="editLocation"></vc:i18n></span>
</label>
<div class="col-sm-10">
<select class="custom-select" v-model="editLocationInfo.locationType">
<option selected disabled value="">
{{vc.i18n('必填,请选择位置类型','editLocation')}}
</option>
<option value="1000">{{vc.i18n('小区','editLocation')}}</option>
<option value="6000">{{vc.i18n('楼栋','editLocation')}}</option>
<option value="2000">{{vc.i18n('单元','editLocation')}}</option>
<option value="4000">{{vc.i18n('岗亭','editLocation')}}</option>
<option value="5000">{{vc.i18n('部门','editLocation')}}</option>
<option value="7000">{{vc.i18n('停车场','editLocation')}}</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">
<span><vc:i18n name="位置对象" namespace="editLocation"></vc:i18n></span>
</label>
<div class="col-sm-10">
<input v-model="editLocationInfo.locationObjName" type="text" disabled
:placeholder="vc.i18n('必填,请填写位置对象','editLocation')" class="form-control">
</div>
</div>
<div class="form-group row" v-show="editLocationInfo.locationType == '2000'
|| editLocationInfo.locationType == '3000'
|| editLocationInfo.locationType == '6000' ">
<label class="col-sm-2 col-form-label">
<span><vc:i18n name="修改楼栋" namespace="editLocation"></vc:i18n></span>
</label>
<div class="col-sm-10">
<!--<vc:create path="property/floorSelect2" parentModal="editLocationModel"
callBackListener="editLocation" callBackFunction="notify"
namespace="editLocation" v-model="editLocationInfo.floorId">
</vc:create>-->
<select class="custom-select" v-model="editLocationInfo.floorId"
@change="_queryUnit(editLocationInfo.floorId, '1')">
<option selected disabled value="">
{{vc.i18n('必填,请选择楼栋','editLocation')}}
</option>
<option v-for="(item,index) in editLocationInfo.floors"
:key="index" v-bind:value="item.floorId">
{{item.floorNum}}{{vc.i18n('号楼','editLocation')}}
</option>
</select>
</div>
</div>
<div class="form-group row"
v-show="editLocationInfo.locationType == '2000' || editLocationInfo.locationType == '3000' ">
<label class="col-sm-2 col-form-label">
<span><vc:i18n name="修改单元" namespace="editLocation"></vc:i18n></span>
</label>
<div class="col-sm-10">
<!--<vc:create path="property/unitSelect2" parentModal="editLocationModel"
callBackListener="editLocation" callBackFunction="notify"
namespace="editLocation">
</vc:create>-->
<select class="custom-select" v-model="editLocationInfo.unitId">
<option selected disabled value="">
{{vc.i18n('必填,请选择单元','editLocation')}}
</option>
<option v-for="(item,index) in editLocationInfo.units"
:key="index" v-bind:value="item.unitId">
{{item.unitNum}}{{vc.i18n('单元','editLocation')}}
</option>
</select>
</div>
</div>
<!-- <div class="form-group row" v-show="editLocationInfo.locationType == '3000' ">
<label class="col-sm-2 col-form-label">
<span><vc:i18n name="归属房屋" namespace="editLocation"></vc:i18n></span>
</label>
<div class="col-sm-10">
<vc:create path="property/roomSelect2" parentModal="editLocationModel"
callBackListener="editLocation" callBackFunction="notify" namespace="editLocation">
</vc:create>
</div>
</div> -->
<div class="form-group row" v-show="editLocationInfo.locationType == '4000' ">
<label class="col-sm-2 col-form-label">
<span><vc:i18n name="修改岗亭" namespace="editLocation"></vc:i18n></span>
</label>
<!--<div class="col-sm-10">
<vc:create path="property/parkingBoxSelect2" parentModal="editLocationModel"
callBackListener="editLocation" callBackFunction="notify"
namespace="editLocation">
</vc:create>
</div>-->
<div class="col-sm-10">
<select class="custom-select" v-model="editLocationInfo.boxId">
<option selected disabled value="">
{{vc.i18n('必填,请选择岗亭','editLocation')}}
</option>
<option v-for="(item,index) in editLocationInfo.parkingBoxs"
:key="index" v-bind:value="item.boxId">
{{item.boxName}}
</option>
</select>
</div>
</div>
<div class="form-group row" v-show="editLocationInfo.locationType == '7000' ">
<label class="col-sm-2 col-form-label">
<span><vc:i18n name="修改停车场" namespace="editLocation"></vc:i18n></span>
</label>
<!--<div class="col-sm-10">
<vc:create path="property/parkingAreaSelect2" parentModal="editLocationModel"
callBackListener="editLocation" callBackFunction="notify"
namespace="editLocation">
</vc:create>
</div>-->
<div class="col-sm-10">
<select class="custom-select" v-model="editLocationInfo.paId">
<option selected disabled value="">
{{vc.i18n('必填,请选择停车场','editLocation')}}
</option>
<option v-for="(item,index) in editLocationInfo.parkingAreas"
:key="index" v-bind:value="item.paId">
{{item.num}}{{vc.i18n('停车场','editLocation')}}
</option>
</select>
</div>
</div>
<!-- <div class="form-group row" v-show="editLocationInfo.locationType == '5000' ">
<label class="col-sm-2 col-form-label">
<span><vc:i18n name="修改部门" namespace="editLocation"></vc:i18n></span>
</label>
<div class="col-sm-10">
<vc:create path="frame/chooseOrgTree2" callBackListener="editLocation"></vc:create>
</div>
</div> -->
<div class="ibox-content">
<button class="btn btn-primary float-right" type="button" v-on:click="editLocation()">
<i class="fa fa-check"></i>&nbsp; {{vc.i18n('保存','editLocation')}}
</button>
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
data-dismiss="modal">
<span><vc:i18n name="取消" namespace="editLocation"></vc:i18n></span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>