在ie8下答题进度条不更新进度问题

This commit is contained in:
keyuan 2021-05-18 17:56:27 +08:00
parent 7897e8a54a
commit 9e93b533be
3 changed files with 18 additions and 4 deletions

View File

@ -13,7 +13,7 @@
<link href="${ctx }/js/plugs/uploadify-v3.1/uploadify.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx }/js/plugs/uploadify-v3.1/jquery.uploadify-3.1.js"></script>
<script type="text/javascript" src="${ctx }/js/dw/uploadify.js"></script>
<script language="javascript" type="text/javascript" src="${ctx }/js/plugs/laydate/laydate.js"></script>
<%--<script language="javascript" type="text/javascript" src="${ctx }/js/plugs/laydate/laydate.js"></script>--%>
<script type="text/javascript" src="${ctx }/js/common/ans-common.js"></script>
<script type="text/javascript" src="${ctx }/js/common/common.js"></script><script type="text/javascript" src="${ctx }/js/common/ans-p.js"></script>
<%--<script language="javascript" type="text/javascript" src="${ctx }/js/plugs/My97DatePickerBeta/My97DatePicker/WdatePicker.js"></script>--%>
@ -120,7 +120,7 @@ label.error{
<input type="hidden" class="quId" value="${en.id }" >
<input type="hidden" class="orderById" value="${en.orderById }"/>
<input type="hidden" class="isRequired" value="${en.isRequired }">
<input type="hidden" class="answerTag" value="0" >
<input type="hidden" class="answerTag" value="0" />
<input type="hidden" class="hv" value="${en.hv}" >
<div class="quLogicInputCase">
<c:forEach items="${en.questionLogics }" var="quLogicEn" varStatus="logicSts">
@ -232,7 +232,7 @@ label.error{
<input type="hidden" class="quId" value="${en.id }">
<input type="hidden" class="orderById" value="${en.orderById }"/>
<input type="hidden" class="isRequired" value="${en.isRequired }">
<input type="hidden" class="answerTag" value="0" >
<input type="hidden" class="answerTag" value="0" />
<div class="quLogicInputCase">
<c:forEach items="${en.questionLogics }" var="quLogicEn" varStatus="logicSts">
<div class="quLogicItem quLogicItem_${logicSts.count }">

View File

@ -28,7 +28,7 @@ function bindDateEvent(){
}
}
console.debug("dateType:"+dateType);
laydate.render({
laydate.render({
elem: surveyQuItemBody.find("input.fillblankInput")[0] //指定元素
,type: 'datetime'
,format: dateFmt

View File

@ -459,46 +459,58 @@ $(document).ready(function(){
var radioSelectVal = quItemBody.find(".radioSelect").val();
if(radioSelectVal!=""){
quItemBody.find(".answerTag").val(1);
quItemBody.find(".answerTag").attr("value",1);
}else{
quItemBody.find(".answerTag").val(0);
quItemBody.find(".answerTag").attr("value",0);
}
}else{
//quItemBody.find(".answerTag").val(1);
var checks=quItemBody.find("input[type='radio']:checked");
if(checks[0]){
quItemBody.find(".answerTag").val(1);
quItemBody.find(".answerTag").attr("value",1);
}else{
quItemBody.find(".answerTag").val(0);
quItemBody.find(".answerTag").attr("value",0);
}
}
}else if(quType=="CHECKBOX"){
var checks=quItemBody.find("input[type='checkbox']:checked");
if(checks[0]){
quItemBody.find(".answerTag").val(1);
quItemBody.find(".answerTag").attr("value",1);
}else{
quItemBody.find(".answerTag").val(0);
quItemBody.find(".answerTag").attr("value",0);
}
}else if(quType==="FILLBLANK"){
var thVal=thObj.val();
if(thVal!=""){
quItemBody.find(".answerTag").val(1);
quItemBody.find(".answerTag").attr("value",1);
}else{
quItemBody.find(".answerTag").val(0);
quItemBody.find(".answerTag").attr("value",0);
}
}else if(quType==="ORDERQU"){
//quOrderByLeftUl
var orderByLabels=quItemBody.find(".quOrderByLeftUl label");
if(!orderByLabels[0]){
quItemBody.find(".answerTag").val(1);
quItemBody.find(".answerTag").attr("value",1);
}else{
quItemBody.find(".answerTag").val(0);
quItemBody.find(".answerTag").attr("value",0);
}
}else if(quType==="MULTIFILLBLANK"){
var mFillblankTableTr=thObj.parents(".mFillblankTableTr");
if(thObj.val()!=""){
mFillblankTableTr.find(".answerTag").val(1);
mFillblankTableTr.find(".answerTag").attr("value",1);
}else{
mFillblankTableTr.find(".answerTag").val(0);
mFillblankTableTr.find(".answerTag").attr("value",0);
}
}else if( quType==="SCORE" ){
//<input type="hidden" class="answerTag" value="0" >
@ -506,8 +518,10 @@ $(document).ready(function(){
var scoreNumInput=quScoreOptionTr.find(".scoreNumInput");
if(scoreNumInput.val()!=""){
quScoreOptionTr.find(".answerTag").val(1);
quScoreOptionTr.find(".answerTag").attr("value",1);
}else{
quScoreOptionTr.find(".answerTag").val(0);
quScoreOptionTr.find(".answerTag").attr("value",0);
}
}