|
@@ -11,7 +11,7 @@
|
|
|
:row-class-name="rowClassName"
|
|
|
highlight-current-row
|
|
|
@current-change="onCurrentChange"
|
|
|
- @row-dblclick="onDbClick"
|
|
|
+ @row-dblclick="myDbClick"
|
|
|
@row-contextmenu="rowContextmenu"
|
|
|
@sort-change="sortChange"
|
|
|
>
|
|
@@ -42,7 +42,7 @@
|
|
|
</template>
|
|
|
</base-table>
|
|
|
</div>
|
|
|
- <div
|
|
|
+ <!-- <div
|
|
|
v-if="!!current && !!current?.markerId"
|
|
|
v-loading="loading1 || loading2"
|
|
|
class="flex justify-between m-t-base charts-box"
|
|
@@ -55,7 +55,7 @@
|
|
|
<div class="flex-1 p-base radius-base fill-blank chart-box">
|
|
|
<vue-e-charts class="full" :option="markerObjectiveChartsOption"></vue-e-charts>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<set-workload v-model="setWorkloadVisible" :data="setWorkloadData" />
|
|
|
<right-key-menu
|
|
|
v-show="visable"
|
|
@@ -113,7 +113,7 @@ const columns: EpTableColumn<ExtractArrayValue<ExtractApiResponse<'getStatistics
|
|
|
return row.markingGroupNumber === 0 ? '全部' : `第${row.markingGroupNumber}组`
|
|
|
},
|
|
|
},
|
|
|
- { label: '评卷员', prop: 'markerName', minWidth: 84, slotName: 'marker' },
|
|
|
+ { label: '评卷员', prop: 'markerName', minWidth: 84, slotName: 'marker', fixed: 'left' },
|
|
|
|
|
|
{ align: 'center', label: '评卷份数', prop: 'markingPaperCount', minWidth: 92 },
|
|
|
{ align: 'center', label: '平均分', prop: 'avg', minWidth: 80 },
|
|
@@ -216,6 +216,15 @@ const data = computed(() => {
|
|
|
})
|
|
|
|
|
|
const { tableRef, tableData, current, onCurrentChange, onDbClick, currentView, elTableRef } = useTableCheck(data, false)
|
|
|
+const myDbClick = (row: any) => {
|
|
|
+ onDbClick(row)
|
|
|
+ if (currentView.value && !!currentView.value.markingGroupNumber) {
|
|
|
+ push({
|
|
|
+ name: 'AnalysisPersonnelStatisticsMarker',
|
|
|
+ query: { markerId: currentView.value.markerId, markerName: currentView.value.markerName },
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|
|
|
const sortTableData = ref<any[]>([])
|
|
|
const originalTableData = ref<any[]>([])
|
|
|
const sortChange = (params: any) => {
|
|
@@ -273,14 +282,14 @@ watch(tableData, () => {
|
|
|
initSortTableData()
|
|
|
})
|
|
|
|
|
|
-watch(currentView, () => {
|
|
|
- if (currentView.value && !!currentView.value.markingGroupNumber) {
|
|
|
- push({
|
|
|
- name: 'AnalysisPersonnelStatisticsMarker',
|
|
|
- query: { markerId: currentView.value.markerId, markerName: currentView.value.markerName },
|
|
|
- })
|
|
|
- }
|
|
|
-})
|
|
|
+// watch(currentView, () => {
|
|
|
+// if (currentView.value && !!currentView.value.markingGroupNumber) {
|
|
|
+// push({
|
|
|
+// name: 'AnalysisPersonnelStatisticsMarker',
|
|
|
+// query: { markerId: currentView.value.markerId, markerName: currentView.value.markerName },
|
|
|
+// })
|
|
|
+// }
|
|
|
+// })
|
|
|
|
|
|
const {
|
|
|
fetch: getStatisticObjectiveByMarker,
|
|
@@ -445,7 +454,8 @@ const markerObjectiveChartsOption = computed<EChartsOption>(() => {
|
|
|
}
|
|
|
})
|
|
|
const tableHeight = computed(() => {
|
|
|
- return !!current.value && !!current.value?.markerId ? 'calc(100vh - 520px)' : 'calc(100vh - 219px)'
|
|
|
+ // return !!current.value && !!current.value?.markerId ? 'calc(100vh - 520px)' : 'calc(100vh - 219px)'
|
|
|
+ return 'calc(100vh - 250px)'
|
|
|
})
|
|
|
const clearCheck = () => {
|
|
|
;(elTableRef as any).value!.setCurrentRow(undefined)
|