违章档案开发

This commit is contained in:
QuAoLi 2022-03-18 12:00:24 +08:00
parent 165d3f28a3
commit 406cff8ef2
1 changed files with 5 additions and 5 deletions

View File

@ -19,14 +19,15 @@ export default {
components: { STable, SearchCom },
data() {
return {
queryParam: { userId: this.$route.query.userId, courseName: '' },
personId: this.$route.query.id,
queryParam: { courseName: '' },
columns: [
{ title: '违章编号', width: 'auto', align: 'center', dataIndex: 'id', key: 'id' },
{ title: '违章编号', width: 'auto', align: 'center', dataIndex: 'violationCode', key: 'violationCode' },
{ title: '违章时间', width: 'auto', align: 'center', dataIndex: 'time', key: 'time' },
{ title: '违章内容', width: 'auto', align: 'center', dataIndex: 'content', key: 'content' },
{ title: '违章课时', width: 'auto', align: 'center', dataIndex: 'courseName', key: 'courseName' },
],
loadData: parameter => { return getArchivesUserViolationList(Object.assign(parameter, this.queryParam)).then(res => { return res }) }
loadData: parameter => { return getArchivesUserViolationList(Object.assign(parameter, this.queryParam, {personId : this.personId})).then(res => { return res }) }
}
},
computed: {
@ -38,7 +39,6 @@ export default {
},
methods: {
handleRefresh() {
this.queryParam.userId = this.userId;
this.$refs.table.refresh(true)
},
//
@ -53,4 +53,4 @@ export default {
}
}
}
</script>
</script>