Commit a7f8db21 authored by 顾俭's avatar 顾俭

FIX BARCODE_FUNCTION

parent 5f7e291a
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<label>&nbsp;</label> <label>&nbsp;</label>
<div> <div>
<button acl-check class="btn btn-primary" func=" 'BARCODE_FUNCTION' " ng-click="query()" <button acl-check class="btn btn-primary" func=" 'BARCODE_FUNCTION' " ng-click="query()"
ng-disabled="!barcodeForm.$valid" resource=" 'QUERY' " type="button"><i class="fa fa-search"></i> 查询状态 ng-disabled="!barcodeForm.$valid" resource=" 'GET_BARCODE_STATUS' " type="button"><i class="fa fa-search"></i> 查询状态
</button> </button>
<span ng-if="loading"><img src="img/spinner.gif" style="width: 30px;"/></span> <span ng-if="loading"><img src="img/spinner.gif" style="width: 30px;"/></span>
</div> </div>
......
...@@ -9,7 +9,7 @@ angular.module('IOne').controller('BarcodeQueryController', function ($scope, Co ...@@ -9,7 +9,7 @@ angular.module('IOne').controller('BarcodeQueryController', function ($scope, Co
$scope.dtlMessage = ""; $scope.dtlMessage = "";
$scope.query = function () { $scope.query = function () {
if (AuthService.hasAcl($scope.vm.currentAcl, 'BARCODE_FUNCTION', 'QUERY')) { if (AuthService.hasAcl($scope.vm.currentAcl, 'BARCODE_FUNCTION', 'GET_BARCODE_STATUS')) {
BarcodeService.getBarcodeStatus($scope.queryCondition.factory.factoryUid, $scope.queryCondition.barcode).then( BarcodeService.getBarcodeStatus($scope.queryCondition.factory.factoryUid, $scope.queryCondition.barcode).then(
function (response) { function (response) {
if (response.data.code == '0') { if (response.data.code == '0') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment