fix paper id on load
This commit is contained in:
parent
e7b84b766f
commit
f89928ce3d
@ -5,7 +5,7 @@
|
|||||||
<paper-status :status="paper.status"
|
<paper-status :status="paper.status"
|
||||||
:key="paper.id">
|
:key="paper.id">
|
||||||
</paper-status>
|
</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>
|
<span class="h6">{{ paper.title }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
|
@ -41,19 +41,22 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="status">Статус:</label>
|
<label for="status">Статус:</label>
|
||||||
<select class="form-control" id="status" :value="paper.status">
|
<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>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="comment">Комментарий:</label>
|
<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>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="title">Ссылка на сайт конференции:</label>
|
<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>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -151,7 +154,7 @@
|
|||||||
mounted: function () {
|
mounted: function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
axiosEx.get(
|
axiosEx.get(
|
||||||
appConfig.paper + "/65537",
|
appConfig.paper + "/" + self.$route.query.id,
|
||||||
function (data) {
|
function (data) {
|
||||||
self.paper = data;
|
self.paper = data;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user