Commit f7c94ae6 authored by 盖献康's avatar 盖献康

跳页面传参

parent 0f8aabe2
...@@ -417,6 +417,7 @@ export default { ...@@ -417,6 +417,7 @@ export default {
getCheckDetail() { getCheckDetail() {
// const id = localStorage.getItem('checkId') // const id = localStorage.getItem('checkId')
const id = this.$route.query.checkId const id = this.$route.query.checkId
console.log('xddx', id)
getManage(id).then(response => { getManage(id).then(response => {
console.log('od', response.data) console.log('od', response.data)
this.checkDetail = response.data this.checkDetail = response.data
......
...@@ -369,7 +369,8 @@ export default { ...@@ -369,7 +369,8 @@ export default {
// 返回上一页 // 返回上一页
goBack() { goBack() {
this.$router.push({ this.$router.push({
name: 'CheckDetail' name: 'CheckDetail',
query: { checkId: this.currentCheckId }
}) })
}, },
// 获取设备列表 // 获取设备列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment