row-key 的id重复问题

This commit is contained in:
hongchao 2025-03-08 13:23:38 +08:00
parent bd8a01ee1a
commit f086b07a06
1 changed files with 3 additions and 2 deletions

View File

@ -56,7 +56,7 @@
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="typeList" row-key="id" border>
<el-table v-loading="loading" :data="typeList" border>
<el-table-column width="60" align="center" label="序号" type="index">
<template slot-scope="scope">
<span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>
@ -705,7 +705,8 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.queryParams.time = []
this.resetForm('queryForm')
// this.resetForm('queryForm')
this.queryParams.taskStatus = ''
this.queryParams.keyWord = ''
this.handleQuery()
},