|
@@ -177,20 +177,37 @@ const onOperationClick: OperationClick = ({ type, value }) => {
|
|
}
|
|
}
|
|
|
|
|
|
const columns: EpTableColumn<RowType>[] = [
|
|
const columns: EpTableColumn<RowType>[] = [
|
|
- { label: '密号', prop: 'secretNumber' },
|
|
|
|
- { label: '评卷员', prop: 'markerName' },
|
|
|
|
- { label: '评卷员给分', prop: 'markerScore' },
|
|
|
|
- { label: '组长给分', prop: 'headerScore' },
|
|
|
|
- { label: '评卷时间', prop: 'markTime' },
|
|
|
|
|
|
+ { label: '密号', prop: 'secretNumber', width: 100, fixed: 'left' },
|
|
|
|
+ { label: '评卷员', prop: 'markerName', width: 90 },
|
|
|
|
+ { label: '评卷员给分', prop: 'markerScore', width: 88 },
|
|
|
|
+ { label: '组长给分', prop: 'headerScore', width: 70 },
|
|
|
|
+ { label: '评卷时间', prop: 'markTime', width: 152 },
|
|
{ label: '抽查次数', prop: 'customCheckNumber' },
|
|
{ label: '抽查次数', prop: 'customCheckNumber' },
|
|
]
|
|
]
|
|
|
|
|
|
|
|
+const transTime = (str: any) => {
|
|
|
|
+ if (str.indexOf('-') > -1) {
|
|
|
|
+ return str
|
|
|
|
+ } else {
|
|
|
|
+ return `${str.slice(0, 4)}-${str.slice(4, 6)}-${str.slice(6, 8)} ${str.slice(8, 10)}:${str.slice(
|
|
|
|
+ 10,
|
|
|
|
+ 12
|
|
|
|
+ )}:${str.slice(12, 14)}`
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
const transformQuery = (query: Record<string, string>) => {
|
|
const transformQuery = (query: Record<string, string>) => {
|
|
let params: Record<string, string> = {}
|
|
let params: Record<string, string> = {}
|
|
|
|
|
|
for (let k in query) {
|
|
for (let k in query) {
|
|
params[k] = ['true', 'false'].includes(query[k]) ? new Function(`return ${query[k]}`)() : query[k]
|
|
params[k] = ['true', 'false'].includes(query[k]) ? new Function(`return ${query[k]}`)() : query[k]
|
|
}
|
|
}
|
|
|
|
+ if (params.timeStart) {
|
|
|
|
+ params.timeStart = transTime(params.timeStart)
|
|
|
|
+ }
|
|
|
|
+ if (params.timeEnd) {
|
|
|
|
+ params.timeEnd = transTime(params.timeEnd)
|
|
|
|
+ }
|
|
return params
|
|
return params
|
|
}
|
|
}
|
|
|
|
|