|
@@ -448,9 +448,16 @@ export default {
|
|
|
methods: {
|
|
|
// 获取row-key
|
|
|
getRowKey(row) {
|
|
|
- return camelCase(
|
|
|
- this.tableName + "_" + this.templateInfo.template?.primaryKey
|
|
|
+ console.log(
|
|
|
+ row[
|
|
|
+ camelCase(
|
|
|
+ this.tableName + "_" + this.templateInfo.template?.primaryKey
|
|
|
+ )
|
|
|
+ ]
|
|
|
);
|
|
|
+ return row[
|
|
|
+ camelCase(this.tableName + "_" + this.templateInfo.template?.primaryKey)
|
|
|
+ ];
|
|
|
},
|
|
|
/** 查询列表 */
|
|
|
getList(queryParams) {
|
|
@@ -510,9 +517,9 @@ export default {
|
|
|
// });
|
|
|
this.tableList = await this.setFieldStyleData(tempTableList);
|
|
|
this.total = res.total;
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.tableRef?.clearSelection();
|
|
|
- });
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // this.$refs.tableRef?.clearSelection();
|
|
|
+ // });
|
|
|
this.loading = false;
|
|
|
});
|
|
|
|