|
@@ -215,14 +215,14 @@ export default {
|
|
|
editGood (id) {
|
|
|
this.$router.push({
|
|
|
path: '/layout/tab2Add',
|
|
|
- query: { typeU: this.formData.type, id }
|
|
|
+ query: { typeU: this.formData.type, id, k: this.formData.pageNum }
|
|
|
})
|
|
|
},
|
|
|
// 点击新增文物
|
|
|
addGood () {
|
|
|
this.$router.push({
|
|
|
path: '/layout/tab2Add',
|
|
|
- query: { typeU: this.formData.type }
|
|
|
+ query: { typeU: this.formData.type, k: this.formData.pageNum }
|
|
|
})
|
|
|
},
|
|
|
// 点击左侧的tab栏
|
|
@@ -282,6 +282,8 @@ export default {
|
|
|
if (this.$route.query.typeU) {
|
|
|
this.formData.type = this.$route.query.typeU
|
|
|
}
|
|
|
+ const k = this.$route.query.k
|
|
|
+ if (k) this.formData.pageNum = Number(k)
|
|
|
this.goodsList(this.formData)
|
|
|
},
|
|
|
// 生命周期 - 挂载完成(可以访问DOM元素)
|