Commit 2d5d518d authored by 张俊's avatar 张俊

修改

parent fcd35b80
......@@ -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}`);
},
},
};
......
......@@ -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}`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment