seimin %!s(int64=2) %!d(string=hai) anos
pai
achega
4c25b022f9

+ 5 - 5
assets/js/controllers/customform/customformCtrl.js

@@ -22009,7 +22009,7 @@ appFormly.controller("CustomformCtrl", [
22009 22009
                     currentUserRoles = $rootScope.user.role ? $rootScope.user.role.map(v=>String(v.id)) : [];
22010 22010
                     intersection = integralRoles.filter(function (val) { return currentUserRoles.indexOf(val) > -1 })
22011 22011
                   }
22012
-                  if(vm.model.start_code == "close"&&((integralMechanism == 1 && intersection.length && integralRoles.length) || (integralMechanism == 2 && $rootScope.user.userType.value == 2))){
22012
+                  if(vm.model.start_code == "close"&&((integralMechanism == 1 && (intersection.length || integralRoles.length === 0)) || (integralMechanism == 2 && $rootScope.user.userType.value == 2))){
22013 22013
                     $modal.open({
22014 22014
                       templateUrl: 'assets/views/incident/tpl/toIntegralMechanism.tpl.html',
22015 22015
                       controller: function ($scope, $modalInstance, api_bpm_domain, incidentData, currentUserId, Alert, api_user_data,api_wechatfile,scope,api_bpm_data) {
@@ -22168,7 +22168,7 @@ appFormly.controller("CustomformCtrl", [
22168 22168
                           currentUserRoles = $rootScope.user.role ? $rootScope.user.role.map(v=>String(v.id)) : [];
22169 22169
                           intersection = integralRoles.filter(function (val) { return currentUserRoles.indexOf(val) > -1 })
22170 22170
                         }
22171
-                        if(vm.model.start_code == "close"&&((integralMechanism == 1 && intersection.length && integralRoles.length) || (integralMechanism == 2 && $rootScope.user.userType.value == 2))){
22171
+                        if(vm.model.start_code == "close"&&((integralMechanism == 1 && (intersection.length || integralRoles.length === 0)) || (integralMechanism == 2 && $rootScope.user.userType.value == 2))){
22172 22172
                           api_wechatfile.getDictionary({"key":"incident_integral_state","type":"list"}).then(function(res){
22173 22173
                             var auditState = res.find(v=>v.value == 0);
22174 22174
                             var postData = { 
@@ -22201,7 +22201,7 @@ appFormly.controller("CustomformCtrl", [
22201 22201
                                       ) {
22202 22202
                                         $rootScope.app.layout.isSidebarClosed = false;
22203 22203
                                         if ($scope.login && !$rootScope.busy) {
22204
-                                          $rootScope.setidle();
22204
+                                          // $rootScope.setidle();
22205 22205
                                         }
22206 22206
                                       }
22207 22207
                                       $state.go($scope.formData.cancelUrl);
@@ -22231,7 +22231,7 @@ appFormly.controller("CustomformCtrl", [
22231 22231
                               ) {
22232 22232
                                 $rootScope.app.layout.isSidebarClosed = false;
22233 22233
                                 if ($scope.login && !$rootScope.busy) {
22234
-                                  $rootScope.setidle();
22234
+                                  // $rootScope.setidle();
22235 22235
                                 }
22236 22236
                               }
22237 22237
                               $state.go($scope.formData.cancelUrl);
@@ -22277,7 +22277,7 @@ appFormly.controller("CustomformCtrl", [
22277 22277
                     currentUserRoles = $rootScope.user.role ? $rootScope.user.role.map(v=>String(v.id)) : [];
22278 22278
                     intersection = integralRoles.filter(function (val) { return currentUserRoles.indexOf(val) > -1 })
22279 22279
                   }
22280
-                  if($scope.formData.name === 'handlerform'&&((integralMechanism == 1 && intersection.length && integralRoles.length) || (integralMechanism == 2 && $rootScope.user.userType.value == 2))){
22280
+                  if($scope.formData.name === 'handlerform'&&((integralMechanism == 1 && (intersection.length || integralRoles.length === 0)) || (integralMechanism == 2 && $rootScope.user.userType.value == 2))){
22281 22281
                       $modal.open({
22282 22282
                         templateUrl: 'assets/views/incident/tpl/toIntegralMechanism.tpl.html',
22283 22283
                         controller: function ($scope, $modalInstance, api_bpm_domain, incidentData, currentUserId, Alert, api_user_data,api_wechatfile,scope,api_bpm_data) {

+ 1 - 1
assets/js/controllers/desk/chartCtrl.js

@@ -10,7 +10,7 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
10 10
     // 来源
11 11
     $scope.sourceTypes = [
12 12
         {name:'事件生成',value:'pcIncident'},
13
-        {name:'师生报修',value:'wechatRequesterIncident'}
13
+        {name:'微信/web',value:'wechatRequesterIncident'}
14 14
     ]
15 15
     
16 16
     //修改来源

+ 6 - 1
assets/js/controllers/system/user/adminUserCtrl.js

@@ -44,7 +44,7 @@ app.controller('adminUserListCtrl', ["$rootScope", "$scope", "$state", "$timeout
44 44
     $scope.gridOptions.paginationPageSize = 10;
45 45
     $scope.gridOptions.multiSelect = false;
46 46
 
47
-    //$scope.gridOptions.rowTemplate= "<div ng-dblclick=\"grid.appScope.onDblClick(row)\" ng-repeat=\"(colRenderIndex, col) in colContainer.renderedColumns track by col.uid\" ui-grid-one-bind-id-grid=\"rowRenderIndex + '-' + col.uid + '-cell'\" class=\"ui-grid-cell\" ng-class=\"{ 'ui-grid-row-header-cell': col.isRowHeader }\" role=\"{{col.isRowHeader ? 'rowheader' : 'gridcell'}}\" ui-grid-cell></div>";
47
+    $scope.gridOptions.rowTemplate= "<div ng-dblclick=\"grid.appScope.onDblClick(row)\" ng-repeat=\"(colRenderIndex, col) in colContainer.renderedColumns track by col.uid\" ui-grid-one-bind-id-grid=\"rowRenderIndex + '-' + col.uid + '-cell'\" class=\"ui-grid-cell\" ng-class=\"{ 'ui-grid-row-header-cell': col.isRowHeader }\" role=\"{{col.isRowHeader ? 'rowheader' : 'gridcell'}}\" ui-grid-cell></div>";
48 48
 
49 49
     $scope.gridOptions.rowIdentity = function (row) {
50 50
         return row.id;
@@ -354,6 +354,11 @@ app.controller('adminUserListCtrl', ["$rootScope", "$scope", "$state", "$timeout
354 354
             size: 'sm'
355 355
         })
356 356
     }
357
+    // //双击查看详情
358
+    $scope.onDblClick = function (data) {
359
+        console.log(data);
360
+        $scope.saveData(data.entity);
361
+    };
357 362
 
358 363
     $scope.saveData = function (data) {
359 364
         var modelData = {