|
|
@@ -32,8 +32,8 @@ var dealCheckBox = function () {
|
|
|
$(element).attr("hidden", "hidden").after(htmlStr);
|
|
|
});
|
|
|
};
|
|
|
-// 多选点击
|
|
|
-var ControlFlag = true; // 多选框是否可选
|
|
|
+// 多选点击(多选框是否可选)
|
|
|
+var ControlFlag = true;
|
|
|
var clickCheckBox = function (inputId) {
|
|
|
if (!ControlFlag) {
|
|
|
return;
|
|
|
@@ -52,6 +52,11 @@ var clickCheckBox = function (inputId) {
|
|
|
JqStr = ".checkbox[parent-anid='" + parentAnID + "']";
|
|
|
$(JqStr).addClass("select-answer");
|
|
|
}
|
|
|
+// 判断是否显示答题点高亮(主体课文学生未完成评阅不显示)
|
|
|
+var IsStuFills = {
|
|
|
+ StuID: false, // 身份
|
|
|
+ ProcessType:0 // 作答状态
|
|
|
+};
|
|
|
// 检测安卓和ios
|
|
|
var cTTypeFunc = function () {
|
|
|
var u = navigator.userAgent;
|
|
|
@@ -659,7 +664,8 @@ function dealNotShowFill() {
|
|
|
// 答题点判断
|
|
|
if ($(this).find(".answer-point-range").length > 0) {
|
|
|
$.each($(this).find(".answer-point-range"), function () {
|
|
|
- if ($(this).css("display") == 'inline-block') {
|
|
|
+ var HiddenFlag = ($(this).css("display") == 'inline-block') || (IsStuFills.StuID && IsStuFills.ProcessType != 2);
|
|
|
+ if (HiddenFlag) {
|
|
|
var iItemClsName = $(iItem).attr("class");
|
|
|
if (iItemClsName != null && iItemClsName.indexOf("wordStyle") > -1) {
|
|
|
$(iItem).attr("data-setstatus", "0").attr("data-lstatus", "1");
|
|
|
@@ -677,7 +683,8 @@ function dealNotShowFill() {
|
|
|
// 作答详情判断$(".answer-text")
|
|
|
if ($(this).find(".answer-text").length > 0) {
|
|
|
$.each($(this).find(".answer-text"), function () {
|
|
|
- if ($(this).css("display") == 'inline' && $(this).attr("data-astatus") == '0') {
|
|
|
+ var HiddenFlag = ($(this).css("display") == 'inline' && $(this).attr("data-astatus") == '0') || (IsStuFills.StuID && IsStuFills.ProcessType != 2);
|
|
|
+ if (HiddenFlag) {
|
|
|
var iItemClsName = $(iItem).attr("class");
|
|
|
if (iItemClsName != null && iItemClsName.indexOf("wordStyle") > -1) {
|
|
|
$(iItem).attr("data-setstatus", "0").attr("data-lstatus", "1");
|
|
|
@@ -704,6 +711,13 @@ function dealNSFillFunc() {
|
|
|
var HiddenFlag = true;
|
|
|
$.each($(iItem).children(), function (ondex, oItem) {
|
|
|
var TextVal = $(oItem).text();
|
|
|
+ // 删除自添加样式
|
|
|
+ if ($(oItem).find(".answer-audio-range").css("display") == "none") {
|
|
|
+ TextVal = TextVal.replace($(oItem).find(".answer-audio-range").text(), "");
|
|
|
+ }
|
|
|
+ if ($(oItem).find(".answer-point-range").css("display") == "none") {
|
|
|
+ TextVal = TextVal.replace($(oItem).find(".answer-point-range").text(), "");
|
|
|
+ }
|
|
|
if (TextVal != undefined && TextVal != null && TextVal != "") {
|
|
|
HiddenFlag = false;
|
|
|
}
|
|
|
@@ -1818,6 +1832,7 @@ function getAllAnswer() {
|
|
|
|
|
|
//回填所有答案,answerJson:所有作答及参考答案List,statusType:0-可作答,1-已提交,2-查看评阅
|
|
|
function backupAllAnswer(answerJson, statusType) {
|
|
|
+ IsStuFills.ProcessType = statusType;
|
|
|
if (statusType == 0) {
|
|
|
ControlFlag = true;
|
|
|
}
|
|
|
@@ -2361,6 +2376,7 @@ function mobileTEFunc(ID) {
|
|
|
// sWidthVal:屏幕宽度,isAStatus是否含有作答0表示没有,isMAStatus判断是否是主体课文1表示是
|
|
|
// data高亮知识点
|
|
|
function stuEntryFunc(sWidthVal, isAStatus, isMAStatus, data) {
|
|
|
+ IsStuFills.StuID = true;
|
|
|
bindEventYS(sWidthVal, isAStatus, isMAStatus);
|
|
|
var ReData = handleAnswerRange();
|
|
|
if (typeof (Fill) == "function") {
|