|
@@ -54,6 +54,11 @@ export default {
|
|
|
]
|
|
|
}),
|
|
|
components: { Treeselect },
|
|
|
+ watch: {
|
|
|
+ $route(n, o) {
|
|
|
+ console.log(n, o)
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
|
update(node, id) {
|
|
@@ -92,7 +97,7 @@ export default {
|
|
|
parentNode.children = res.result.map(item => {
|
|
|
return {
|
|
|
id: item.accountId,
|
|
|
- label: item.authName + ' ' + item.userName
|
|
|
+ label: item.userName + ' ' + item.authName
|
|
|
}
|
|
|
})
|
|
|
callback()
|
|
@@ -122,10 +127,8 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.getParticipateList()
|
|
|
- })
|
|
|
+ activated() {
|
|
|
+ this.getParticipateList()
|
|
|
}
|
|
|
}
|
|
|
</script>
|