more..
This commit is contained in:
@@ -128,7 +128,7 @@ export interface VocabularyAuditQueryParams {
|
||||
start: string;
|
||||
end: string;
|
||||
studentNo?: string;
|
||||
minWords?: string;
|
||||
minCorrectWords?: string;
|
||||
}
|
||||
|
||||
export interface ClearVocabularyPassSummaryResponse {
|
||||
@@ -347,7 +347,7 @@ export const adminApi = {
|
||||
return api.get<VocabularyPassSummaryResponse>('/admin/vocabulary/test-pass-summary', { params });
|
||||
},
|
||||
|
||||
clearVocabularyPassSummary: async (data: { userId: string; start: string; end: string; studentNo?: string; minWords?: string }): Promise<ClearVocabularyPassSummaryResponse> => {
|
||||
clearVocabularyPassSummary: async (data: { userId: string; start: string; end: string; studentNo?: string; minCorrectWords?: string }): Promise<ClearVocabularyPassSummaryResponse> => {
|
||||
return api.post<ClearVocabularyPassSummaryResponse>('/admin/vocabulary/test-pass-summary/clear', data);
|
||||
},
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ const getAnswerRows = (record: VocabularyAuditRecordDetail): VocabularyAuditAnsw
|
||||
const AdminVocabularyScoreAudit: React.FC = () => {
|
||||
const [range, setRange] = useState<[string, string] | null>(null);
|
||||
const [studentNo, setStudentNo] = useState('');
|
||||
const [minWords, setMinWords] = useState('');
|
||||
const [minCorrectWords, setMinCorrectWords] = useState('');
|
||||
const [summary, setSummary] = useState<VocabularyPassSummaryResponse | null>(null);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [clearingUserId, setClearingUserId] = useState<string | null>(null);
|
||||
@@ -106,7 +106,7 @@ const AdminVocabularyScoreAudit: React.FC = () => {
|
||||
|
||||
const getFilterParams = () => ({
|
||||
studentNo: studentNo.trim() || undefined,
|
||||
minWords: minWords.trim() || undefined
|
||||
minCorrectWords: minCorrectWords.trim() || undefined
|
||||
});
|
||||
|
||||
const fetchSummary = async () => {
|
||||
@@ -571,9 +571,9 @@ const AdminVocabularyScoreAudit: React.FC = () => {
|
||||
<Input
|
||||
allowClear
|
||||
type="number"
|
||||
placeholder="单次最少单词数"
|
||||
value={minWords}
|
||||
onChange={event => setMinWords(event.target.value)}
|
||||
placeholder="单次最少正确数"
|
||||
value={minCorrectWords}
|
||||
onChange={event => setMinCorrectWords(event.target.value)}
|
||||
onPressEnter={fetchSummary}
|
||||
style={{ width: 180 }}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user