违章档案开发

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 }, components: { STable, SearchCom },
data() { data() {
return { return {
queryParam: { userId: this.$route.query.userId, courseName: '' }, personId: this.$route.query.id,
queryParam: { courseName: '' },
columns: [ 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: 'time', key: 'time' },
{ title: '违章内容', width: 'auto', align: 'center', dataIndex: 'content', key: 'content' }, { title: '违章内容', width: 'auto', align: 'center', dataIndex: 'content', key: 'content' },
{ title: '违章课时', width: 'auto', align: 'center', dataIndex: 'courseName', key: 'courseName' }, { 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: { computed: {
@ -38,7 +39,6 @@ export default {
}, },
methods: { methods: {
handleRefresh() { handleRefresh() {
this.queryParam.userId = this.userId;
this.$refs.table.refresh(true) this.$refs.table.refresh(true)
}, },
// //