все модалки могут настраивать условия (кроме даты)
This commit is contained in:
parent
575fe9f080
commit
12bb0e7bfe
@ -497,10 +497,10 @@ const RatingInputsType = ({ parentQuestion, targetQuestion, ruleIndex, setParent
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography sx={{ color: "#7E2AEA", pl: "10px", fontSize: "12px" }}>
|
<Typography sx={{ color: "#7E2AEA", pl: "10px", fontSize: "12px" }}>
|
||||||
(Ожидаемое количество ячеек)
|
Ожидаемое количество ячеек(не более доступного количества)
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
{/* <TextField
|
<TextField
|
||||||
sx={{
|
sx={{
|
||||||
marginTop: "20px",
|
marginTop: "20px",
|
||||||
width: "100%"
|
width: "100%"
|
||||||
@ -509,11 +509,13 @@ const RatingInputsType = ({ parentQuestion, targetQuestion, ruleIndex, setParent
|
|||||||
onChange={(event: React.FormEvent<HTMLInputElement>) => {
|
onChange={(event: React.FormEvent<HTMLInputElement>) => {
|
||||||
|
|
||||||
let newParentQuestion = JSON.parse(JSON.stringify(parentQuestion))
|
let newParentQuestion = JSON.parse(JSON.stringify(parentQuestion))
|
||||||
newParentQuestion.content.rule.main[ruleIndex].rules[0].answers = [(event.target as HTMLInputElement).value.replace(/[^0-9,\s]/g, "")]
|
let valueNumber = Number((event.target as HTMLInputElement).value.replace(/[^0-9,\s]/g, ""))
|
||||||
|
valueNumber = valueNumber > parentQuestion.content.steps ? parentQuestion.content.steps : valueNumber
|
||||||
|
newParentQuestion.content.rule.main[ruleIndex].rules[0].answers = [valueNumber]
|
||||||
setParentQuestion(newParentQuestion)
|
setParentQuestion(newParentQuestion)
|
||||||
|
|
||||||
}}
|
}}
|
||||||
/> */}
|
/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -98,7 +98,7 @@ const {openBranchingPanel} = useQuestionsStore.getState()
|
|||||||
),
|
),
|
||||||
title: "Ветвление",
|
title: "Ветвление",
|
||||||
value: "branching",
|
value: "branching",
|
||||||
myFunc: handleClickBranching(question.id, openBranchingPanel),
|
myFunc: () => handleClickBranching(question.id, openBranchingPanel),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -238,7 +238,7 @@ export default function QuestionsPageCard({ question, draggableProps, isDragging
|
|||||||
margin: "0 5px 0 10px",
|
margin: "0 5px 0 10px",
|
||||||
}}
|
}}
|
||||||
onClick={() => { // TODO
|
onClick={() => { // TODO
|
||||||
// const removedId = question.id;
|
const removedId = question.id;
|
||||||
// if (question.deleteTimeoutId) {
|
// if (question.deleteTimeoutId) {
|
||||||
// clearTimeout(question.deleteTimeoutId);
|
// clearTimeout(question.deleteTimeoutId);
|
||||||
// }
|
// }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user