|
@ -29,7 +29,7 @@ |
|
|
<md-field style="margin: 0% 0%;"> |
|
|
<md-field style="margin: 0% 0%;"> |
|
|
<label style="font-family: tf2secondary">Выбрать количество дней</label> |
|
|
<label style="font-family: tf2secondary">Выбрать количество дней</label> |
|
|
<md-select @md-selected="onLoad" v-model="limit" :mdClass="'ssm'" > |
|
|
<md-select @md-selected="onLoad" v-model="limit" :mdClass="'ssm'" > |
|
|
<md-option v-for="days in [1, 7, 14, 21, 28]" :key="days" :value="days">{{days}} дней</md-option> |
|
|
<md-option v-for="days in [1, 7, 14, 21, 30, 60, 90, 180]" :key="days" :value="days">{{days}} дней</md-option> |
|
|
</md-select> |
|
|
</md-select> |
|
|
</md-field> |
|
|
</md-field> |
|
|
<md-button style="float: right" class="btn-default" v-on:click="showMe(false)">Закрыть</md-button> |
|
|
<md-button style="float: right" class="btn-default" v-on:click="showMe(false)">Закрыть</md-button> |
|
@ -67,6 +67,10 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad() { |
|
|
onLoad() { |
|
|
|
|
|
if (this.request === 'api/stats/graph/peak/of/minutes' && this.limit > 30) { |
|
|
|
|
|
this.limit = 30; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.loading = true; |
|
|
this.loading = true; |
|
|
axios.get(`${this.request}?limit=${this.limit}&server_id=${this.srv}` + this.request_minutes + Random.getRndWebAppend()).then( |
|
|
axios.get(`${this.request}?limit=${this.limit}&server_id=${this.srv}` + this.request_minutes + Random.getRndWebAppend()).then( |
|
|
response => { |
|
|
response => { |
|
|