From f89928ce3d93040024ffb64d2b1bea3599c6e9c4 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Thu, 27 Jun 2019 12:08:15 +0400 Subject: [PATCH] fix paper id on load --- src/main/resources/static/papers/paper-item.vue | 2 +- src/main/resources/static/papers/paper.vue | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/resources/static/papers/paper-item.vue b/src/main/resources/static/papers/paper-item.vue index 1d91a13..9431ef7 100644 --- a/src/main/resources/static/papers/paper-item.vue +++ b/src/main/resources/static/papers/paper-item.vue @@ -5,7 +5,7 @@ - + {{ paper.title }} diff --git a/src/main/resources/static/papers/paper.vue b/src/main/resources/static/papers/paper.vue index 0c816fc..ffb8b2c 100644 --- a/src/main/resources/static/papers/paper.vue +++ b/src/main/resources/static/papers/paper.vue @@ -41,19 +41,22 @@
- +
- +
@@ -78,7 +81,7 @@
Дата создания:
- + {{ formatDate(paper.createDate) }}
@@ -135,7 +138,7 @@ }, data: function () { return { - paper:'', + paper: '', allAuthors: [], allTypes: [], allStatuses: [] @@ -151,7 +154,7 @@ mounted: function () { var self = this; axiosEx.get( - appConfig.paper + "/65537", + appConfig.paper + "/" + self.$route.query.id, function (data) { self.paper = data; });