|
@@ -65,7 +65,18 @@
|
|
|
|
|
|
<div class="part-box">
|
|
<div class="part-box">
|
|
<div class="box-justify mb-2">
|
|
<div class="box-justify mb-2">
|
|
- <el-button type="primary" @click="toPage(1)">查询</el-button>
|
|
|
|
|
|
+ <el-form inline>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="filter.param"
|
|
|
|
+ placeholder="姓名/学号"
|
|
|
|
+ clearable
|
|
|
|
+ ></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button type="primary" @click="toPage(1)">查询</el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
<el-button type="primary" @click="toAdd">新增</el-button>
|
|
<el-button type="primary" @click="toAdd">新增</el-button>
|
|
</div>
|
|
</div>
|
|
<el-table border ref="TableList" :data="dataList">
|
|
<el-table border ref="TableList" :data="dataList">
|
|
@@ -173,6 +184,9 @@ export default {
|
|
modalIsShow: false,
|
|
modalIsShow: false,
|
|
isSubmit: false,
|
|
isSubmit: false,
|
|
modalForm: {},
|
|
modalForm: {},
|
|
|
|
+ filter: {
|
|
|
|
+ param: "",
|
|
|
|
+ },
|
|
current: 1,
|
|
current: 1,
|
|
size: this.GLOBAL.pageSize,
|
|
size: this.GLOBAL.pageSize,
|
|
total: 0,
|
|
total: 0,
|
|
@@ -182,12 +196,14 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
visibleChange() {
|
|
visibleChange() {
|
|
|
|
+ this.filter.param = "";
|
|
if (this.instance.id !== this.modalForm.id) this.toPage(1);
|
|
if (this.instance.id !== this.modalForm.id) this.toPage(1);
|
|
|
|
|
|
this.modalForm = this.$objAssign(initModalForm, this.instance);
|
|
this.modalForm = this.$objAssign(initModalForm, this.instance);
|
|
},
|
|
},
|
|
async getList() {
|
|
async getList() {
|
|
const datas = {
|
|
const datas = {
|
|
|
|
+ ...this.filter,
|
|
examDetailId: this.instance.id,
|
|
examDetailId: this.instance.id,
|
|
pageNumber: this.current,
|
|
pageNumber: this.current,
|
|
pageSize: this.size,
|
|
pageSize: this.size,
|