mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-26 08:16:47 +08:00
加入巡检任务
This commit is contained in:
parent
a7934bb1a6
commit
7584e149e4
106
public/components/inspectionTaskManage/inspectionTaskManage.html
Normal file
106
public/components/inspectionTaskManage/inspectionTaskManage.html
Normal file
@ -0,0 +1,106 @@
|
||||
<div >
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox ">
|
||||
<div class="ibox-title">
|
||||
<h5>查询条件</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4" >
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入执行人" v-model="inspectionTaskManageInfo.conditions.planUserName" class=" form-control">
|
||||
</div> </div><div class="col-sm-4" >
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入巡检计划" v-model="inspectionTaskManageInfo.conditions.inspectionPlanId" class=" form-control">
|
||||
</div> </div><div class="col-sm-3" >
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入巡检时间" v-model="inspectionTaskManageInfo.conditions.actInsTime" class=" form-control">
|
||||
</div> </div><div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryInspectionTaskMethod()">
|
||||
<i class="glyphicon glyphicon-search"></i> 查询
|
||||
</button>
|
||||
</div></div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox">
|
||||
<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="_openAddInspectionTaskModal()">
|
||||
<i class="glyphicon glyphicon-plus"></i>
|
||||
添加巡检任务
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
|
||||
<table class="footable table table-stripped toggle-arrow-tiny"
|
||||
data-page-size="15"
|
||||
>
|
||||
<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">实际巡检时间</th>
|
||||
<th class="text-center">巡检人</th>
|
||||
<th class="text-center">巡检方式</th>
|
||||
<th class="text-center">操作</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="inspectionTask in inspectionTaskManageInfo.inspectionTasks">
|
||||
<td class="text-center">{{inspectionTask.taskId}}</td>
|
||||
<td class="text-center">{{inspectionTask.taskId}}</td>
|
||||
<td class="text-center">{{inspectionTask.inspectionPlanId}}</td>
|
||||
<td class="text-center">{{inspectionTask.planInsTime}}</td>
|
||||
<td class="text-center">{{inspectionTask.actInsTime}}</td>
|
||||
<td class="text-center">{{inspectionTask.planUserName}}</td>
|
||||
<td class="text-center">{{inspectionTask.signType}}</td>
|
||||
<td class="text-center"><div class="btn-group">
|
||||
<button class="btn-white btn btn-xs" v-on:click="_openEditInspectionTaskModel(inspectionTask)">修改</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs" v-on:click="_openDeleteInspectionTaskModel(inspectionTask)">删除</button>
|
||||
</div></td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
<vc:create name="pagination"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<vc:create name="addInspectionTask"
|
||||
callBackListener=""
|
||||
callBackFunction=""
|
||||
></vc:create>
|
||||
<vc:create name="editInspectionTask"></vc:create>
|
||||
<vc:create name="deleteInspectionTask"></vc:create>
|
||||
|
||||
</div>
|
||||
@ -0,0 +1,85 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function(vc){
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data:{
|
||||
inspectionTaskManageInfo:{
|
||||
inspectionTasks:[],
|
||||
total:0,
|
||||
records:1,
|
||||
moreCondition:false,
|
||||
taskId:'',
|
||||
conditions:{
|
||||
planUserName:'',
|
||||
inspectionPlanId:'',
|
||||
actInsTime:'',
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod:function(){
|
||||
vc.component._listInspectionTasks(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent:function(){
|
||||
|
||||
vc.on('inspectionTaskManage','listInspectionTask',function(_param){
|
||||
vc.component._listInspectionTasks(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination','page_event',function(_currentPage){
|
||||
vc.component._listInspectionTasks(_currentPage,DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods:{
|
||||
_listInspectionTasks:function(_page, _rows){
|
||||
|
||||
vc.component.inspectionTaskManageInfo.conditions.page = _page;
|
||||
vc.component.inspectionTaskManageInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params:vc.component.inspectionTaskManageInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('inspectionTask.listInspectionTasks',
|
||||
param,
|
||||
function(json,res){
|
||||
var _inspectionTaskManageInfo=JSON.parse(json);
|
||||
vc.component.inspectionTaskManageInfo.total = _inspectionTaskManageInfo.total;
|
||||
vc.component.inspectionTaskManageInfo.records = _inspectionTaskManageInfo.records;
|
||||
vc.component.inspectionTaskManageInfo.inspectionTasks = _inspectionTaskManageInfo.inspectionTasks;
|
||||
vc.emit('pagination','init',{
|
||||
total:vc.component.inspectionTaskManageInfo.records,
|
||||
currentPage:_page
|
||||
});
|
||||
},function(errInfo,error){
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_openAddInspectionTaskModal:function(){
|
||||
vc.emit('addInspectionTask','openAddInspectionTaskModal',{});
|
||||
},
|
||||
_openEditInspectionTaskModel:function(_inspectionTask){
|
||||
vc.emit('editInspectionTask','openEditInspectionTaskModal',_inspectionTask);
|
||||
},
|
||||
_openDeleteInspectionTaskModel:function(_inspectionTask){
|
||||
vc.emit('deleteInspectionTask','openDeleteInspectionTaskModal',_inspectionTask);
|
||||
},
|
||||
_queryInspectionTaskMethod:function(){
|
||||
vc.component._listInspectionTasks(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
|
||||
},
|
||||
_moreCondition:function(){
|
||||
if(vc.component.inspectionTaskManageInfo.moreCondition){
|
||||
vc.component.inspectionTaskManageInfo.moreCondition = false;
|
||||
}else{
|
||||
vc.component.inspectionTaskManageInfo.moreCondition = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
Loading…
Reference in New Issue
Block a user