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

View File

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