|
|
@@ -1,18 +1,18 @@
|
|
|
<template>
|
|
|
<div class="task-container">
|
|
|
<a-form layout="inline" :model="queryParam">
|
|
|
- <a-form-item label="考试类型:">
|
|
|
+ <a-form-item label="任务类型:">
|
|
|
<a-select v-model:value="queryParam.examType" placeholder="请选择试卷类型" @change="examTypeChange">
|
|
|
<a-select-option v-for="item in examTypeEnum" :key="item.value" :value="item.value">
|
|
|
{{ item.label }}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
- <a-form-item label="考试标题:">
|
|
|
- <a-input v-model:value="queryParam.examName" placeholder="请输入考试标题" style="min-width: 200px" allowClear />
|
|
|
+ <a-form-item label="任务标题:">
|
|
|
+ <a-input v-model:value="queryParam.examName" placeholder="请输入任务标题" style="min-width: 200px" allowClear />
|
|
|
</a-form-item>
|
|
|
- <a-form-item label="考试状态:">
|
|
|
- <a-select style="min-width: 150px" v-model:value="queryParam.examStatus" allowClear placeholder="考试状态">
|
|
|
+ <a-form-item label="任务状态:">
|
|
|
+ <a-select style="min-width: 150px" v-model:value="queryParam.examStatus" allowClear placeholder="任务状态">
|
|
|
<a-select-option :value="0">未开始</a-select-option>
|
|
|
<a-select-option :value="1">已开始</a-select-option>
|
|
|
<a-select-option :value="2">已结束</a-select-option>
|
|
|
@@ -20,7 +20,7 @@
|
|
|
</a-form-item>
|
|
|
<a-form-item>
|
|
|
<a-button type="primary" @click="submitForm">查询</a-button>
|
|
|
- <a-button style="margin-left: 20px" type="primary" @click="createTask">创建考试</a-button>
|
|
|
+ <a-button style="margin-left: 20px" type="primary" @click="createTask">创建任务</a-button>
|
|
|
</a-form-item>
|
|
|
</a-form>
|
|
|
<a-table
|
|
|
@@ -32,8 +32,8 @@
|
|
|
style="margin-top: 16px"
|
|
|
>
|
|
|
<!-- <a-table-column title="Id" dataIndex="id" key="id" width="100" /> -->
|
|
|
- <a-table-column title="考试标题" dataIndex="examName" key="examName" />
|
|
|
- <a-table-column title="考试状态" dataIndex="examStatus" key="examStatus">
|
|
|
+ <a-table-column title="任务标题" dataIndex="examName" key="examName" />
|
|
|
+ <a-table-column title="任务状态" dataIndex="examStatus" key="examStatus">
|
|
|
<template #default="{ record }">
|
|
|
<a-tag :color="record.examStatus === 0 ? 'default' : record.examStatus === 1 ? 'processing' : 'success'">
|
|
|
{{ record.examStatus === 0 ? '未开始' : record.examStatus === 1 ? '已开始' : '已结束' }}
|