Проинтегрировал скоринг

Добавил не большие улучшения интерфейса
master
Sipachev Igor 3 years ago
parent 10da8bb075
commit 668a0bc20e
  1. 10
      popup/src/classes/DTO/Registers.ts
  2. 2
      popup/src/components/mocks/script.ts
  3. 4
      popup/src/components/mocks/style.scss
  4. 23
      popup/src/components/mocks/template.html

@ -1,5 +1,15 @@
export class Registers { export class Registers {
xtee_mta = '' xtee_mta = ''
ria = '' ria = ''
scoring = ''
xtee_pension = '' xtee_pension = ''
reset () {
// eslint-disable-next-line @typescript-eslint/camelcase
this.xtee_mta = ''
this.ria = ''
this.scoring = ''
// eslint-disable-next-line @typescript-eslint/camelcase
this.xtee_pension = ''
}
} }

@ -29,6 +29,8 @@ export default class Mocks extends Vue {
@Watch('personalCode', { immediate: true }) @Watch('personalCode', { immediate: true })
onPersonalCodeChanged () { onPersonalCodeChanged () {
this.registers.reset()
this.showLoader = false
this.refreshMocks() this.refreshMocks()
} }

@ -2,6 +2,10 @@
width: 350px; width: 350px;
} }
.mock-service__select {
margin-bottom: 5px;
}
.lds-grid { .lds-grid {
display: inline-block; display: inline-block;
position: relative; position: relative;

@ -1,8 +1,8 @@
<div> <div>
<div v-if="showLoader" class="lds-grid"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div> <div v-if="showLoader" class="lds-grid"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
<div v-if="!showLoader"> <div v-if="!showLoader">
<div> <div class="mock-service__select">
<div>XTEE MTA</div> <div>MTA</div>
<div> <div>
<select class="option-select" v-model="registers.xtee_mta" @change="onServiceChanged('xtee_mta')"> <select class="option-select" v-model="registers.xtee_mta" @change="onServiceChanged('xtee_mta')">
<option value="-1">-</option> <option value="-1">-</option>
@ -19,8 +19,8 @@
</select> </select>
</div> </div>
</div> </div>
<div> <div class="mock-service__select">
<div>XTEE RIA</div> <div>Ria</div>
<div> <div>
<select class="option-select" v-model="registers.ria" @change="onServiceChanged('ria')"> <select class="option-select" v-model="registers.ria" @change="onServiceChanged('ria')">
<option value="-1">-</option> <option value="-1">-</option>
@ -31,6 +31,21 @@
</select> </select>
</div> </div>
</div> </div>
<div class="mock-service__select">
<div>Scoring</div>
<div>
<select class="option-select" v-model="registers.scoring" @change="onServiceChanged('scoring')">
<option value="-1">-</option>
<option value="0">Не замокано</option>
<option value="1">A</option>
<option value="2">B</option>
<option value="3">C</option>
<option value="4">D</option>
<option value="5">E</option>
<option value="6">F</option>
</select>
</div>
</div>
<br /> <br />
<button v-if="'add' === mode" @click="saveMocks">Сохранить моки</button> <button v-if="'add' === mode" @click="saveMocks">Сохранить моки</button>
</div> </div>

Loading…
Cancel
Save