|
@@ -40,6 +40,7 @@
|
|
<!-- <el-button size="small" type="primary" custom-1 @click="viewPaper(false)">查看试卷</el-button> -->
|
|
<!-- <el-button size="small" type="primary" custom-1 @click="viewPaper(false)">查看试卷</el-button> -->
|
|
</div>
|
|
</div>
|
|
<base-table
|
|
<base-table
|
|
|
|
+ :max-height="tableMaxHeight"
|
|
border
|
|
border
|
|
stripe
|
|
stripe
|
|
size="small"
|
|
size="small"
|
|
@@ -56,7 +57,7 @@
|
|
|
|
|
|
<script setup lang="tsx" name="TrainingMonitoring">
|
|
<script setup lang="tsx" name="TrainingMonitoring">
|
|
/** 培训监控 */
|
|
/** 培训监控 */
|
|
-import { computed, onBeforeUnmount } from 'vue'
|
|
|
|
|
|
+import { computed, onBeforeUnmount, onBeforeMount, ref } from 'vue'
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
import { ElButton, ElMessage } from 'element-plus'
|
|
import { ElButton, ElMessage } from 'element-plus'
|
|
import { minus, isDefine } from '@/utils/common'
|
|
import { minus, isDefine } from '@/utils/common'
|
|
@@ -71,7 +72,10 @@ import type { ExtractApiResponse } from '@/api/api'
|
|
import type { EpTableColumn } from 'global-type'
|
|
import type { EpTableColumn } from 'global-type'
|
|
|
|
|
|
type TableDataType = ExtractArrayValue<ExtractApiResponse<'getTrainingMonitor'>['data']>
|
|
type TableDataType = ExtractArrayValue<ExtractApiResponse<'getTrainingMonitor'>['data']>
|
|
-
|
|
|
|
|
|
+const tableMaxHeight = ref(300)
|
|
|
|
+onBeforeMount(() => {
|
|
|
|
+ tableMaxHeight.value = window.innerHeight - 300
|
|
|
|
+})
|
|
const { push } = useRouter()
|
|
const { push } = useRouter()
|
|
|
|
|
|
const { diffShow, model, items, rules, formRef, elFormRef, onOptionInit } = useFormFilter()
|
|
const { diffShow, model, items, rules, formRef, elFormRef, onOptionInit } = useFormFilter()
|
|
@@ -106,13 +110,14 @@ const columns = computed<EpTableColumn<TableDataType>[]>(() => {
|
|
selectable(row) {
|
|
selectable(row) {
|
|
return !!row.markerId
|
|
return !!row.markerId
|
|
},
|
|
},
|
|
|
|
+ fixed: 'left',
|
|
},
|
|
},
|
|
- { label: '评卷员', prop: 'markerName' },
|
|
|
|
- { label: '状态', prop: 'status' },
|
|
|
|
- { label: '平均分', prop: 'avg' },
|
|
|
|
- { label: '标准差', prop: 'std' },
|
|
|
|
- { label: '相关系数', prop: 'xyRelate' },
|
|
|
|
- { label: '差异份数', prop: 'diffCount' },
|
|
|
|
|
|
+ { label: '评卷员', prop: 'markerName', width: 100, fixed: 'left' },
|
|
|
|
+ { label: '状态', prop: 'status', width: 100, fixed: 'left' },
|
|
|
|
+ { label: '平均分', prop: 'avg', width: 80 },
|
|
|
|
+ { label: '标准差', prop: 'std', width: 80 },
|
|
|
|
+ { label: '相关系数', prop: 'xyRelate', width: 80 },
|
|
|
|
+ { label: '差异份数', prop: 'diffCount', width: 80 },
|
|
...cols,
|
|
...cols,
|
|
]
|
|
]
|
|
})
|
|
})
|