seimin 2 年之前
父節點
當前提交
9471d36b43
共有 5 個文件被更改,包括 25 次插入23 次删除
  1. 13 13
      assets/js/controllers/desk/jry_emergencyCtrl.js
  2. 2 1
      assets/js/controllers/loginCtrl.js
  3. 6 5
      assets/js/main.js
  4. 2 2
      assets/views/login_login.html
  5. 2 2
      index.html

+ 13 - 13
assets/js/controllers/desk/jry_emergencyCtrl.js

@@ -108,7 +108,6 @@ app.controller('jry_emergencyCtrl', ["$scope", "i18nService", "$rootScope", "$st
108
                 displayName: '告警ID',
108
                 displayName: '告警ID',
109
 
109
 
110
                 width: '10%',
110
                 width: '10%',
111
-                maxWidth:'120',
112
                 cellTemplate: '<div>' +
111
                 cellTemplate: '<div>' +
113
 
112
 
114
                     '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{row.entity.alarm.alarmId}}</div>' +
113
                     '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{row.entity.alarm.alarmId}}</div>' +
@@ -124,7 +123,6 @@ app.controller('jry_emergencyCtrl', ["$scope", "i18nService", "$rootScope", "$st
124
                 displayName: '告警来源',
123
                 displayName: '告警来源',
125
 
124
 
126
                 width: '10%',
125
                 width: '10%',
127
-                maxWidth:'120',
128
                 cellTemplate: '<div>' +
126
                 cellTemplate: '<div>' +
129
 
127
 
130
                     '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{row.entity.alarm.equipment}}</div>' +
128
                     '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{row.entity.alarm.equipment}}</div>' +
@@ -145,21 +143,23 @@ app.controller('jry_emergencyCtrl', ["$scope", "i18nService", "$rootScope", "$st
145
 
143
 
146
                     '</div>'
144
                     '</div>'
147
 
145
 
148
-            }, {
146
+            }, 
147
+            // {
149
 
148
 
150
-                name: 'requester.name',
149
+            //     name: 'requester.name',
151
 
150
 
152
-                displayName: '故障现象报修',
151
+            //     displayName: '故障现象报修',
153
 
152
 
154
-                width: '10%',
153
+            //     width: '10%',
155
 
154
 
156
-                cellTemplate: '<div>' +
155
+            //     cellTemplate: '<div>' +
157
 
156
 
158
-                    '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{row.entity.alarm.alarmType}}</div>' +
157
+            //         '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{row.entity.alarm.alarmType}}</div>' +
159
 
158
 
160
-                    '</div>'
159
+            //         '</div>'
161
 
160
 
162
-            }, {
161
+            // }, 
162
+            {
163
 
163
 
164
                 name: 'alarmStatus',
164
                 name: 'alarmStatus',
165
 
165
 
@@ -191,13 +191,13 @@ app.controller('jry_emergencyCtrl', ["$scope", "i18nService", "$rootScope", "$st
191
 
191
 
192
                 name: 'address',
192
                 name: 'address',
193
 
193
 
194
-                displayName: '定位',
194
+                displayName: '告警IP',
195
 
195
 
196
                 width: '13%',
196
                 width: '13%',
197
                 maxWidth:'120',
197
                 maxWidth:'120',
198
                 cellTemplate: '<div>' +
198
                 cellTemplate: '<div>' +
199
 
199
 
200
-                    '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  > {{row.entity.alarm.alarmLocation}}</div>' +
200
+                    '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  > {{row.entity.alarm.alarmIp}}</div>' +
201
 
201
 
202
                     '</div>'
202
                     '</div>'
203
 
203
 
@@ -450,7 +450,7 @@ app.controller('jry_emergencyCtrl', ["$scope", "i18nService", "$rootScope", "$st
450
                 // }
450
                 // }
451
                 'model':{
451
                 'model':{
452
                     'incident':{
452
                     'incident':{
453
-                        'description': 'ID:'+data.alarm.alarmId+'\r\n'+ '来源:'+data.alarm.equipment+'\r\n'+ '时间:'+data.alarm.alarmActiveTime+'\r\n'+ '紧急度:'+data.alarm.alarmSeverity+'\r\n'+ '内容:'+data.alarm.alarmContent+'\r\n'+ '描述:'+data.alarm.alarmDescription+'\r\n'+ '地址:'+data.alarm.alarmLocation+'\r\n',
453
+                        'description': 'ID:'+(data.alarm.alarmId||'')+'\r\n'+ '来源:'+(data.alarm.equipment||'')+'\r\n'+ '时间:'+(data.alarm.alarmActiveTime||'')+'\r\n'+ '紧急度:'+(data.alarm.alarmSeverity||'')+'\r\n'+ '内容:'+(data.alarm.alarmContent||'')+'\r\n'+ '描述:'+(data.alarm.alarmDescription||'')+'\r\n'+ 'IP:'+(data.alarm.alarmIp||'') +'\r\n'+ '地址:'+(data.alarm.alarmLocation||'')+'\r\n',
454
                         'alarm': data.alarm
454
                         'alarm': data.alarm
455
                     }
455
                     }
456
                 },
456
                 },

+ 2 - 1
assets/js/controllers/loginCtrl.js

@@ -5,7 +5,8 @@ app.controller('LoginCtrl', ['$rootScope', '$scope', '$state', '$translate', '$l
5
         //判断项目归属 start
5
         //判断项目归属 start
6
         //因项目众多,前端为了加以区分,所以用域名加以判断,后期有更好的方式可以自行修改
6
         //因项目众多,前端为了加以区分,所以用域名加以判断,后期有更好的方式可以自行修改
7
         // 中南财大
7
         // 中南财大
8
-        $rootScope.isZncd = document.domain === 'itsm.zuel.edu.cn';
8
+        // $rootScope.isZncd = document.domain === 'itsm.zuel.edu.cn';
9
+        $rootScope.isZncd = document.domain === true;
9
         //判断项目归属 end
10
         //判断项目归属 end
10
         // 是否单点登录
11
         // 是否单点登录
11
         $scope.isSSo = location.search.length > 0;
12
         $scope.isSSo = location.search.length > 0;

+ 6 - 5
assets/js/main.js

@@ -17,11 +17,12 @@ var callIp = protocolName + "//" + domainName;
17
 // var seiminCallIp = '192.168.3.233';//本地
17
 // var seiminCallIp = '192.168.3.233';//本地
18
 // var seiminCallIp = '202.114.235.100';//财大
18
 // var seiminCallIp = '202.114.235.100';//财大
19
 var seiminCallIp = '';
19
 var seiminCallIp = '';
20
-if(document.domain === 'itsm.zuel.edu.cn'){
21
-    seiminCallIp = '202.114.235.100:5678';//财大
22
-}else{
23
-    seiminCallIp = '192.168.3.233:5678';//本地
24
-}
20
+seiminCallIp = '202.114.235.100:5678';//财大
21
+// if(document.domain === 'itsm.zuel.edu.cn'){
22
+//     seiminCallIp = '202.114.235.100:5678';//财大
23
+// }else{
24
+//     seiminCallIp = '192.168.3.233:5678';//本地
25
+// }
25
 // 信用社
26
 // 信用社
26
 // var serverIp = "http://192.168.2.63:80/service"; //跟其他有关
27
 // var serverIp = "http://192.168.2.63:80/service"; //跟其他有关
27
 // var reportIp = "http://192.168.2.63:80/service"; //跟报表有关
28
 // var reportIp = "http://192.168.2.63:80/service"; //跟报表有关

+ 2 - 2
assets/views/login_login.html

@@ -119,8 +119,8 @@
119
                 </p> -->
119
                 </p> -->
120
                 <!-- wt -->
120
                 <!-- wt -->
121
                 <p style="overflow:hidden">
121
                 <p style="overflow:hidden">
122
-                    <button ng-style="{width:isZncd?'48%':'100%'}" ng-click="handleLoginClick(loginForm)" class="btn-primary wt_btn fl" style="width: 48%!important;"> 登录 </button>
123
-                    <a ng-if="isZncd" href="http://itsm.zuel.edu.cn:8080/" class="btn-primary wt_btn fr" style="width: 48%!important;margin-top:30px;line-height:52px;"> 统一身份认证 </a>
122
+                    <button ng-click="handleLoginClick(loginForm)" class="btn-primary wt_btn fl" style="width: 48%!important;"> 登录 </button>
123
+                    <a href="http://itsm.zuel.edu.cn:8080/" class="btn-primary wt_btn fr" style="width: 48%!important;margin-top:30px;line-height:52px;"> 统一身份认证 </a>
124
                 </p>
124
                 </p>
125
                 <!-- 激活码:<input type="text" ng-model="ceshilicense">   -->
125
                 <!-- 激活码:<input type="text" ng-model="ceshilicense">   -->
126
                 <!-- <div class="col-xs-12">
126
                 <!-- <div class="col-xs-12">

+ 2 - 2
index.html

@@ -44,8 +44,8 @@
44
     <!-- Clip-Two Theme -->
44
     <!-- Clip-Two Theme -->
45
     <link rel="stylesheet" data-ng-href="assets/css/themes/{{ app.layout.theme }}.css" />
45
     <link rel="stylesheet" data-ng-href="assets/css/themes/{{ app.layout.theme }}.css" />
46
     <script>
46
     <script>
47
-        if(document.domain === 'itsm.zuel.edu.cn'){
48
-            window.console.log = function(){};//财大
47
+        if(document.domain !== 'localhost'){
48
+            window.console.log = function(){};
49
         }
49
         }
50
     </script>
50
     </script>
51
     <style>
51
     <style>