...
|
...
|
@@ -36,28 +36,30 @@ export default { |
|
|
name: 'profile',
|
|
|
data() {
|
|
|
return {
|
|
|
profile: {}
|
|
|
profile: {}
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.candidateListService = new CandidateListService();
|
|
|
// this.getData();
|
|
|
this.candidateListService = new CandidateListService();
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getData();
|
|
|
},
|
|
|
methods: {
|
|
|
getData() {
|
|
|
this.candidateListService.queryByPidForFavorite().then(ret => {
|
|
|
if (ret && ret.code === 200) {
|
|
|
this.profile = ret.data;
|
|
|
} else {
|
|
|
console.log(ret.message);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
formatDate(date) {
|
|
|
if (date) {
|
|
|
return moment.unix(date).format('YYYY.MM.DD');
|
|
|
getData() {
|
|
|
this.candidateListService.queryByPidForFavorite().then(ret => {
|
|
|
if (ret && ret.code === 200) {
|
|
|
this.profile = ret.data;
|
|
|
} else {
|
|
|
console.log(ret.message);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
formatDate(date) {
|
|
|
if (date) {
|
|
|
return moment.unix(date).format('YYYY.MM.DD');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
},
|
...
|
...
|
|