修复报错

This commit is contained in:
lcc
2025-07-01 20:34:54 +08:00
parent 4623d75e54
commit e1c8ce480a
5 changed files with 21 additions and 5 deletions
+5 -1
View File
@@ -172,7 +172,11 @@
},
/* 刷新表格 */
reload() {
this.$refs.table.reload({ page: 1, where: this.where });
if (this.$refs.table && typeof this.$refs.table.reload === 'function') {
this.$refs.table.reload({ page: 1, where: this.where });
} else {
console.warn('表格引用或 reload 方法不存在');
}
},
handleCarChange(carInfo) {
this.form.selectedCar = carInfo;
+5 -1
View File
@@ -192,7 +192,11 @@
},
/* 刷新表格 */
reload() {
this.$refs.table.reload({ page: 1, where: this.where });
if (this.$refs.table && typeof this.$refs.table.reload === 'function') {
this.$refs.table.reload({ page: 1, where: this.where });
} else {
console.warn('表格引用或 reload 方法不存在');
}
},
handleCarChange(carInfo) {
this.form.selectedCar = carInfo;
+1 -1
View File
@@ -215,7 +215,7 @@
minWidth: 100
},
{
prop: 'title',
prop: 'commission',
label: '佣金',
slot: 'commission',
showOverflowTooltip: true,
+5 -1
View File
@@ -203,7 +203,11 @@
},
/* 刷新表格 */
reload() {
this.$refs.table.reload({ page: 1, where: this.where });
if (this.$refs.table && typeof this.$refs.table.reload === 'function') {
this.$refs.table.reload({ page: 1, where: this.where });
} else {
console.warn('表格引用或 reload 方法不存在');
}
},
handleCarChange(carInfo) {
this.form.selectedCar = carInfo;
@@ -192,7 +192,11 @@
},
/* 刷新表格 */
reload() {
this.$refs.table.reload({ page: 1, where: this.where });
if (this.$refs.table && typeof this.$refs.table.reload === 'function') {
this.$refs.table.reload({ page: 1, where: this.where });
} else {
console.warn('表格引用或 reload 方法不存在');
}
},
handleCarChange(carInfo) {
this.form.selectedCar = carInfo;