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"
|
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>
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue