diff --git a/src/components/organization-list/organization-card.vue b/src/components/organization-list/organization-card.vue index ef8b1cabc02a2c0187715273377c875948be809b..5aaaeac6b6850b0e9c7e4317a6e1e182d2f6886e 100644 --- a/src/components/organization-list/organization-card.vue +++ b/src/components/organization-list/organization-card.vue @@ -53,12 +53,14 @@ export default { default: 0, }, }, + created(){ + }, methods: { deleteAction() { this.$emit("delete-action", this.data); }, intoDetail() { - this.$router.push(`${this.detailsUrl}${this.data.id}`); + this.$router.push(`${this.detailsUrl}${this.data.department_id}`); }, }, }; diff --git a/src/pages/authority/organizationedit.vue b/src/pages/authority/organizationedit.vue index af7b0690d44d5f4241a314c9267c826468bf7524..f0c86eb35f36dc5c29939b6fd24a47f78fa160e0 100644 --- a/src/pages/authority/organizationedit.vue +++ b/src/pages/authority/organizationedit.vue @@ -155,6 +155,7 @@ export default { console.log(this.$route); if(this.$route.path.indexOf('add')!==-1){ this.edit_flag = 0 + this.get_now_user() } if(this.$route.path.indexOf('edit')!==-1){ this.edit_flag = 1 @@ -165,6 +166,21 @@ export default { this.get_user() } }, + get_now_user(){ + this.$http + .get(`/apaas/backmgt/user/getCurrentUser`) + .then(response => { + console.log(response); + let data = response.data.data + this.form={ + person:data.user_name, + date:data.create_date.replace('T',' ').replace('Z',' '), + } + }) + .catch((response)=> { + + }); + }, get_user(){ this.$http .get(`/apaas/backmgt/department/detail?department_id=${this.$route.params.id}`)