diff --git a/app/backend/src/api/knowledge-key.ts b/app/backend/src/api/knowledge-key.ts
index b609d2c..89541ef 100644
--- a/app/backend/src/api/knowledge-key.ts
+++ b/app/backend/src/api/knowledge-key.ts
@@ -38,7 +38,7 @@ export const knowledgeKeyApi = {
},
validDataSet: () => {
return client.get('/knowledge/dataset/validDataSet', {});
- }
+ },
// // 获取知识库密钥
// getKnowledgeKey: () => {
diff --git a/app/backend/src/api/resource.ts b/app/backend/src/api/resource.ts
index 9e8fcff..2268233 100644
--- a/app/backend/src/api/resource.ts
+++ b/app/backend/src/api/resource.ts
@@ -78,5 +78,5 @@ export function videoUpdate(id: number, params: any) {
}
export function getResourceUrl(id: number) {
- return client.get(`/backend/v1/resource/getResourceUrl?id=`+id, {});
+ return client.get(`/backend/v1/resource/getResourceUrl?id=` + id, {});
}
diff --git a/app/backend/src/api/textbook.ts b/app/backend/src/api/textbook.ts
index 35cc17c..44d6ed7 100644
--- a/app/backend/src/api/textbook.ts
+++ b/app/backend/src/api/textbook.ts
@@ -3,7 +3,6 @@ import client from './internal/httpClient';
export function textbookList(page: number, size: number, title: string) {
return client.get('/backend/v1/jc/textbook/index', {
- // return client.get('/backend/v1/course/index', {
page: page,
size: size,
title: title,
diff --git a/app/backend/src/pages/doubleInsurance/examAdministration/details/details.tsx b/app/backend/src/pages/doubleInsurance/examAdministration/details/details.tsx
index 54c62f4..fcf9aaa 100644
--- a/app/backend/src/pages/doubleInsurance/examAdministration/details/details.tsx
+++ b/app/backend/src/pages/doubleInsurance/examAdministration/details/details.tsx
@@ -185,4 +185,4 @@ const ExamAdministrationDetails = () => {
);
};
-export default ExamAdministrationDetails
\ No newline at end of file
+export default ExamAdministrationDetails;
diff --git a/app/backend/src/pages/doubleInsurance/examAdministration/index.tsx b/app/backend/src/pages/doubleInsurance/examAdministration/index.tsx
index 09e7394..61bd1e0 100644
--- a/app/backend/src/pages/doubleInsurance/examAdministration/index.tsx
+++ b/app/backend/src/pages/doubleInsurance/examAdministration/index.tsx
@@ -329,7 +329,8 @@ const ExamAdministrationPage = () => {
}*/
// 根据不同操作类型,调用对应的后端批量接口
switch (currentOperation) {
- case 'resetExam': { // 批量重置接口:传递 examIds
+ case 'resetExam': {
+ // 批量重置接口:传递 examIds
const resResetExam = (await updateList(ids ?? [], '3', '')) as UpdateListResponse;
if (resResetExam?.code === 0) {
message.success(`成功重置 ${data.records.length} 名学生的考试状态`);
diff --git a/app/backend/src/pages/experiment/device.tsx b/app/backend/src/pages/experiment/device.tsx
index 2977a96..c6cc8ce 100644
--- a/app/backend/src/pages/experiment/device.tsx
+++ b/app/backend/src/pages/experiment/device.tsx
@@ -369,7 +369,12 @@ const DictionaryDetailPage = () => {
-
+
@@ -472,7 +477,7 @@ const DictionaryDetailPage = () => {
right: 4,
bottom: 4,
borderRadius: 8,
- overflow: 'hidden'
+ overflow: 'hidden',
}}
onError={(error) => handleVideoError(error, item)}
onReady={() => handleVideoReady(item)}
@@ -491,7 +496,7 @@ const DictionaryDetailPage = () => {
justifyContent: 'center',
backgroundColor: '#f0f0f0',
color: '#666',
- borderRadius: 8
+ borderRadius: 8,
}}
>
视频无法加载
@@ -511,7 +516,7 @@ const DictionaryDetailPage = () => {
justifyContent: 'center',
backgroundColor: '#f0f0f0',
color: '#666',
- borderRadius: 8
+ borderRadius: 8,
}}
>
无视频源
diff --git a/app/backend/src/pages/experiment/index.tsx b/app/backend/src/pages/experiment/index.tsx
index f8daecd..a0c71a6 100644
--- a/app/backend/src/pages/experiment/index.tsx
+++ b/app/backend/src/pages/experiment/index.tsx
@@ -38,7 +38,7 @@ import defaultThumb2 from '../../assets/thumb/thumb2.png';
import defaultThumb3 from '../../assets/thumb/thumb3.png';
import { FileUploader } from '../../compenents/uploadFile';
import { TreeAttachments } from '../offline-course/compenents/attachments';
-import {getResourceUrl} from "../../api/resource";
+import { getResourceUrl } from '../../api/resource';
//搜索框
type SearchProps = GetProps;
@@ -214,7 +214,7 @@ const Experiment = () => {
interface UploadRes {
data?: string; // 根据后端实际返回结构调整,比如可能是路径字符串
}
- const getImageUrl=(id:any)=>{
+ const getImageUrl = (id: any) => {
getResourceUrl(id).then((res: any) => {
setThumb(res.data.resource_url);
});
@@ -356,7 +356,7 @@ const Experiment = () => {
}
// 修复拼写错误并添加空值判断
if (res.data.labCourseImage) {
- getImageUrl(res.data.labCourseImage)
+ getImageUrl(res.data.labCourseImage);
}
setSelectedId(res.data.id);
// 打开弹窗
diff --git a/app/backend/src/pages/layouts/with-header-without-footer/index.tsx b/app/backend/src/pages/layouts/with-header-without-footer/index.tsx
index 1633a4e..5df3b8b 100644
--- a/app/backend/src/pages/layouts/with-header-without-footer/index.tsx
+++ b/app/backend/src/pages/layouts/with-header-without-footer/index.tsx
@@ -11,7 +11,6 @@ const HomePage = () => {
return (
<>
-
diff --git a/app/backend/src/pages/resource/qa-review.tsx b/app/backend/src/pages/resource/qa-review.tsx
index 1159709..0ac6451 100644
--- a/app/backend/src/pages/resource/qa-review.tsx
+++ b/app/backend/src/pages/resource/qa-review.tsx
@@ -81,8 +81,7 @@ const formatDate = (value?: string | number | null): string => {
return '';
}
- const date =
- value.toString().length === 10 ? new Date(value * 1000) : new Date(value);
+ const date = value.toString().length === 10 ? new Date(value * 1000) : new Date(value);
if (Number.isNaN(date.getTime())) {
return '';
}
@@ -106,8 +105,7 @@ const normalizeListResponse = (payload: any) => {
root?.items,
Array.isArray(root) ? root : null,
];
- const list =
- listCandidates.find((candidate) => Array.isArray(candidate)) ?? [];
+ const list = listCandidates.find((candidate) => Array.isArray(candidate)) ?? [];
const total =
root?.total ??
@@ -155,9 +153,7 @@ const ResourceLibraryReviewPage = () => {
});
const [growthTrend, setGrowthTrend] = useState
([]);
- const [distributionData, setDistributionData] = useState<
- { value: number; name: string }[]
- >([]);
+ const [distributionData, setDistributionData] = useState<{ value: number; name: string }[]>([]);
const [modalVisible, setModalVisible] = useState(false);
const [selectedQuestion, setSelectedQuestion] = useState(null);
@@ -320,9 +316,7 @@ const ResourceLibraryReviewPage = () => {
});
const filtered =
kmType !== undefined
- ? normalizedList.filter(
- (item) => Number(item?.kmType) === Number(kmType)
- )
+ ? normalizedList.filter((item) => Number(item?.kmType) === Number(kmType))
: normalizedList;
setQuestionList(filtered);
if (kmType !== undefined && filtered.length !== list.length) {
@@ -486,15 +480,10 @@ const ResourceLibraryReviewPage = () => {
= 0 ? '#52c41a' : '#ff4d4f',
+ color: statistics.kmTypeReviewGrowthRate >= 0 ? '#52c41a' : '#ff4d4f',
}}
>
- {statistics.kmTypeReviewGrowthRate >= 0 ? (
-
- ) : (
-
- )}
+ {statistics.kmTypeReviewGrowthRate >= 0 ?
:
}
{statistics.kmTypeReviewGrowthRate >= 0 ? '较昨日增长' : '较昨日下降'}{' '}
{Math.abs(statistics.kmTypeReviewGrowthRate)}%
@@ -568,8 +557,7 @@ const ResourceLibraryReviewPage = () => {
= 0 ? '#52c41a' : '#ff4d4f',
+ color: statistics.kmQueryDuplicateRateGrowth >= 0 ? '#52c41a' : '#ff4d4f',
}}
>
{statistics.kmQueryDuplicateRateGrowth >= 0 ? (
@@ -636,7 +624,9 @@ const ResourceLibraryReviewPage = () => {
}
- onClick={() => fetchQuestionList(1, searchKeyword, statusFilter, experimentTypeFilter)}
+ onClick={() =>
+ fetchQuestionList(1, searchKeyword, statusFilter, experimentTypeFilter)
+ }
>
搜索
@@ -662,15 +652,15 @@ const ResourceLibraryReviewPage = () => {
showTotal: (count, range) => `显示 ${range[0]}-${range[1]} 条,共 ${count} 条`,
onChange: (current) => setPage(current),
}}
- rowKey={(record) =>
- record.id ||
- record.kmConversationId ||
- record.km_conversation_id ||
- record.kmId ||
- record.km_id ||
- record.kmQuery ||
- Math.random()
- }
+ rowKey={(record) =>
+ record.id ||
+ record.kmConversationId ||
+ record.km_conversation_id ||
+ record.kmId ||
+ record.km_id ||
+ record.kmQuery ||
+ Math.random()
+ }
/>
@@ -819,12 +809,7 @@ const ResourceLibraryReviewPage = () => {
>
拒绝
,
-