|
@@ -143,18 +143,20 @@
|
|
|
ellipsis: true
|
|
ellipsis: true
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
- const taskColumns = computed(()=>taskAllColumns.value.filter(r=>r.examType.includes(parseFloat(examType.value))))
|
|
|
|
|
|
|
+ const taskColumns = computed(() =>
|
|
|
|
|
+ taskAllColumns.value.filter((r) => r.examType.includes(parseFloat(examType.value)))
|
|
|
|
|
+ )
|
|
|
const taskAllColumns = ref([
|
|
const taskAllColumns = ref([
|
|
|
{ title: '问卷名称', dataIndex: 'name', key: 'name', examType: [4] },
|
|
{ title: '问卷名称', dataIndex: 'name', key: 'name', examType: [4] },
|
|
|
{ title: '试卷类型', dataIndex: 'paperType', key: 'paperType', width: 120, examType: [4] },
|
|
{ title: '试卷类型', dataIndex: 'paperType', key: 'paperType', width: 120, examType: [4] },
|
|
|
{ title: '学科', dataIndex: 'subjectId', key: 'subjectId', width: 120, examType: [4] },
|
|
{ title: '学科', dataIndex: 'subjectId', key: 'subjectId', width: 120, examType: [4] },
|
|
|
|
|
|
|
|
- { title: '问卷名称', dataIndex: 'examName', key: 'examName',examType:[1,2,3] },
|
|
|
|
|
- { title: '问卷类型', dataIndex: 'examType', key: 'examType', width: 120,examType:[1,2,3] },
|
|
|
|
|
- { title: '开始时间', dataIndex: 'startTime', key: 'startTime', width: 180 ,examType:[1,2,3]},
|
|
|
|
|
- { title: '结束时间', dataIndex: 'endTime', key: 'endTime', width: 180,examType:[1,2,3] },
|
|
|
|
|
- { title: '状态', dataIndex: 'examStatus', key: 'examStatus', width: 90,examType:[1,2,3] },
|
|
|
|
|
- { title: '操作', key: 'action', align: 'right', width: 120,examType:[1,2,3,4] }
|
|
|
|
|
|
|
+ { title: '问卷名称', dataIndex: 'examName', key: 'examName', examType: [1, 2, 3] },
|
|
|
|
|
+ { title: '问卷类型', dataIndex: 'examType', key: 'examType', width: 120, examType: [1, 2, 3] },
|
|
|
|
|
+ { title: '开始时间', dataIndex: 'startTime', key: 'startTime', width: 180, examType: [1, 2, 3] },
|
|
|
|
|
+ { title: '结束时间', dataIndex: 'endTime', key: 'endTime', width: 180, examType: [1, 2, 3] },
|
|
|
|
|
+ { title: '状态', dataIndex: 'examStatus', key: 'examStatus', width: 90, examType: [1, 2, 3] },
|
|
|
|
|
+ { title: '操作', key: 'action', align: 'right', width: 120, examType: [1, 2, 3, 4] }
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
const statusTextFormatter = (status) => {
|
|
const statusTextFormatter = (status) => {
|
|
@@ -173,21 +175,17 @@
|
|
|
taskLoading.value = true
|
|
taskLoading.value = true
|
|
|
try {
|
|
try {
|
|
|
let res = []
|
|
let res = []
|
|
|
|
|
+ const params = {
|
|
|
|
|
+ ...queryParam.value,
|
|
|
|
|
+ size: queryParam.value.pageSize,
|
|
|
|
|
+ courseId: route.query.id,
|
|
|
|
|
+ paperType: paperType.value,
|
|
|
|
|
+ examType: examType.value
|
|
|
|
|
+ }
|
|
|
if (examType.value == 4) {
|
|
if (examType.value == 4) {
|
|
|
- const params = {
|
|
|
|
|
- ...queryParam.value,
|
|
|
|
|
- size: queryParam.value.pageSize,
|
|
|
|
|
- courseId: route.query.id,
|
|
|
|
|
- paperType: paperType.value
|
|
|
|
|
- }
|
|
|
|
|
res = await examPaperApi.pageList(params)
|
|
res = await examPaperApi.pageList(params)
|
|
|
} else {
|
|
} else {
|
|
|
- res = await taskApi.pageExamList({
|
|
|
|
|
- ...queryParam.value,
|
|
|
|
|
- size: queryParam.value.pageSize,
|
|
|
|
|
- examType: examType.value,
|
|
|
|
|
- courseId: route.query.id
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ res = await taskApi.pageExamList(params)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
taskList.value = res?.records || []
|
|
taskList.value = res?.records || []
|
|
@@ -199,7 +197,7 @@
|
|
|
// 学科分类
|
|
// 学科分类
|
|
|
const queryParam = ref({
|
|
const queryParam = ref({
|
|
|
current: 1,
|
|
current: 1,
|
|
|
- pageSize: 10,
|
|
|
|
|
|
|
+ pageSize: 10
|
|
|
})
|
|
})
|
|
|
const tabId = ref('')
|
|
const tabId = ref('')
|
|
|
const subjectList = ref([])
|
|
const subjectList = ref([])
|