|
@@ -433,10 +433,15 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
async open(type, row) {
|
|
async open(type, row) {
|
|
|
this.type = type;
|
|
this.type = type;
|
|
|
|
|
+ this.visible = true;
|
|
|
if (row) {
|
|
if (row) {
|
|
|
this.getDetail(row.id)
|
|
this.getDetail(row.id)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.$refs.table.setData([]);
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
- this.visible = true;
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
@@ -543,6 +548,7 @@ export default {
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.table.toggleRowExpansionAll()
|
|
this.$refs.table.toggleRowExpansionAll()
|
|
|
|
|
+ this.$forceUpdate()
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
})
|
|
})
|