fix paper id on load
This commit is contained in:
parent
e7b84b766f
commit
f89928ce3d
@ -5,7 +5,7 @@
|
||||
<paper-status :status="paper.status"
|
||||
:key="paper.id">
|
||||
</paper-status>
|
||||
<router-link :to="{ path: 'papers/paper', query: { id: paper.id }}" class="portfolio-link">
|
||||
<router-link :to="{ path: '/papers/paper', query: { id: paper.id }}" class="portfolio-link">
|
||||
<span class="h6">{{ paper.title }}</span>
|
||||
</router-link>
|
||||
</div>
|
||||
|
@ -41,19 +41,22 @@
|
||||
<div class="form-group">
|
||||
<label for="status">Статус:</label>
|
||||
<select class="form-control" id="status" :value="paper.status">
|
||||
<option v-for="status in allStatuses" :value="status.id">{{status.name}}</option>
|
||||
<option v-for="status in allStatuses" :value="status.id">{{status.name}}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="comment">Комментарий:</label>
|
||||
<textarea class="form-control" rows="5" id="comment" :value="paper.comment"></textarea>
|
||||
<textarea class="form-control" rows="5" id="comment"
|
||||
:value="paper.comment"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="title">Ссылка на сайт конференции:</label>
|
||||
<input class="form-control" id="url" type="text" placeholder="Url" :value="paper.url"/>
|
||||
<input class="form-control" id="url" type="text" placeholder="Url"
|
||||
:value="paper.url"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@ -78,7 +81,7 @@
|
||||
<h6 class="my-0">Дата создания:</h6>
|
||||
</div>
|
||||
<div class="col">
|
||||
<small class="text-muted" >
|
||||
<small class="text-muted">
|
||||
{{ formatDate(paper.createDate) }}
|
||||
</small>
|
||||
</div>
|
||||
@ -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;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user