提交 1ec627f9 authored 作者: pengxiaohui's avatar pengxiaohui

修复重置搜索条件失效bug

上级 072651f8
......@@ -61,7 +61,6 @@ export default {
},
methods: {
onSubmit() {
console.log(this.form)
const params = {
id: this.info.id,
status: this.form.status,
......
......@@ -80,7 +80,7 @@ export default {
},
filters: [
{ type: 'input', placeholder: '姓名', prop: 'personal_name' },
{ placeholder: '所属班级', slots: 'filter-class' }
{ placeholder: '所属班级', slots: 'filter-class', prop: 'class_id' }
],
columns: [
{ type: 'selection', minWidth: '50px', fixed: 'left', visible: this.tabActive === '0' && this.btnMultiPass },
......@@ -116,7 +116,7 @@ export default {
this.multipleSelection = val
},
tabClick() {
this.$refs.list.refetch()
this.$refs.list.refetch(true)
},
onDetails(row) {
this.isShowDialog = true
......
......@@ -54,8 +54,8 @@ export default {
},
filters: [
{ type: 'input', placeholder: '姓名', prop: 'personal_name' },
{ slots: 'filter-class' },
{ slots: 'filter-cert' }
{ slots: 'filter-class', prop: 'class_id' },
{ slots: 'filter-cert', prop: 'has_certificate' }
],
columns: [
{ label: '姓名', align: 'center', prop: 'personal_name' },
......
......@@ -79,7 +79,6 @@ export default {
},
getDetail() {
getStudentDetail({ id: this.id }).then(res => {
console.log(res.data.info)
Object.keys(this.form).forEach(key => {
this.form[key] = res.data.info[key]
})
......
......@@ -53,7 +53,8 @@ export default {
{ required: true, message: '请输入工号', trigger: 'blur' },
{ min: 0, max: 40, message: '您最多可输入40 个字符', trigger: 'blur' }
]
}
},
id: ''
}
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论