优化巡检功能

This commit is contained in:
java110 2022-03-07 11:45:59 +08:00
parent 3fcd85e93f
commit 36148f0475
2 changed files with 32 additions and 43 deletions

View File

@ -1,5 +1,4 @@
<div id="addInspectionPlanModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" <div id="addInspectionPlanModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
aria-hidden="true">
<div class="modal-dialog modal-lg"> <div class="modal-dialog modal-lg">
<div class="modal-content"> <div class="modal-content">
<div class="modal-body"> <div class="modal-body">
@ -10,17 +9,13 @@
<div class="form-group row"> <div class="form-group row">
<label class="col-sm-2 col-form-label">计划名称</label> <label class="col-sm-2 col-form-label">计划名称</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input v-model="addInspectionPlanInfo.inspectionPlanName" type="text" <input v-model="addInspectionPlanInfo.inspectionPlanName" type="text" placeholder="必填,请填写计划名称" class="form-control">
placeholder="必填,请填写计划名称" class="form-control">
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="col-sm-2 col-form-label">巡检路线</label> <label class="col-sm-2 col-form-label">巡检路线</label>
<div class="col-sm-10"> <div class="col-sm-10">
<vc:create path="property/inspectionRouteSelect2" <vc:create path="property/inspectionRouteSelect2" parentModal="addInspectionPlanModel" callBackListener="addInspectionPlanInfo" callBackFunction="notify" namespace="addInspectionPlan">
parentModal="addInspectionPlanModel"
callBackListener="addInspectionPlanInfo" callBackFunction="notify"
namespace="addInspectionPlan">
</vc:create> </vc:create>
</div> </div>
</div> </div>
@ -38,15 +33,13 @@
<div class="form-group row"> <div class="form-group row">
<label class="col-sm-2 col-form-label">开始时间</label> <label class="col-sm-2 col-form-label">开始时间</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input v-model="addInspectionPlanInfo.startTime" type="text" <input v-model="addInspectionPlanInfo.startTime" type="text" placeholder="必填,请填写开始时间" class="form-control addInspectionPlanStartTime">
placeholder="必填,请填写开始时间" class="form-control addInspectionPlanStartTime">
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="col-sm-2 col-form-label">结束时间</label> <label class="col-sm-2 col-form-label">结束时间</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input v-model="addInspectionPlanInfo.endTime" type="text" placeholder="必填,请填写结束时间" <input v-model="addInspectionPlanInfo.endTime" type="text" placeholder="必填,请填写结束时间" class="form-control addInspectionPlanEndTime">
class="form-control addInspectionPlanEndTime">
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
@ -74,19 +67,15 @@
<div class="form-group row"> <div class="form-group row">
<label class="col-sm-2 col-form-label">备注</label> <label class="col-sm-2 col-form-label">备注</label>
<div class="col-sm-10"> <div class="col-sm-10">
<textarea v-model="addInspectionPlanInfo.remark" type="text" placeholder="选填,请填写备注" <textarea v-model="addInspectionPlanInfo.remark" type="text" placeholder="选填,请填写备注" class="form-control">
class="form-control">
</textarea> </textarea>
</div> </div>
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<button class="btn btn-primary float-right" type="button" <button class="btn btn-primary float-right" type="button" v-on:click="saveInspectionPlanInfo()">
v-on:click="saveInspectionPlanInfo()">
<i class="fa fa-check"></i>&nbsp;保存 <i class="fa fa-check"></i>&nbsp;保存
</button> </button>
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;" <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" v-on:click="cleanInspectionPlanAddModel()" data-dismiss="modal">
v-on:click="cleanInspectionPlanAddModel()"
data-dismiss="modal">
<i class="fa fa-close"></i>&nbsp;取消 <i class="fa fa-close"></i>&nbsp;取消
</button> </button>
</div> </div>

View File

@ -71,7 +71,7 @@
return { return {
routeName: _term, routeName: _term,
page: 1, page: 1,
row: 10, row: 300,
communityId: vc.getCurrentCommunity().communityId communityId: vc.getCurrentCommunity().communityId
}; };
}, },