Merge branch 'develop'
commit
f443387e41
|
@ -183,12 +183,16 @@ app.controller('ModalAddPointCtrl', function($scope, $uibModalInstance) {
|
||||||
$scope.cancel = function() {
|
$scope.cancel = function() {
|
||||||
$uibModalInstance.dismiss('cancel');
|
$uibModalInstance.dismiss('cancel');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.$watch("point.object_type",function () {
|
||||||
|
$scope.point.is_virtual = false;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
app.controller('ModalEditPointCtrl', function($scope, $uibModalInstance, params) {
|
app.controller('ModalEditPointCtrl', function($scope, $uibModalInstance, params) {
|
||||||
$scope.operation = "SETTING.EDIT_POINT";
|
$scope.operation = "SETTING.EDIT_POINT";
|
||||||
$scope.point = params.point;
|
$scope.point = params.point;
|
||||||
|
$scope.is_edit = true;
|
||||||
$scope.ok = function() {
|
$scope.ok = function() {
|
||||||
$uibModalInstance.close($scope.point);
|
$uibModalInstance.close($scope.point);
|
||||||
};
|
};
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<div class="form-group"><label class="col-sm-4 control-label">{{'POINT.OBJECT_TYPE' | translate}}</label>
|
<div class="form-group"><label class="col-sm-4 control-label">{{'POINT.OBJECT_TYPE' | translate}}</label>
|
||||||
|
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<select name="pointobject_type" ng-model="point.object_type" class="form-control m-b">
|
<select name="pointobject_type" ng-model="point.object_type" ng-disabled="is_edit" class="form-control m-b">
|
||||||
<option value="ENERGY_VALUE">ENERGY VALUE</option>
|
<option value="ENERGY_VALUE">ENERGY VALUE</option>
|
||||||
<option value="ANALOG_VALUE">ANALOG VALUE</option>
|
<option value="ANALOG_VALUE">ANALOG VALUE</option>
|
||||||
<option value="DIGITAL_VALUE">DIGITAL VALUE</option>
|
<option value="DIGITAL_VALUE">DIGITAL VALUE</option>
|
||||||
|
|
Loading…
Reference in New Issue