bug
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Add from './components/add'
|
||||
import List from './components/list'
|
||||
import MyAddList from './components/myAddList'
|
||||
import Add from './add'
|
||||
import List from './list'
|
||||
import MyAddList from './myAddList'
|
||||
|
||||
export default {
|
||||
name: 'AppMailList',
|
||||
|
||||
@@ -69,13 +69,12 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
created() {
|
||||
onLoad(option) {
|
||||
this.userInfo.areaId = this.user.areaId
|
||||
this.userInfo.areaName = this.user.areaName
|
||||
this.$dict.load('yesOrNo').then(() => {
|
||||
if(this.params.id) {
|
||||
console.log(122)
|
||||
this.userInfo.id = this.params.id
|
||||
if(option.id) {
|
||||
this.userInfo.id = option.id
|
||||
this.getDetail()
|
||||
}
|
||||
})
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
@@ -64,9 +64,10 @@ export default {
|
||||
})
|
||||
},
|
||||
toAddList() {
|
||||
this.$emit('change', {
|
||||
type: 'MyAddList',
|
||||
})
|
||||
// this.$emit('change', {
|
||||
// type: 'MyAddList',
|
||||
// })
|
||||
uni.navigateTo({url: `./myAddList`})
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -51,12 +51,13 @@ export default {
|
||||
})
|
||||
},
|
||||
edit(id) {
|
||||
this.$emit('change', {
|
||||
type: 'Add',
|
||||
params: {
|
||||
id: id,
|
||||
}
|
||||
})
|
||||
// this.$emit('change', {
|
||||
// type: 'Add',
|
||||
// params: {
|
||||
// id: id,
|
||||
// }
|
||||
// })
|
||||
uni.navigateTo({url: `./add?id=${id}`})
|
||||
},
|
||||
del(item) {
|
||||
this.$confirm("是否确认删除该发布信息?").then(() => {
|
||||
Reference in New Issue
Block a user