refactor(thermograph): temperatures source updated on frontend
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
56276783db
commit
c4e51146fd
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue