From 0b0876c987aee5e7b8c8537c0ea2013a1d1ad8fc Mon Sep 17 00:00:00 2001 From: lyfO_o <764716047@qq.com> Date: 星期三, 20 四月 2022 23:15:22 +0800 Subject: [PATCH] Merge remote-tracking branch 'remotes/origin/lyf' into master --- src/views/exam/current.vue | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 107 insertions(+), 0 deletions(-) diff --git a/src/views/exam/current.vue b/src/views/exam/current.vue new file mode 100644 index 0000000..c419bda --- /dev/null +++ b/src/views/exam/current.vue @@ -0,0 +1,107 @@ +<template> + <div class="app-container"> + + <div class="filter-container"> + <div class="basic_search" > + <div style="display: inline-block"> + <span class="span-filter-label">考试名称:</span> + <el-input v-model="filter.keyword" style="width: 200px" placeholder="请输入内容"></el-input> + </div> + <div style="display: inline-block;margin-left: 15px"> + <span class="span-filter-label">考试时间:</span> + <el-date-picker + v-model="rangeTime" + type="datetimerange" + start-placeholder="开始日期" + end-placeholder="结束日期" + :default-time="['00:00:00','23:59:59']"> + </el-date-picker> + </div> + <div style="display: inline-block;margin-left: 15px"> + <el-button + style="margin-left: 10px;" + type="primary" + icon="el-icon-search" + @click="queryHandle"> + </el-button> + </div> + </div> + + <div class="basic_search"> + <div> + <classification :array="list" v-model="filter.type" @setId="setId"></classification> + </div> + </div> + </div> + + + + + + + </div> + +</template> + +<script> + import classification from "./component/classification"; + + import {currentExamList,classificationList} from '@/api/nanoexam' + export default { + name: "current", + components:{ + classification + }, + created(){ + this.classificationList() + this.currentExamList() + }, + data(){ + return { + rangeTime:[], + filter:{ + type:"", + keyword:"", + startExamTime:"", + endExamTime:"", + current:1, + rowCount:4, + }, + list:[ + {id:1,value:"全部"}, + {id:2,value:"4526465"}, + {id:3,value:"asdsad"}, + ] + } + }, + methods:{ + queryHandle(){ + console.log(this.filter.type) + }, + currentExamList(){ + + }, + classificationList(){ + classificationList({groupId: 2}).then(res=>{ + console.log(res.data) + }) + }, + setId(id){ + this.filter.type = id + } + } + } +</script> + +<style scoped> + .span-filter-label{ + font-size: 15px; + color: #606266; + margin-right: 4px; + margin-left: 7px; + } + + .basic_search{ + margin-bottom: 15px; + } +</style> -- Gitblit v1.9.2