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

修复重置搜索条件失效bug

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