违章档案开发
This commit is contained in:
parent
165d3f28a3
commit
406cff8ef2
|
@ -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)
|
||||||
},
|
},
|
||||||
// 返回 按钮
|
// 返回 按钮
|
||||||
|
@ -53,4 +53,4 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue