Auto Submit

dev_local_v9_test6
autosubmit 2 years ago
parent e80de4b6bf
commit 4dfb3e85f1

@ -109,9 +109,7 @@ var List = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(function (_ref, ref)
_ref$onSelectCheckBox = _ref.onSelectCheckBox, _ref$onSelectCheckBox = _ref.onSelectCheckBox,
onSelectCheckBox = _ref$onSelectCheckBox === void 0 ? function () {} : _ref$onSelectCheckBox, onSelectCheckBox = _ref$onSelectCheckBox === void 0 ? function () {} : _ref$onSelectCheckBox,
_ref$showCheckbox = _ref.showCheckbox, _ref$showCheckbox = _ref.showCheckbox,
showCheckbox = _ref$showCheckbox === void 0 ? true : _ref$showCheckbox, showCheckbox = _ref$showCheckbox === void 0 ? true : _ref$showCheckbox;
_ref$isWrongList = _ref.isWrongList,
isWrongList = _ref$isWrongList === void 0 ? false : _ref$isWrongList;
var _useState = (0,_react_17_0_2_react.useState)(false), var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2), _useState2 = slicedToArray_default()(_useState, 2),
visible = _useState2[0], visible = _useState2[0],
@ -306,20 +304,22 @@ var List = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(function (_ref, ref)
checked: selectIds.includes(data.id) checked: selectIds.includes(data.id)
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: { style: {
display: 'flex' display: 'flex',
alignItems: 'center'
}, },
onClick: function onClick() { onClick: function onClick() {
if (data.is_warning && isWrongList) { if (data.is_warning) {
return; return;
} }
setVisible(!visible); setVisible(!visible);
}, },
className: Topicmodules.title, className: Topicmodules.title,
children: [data.is_warning && isWrongList && /*#__PURE__*/(0,jsx_runtime.jsx)("i", { children: [data.is_warning && /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: { style: {
marginRight: 8 marginRight: 5,
color: '#FF9300'
}, },
className: "iconfont icon-tishi7" className: "iconfont icon-tishi7 font14"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, { }), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
showLines: 1, showLines: 1,
showTextOnly: true, showTextOnly: true,
@ -328,7 +328,7 @@ var List = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(function (_ref, ref)
}, 1)] }, 1)]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() { onClick: function onClick() {
if (data.is_warning && isWrongList) { if (data.is_warning) {
return; return;
} }
setVisible(!visible); setVisible(!visible);

@ -26,7 +26,7 @@
display: block !important; display: block !important;
} }
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script> </style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.1163fc55.js"></script> <script src="/react/build/umi.e5b39be4.js"></script>
<script src="/react/build/js/public.js"></script> <script src="/react/build/js/public.js"></script>
</body> </body>
</html> </html>

@ -154,7 +154,10 @@ var Collection = function Collection(_ref) {
2: "适中", 2: "适中",
3: "困难" 3: "困难"
}; };
var handleDetailClick = function handleDetailClick(id) { var handleDetailClick = function handleDetailClick(id, isWarning) {
if (isWarning) {
return;
}
if (childRefs.current[id]) { if (childRefs.current[id]) {
childRefs.current[id].expandDetail(); childRefs.current[id].expandDetail();
} }
@ -306,7 +309,7 @@ var Collection = function Collection(_ref) {
cursor: 'pointer' cursor: 'pointer'
}, },
onClick: function onClick() { onClick: function onClick() {
handleDetailClick(v.question_id); handleDetailClick(v.question_id, v.is_warning);
}, },
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-chengxinkaoshishengming font14 mr5", className: "iconfont icon-chengxinkaoshishengming font14 mr5",

@ -246,7 +246,6 @@ var MisCollection = function MisCollection(_ref) {
selectIds: [], selectIds: [],
onSelectCheckBox: function onSelectCheckBox() {}, onSelectCheckBox: function onSelectCheckBox() {},
showCheckbox: false, showCheckbox: false,
isWrongList: true,
ref: function ref(el) { ref: function ref(el) {
return childRefs.current[v.question_id] = el; return childRefs.current[v.question_id] = el;
} }

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save