路由页面

This commit is contained in:
liuye
2021-12-23 11:03:06 +08:00
parent f4a377955f
commit f520a17c68
23 changed files with 339 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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}` })
}
},