refactor(thermograph): temperatures source updated on frontend
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2021-09-06 16:39:44 +02:00
parent 56276783db
commit c4e51146fd
2 changed files with 6 additions and 11 deletions

View File

@ -120,11 +120,6 @@
url="Thermographs/getThermographModels"
data="thermographModels">
</vn-crud-model>
<vn-crud-model
vn-id="temperaturesModel"
url="TravelThermographs/getThermographTemperatures"
data="thermographTemperatures">
</vn-crud-model>
<vn-dialog class="edit"
vn-id="newThermographDialog"
on-accept="$ctrl.onNewThermographAccept()"
@ -162,10 +157,11 @@
vn-one
required="true"
label="Temperature"
ng-model="$ctrl.newThermograph.temperature"
data="thermographTemperatures"
show-field="value"
value-field="value">
ng-model="$ctrl.newThermograph.temperatureFk"
url="Temperatures"
data='Temperatures'
show-field="name"
value-field="code">
</vn-autocomplete>
</vn-horizontal>
</tpl-body>

View File

@ -63,12 +63,11 @@ class Controller extends Section {
this.newThermograph = {
thermographId: this.thermographId,
warehouseId: this.warehouseId,
temperature: defaultTemperature,
temperatureFk: defaultTemperature,
model: defaultModel
};
this.$.modelsModel.refresh();
this.$.temperaturesModel.refresh();
this.$.newThermographDialog.show();
}