92 lines
4.1 KiB
Plaintext
92 lines
4.1 KiB
Plaintext
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
|
<%@page import="com.sipai.entity.maintenance.Maintenance"%>
|
|
<%request.setAttribute("Status_Finish",Maintenance.Status_Finish);%>
|
|
<%request.setAttribute("Status_CancelTOMaintainer",Maintenance.Status_CancelTOMaintainer);%>
|
|
<style type="text/css">
|
|
.select2-container .select2-selection--single{
|
|
height:34px;
|
|
line-height: 34px;
|
|
}
|
|
.select2-selection__arrow{
|
|
margin-top:3px;
|
|
}
|
|
</style>
|
|
<!-- bootstrap-star-rating -->
|
|
<link rel="stylesheet" href="<%=request.getContextPath()%>/node_modules/bootstrap-star-rating/css/star-rating.min.css"/>
|
|
<script type="text/javascript" src="<%=request.getContextPath()%>/node_modules/bootstrap-star-rating/js/star-rating.min.js" charset="utf-8"></script>
|
|
<script type="text/javascript">
|
|
function doupdate() {
|
|
var judgemaintainer =$('#judgemaintainer').val();
|
|
var judgemaintainerstaff =$('#judgemaintainerstaff').val();
|
|
var judgeresult =$('#judgeresult').val();
|
|
if(judgemaintainer==0 && judgemaintainerstaff==0 &&judgeresult==0){
|
|
showAlert('d','尚未评价!')
|
|
}else{
|
|
$.post(ext.contextPath + "/maintenance/updateData.do", $("#subForm").serialize(), function(data) {
|
|
if (data.res == 1) {
|
|
$("#table").bootstrapTable('refresh');
|
|
$(".modal").modal("hide");
|
|
}else if(data.res == 0){
|
|
showAlert('d','评价失败,请重试!');
|
|
}else{
|
|
showAlert('d',data.res);
|
|
}
|
|
},'json');
|
|
}
|
|
|
|
}
|
|
$(function() {
|
|
|
|
|
|
$("#judgemaintainer").rating('refresh',{showClear:false,showCaption:false});
|
|
$("#judgemaintainerstaff").rating('refresh',{showClear:false,showCaption:false});
|
|
$("#judgeresult").rating('refresh',{showClear:false,showCaption:false});
|
|
})
|
|
</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">
|
|
<!-- 新增界面formid强制为subForm -->
|
|
<form class="form-horizontal" id="subForm" enctype="multipart/form-data" >
|
|
<!-- 界面提醒div强制id为alertDiv -->
|
|
<div id="alertDiv"></div>
|
|
<input type="hidden" class="form-control" id ="maintenanceId" name ="id" value="${maintenance.id}">
|
|
<div class="form-group" >
|
|
<label class="col-sm-4 control-label">您对运维商服务评价:</label>
|
|
<div class="col-sm-8">
|
|
<input id="judgemaintainer" name='judgemaintainer' type="number" class="rating" min=0 max=5 step=1 data-size="xs" >
|
|
</div>
|
|
</div>
|
|
<div class="form-group" >
|
|
<label class="col-sm-4 control-label">您对运维人员服务评价:</label>
|
|
<div class="col-sm-8">
|
|
<input id="judgemaintainerstaff" name="judgemaintainerstaff" type="number" class="rating" min=0 max=5 step=1 data-size="xs" >
|
|
</div>
|
|
</div>
|
|
<div class="form-group" >
|
|
<label class="col-sm-4 control-label">您对运维结果评价:</label>
|
|
<div class="col-sm-8">
|
|
<input id="judgeresult" name="judgeresult" type="number" class="rating" min=0 max=5 step=1 data-size="xs" >
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
|
|
<button type="button" class="btn btn-primary" onclick="doupdate()" >完成评价</button>
|
|
</div>
|
|
</div>
|
|
<!-- /.modal-content -->
|
|
</div>
|
|
<!-- /.modal-dialog -->
|
|
</div>
|
|
|