|
@@ -181,11 +181,14 @@
|
|
|
this.radio = item.id;
|
|
this.radio = item.id;
|
|
|
}
|
|
}
|
|
|
this.currentIndex = index;
|
|
this.currentIndex = index;
|
|
|
|
|
+ // 先亮起弹窗再排 nextTick:首次打开时对话框内容尚未挂载,
|
|
|
|
|
+ // 否则 clearSelection 执行到 $refs.table 时还是 undefined
|
|
|
|
|
+ this.visible = true;
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.table.clearSelection();
|
|
|
|
|
|
|
+ if (this.$refs.table) {
|
|
|
|
|
+ this.$refs.table.clearSelection();
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
- this.visible = true;
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/* 表格数据源 */
|
|
/* 表格数据源 */
|