|
|
@@ -13,8 +13,7 @@ const api = getProblemController()
|
|
|
const searchForm = reactive({
|
|
|
title: '',
|
|
|
difficulty: '',
|
|
|
- categoryId: undefined as number | undefined,
|
|
|
- isPublic: undefined as number | undefined
|
|
|
+ categoryId: undefined as number | undefined
|
|
|
})
|
|
|
|
|
|
const categoryOptions = ref<CategoryVo[]>([])
|
|
|
@@ -59,7 +58,6 @@ const fetchData = async () => {
|
|
|
title: searchForm.title || undefined,
|
|
|
difficulty: searchForm.difficulty || undefined,
|
|
|
categoryId: searchForm.categoryId,
|
|
|
- isPublic: searchForm.isPublic,
|
|
|
pageNum: pagination.pageNum,
|
|
|
pageSize: pagination.pageSize
|
|
|
}
|
|
|
@@ -84,7 +82,6 @@ const handleReset = () => {
|
|
|
searchForm.title = ''
|
|
|
searchForm.difficulty = ''
|
|
|
searchForm.categoryId = undefined
|
|
|
- searchForm.isPublic = undefined
|
|
|
handleSearch()
|
|
|
}
|
|
|
|
|
|
@@ -128,12 +125,7 @@ onMounted(() => {
|
|
|
<el-option v-for="item in categoryOptions" :key="item.id" :label="item.categoryName" :value="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="公开状态">
|
|
|
- <el-select v-model="searchForm.isPublic" placeholder="全部" clearable style="width: 120px">
|
|
|
- <el-option label="公开" :value="1" />
|
|
|
- <el-option label="未公开" :value="0" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
+
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" @click="handleSearch">
|
|
|
<el-icon class="el-icon--left"><Search /></el-icon>搜索
|
|
|
@@ -158,11 +150,7 @@ onMounted(() => {
|
|
|
<el-tag :type="difficultyTag(row.difficulty)">{{ difficultyLabel(row.difficulty) }}</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="公开状态" width="100" align="center">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-tag :type="row.isPublic === 1 ? 'success' : 'info'">{{ row.isPublic === 1 ? '公开' : '未公开' }}</el-tag>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+
|
|
|
<el-table-column label="时间限制" width="110" align="center">
|
|
|
<template #default="{ row }">{{ row.timeLimitMs ?? '-' }} ms</template>
|
|
|
</el-table-column>
|