|
@@ -66,6 +66,7 @@ import SvgIcon from '@/components/common/SvgIcon.vue'
|
|
|
import ImagePreview from '@/components/shared/ImagePreview.vue'
|
|
|
|
|
|
import MockImg from '@/assets/mock/SAMPA-1.jpg'
|
|
|
+import type { LocationQuery } from 'vue-router'
|
|
|
import type { SetImgBgOption } from '@/hooks/useSetImgBg'
|
|
|
import type { ExtractMultipleApiResponse, ExtractApiParams, ExtractApiResponse } from 'api-type'
|
|
|
import type { MarkHeaderInstance, EpTableColumn } from 'global-type'
|
|
@@ -145,9 +146,17 @@ const columns: EpTableColumn<RowType>[] = [
|
|
|
{ label: '评卷时间', prop: 'markTime' },
|
|
|
]
|
|
|
|
|
|
+const transformQuery = (query: Record<string, string>) => {
|
|
|
+ let params: Record<string, string> = {}
|
|
|
+
|
|
|
+ for (let k in query) {
|
|
|
+ params[k] = ['true', 'false'].includes(query[k]) ? new Function(`return ${query[k]}`)() : query[k]
|
|
|
+ }
|
|
|
+ return params
|
|
|
+}
|
|
|
+
|
|
|
const { pagination, data, fetchTable } = useTable('getCustomQueryTasks', {
|
|
|
- // score: (query.score as string) || '',
|
|
|
- ...query,
|
|
|
+ ...transformQuery(query as Record<string, string>),
|
|
|
})
|
|
|
|
|
|
const {
|