From d44a2361fa5173f0421ec05921bde28d59614d45 Mon Sep 17 00:00:00 2001 From: qirong <2032486488@qq.com> Date: 星期二, 28 十一月 2023 11:09:18 +0800 Subject: [PATCH] 随机试卷修改 --- src/views/answer/list.vue | 25 +++++++++++++++++++------ 1 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/views/answer/list.vue b/src/views/answer/list.vue index ea18e51..3c8122c 100644 --- a/src/views/answer/list.vue +++ b/src/views/answer/list.vue @@ -1,18 +1,27 @@ <template> <div class="app-container"> - <el-form :model="queryParam" ref="queryForm" :inline="true"> - <el-form-item label="璇剧洰锛�" > - <el-select v-model="queryParam.subjectId" clearable> - <el-option v-for="item in subjects" :key="item.id" :value="item.id" :label="item.name"></el-option> - </el-select> + <el-form :model="queryParam" ref="queryForm" :inline="true " style="display: flex"> +<!-- <el-form-item label="璇剧洰锛�" >--> +<!-- <el-select v-model="queryParam.subjectId" clearable>--> +<!-- <el-option v-for="item in subjects" :key="item.id" :value="item.id" :label="item.name"></el-option>--> +<!-- </el-select>--> +<!-- </el-form-item>--> + <el-form-item label="瀛︾敓锛�" > + <el-input v-model="queryParam.userName"></el-input> </el-form-item> + <el-form-item label="璇曞嵎棰樼洰锛�"> + <el-input v-model="queryParam.paperName"></el-input> + </el-form-item> <el-form-item> <el-button type="primary" @click="submitForm">鏌ヨ</el-button> + </el-form-item> + <el-form-item style="flex: 1; + text-align: right;"> + <span>{{avgSource}}鍒�</span> </el-form-item> </el-form> <el-table v-loading="listLoading" :data="tableData" border fit highlight-current-row style="width: 100%"> - <el-table-column prop="id" label="Id" width="100" /> <el-table-column prop="paperName" label="璇曞嵎鍚嶇О"/> <el-table-column prop="userName" label="鐢ㄦ埛鍚嶇О"/> <el-table-column label="寰楀垎" width="100px" > @@ -43,7 +52,10 @@ components: { Pagination }, data () { return { + avgSource:null, queryParam: { + paperName:'', + userName:'', subjectId: null, pageIndex: 1, pageSize: 10 @@ -62,6 +74,7 @@ this.listLoading = true examPaperAnswerApi.page(this.queryParam).then(data => { const re = data.response + this.avgSource = re.list[0].avgSource this.tableData = re.list this.total = re.total this.queryParam.pageIndex = re.pageNum -- Gitblit v1.8.0