微调,待测试接口

This commit is contained in:
joylink_zhaoerwei 2024-02-22 17:56:55 +08:00
parent f908c8db04
commit ad8c8de231
6 changed files with 44 additions and 50 deletions

View File

@ -11,9 +11,9 @@
<el-select v-model="formModel.seasonId" placeholder="请选择" style="width:350px;">
<el-option
v-for="item in paperOptions"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>

View File

@ -42,10 +42,6 @@ export default {
paperName: {
type: 'text',
label: '试卷名称:'
},
paperId: {
type: 'text',
label: '试卷id:'
}
}
},
@ -66,37 +62,21 @@ export default {
title: '试卷名称',
prop: 'paperName'
},
{
title: '试卷id',
prop: 'paperId'
},
{
title: '考试时间',
prop: 'duration'
},
{
title: '创建时间',
prop: 'createTime'
prop: 'createTime',
type: 'tag',
columnValue: (row) => { return row.modifyInfo.createTime; }
},
{
title: '更新时间',
prop: 'updateTime'
},
{
title: '创建者id',
prop: 'creatorId'
},
{
title: '创建者姓名',
prop: 'creatorName'
},
{
title: '更新者id',
prop: 'updaterId'
},
{
title: '更新者姓名',
prop: 'updaterName'
title: '修改时间',
prop: 'updateTime',
type: 'tag',
columnValue: (row) => { return row.modifyInfo.updateTime; }
},
{
type: 'button',

View File

@ -11,9 +11,9 @@
<el-select v-model="formModel.seasonId" placeholder="请选择" style="width:350px;">
<el-option
v-for="item in seasonOptions"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.id"
:label="item.code"
:value="item.id"
/>
</el-select>
</el-form-item>
@ -25,7 +25,7 @@
</el-dialog>
</template>
<script>
import { createPaper, editPaper} from '@/api/contest';
import { createPaper, editPaper, queryContestSeasonPaged} from '@/api/contest';
export default {
name: 'AddContestTask',
data() {
@ -35,15 +35,9 @@ export default {
id: '',
name: '', //
desc: '', //
seasonId: 0 // id
seasonId: '' // id
},
seasonOptions:[{
value: 1,
label: '赛季1'
}, {
value: 2,
label: '赛季2'
}],
seasonOptions:[],
loading: false
};
},
@ -68,6 +62,9 @@ export default {
},
methods:{
doShow(row) {
queryContestSeasonPaged().then((res) => {
this.seasonOptions = res.data.list;
});
this.dialogVisible = true;
if (row) {
this.formModel.id = row.id;

View File

@ -56,6 +56,18 @@ export default {
title: '所属赛季',
prop: 'seasonId'
},
{
title: '创建时间',
prop: 'createTime',
type: 'tag',
columnValue: (row) => { return row.modifyInfo.createTime; }
},
{
title: '修改时间',
prop: 'updateTime',
type: 'tag',
columnValue: (row) => { return row.modifyInfo.updateTime; }
},
{
type: 'button',
title: this.$t('global.operate'),

View File

@ -8,9 +8,9 @@
<el-select v-model="formModel.sceneId" placeholder="请选择" style="width:320px;">
<el-option
v-for="item in bindSceneOptions"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
@ -18,9 +18,9 @@
<el-select v-model="formModel.ruleId" placeholder="请选择" style="width:320px;">
<el-option
v-for="item in bindRuleOptions"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
@ -32,7 +32,7 @@
</el-dialog>
</template>
<script>
import { bindTask} from '@/api/contest';
import { bindTask, queryContextScorePaged, queryContestSencePaged} from '@/api/contest';
export default {
name: 'AddContestTask',
data() {
@ -51,6 +51,12 @@ export default {
},
methods:{
doShow(row) {
queryContextScorePaged().then((res) => {
this.bindRuleOptions = res.data.list;
});
queryContestSencePaged().then((res) => {
this.bindSceneOptions = res.data.list;
});
this.dialogVisible = true;
this.formModel.taskId = row.id;
this.formModel.name = row.label;

View File

@ -65,7 +65,6 @@
</template>
<script>
import axios from 'axios';
import AddEditTask from './AddEditTask';
import BindTask from './BindTask';
import { getTaskTreeDatas, getTaskDetail, deleteTask} from '@/api/contest';