|
@@ -8,17 +8,17 @@
|
|
|
<a-button class="query-btn" @click="search">查询</a-button>
|
|
|
|
|
|
<div class="tw-float-right tw-flex tw-gap-2">
|
|
|
- <a-button @click="goProjectPapers(projectId)"> 试卷列表 </a-button>
|
|
|
+ <!-- <a-button @click="goProjectPapers(projectId)"> 试卷列表 </a-button> -->
|
|
|
<a-button @click="goBack">返回</a-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="tw-bg-white tw-p-5 tw-rounded-xl">
|
|
|
- <a-radio-group v-model:value="activeTab">
|
|
|
+ <!-- <a-radio-group v-model:value="activeTab">
|
|
|
<a-radio-button value="1">试卷特征量数</a-radio-button>
|
|
|
<a-radio-button value="2">科目成绩(总分)频率分布</a-radio-button>
|
|
|
<a-radio-button value="3">科目成绩占初试总分权重</a-radio-button>
|
|
|
- </a-radio-group>
|
|
|
+ </a-radio-group> -->
|
|
|
<div class="tw-mb-4"></div>
|
|
|
<div v-if="activeTab === '1'">
|
|
|
<a-table
|
|
@@ -36,14 +36,15 @@
|
|
|
pageSize = pageSizeChanged;
|
|
|
},
|
|
|
}"
|
|
|
+ @change="tableChange"
|
|
|
>
|
|
|
<template #course="{ record }">
|
|
|
<a>{{ `${record.courseName}(${record.courseCode})` }}</a>
|
|
|
</template>
|
|
|
<template #action="{ record }">
|
|
|
<span>
|
|
|
- <a-button @click="openModal">说明</a-button>
|
|
|
- <a-button @click="goPaperAnalysis(record)">查看分析结果</a-button>
|
|
|
+ <!-- <a-button @click="openModal">说明</a-button> -->
|
|
|
+ <a-button @click="goPaperAnalysis(record)">详情</a-button>
|
|
|
</span>
|
|
|
</template>
|
|
|
</a-table>
|
|
@@ -64,16 +65,31 @@ import { watch, onMounted } from "vue";
|
|
|
import { useRoute } from "vue-router";
|
|
|
import router from "@/router";
|
|
|
import { getSasPaperList } from "@/api/allAnalysisPage";
|
|
|
-import EventBus from "@/plugins/eventBus";
|
|
|
+// import EventBus from "@/plugins/eventBus";
|
|
|
import ScoreRate from "./ScoreRate.vue";
|
|
|
import ScoreFirstTryRate from "./ScoreFirstTryRate.vue";
|
|
|
import { SASPaper } from "@/types";
|
|
|
|
|
|
+type PaginationType = {
|
|
|
+ current: number;
|
|
|
+ pageSize: number;
|
|
|
+};
|
|
|
+
|
|
|
+type FilterType = {
|
|
|
+ name: string;
|
|
|
+ address: string;
|
|
|
+};
|
|
|
+
|
|
|
+type SorterType = {
|
|
|
+ field: string;
|
|
|
+ order: string;
|
|
|
+};
|
|
|
+
|
|
|
const store = useMainStore();
|
|
|
-store.currentLocation = "项目管理 / 项目列表 / 整体分析";
|
|
|
+store.currentLocation = "项目管理 / 项目列表 / 结果查询";
|
|
|
|
|
|
// let rootOrgId = $ref(undefined as unknown as number);
|
|
|
-let courseId = $ref(undefined as undefined | number);
|
|
|
+let courseId = $ref(undefined as unknown as number);
|
|
|
const route = useRoute();
|
|
|
const projectId = +route.params.projectId;
|
|
|
|
|
@@ -119,8 +135,13 @@ const columns = [
|
|
|
dataIndex: "paperType",
|
|
|
},
|
|
|
{
|
|
|
- title: "试卷名称",
|
|
|
+ title: "科目代码",
|
|
|
+ dataIndex: "courseCode",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "样本数",
|
|
|
dataIndex: "paperName",
|
|
|
+ sorter: true,
|
|
|
},
|
|
|
{
|
|
|
title: "满分",
|
|
@@ -137,22 +158,27 @@ const columns = [
|
|
|
{
|
|
|
title: "全距",
|
|
|
dataIndex: "allRange",
|
|
|
+ sorter: true,
|
|
|
},
|
|
|
{
|
|
|
title: "平均分",
|
|
|
dataIndex: "avgScore",
|
|
|
+ sorter: true,
|
|
|
},
|
|
|
{
|
|
|
title: "标准差",
|
|
|
dataIndex: "stdev",
|
|
|
+ sorter: true,
|
|
|
},
|
|
|
{
|
|
|
title: "差异系数",
|
|
|
dataIndex: "coefficient",
|
|
|
+ sorter: true,
|
|
|
},
|
|
|
{
|
|
|
title: "信度",
|
|
|
dataIndex: "reliability1",
|
|
|
+ sorter: true,
|
|
|
},
|
|
|
// {
|
|
|
// title: "信度2",
|
|
@@ -161,32 +187,42 @@ const columns = [
|
|
|
{
|
|
|
title: "难度",
|
|
|
dataIndex: "difficulty",
|
|
|
+ sorter: true,
|
|
|
},
|
|
|
{
|
|
|
title: "操作",
|
|
|
key: "action",
|
|
|
slots: { customRender: "action" },
|
|
|
+ width: 100,
|
|
|
},
|
|
|
];
|
|
|
|
|
|
onMounted(async () => {
|
|
|
// rootOrgId = store.userInfo.rootOrgId;
|
|
|
await search();
|
|
|
- if (sessionStorage.getItem("allAnalysisReload")) {
|
|
|
- activeTab = "2";
|
|
|
- sessionStorage.removeItem("allAnalysisReload");
|
|
|
- }
|
|
|
+ // if (sessionStorage.getItem("allAnalysisReload")) {
|
|
|
+ // activeTab = "2";
|
|
|
+ // sessionStorage.removeItem("allAnalysisReload");
|
|
|
+ // }
|
|
|
});
|
|
|
|
|
|
async function goPaperAnalysis(record: SASPaper) {
|
|
|
await router.push(`/project/${projectId}/paperAnalysis/${record.paperId}`);
|
|
|
}
|
|
|
|
|
|
-async function goProjectPapers(id: number) {
|
|
|
- await router.push("/project/papers/" + id);
|
|
|
+function tableChange(
|
|
|
+ pagination: PaginationType,
|
|
|
+ filters: FilterType[],
|
|
|
+ sorter: SorterType
|
|
|
+) {
|
|
|
+ console.log(sorter);
|
|
|
+ // TODO:
|
|
|
}
|
|
|
+// async function goProjectPapers(id: number) {
|
|
|
+// await router.push("/project/papers/" + id);
|
|
|
+// }
|
|
|
|
|
|
-function openModal() {
|
|
|
- EventBus.emit("SHOW_SETTING", "DESCRIBE010");
|
|
|
-}
|
|
|
+// function openModal() {
|
|
|
+// EventBus.emit("SHOW_SETTING", "DESCRIBE010");
|
|
|
+// }
|
|
|
</script>
|