|
|
@ -480,6 +480,7 @@
|
|
|
|
<script src="../static/ajax/libs/layer/layer.min.js" th:src="@{/ajax/libs/layer/layer.min.js}"></script>
|
|
|
|
<script src="../static/ajax/libs/layer/layer.min.js" th:src="@{/ajax/libs/layer/layer.min.js}"></script>
|
|
|
|
<script th:inline="javascript">
|
|
|
|
<script th:inline="javascript">
|
|
|
|
var prefix = ctx + "system/question";
|
|
|
|
var prefix = ctx + "system/question";
|
|
|
|
|
|
|
|
var save = ctx + "system/examnum";
|
|
|
|
// 获取当前页面的URL
|
|
|
|
// 获取当前页面的URL
|
|
|
|
var urlParams = new URLSearchParams(window.location.search);
|
|
|
|
var urlParams = new URLSearchParams(window.location.search);
|
|
|
|
// 获取名为 param1 的参数值
|
|
|
|
// 获取名为 param1 的参数值
|
|
|
@ -1041,6 +1042,7 @@
|
|
|
|
type:param,
|
|
|
|
type:param,
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
saveResult(params)
|
|
|
|
alert('您的总得分为:' + account + '分');
|
|
|
|
alert('您的总得分为:' + account + '分');
|
|
|
|
document.getElementById('submit').disabled = true
|
|
|
|
document.getElementById('submit').disabled = true
|
|
|
|
document.getElementById('submit').style.backgroundColor = '#999'
|
|
|
|
document.getElementById('submit').style.backgroundColor = '#999'
|
|
|
@ -1119,6 +1121,7 @@
|
|
|
|
type:param,
|
|
|
|
type:param,
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
saveResult(params)
|
|
|
|
alert('您的总得分为:' + account + '分');
|
|
|
|
alert('您的总得分为:' + account + '分');
|
|
|
|
document.getElementById('submit').disabled = true
|
|
|
|
document.getElementById('submit').disabled = true
|
|
|
|
document.getElementById('submit').style.backgroundColor = '#999'
|
|
|
|
document.getElementById('submit').style.backgroundColor = '#999'
|
|
|
@ -1126,6 +1129,19 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function saveResult(params){
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: save + "/add",
|
|
|
|
|
|
|
|
type: "POST",
|
|
|
|
|
|
|
|
data: params,
|
|
|
|
|
|
|
|
success: function(data) {
|
|
|
|
|
|
|
|
console.log(data)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
error: function() {
|
|
|
|
|
|
|
|
// 请求失败时显示错误消息
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 返回一个闭包,包含内部函数的引用
|
|
|
|
// 返回一个闭包,包含内部函数的引用
|
|
|
|
// 返回一个包含内部函数引用的对象
|
|
|
|
// 返回一个包含内部函数引用的对象
|
|
|
|