修复报错
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -215,7 +215,7 @@
|
||||
minWidth: 100
|
||||
},
|
||||
{
|
||||
prop: 'title',
|
||||
prop: 'commission',
|
||||
label: '佣金',
|
||||
slot: 'commission',
|
||||
showOverflowTooltip: true,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user