This commit is contained in:
2025-11-22 15:46:23 +08:00
parent b2b665dfb6
commit cba231ab3d
11 changed files with 197 additions and 127 deletions

View File

@@ -52,6 +52,7 @@ const PopupPicker = ({
const [defaultValue, setDefaultValue] = useState<(string | number)[]>([]);
const [defaultOptions, setDefaultOptions] = useState<PickerOption[][]>([]);
const [pickerCurrentValue, setPickerCurrentValue] = useState<(string | number)[]>(value);
const [tested, setTested] = useState(false)
const changePicker = (options: any[], values: any, columnIndex: number) => {
// 更新 Picker 的当前值
@@ -126,6 +127,9 @@ const PopupPicker = ({
}
}
}, [visible, value]);
const callback = (tested: boolean) => {
setTested(tested)
}
return (
<>
<CommonPopup
@@ -142,9 +146,9 @@ const PopupPicker = ({
zIndex={1000}
style={style}
>
{type === "ntrp" && (
{type === "ntrp" && !tested && (
<View className={styles.evaluateCardWrap}>
<NTRPTestEntryCard type={EvaluateScene.userEdit} />
<NTRPTestEntryCard callback={(flag) => callback(flag)} type={EvaluateScene.userEdit} />
</View>
// <View className={`${styles["examination-btn"]}}`}>
// <View className={`${styles["text-container"]}}`}>