seimin 3 anos atrás
pai
commit
f2c9c18ae5
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      assets/js/controllers/desk/calllogCtrl.js

+ 3 - 3
assets/js/controllers/desk/calllogCtrl.js

@@ -35,7 +35,7 @@ app.controller('calllogCtrl', ["$scope", "i18nService", "$rootScope", "$state",
35
         return row.id;
35
         return row.id;
36
     };
36
     };
37
     $scope.translateone = function(item) {
37
     $scope.translateone = function(item) {
38
-        if (item) {
38
+        if (item == 1) {
39
             return '已接';
39
             return '已接';
40
         } else {
40
         } else {
41
             return '未接';
41
             return '未接';
@@ -94,7 +94,7 @@ app.controller('calllogCtrl', ["$scope", "i18nService", "$rootScope", "$state",
94
             displayName: '已接/未接',
94
             displayName: '已接/未接',
95
             width: '10%',
95
             width: '10%',
96
             cellTemplate: '<div>' +
96
             cellTemplate: '<div>' +
97
-                '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{grid.appScope.translateone(row.entity.answeredTime)}}</div>' +
97
+                '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{grid.appScope.translateone(row.entity.isAnswered)}}</div>' +
98
                 '</div>'
98
                 '</div>'
99
         }, 
99
         }, 
100
         // {
100
         // {
@@ -129,7 +129,7 @@ app.controller('calllogCtrl', ["$scope", "i18nService", "$rootScope", "$state",
129
         },
129
         },
130
     ];
130
     ];
131
     $scope.yijieFn=function(data){
131
     $scope.yijieFn=function(data){
132
-        if(data.answeredTime){
132
+        if(data.recordingFileName){
133
             return true
133
             return true
134
         }else{
134
         }else{
135
             return false
135
             return false