|
|
|
|
@ -1753,6 +1753,7 @@ var List = function List(_ref) {
|
|
|
|
|
isshow = _useState4[0],
|
|
|
|
|
setisshow = _useState4[1];
|
|
|
|
|
var currentEnterExamRef = (0,_react_17_0_2_react.useRef)();
|
|
|
|
|
var checkboxRef = (0,_react_17_0_2_react.useRef)();
|
|
|
|
|
// 是否为集中阅卷:
|
|
|
|
|
var concentrate = false;
|
|
|
|
|
var format = 'YYYY-MM-DD';
|
|
|
|
|
@ -2004,30 +2005,29 @@ var List = function List(_ref) {
|
|
|
|
|
};
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Listmodules.listItem,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
(0,util/* openNewWindow */.xg)("/classrooms/".concat(params.coursesId, "/exercise/").concat(v.id, "/detail?random=").concat(v.is_random));
|
|
|
|
|
onClick: function onClick(e) {
|
|
|
|
|
if (!checkboxRef.current.contains(e.target)) {
|
|
|
|
|
(0,util/* openNewWindow */.xg)("/classrooms/".concat(params.coursesId, "/exercise/").concat(v.id, "/detail?random=").concat(v.is_random));
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
children: [(0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
|
|
checked: selectArrs.includes(v.id),
|
|
|
|
|
value: v.id,
|
|
|
|
|
className: "mr20 ml20",
|
|
|
|
|
style: {
|
|
|
|
|
padding: '10px'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick(e) {
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
},
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
var key = selectArrs.indexOf(v.id);
|
|
|
|
|
if (selectArrs.indexOf(v.id) > -1) {
|
|
|
|
|
setSelectArrs(selectArrs.filter(function (val) {
|
|
|
|
|
return val !== v.id;
|
|
|
|
|
}));
|
|
|
|
|
} else {
|
|
|
|
|
setSelectArrs(selectArrs.concat(v.id));
|
|
|
|
|
children: [(0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
ref: checkboxRef,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
|
|
checked: selectArrs.includes(v.id),
|
|
|
|
|
value: v.id,
|
|
|
|
|
style: {
|
|
|
|
|
padding: '10px'
|
|
|
|
|
},
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
if (selectArrs.indexOf(v.id) > -1) {
|
|
|
|
|
setSelectArrs(selectArrs.filter(function (val) {
|
|
|
|
|
return val !== v.id;
|
|
|
|
|
}));
|
|
|
|
|
} else {
|
|
|
|
|
setSelectArrs(selectArrs.concat(v.id));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Listmodules.info,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|