|
@@ -33,7 +33,7 @@ function TranslateText(arr) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const Complex = (props, ref) => {
|
|
const Complex = (props, ref) => {
|
|
|
- const { editId, groupList = [], showList } = props;
|
|
|
|
|
|
|
+ const { editId, groupList = [], showList, formula } = props;
|
|
|
|
|
|
|
|
const [form] = Form.useForm();
|
|
const [form] = Form.useForm();
|
|
|
const formuRef = useRef();
|
|
const formuRef = useRef();
|
|
@@ -208,7 +208,14 @@ const Complex = (props, ref) => {
|
|
|
setType(1);
|
|
setType(1);
|
|
|
}
|
|
}
|
|
|
} else if (showList) {
|
|
} else if (showList) {
|
|
|
- setType(0);
|
|
|
|
|
|
|
+ if (formula) {
|
|
|
|
|
+ setType(2);
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ formuRef.current.backEndInput(formula);
|
|
|
|
|
+ }, 100);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ setType(0);
|
|
|
|
|
+ }
|
|
|
} else if (!showList) {
|
|
} else if (!showList) {
|
|
|
setAlarmId(-1);
|
|
setAlarmId(-1);
|
|
|
}
|
|
}
|