mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 13:56:05 +08:00
优化前段代码
This commit is contained in:
parent
d17baa54e5
commit
d4bdabb3c7
@ -18,7 +18,7 @@
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">巡检类型</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="addInspectionPlanInfo.pointObjType">
|
||||
<select class="custom-select" v-model="addInspectionPointInfo.pointObjType">
|
||||
<option selected disabled value="">必填,请选择巡检类型</option>
|
||||
<option value="2002">环境</option>
|
||||
<option value="1001">设备</option>
|
||||
@ -26,14 +26,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row" v-if="addInspectionPlanInfo.pointObjType == '2002'">
|
||||
<div class="form-group row" v-show="addInspectionPointInfo.pointObjType == '2002'">
|
||||
<label class="col-sm-2 col-form-label">位置</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="addInspectionPointInfo.pointObjName" type="text"
|
||||
placeholder="必填,请填写巡检点名称" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" v-else>
|
||||
<div class="form-group row" v-show="addInspectionPointInfo.pointObjType == '1001'">
|
||||
<label class="col-sm-2 col-form-label">巡检设备</label>
|
||||
<div class="col-sm-10">
|
||||
<vc:create path="property/machineSelect2" parentModal="addInspectionPointModel"
|
||||
|
||||
@ -24,14 +24,14 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" v-if="editInspectionPointInfo.pointObjType == '2002'">
|
||||
<div class="form-group row" v-show="editInspectionPointInfo.pointObjType == '2002'">
|
||||
<label class="col-sm-2 col-form-label">位置</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editInspectionPointInfo.pointObjName" type="text"
|
||||
placeholder="必填,请填写巡检点名称" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" v-else>
|
||||
<div class="form-group row" v-show="editInspectionPointInfo.pointObjType == '1001'">
|
||||
<label class="col-sm-2 col-form-label">巡检设备</label>
|
||||
<div class="col-sm-10">
|
||||
<vc:create path="property/machineSelect2"
|
||||
|
||||
@ -64,7 +64,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">巡检点名称</th>
|
||||
<th class="text-center">巡检类型</th>
|
||||
<th class="text-center">巡检点类型</th>
|
||||
<th class="text-center">巡检位置</th>
|
||||
<th class="text-center">巡检点ID</th>
|
||||
<th class="text-center">操作</th>
|
||||
|
||||
@ -4,12 +4,12 @@
|
||||
<div class="ibox-title">
|
||||
<h5>巡检点信息</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
<button type="button" class="btn btn-primary btn-sm "
|
||||
v-on:click="_goBack()" style="margin-right:10px">
|
||||
<button type="button" class="btn btn-primary btn-sm " v-on:click="_goBack()"
|
||||
style="margin-right:10px">
|
||||
返回
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary btn-sm"
|
||||
v-on:click="_openAddInspectionRoutePointModal()">
|
||||
v-on:click="_openAddInspectionRoutePointModal()">
|
||||
<i class="fa fa-plus"></i>
|
||||
添加
|
||||
</button>
|
||||
@ -17,42 +17,40 @@
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
|
||||
<table class="footable table table-stripped toggle-arrow-tiny"
|
||||
data-page-size="15"
|
||||
>
|
||||
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">巡检点名称</th>
|
||||
<th class="text-center">巡检点ID</th>
|
||||
<th class="text-center">设备位置</th>
|
||||
<th class="text-center">设备编码</th>
|
||||
<th class="text-center">设备名称</th>
|
||||
<th class="text-right">操作</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-center">巡检点名称</th>
|
||||
|
||||
<th class="text-center">巡检点类型</th>
|
||||
<th class="text-center">巡检位置</th>
|
||||
<th class="text-center">巡检点ID</th>
|
||||
<th class="text-right">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="inspectionPoint in inspectionRoutePointManageInfo.inspectionPoints">
|
||||
<td class="text-center">{{inspectionPoint.inspectionName}}</td>
|
||||
<td class="text-center">{{inspectionPoint.inspectionId}}</td>
|
||||
<td class="text-center">{{inspectionPoint.locationObjName}}</td>
|
||||
<td class="text-center">{{inspectionPoint.machineCode}}</td>
|
||||
<td class="text-center">{{inspectionPoint.machineName}}</td>
|
||||
<td class="text-right">
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openDeleteInspectionRoutePointModel(inspectionPoint)">删除
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
<tr v-for="inspectionPoint in inspectionRoutePointManageInfo.inspectionPoints">
|
||||
<td class="text-center">{{inspectionPoint.inspectionName}}</td>
|
||||
|
||||
</tr>
|
||||
<td class="text-center">{{inspectionPoint.pointObjType=='1001'?'设备':'环境'}}</td>
|
||||
<td class="text-center">{{inspectionPoint.pointObjName}}</td>
|
||||
<td class="text-center">{{inspectionPoint.inspectionId}}</td>
|
||||
<td class="text-right">
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openDeleteInspectionRoutePointModel(inspectionPoint)">删除
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
@ -60,10 +58,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<vc:create path="property/chooseInspectionRoutePoint"
|
||||
emitListener="inspectionRoutePointManage"
|
||||
emitFunction="listInspectionPoint"
|
||||
></vc:create>
|
||||
<vc:create path="property/chooseInspectionRoutePoint" emitListener="inspectionRoutePointManage"
|
||||
emitFunction="listInspectionPoint"></vc:create>
|
||||
|
||||
<vc:create path="property/deleteInspectionRoutePoint"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user