工业园楼栋扫码

master
张涛 6 months ago
parent ab49fcf5e1
commit 955c644cf3

@ -26,7 +26,7 @@ router.beforeEach((to, from, next) => {
text: to.name == '企业详情' ? '工业园' : to.name == '企业详情2' ? '楼栋': '企业',
isShow: to.query.isShow || to.params.isShow,
})
console.log(to)
// console.log(to)
next()
})

@ -15,10 +15,14 @@ export default new Vuex.Store({
},
parkId: null,
enterpriseId: null,
buildingId: null,
},
mutations: {
SET_PERK_ID(state, parkId) {
state.parkId = parkId
},
SET_BUILDING_ID(state, buildingId) {
state.buildingId = buildingId
},
SET_ENTERPRISE_ID(state, enterpriseId) {
state.enterpriseId = enterpriseId

@ -63,6 +63,8 @@ export default {
getList() {
this.querParams.buildingId = this.$route.query.buildingId
this.querParams.parkId = this.$route.query.parkId
this.$store.commit('SET_PERK_ID', this.$route.query.parkId)
this.$store.commit('SET_BUILDING_ID', this.$route.query.buildingId)
listEnterpriseBuildPark(this.querParams).then((res) => {
this.enterpriseList = this.enterpriseList.concat(res.rows)

@ -50,8 +50,8 @@ export default {
this.$router.replace({
path: '/build',
query: {
buildingId: null,
parkId: null,
buildingId: this.$store.state.buildingId,
parkId: this.$store.state.parkId,
},
})
} else {

Loading…
Cancel
Save