fixed debugging code issues in Admin UI

pull/61/MERGE
13621160019@163.com 2021-08-17 22:29:08 +08:00
parent cac434cc5d
commit 79c7725061
8 changed files with 4 additions and 16 deletions

View File

@ -100,7 +100,6 @@ app.controller('CombinedEquipmentMeterController', function ($scope, $timeout, $
$scope.pairMeter = function (dragEl, dropEl) {
var tem_uuid = angular.element('#' + dragEl);
if (angular.isDefined(tem_uuid.scope().combinedequipmentmeter)) {
console.log("this is a spacemeter");
return;
}
var modalInstance = $uibModal.open({

View File

@ -254,8 +254,6 @@ app.controller('CombinedEquipmentParameterController', function ($scope, $uibMod
$scope.virtualmeters = [];
}
});
console.log($scope.mergedmeters);
};
$scope.getAllPoints = function () {

View File

@ -54,7 +54,6 @@ app.controller('CostFileController', function (
$scope.restoreCostFile = function (costfile) {
CostFileService.restoreCostFile(costfile, function (response) {
console.log(response);
if (angular.isDefined(response.status) && response.status === 200) {
toaster.pop({
type: "success",

View File

@ -45,7 +45,6 @@ app.controller('EnergyFlowDiagramLinkController', function($scope,$uibModal, $tr
EnergyFlowDiagramNodeService.getNodesByEnergyFlowDiagramID(id, function (response) {
if (angular.isDefined(response.status) && response.status === 200) {
$scope.energyflowdiagramnodes = response.data;
console.log($scope.energyflowdiagramnodes);
} else {
$scope.energyflowdiagramnodes = [];
}

View File

@ -100,7 +100,6 @@ app.controller('EquipmentMeterController', function($scope,$timeout,$uibModal, $
$scope.pairMeter=function(dragEl,dropEl){
var tem_uuid = angular.element('#' + dragEl);
if (angular.isDefined(tem_uuid.scope().equipmentmeter)) {
console.log("this is a spacemeter");
return;
}
var modalInstance = $uibModal.open({

View File

@ -177,12 +177,12 @@ app.controller('EquipmentParameterController', function($scope, $uibModal, $tran
});
};
$scope.colorMeterType=function(type){
if(type=='meters'){
$scope.colorMeterType = function(type) {
if (type === 'meters') {
return 'btn-primary'
}else if(type=='virtualmeters'){
} else if (type === 'virtualmeters') {
return 'btn-info'
}else{
} else {
return 'btn-success'
}
};
@ -255,7 +255,6 @@ app.controller('EquipmentParameterController', function($scope, $uibModal, $tran
}
});
console.log($scope.mergedmeters);
};
$scope.getAllPoints = function() {

View File

@ -209,7 +209,6 @@ app.controller('ModalEditPrivilegeCtrl', function ($scope,
$scope.spaces = [];
var privilege_data = JSON.parse(params.privilege.data);
$scope.currentSpaceID = privilege_data['spaces'][0];
console.log($scope.currentSpaceID)
$scope.getAllSpaces = function () {
SpaceService.getAllSpaces(function (response) {

View File

@ -4,8 +4,6 @@ module.directive('hjcDraggable', ['$rootScope', 'uuid', function($rootScope, uui
return {
restrict: 'A',
link: function(scope, el, attrs, controller) {
//console.log("linking draggable element");
angular.element(el).attr("draggable", "true");
var id = angular.element(el).attr("id");
if (!id) {
@ -14,9 +12,7 @@ module.directive('hjcDraggable', ['$rootScope', 'uuid', function($rootScope, uui
}
el.bind("dragstart", function(e) {
//console.log("The dragstart event handler fired, and evt.target = " + e.target);
e.dataTransfer.setData('text', id);
$rootScope.$emit("HJC-DRAG-START");
});