路由页面
This commit is contained in:
@@ -57,12 +57,14 @@ export default {
|
||||
showStstus: false,
|
||||
flag: false,
|
||||
areaIdProps: '',
|
||||
moduleId: ''
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
onLoad(o) {
|
||||
console.log(o)
|
||||
this.id = o.id
|
||||
this.moduleId = o.moduleId
|
||||
this.areaIdProps = this.user.areaId
|
||||
this.$dict.load('realityStatus').then(() => {
|
||||
this.getDetail()
|
||||
@@ -113,6 +115,7 @@ export default {
|
||||
// images: JSON.stringify(imgs) || [],
|
||||
images: imgs || [],
|
||||
id: this.id,
|
||||
moduleId: this.moduleId
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
|
||||
@@ -66,6 +66,7 @@ export default {
|
||||
pages: 0,
|
||||
deletShow: false,
|
||||
deletId: '',
|
||||
moduleId: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -76,8 +77,9 @@ export default {
|
||||
},
|
||||
},
|
||||
watch: {},
|
||||
onLoad() {
|
||||
onLoad(o) {
|
||||
this.areaId = this.user.areaId
|
||||
this.moduleId = o.moduleId
|
||||
this.getList()
|
||||
},
|
||||
mounted() {},
|
||||
@@ -90,6 +92,7 @@ export default {
|
||||
current: this.current,
|
||||
areaId: this.areaId,
|
||||
title: this.keyword,
|
||||
moduleId: this.moduleId
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
@@ -116,7 +119,7 @@ export default {
|
||||
}
|
||||
if (type == null) {
|
||||
console.log('添加')
|
||||
uni.navigateTo({ url: `./Add` })
|
||||
uni.navigateTo({ url: `./Add?moduleId=${this.moduleId}` })
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user