Auto Submit

pull/1/head
autosubmit 2 years ago
parent 02b60ac85a
commit b20e76fe47

@ -176,6 +176,11 @@
if (key == item?.position) {
if(data?.[item?.position - 2]?.status == 2 || item?.status == 2 || item?.position == 1){
if(data?.[item?.position - 2]?.status == 2 && item?.status != 2){ //防止绑定两次相同的点击事件
el.addEventListener("click", function () {
window.top.location.href = `https://educoder.net/tasks/${item?.identifier}`
})
}
el.style.cursor="pointer";
el.addEventListener("mouseover",function(){
el.getElementsByClassName("mask")[0].classList.add("hidden")
@ -210,7 +215,7 @@
}
if (item?.finished_time) {
el.addEventListener("click", function () {
window.location.href = `https://educoder.net/tasks/${item?.identifier}`
window.top.location.href = `https://educoder.net/tasks/${item?.identifier}`
})
el.style.cursor="pointer";
const wanchengIcon = el.getElementsByClassName("wancheng")[0]

@ -880,9 +880,10 @@ var Export = function Export(_ref) {
if ((_exercise$exerciseExp5 = exercise.exerciseExportHeadData) !== null && _exercise$exerciseExp5 !== void 0 && _exercise$exerciseExp5.user) {
title = "".concat(((_exercise$exerciseExp6 = exercise.exerciseExportHeadData) === null || _exercise$exerciseExp6 === void 0 ? void 0 : _exercise$exerciseExp6.student_id) || '').concat((_exercise$exerciseExp7 = exercise.exerciseExportHeadData) === null || _exercise$exerciseExp7 === void 0 ? void 0 : _exercise$exerciseExp7.user);
}
if (!!(allStudents !== null && allStudents !== void 0 && allStudents.length) && type === 'all') {
next();
}
// if (!!allStudents?.length && type === 'all') {
next();
// }
case 14:
case "end":
return _context11.stop();
@ -893,23 +894,6 @@ var Export = function Export(_ref) {
return _ref7.apply(this, arguments);
};
}();
var uploadRequest = function uploadRequest(params, url, callback, error) {
var newUrl = url;
var xhr = new window.XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('load', function (res) {
callback(res, xhr);
}, false);
xhr.addEventListener('error', function (err) {
if (error) {
error(err);
}
}, false);
xhr.responseType = 'blob';
xhr.open('GET', newUrl);
xhr.send(null);
return xhr;
};
var setPdfFooter = function setPdfFooter(pdf) {
var totalPages = pdf.internal.getNumberOfPages();
for (var pageNumber = 1; pageNumber <= totalPages; pageNumber += 1) {

Loading…
Cancel
Save