Commit b74c4e07 authored by 熊海's avatar 熊海

优化排序界面解决审核控制台报错问题

parent 571e41a1
......@@ -20,6 +20,18 @@
<link href="<%=request.getContextPath()%>/res/css/style.css?v=4.1.0" rel="stylesheet">
<link href="<%=request.getContextPath()%>/res/js/plugins/highlight/highlight.css" rel="stylesheet">
<style type="text/css">
.shadowlight{
border-top: 9px solid #00ff00;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
}
.shadow{
border-top: 9px solid black;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
}
</style>
</head>
<body>
<script type="text/javascript">
......@@ -56,17 +68,16 @@
<td>引导指标得分</td>
<td>奖励指标得分</td>
<td>
<div style="text-align: left;">
<div style="display: inline-block;padding-bottom: 22px;margin-right: 10px">
<div style="display: flex;align-items: center;justify-content: center;height: 30px;">
<div style="display: inline-block;margin-right: 10px">
合计得分
</div>
<div style="display: inline-block;padding-top: 18px">
<div onclick="sortAsc()"
style=" width: 0px;height: 0px; border-bottom: 9px solid black;border-left: 10px solid transparent; border-right: 10px solid transparent;">
</div>
<div style="height: 18px"></div>
<div onclick="sortDesc()"
style=" width: 0px;height: 0px; border-top: 9px solid black;border-left: 10px solid transparent; border-right: 10px solid transparent;">
<div >
<%-- <div onclick="sortAsc()"--%>
<%-- style=" border-bottom: 9px solid black;border-left: 10px solid transparent; border-right: 10px solid transparent;">--%>
<%-- </div>--%>
<%-- <div style="height: 14px"></div>--%>
<div id="boxShadow" class="shadow" onclick="sortDesc()">
</div>
</div>
</div>
......
......@@ -279,9 +279,9 @@
</div>
<div class="form-group" id="submit2">
<p>
<input id="list" onclick="acheck1()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="1">驳回
<input id="list" onclick="acheck2()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="2">通过
</p>
<textarea name="question_2" cols="30" rows="3"></textarea>
......@@ -368,9 +368,9 @@
</div>
<div class="form-group" id="submit3">
<p>
<input id="list" onclick="acheck1()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="1">驳回
<input id="list" onclick="acheck2()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="2">通过
</p>
<textarea name="question_3" cols="30" rows="3"></textarea>
......@@ -468,9 +468,9 @@
</div>
<div class="form-group" id="submit4">
<p>
<input id="list" onclick="acheck1()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="1">驳回
<input id="list" onclick="acheck2()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="2">通过
</p>
<textarea name="question_4" cols="30" rows="3"></textarea>
......@@ -613,9 +613,9 @@
</div>
<div class="form-group" id="submit5">
<p>
<input id="list" onclick="acheck1()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="1">驳回
<input id="list" onclick="acheck2()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="2">通过
</p>
<textarea name="question_5" cols="30" rows="3"></textarea>
......@@ -816,9 +816,9 @@
</div>
<div class="form-group" id="submit6">
<p>
<input id="list" onclick="acheck1()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="1">驳回
<input id="list" onclick="acheck2()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="2">通过
</p>
<textarea name="question_6" cols="30" rows="3"></textarea>
......@@ -910,9 +910,9 @@
</div>
<div class="form-group" id="submit7">
<p>
<input id="list" onclick="acheck1()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="1">驳回
<input id="list" onclick="acheck2()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="2">通过
</p>
<textarea name="question_7" cols="30" rows="3"></textarea>
......@@ -984,9 +984,9 @@
</div>
<div class="form-group" id="submit8">
<p>
<input id="list" onclick="acheck1()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="1">驳回
<input id="list" onclick="acheck2()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="2">通过
</p>
<textarea name="question_8" cols="30" rows="3"></textarea>
......@@ -1031,9 +1031,9 @@
</div>
<div class="form-group" id="submit9">
<p>
<input id="list" onclick="acheck1()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="1">驳回
<input id="list" onclick="acheck2()" type="radio"
<input id="list" onclick="" type="radio"
name="list" value="2">通过
</p>
<textarea name="question_9" cols="30" rows="3"></textarea>
......
......@@ -4,38 +4,46 @@ $(function () {
//降序排列
function sortDesc() {
var sorting='desc'
if ($("#title").val().length > 50) {
swal("失败!",'输入字符过多!', "error")
} else {
$.ajax({
url: webroot + "questionnaire/selectPerformanceSummaryList",
method: "GET",
datatype: "json",
data: {
"optinName": $("#title").val(),
"sorting":sorting
},
success: (res) => {
$("tbody").empty()
for (let i = 0; i < res.data.performanceSummaryList.length; i++) {
$("tbody").append(
"<tr>" +
"<td>" + (i + 1) + "</td>" +
"<td>" + res.data.performanceSummaryList[i].optinName + "</td>" +
"<td>" + res.data.performanceSummaryList[i].basicIndicators + "</td>" +
"<td>" + res.data.performanceSummaryList[i].guideIndicators + "</td>" +
"<td>" + res.data.performanceSummaryList[i].rewardIndicators + "</td>" +
"<td>" + res.data.performanceSummaryList[i].totalScore + "</td>" +
"</tr>"
)
}
if ($("#boxShadow").hasClass('shadowlight')) {
$("#boxShadow").removeAttr('class')
$("#boxShadow").attr('class','shadow')
getTableData()
}else {
$("#boxShadow").removeAttr('class')
$("#boxShadow").attr('class','shadowlight')
var sorting='desc'
if ($("#title").val().length > 50) {
swal("失败!",'输入字符过多!', "error")
} else {
$.ajax({
url: webroot + "questionnaire/selectPerformanceSummaryList",
method: "GET",
datatype: "json",
data: {
"optinName": $("#title").val(),
"sorting":sorting
},
success: (res) => {
$("tbody").empty()
for (let i = 0; i < res.data.performanceSummaryList.length; i++) {
$("tbody").append(
"<tr>" +
"<td>" + (i + 1) + "</td>" +
"<td>" + res.data.performanceSummaryList[i].optinName + "</td>" +
"<td>" + res.data.performanceSummaryList[i].basicIndicators + "</td>" +
"<td>" + res.data.performanceSummaryList[i].guideIndicators + "</td>" +
"<td>" + res.data.performanceSummaryList[i].rewardIndicators + "</td>" +
"<td>" + res.data.performanceSummaryList[i].totalScore + "</td>" +
"</tr>"
)
}
},
error: () => {
swal("失败!",'网络有问题,稍后再试', "error")
}
})
},
error: () => {
swal("失败!",'网络有问题,稍后再试', "error")
}
})
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment