schangxiang@126.com
2025-08-20 b7bb4bf8ee6d007e0e7c3cacfc4fab77049beb58
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
(function () {
    'use strict';
    angular.module('task.controller')
        .controller('ConveyorMonitorDetail2Ctrl', ConveyorMonitorDetail2Ctrl);
 
    function ConveyorMonitorDetail2Ctrl($scope, $window, CurdHelper, Common, ETaskTypeService, $state, $timeout, Utils, Global, $stateParams) {
        $scope.data = [];
        $scope.info_div = {
            width: $window.innerWidth / 2 - 30,
            height: 440
        }
        $scope.input_length = {
            width: ($window.innerWidth) / 4 - 132 - 45,
        }
        $scope.task_send_div = {
            width: $window.innerWidth - 50
        };
        $scope.sendFlag = false;
        $scope.init = init;
        function init() {
            debugger;
            $scope.conveyorName = $stateParams.name + "输送机监控";
            queryConveyor();
        }
        function queryConveyor() {
            CurdHelper.queryByParam("./Device/GetGateInfo", { conveyorName: "conveyor2", gateName: "gate21" }, function (data) {
 
                if (Utils.isBlank(data.Message)) {
                    $scope.gate21 = data.Result;
                }
            });
 
            CurdHelper.queryByParam("./Device/GetGateInfo", { conveyorName: "conveyor2", gateName: "gate22" }, function (data) {
 
                if (Utils.isBlank(data.Message)) {
                    $scope.gate22 = data.Result;
                }
            });
            if ($state.includes("task.conveyor-monitor")) {
                $timeout(queryConveyor, 1000);
            }
        }
 
    }
 
})();