pull/13/head
qsh 1 year ago
parent 00fa8e4d84
commit cf049fc1e8
  1. 21
      src/views/question/index.vue

@ -1,6 +1,20 @@
<template> <template>
<div class="app-container" style="text-align:center"> <div class="app-container" style="text-align:center">
<el-form size="small" :inline="true" label-width="68px" @submit.native.prevent> <el-form size="small" :inline="true" label-width="68px" @submit.native.prevent>
<el-row :gutter="20">
<el-form-item label="车型">
<el-radio-group v-model="queryParams.carTypeId">
<el-radio :label="1001">小车</el-radio>
<el-radio :label="1002">摩托车</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="科目">
<el-radio-group v-model="queryParams.subject">
<el-radio :label="1">科一</el-radio>
<el-radio :label="4">科四</el-radio>
</el-radio-group>
</el-form-item>
</el-row>
<el-form-item label="题目"> <el-form-item label="题目">
<el-input v-model="queryParams.question" placeholder="请输入题目" clearable style="width:400px" @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.question" placeholder="请输入题目" clearable style="width:400px" @keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
@ -36,6 +50,11 @@
{{ row.isNew ? '是' : '' }} {{ row.isNew ? '是' : '' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="车型" align="center" min-width="100">
<template slot-scope="{row}">
{{ row.carTypeId == 1001 ? '小车' : '摩托车' }}
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-download" @click="handleEdit(scope.row)">编辑</el-button> <el-button size="mini" type="text" icon="el-icon-download" @click="handleEdit(scope.row)">编辑</el-button>
@ -67,6 +86,8 @@ export default {
// //
queryParams: { queryParams: {
question: '' question: ''
// carTypeId: 1001,
// subject: 1
}, },
dialogVisible: false dialogVisible: false
}; };

Loading…
Cancel
Save