|
@@ -5,7 +5,7 @@
|
|
|
|
|
|
<div class="w-1200px m-auto flex flex-row justify-between">
|
|
|
<div class="w-188px">
|
|
|
- <leftSider :ykjId="ykjId" :activeIndex="activeIndex" @parentClick="parentClick"/>
|
|
|
+ <leftSider :ykjId="ykjId" :activeIndex="activeIndex" @parentClick="parentClick" />
|
|
|
</div>
|
|
|
|
|
|
<div class="w-1012px p-4 blueBg">
|
|
@@ -21,7 +21,7 @@
|
|
|
<el-table-column prop="ykrs" label="应考人数" />
|
|
|
<el-table-column prop="skrs" label="实考人数" />
|
|
|
<el-table-column prop="nd" label="难度" />
|
|
|
- <el-table-column prop="qfd" label="区分度"/>
|
|
|
+ <el-table-column prop="qfd" label="区分度" />
|
|
|
<el-table-column prop="bzc" label="标准差" />
|
|
|
<el-table-column prop="qkrs" label="缺考人数" />
|
|
|
<el-table-column prop="zgf" label="最高分" />
|
|
@@ -34,7 +34,7 @@
|
|
|
|
|
|
<div class="flex mt-20px items-center">
|
|
|
|
|
|
- <optionSelect @optionClick="optionClick" />
|
|
|
+ <optionSelect @optionClick="optionClick" />
|
|
|
|
|
|
</div>
|
|
|
<div class="flex justify-between mt-4 exportBtn">
|
|
@@ -55,7 +55,7 @@
|
|
|
<el-table-column prop="mf" label="满分" />
|
|
|
<el-table-column prop="pjf" label="平均分" />
|
|
|
<el-table-column prop="nd" label="难度" />
|
|
|
- <el-table-column prop="qfd" label="区分度" />
|
|
|
+ <el-table-column prop="qfd" label="区分度" />
|
|
|
<el-table-column prop="bzc" label="标准差" />
|
|
|
<el-table-column prop="gfzjf" label="高分组均分" />
|
|
|
<el-table-column prop="zdzjf" label="中等组均分" />
|
|
@@ -68,25 +68,16 @@
|
|
|
<div class="normalTit">
|
|
|
<span>整体成绩分析</span>
|
|
|
</div>
|
|
|
- <el-table :data="tableData" style="width: 100%">
|
|
|
- <el-table-column prop="xm" label="姓名" show-overflow-tooltip width="100" />
|
|
|
- <el-table-column prop="xh" label="学号" show-overflow-tooltip width="100" />
|
|
|
- <el-table-column prop="bj" label="班级" show-overflow-tooltip width="100" />
|
|
|
- <el-table-column prop="zf" label="总分" />
|
|
|
- <el-table-column prop="fir_0" label="1" />
|
|
|
- <el-table-column prop="fir_1" label="2" />
|
|
|
- <el-table-column prop="fir_2" label="17-19" />
|
|
|
- <el-table-column prop="sec_0" label="1" />
|
|
|
- <el-table-column prop="sec_1" label="2" />
|
|
|
- <el-table-column prop="sec_2" label="17-19" />
|
|
|
- <el-table-column prop="thr_0" label="1" />
|
|
|
- <el-table-column prop="thr_1" label="2" />
|
|
|
- <el-table-column prop="thr_2" label="17-19" />
|
|
|
-
|
|
|
+ <el-table :data="tableDataAll">
|
|
|
+ <el-table-column v-for="column in columnsAll" :key="column.prop" :prop="column.prop" :label="column.label"
|
|
|
+ show-overflow-tooltip width="120"></el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
</div>
|
|
|
-
|
|
|
+ <div class="mt-4">
|
|
|
+ <el-pagination background layout="prev, pager, next " :total="totalPage" :page-size="limit" style="justify-content: right;"
|
|
|
+ :current-page="pageNum" @current-change="handleCurrentChange" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
@@ -103,12 +94,12 @@
|
|
|
}
|
|
|
</route>
|
|
|
<script lang="ts" setup>
|
|
|
-import {cjfx_ztfx_list } from '../apiItem';
|
|
|
+import { cjfx_ztfx_list,cjfx_ztfx_list_detail } from '../apiItem';
|
|
|
const route = useRoute();
|
|
|
import { user } from "~/store";
|
|
|
|
|
|
|
|
|
-const activeIndex =ref('2-1');
|
|
|
+const activeIndex = ref('2-1');
|
|
|
const ykjId = ref();
|
|
|
const parentClick = (val: string) => {
|
|
|
activeIndex.value = val;
|
|
@@ -117,31 +108,77 @@ const parentClick = (val: string) => {
|
|
|
const tableDataZtcjfx = ref([]);
|
|
|
const tableDataTmfx = ref()
|
|
|
|
|
|
-const tableData = ref();
|
|
|
+const tableDataAll = ref([
|
|
|
+ { xm: '迪丽热巴', xh: '1234567', bj: '初一(1)班', zf: '123', },
|
|
|
+ { xm: '迪丽热巴', xh: '1234567', bj: '初一(1)班', zf: '123', },
|
|
|
+]);
|
|
|
+const columnsAll = ref([
|
|
|
+ { prop: 'xm', label: '姓名' },
|
|
|
+ { prop: 'xh', label: '学号' },
|
|
|
+ { prop: 'bj', label: '班级' },
|
|
|
+ { prop: 'zf', label: '总分' },
|
|
|
+])
|
|
|
+
|
|
|
+
|
|
|
+const totalPage = ref(0);
|
|
|
+const pageNum = ref(1);
|
|
|
+const limit = ref(10);
|
|
|
+
|
|
|
ykjId.value = route.params.ykj_id;
|
|
|
onMounted(() => {
|
|
|
- initData()
|
|
|
+ initData();
|
|
|
+ initDataAll();
|
|
|
})
|
|
|
|
|
|
const school_id = ref("");
|
|
|
const grade_id = ref("");
|
|
|
const xueke_id = ref("");
|
|
|
+
|
|
|
const initData = () => {
|
|
|
let transObj = {
|
|
|
- school_id:school_id.value,
|
|
|
+ school_id: school_id.value,
|
|
|
cm_id: grade_id.value,
|
|
|
xueke_id: xueke_id.value,
|
|
|
- jh_id:route.params.ykj_id
|
|
|
+ jh_id: route.params.ykj_id,
|
|
|
}
|
|
|
cjfx_ztfx_list(transObj)
|
|
|
.then(res => {
|
|
|
if (res.code == "1") {
|
|
|
tableDataZtcjfx.value = res.data.data.tableDataZtcjfx;
|
|
|
tableDataTmfx.value = res.data.data.tableDataTmfx;
|
|
|
- tableData.value = res.data.data.tableData;
|
|
|
}
|
|
|
})
|
|
|
- .catch(error=>{console.log(error)})
|
|
|
+ .catch(error => { console.log(error) })
|
|
|
+}
|
|
|
+
|
|
|
+//
|
|
|
+const initDataAll = () => {
|
|
|
+ let transObj = {
|
|
|
+ school_id: school_id.value,
|
|
|
+ cm_id: grade_id.value,
|
|
|
+ xueke_id: xueke_id.value,
|
|
|
+ jh_id: route.params.ykj_id,
|
|
|
+ page: pageNum.value,
|
|
|
+ limit: limit.value,
|
|
|
+ }
|
|
|
+ cjfx_ztfx_list_detail(transObj)
|
|
|
+ .then(res => {
|
|
|
+ if (res.code == "1") {
|
|
|
+ tableDataAll.value = res.data.data.page_data.tableDataAll;
|
|
|
+ columnsAll.value = res.data.data.page_data.columnsAll;
|
|
|
+ totalPage.value = res.data.data.total_rows * 1;
|
|
|
+ pageNum.value = res.data.data.page_now*1;
|
|
|
+ console.log(res,"alvis")
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(error => { console.log(error) });
|
|
|
+}
|
|
|
+
|
|
|
+//分页
|
|
|
+const handleCurrentChange = (val: number) => {
|
|
|
+ pageNum.value = val;
|
|
|
+ // 在这里执行您的分页函数
|
|
|
+ initDataAll();
|
|
|
}
|
|
|
|
|
|
//option筛选
|
|
@@ -154,13 +191,14 @@ const optionClick = (val: any, marke: any) => {
|
|
|
xueke_id.value = val;
|
|
|
}
|
|
|
initData();
|
|
|
+ initDataAll();
|
|
|
}
|
|
|
|
|
|
//导出
|
|
|
const exportBtn = () => {
|
|
|
let prefixedUrl = window.GLOBAL_CONFIG.web_pc;
|
|
|
let fullUrl = prefixedUrl + '/openapi/echart/total_data.php?api=xls&token=' + user.value.token;
|
|
|
- window.open(fullUrl,'_blank')
|
|
|
+ window.open(fullUrl, '_blank')
|
|
|
}
|
|
|
|
|
|
</script>
|
|
@@ -168,5 +206,4 @@ const exportBtn = () => {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
@import '@/styles/ksfx.css';
|
|
|
-
|
|
|
</style>
|