155 lines
6.7 KiB
Plaintext
155 lines
6.7 KiB
Plaintext
<%@ page language="java" pageEncoding="UTF-8" %>
|
||
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
|
||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||
|
||
<%@page import="com.sipai.entity.workorder.WorkorderDetail" %>
|
||
<%request.setAttribute("planIn", WorkorderDetail.planIn);%>
|
||
<%request.setAttribute("planOut", WorkorderDetail.planOut);%>
|
||
<%request.setAttribute("smallRepair", WorkorderDetail.smallRepair);%>
|
||
<%request.setAttribute("middleRepair", WorkorderDetail.middleRepair);%>
|
||
|
||
<style type="text/css">
|
||
.select2-container {
|
||
height: 34px;
|
||
line-height: 34px;
|
||
}
|
||
</style>
|
||
<script type="text/javascript">
|
||
|
||
/*
|
||
* 加载维修内容附表(浏览)
|
||
*/
|
||
function getViewList(pid) {
|
||
//附表内容
|
||
$("#table_repair_detail").bootstrapTable({ // 对应table标签的id
|
||
url: ext.contextPath + '/command/emergencyConfigure/getFuncJson.do', // 获取表格数据的url
|
||
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||
striped: true, //表格显示条纹,默认为false
|
||
pagination: true, // 在表格底部显示分页组件,默认false
|
||
pageList: [10, 20, 50], // 设置页面可以显示的数据条数
|
||
pageSize: 50, // 页面数据条数
|
||
pageNumber: 1, // 首页页码
|
||
sidePagination: 'server', // 设置为服务器端分页
|
||
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||
return {
|
||
rows: params.limit, // 每页要显示的数据条数
|
||
page: params.offset / params.limit + 1, // 每页显示数据的开始页码
|
||
sort: params.sort, // 要排序的字段
|
||
order: params.order,
|
||
id: pid
|
||
}
|
||
},
|
||
sortName: 'id', // 要排序的字段
|
||
sortOrder: 'desc', // 排序规则
|
||
columns: [
|
||
{
|
||
field: 'contents', // 返回json数据中的name
|
||
title: '事项名称', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle'
|
||
}, {
|
||
field: 'itemnumber', // 返回json数据中的name
|
||
title: '事项编号', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle',
|
||
},
|
||
{
|
||
field: 'personliablename', // 返回json数据中的name
|
||
title: '负责人', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle',
|
||
},
|
||
{
|
||
field: 'contentsdetail', // 返回json数据中的name
|
||
title: '事项说明', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle',
|
||
}
|
||
],
|
||
onLoadSuccess: function () { //加载成功时执行
|
||
adjustBootstrapTableView("table_repair_detail");
|
||
},
|
||
onLoadError: function () { //加载失败时执行
|
||
console.info("加载数据失败");
|
||
},
|
||
//保存列修改后的数据
|
||
onEditableSave: function (field, row, oldValue, $el) {
|
||
$.post(ext.contextPath + "/workorder/workorderRepairContent/updateNumber.do", {
|
||
id: row.id,
|
||
selfActualHour: row.selfActualHour,
|
||
outsourceActualFee: row.outsourceActualFee
|
||
}, function (data) {
|
||
if (data.res == 1) {
|
||
$("#table_repair_detail").bootstrapTable('refresh');
|
||
} else if (data.res == 0) {
|
||
showAlert('d', '编辑失败');
|
||
} else {
|
||
showAlert('d', data.res);
|
||
$("#table_repair_detail").bootstrapTable('refresh');
|
||
}
|
||
}, 'json');
|
||
},
|
||
});
|
||
}
|
||
|
||
$(function () {
|
||
getViewList('${emergencyConfigure.id}');
|
||
})
|
||
|
||
</script>
|
||
<div class="modal fade" id="subModal">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
<span aria-hidden="true">×</span></button>
|
||
<h4 class="modal-title">应急预案</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="row">
|
||
<div class="col-md-12 col-xs-12">
|
||
<form class="form-horizontal" id="subForm" enctype="multipart/form-data">
|
||
<div id="alertDiv"></div>
|
||
|
||
<div class="form-group">
|
||
<label class="col-sm-2 control-label">预案名称</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">${emergencyConfigure.name}</p>
|
||
</div>
|
||
<label class="col-sm-2 control-label">总负责人</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">${emergencyConfigure.firstperson}</p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label class="col-sm-2 control-label">总体介绍</label>
|
||
<div class="col-sm-10">
|
||
<p class="form-control-static">${emergencyConfigure.memo}</p>
|
||
</div>
|
||
</div>
|
||
|
||
</form>
|
||
|
||
<div class="box box-primary">
|
||
<div class="box-header with-border">
|
||
<h3 class="box-title">分项内容</h3>
|
||
<div class="box-tools pull-right">
|
||
|
||
</div>
|
||
</div>
|
||
<div class="box-body ">
|
||
<table id="table_repair_detail" style="table-layout:fixed;"></table>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|