|
@@ -282,7 +282,7 @@ export default {
|
|
|
},
|
|
|
pageInit () {
|
|
|
if (this.$route.params.sn) { // 编辑页
|
|
|
- this.getDetail()
|
|
|
+ this.getDetail(false)
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -295,6 +295,9 @@ export default {
|
|
|
// 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
|
|
|
if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
|
|
|
this.pageInit()
|
|
|
+ } else {
|
|
|
+ // 刷新明细列表
|
|
|
+ this.$refs.table.refresh()
|
|
|
}
|
|
|
},
|
|
|
beforeRouteEnter (to, from, next) {
|