feat: 双击某一行进入对应页面

This commit is contained in:
zhangyh
2025-09-18 11:15:09 +08:00
parent 5609270305
commit 526b934894

View File

@@ -14,6 +14,7 @@
<a-table <a-table
row-class-name="history_table_row" row-class-name="history_table_row"
:columns="columns" :columns="columns"
:customRow="customTableRow"
:data-source="collectionList" :data-source="collectionList"
@change="changePage" @change="changePage"
:pagination="{ :pagination="{
@@ -311,7 +312,7 @@ export default defineComponent({
//查询列表 //查询列表
searchHistoryList(value: any) { searchHistoryList(value: any) {
console.log('value', value) // console.log('value', value)
this.currentPage = 1 this.currentPage = 1
this.getHistoryList({ this.getHistoryList({
process: value.currentPreset, process: value.currentPreset,
@@ -319,7 +320,7 @@ export default defineComponent({
}) })
}, },
async getHistoryList(param:object) { async getHistoryList(param: object) {
this.isShowMark = true this.isShowMark = true
let startDate: any = this.rangePickerValue let startDate: any = this.rangePickerValue
? new Date(this.rangePickerValue[0]).getTime() ? new Date(this.rangePickerValue[0]).getTime()
@@ -556,6 +557,13 @@ export default defineComponent({
// 如果表格内容还没渲染,先设置一个默认值 // 如果表格内容还没渲染,先设置一个默认值
this.historyTableHeight = maxTableBodyHeight + 'px' this.historyTableHeight = maxTableBodyHeight + 'px'
} }
},
customTableRow(record: any) {
return {
onDblclick: () => {
this.retrieveHome(record)
}
}
} }
} }
}) })