Browse Source

文档大量修改

seimin 2 years ago
parent
commit
cdd7fc4ce4

+ 11 - 6
assets/css/styles.css

@@ -705,7 +705,7 @@
705
     margin-top: 1px;
705
     margin-top: 1px;
706
     margin-bottom: 8px;
706
     margin-bottom: 8px;
707
     /* padding: 10px 0px 0px 10px !important; */
707
     /* padding: 10px 0px 0px 10px !important; */
708
-    padding-bottom: 10px;
708
+    padding-bottom: 8px;
709
     padding-top: 8px;
709
     padding-top: 8px;
710
     background-color: #f9f9f9 !important;
710
     background-color: #f9f9f9 !important;
711
     /* border-radius: 8px !important; */
711
     /* border-radius: 8px !important; */
@@ -796,8 +796,8 @@
796
 
796
 
797
 .incidentsearch {
797
 .incidentsearch {
798
     width: 260px;
798
     width: 260px;
799
-    padding-top: 10px;
800
-    padding-bottom: 5px;
799
+    /* padding-top: 10px; */
800
+    /* padding-bottom: 5px; */
801
 }
801
 }
802
 
802
 
803
 
803
 
@@ -1839,8 +1839,8 @@ fieldset[disabled] .btn-statebutton.btn-o.active {
1839
 
1839
 
1840
 .incidentsearch {
1840
 .incidentsearch {
1841
     width: 200px;
1841
     width: 200px;
1842
-    padding-top: 10px;
1843
-    padding-bottom: 5px;
1842
+    /* padding-top: 10px; */
1843
+    /* padding-bottom: 5px; */
1844
 }
1844
 }
1845
 
1845
 
1846
 .incidentsearchsize {
1846
 .incidentsearchsize {
@@ -19850,7 +19850,7 @@ td.ng-scope.data {
19850
     padding-right: 0;
19850
     padding-right: 0;
19851
     padding-bottom: 12px;
19851
     padding-bottom: 12px;
19852
     padding-left: 0px;
19852
     padding-left: 0px;
19853
-    margin-bottom: 15px;
19853
+    margin-bottom: 5px;
19854
 }
19854
 }
19855
 
19855
 
19856
 @media (max-width: 767px) {
19856
 @media (max-width: 767px) {
@@ -20549,4 +20549,9 @@ selectList.selected {
20549
     background-color: #fc4c58 !important;
20549
     background-color: #fc4c58 !important;
20550
     border-color: #0055b3 !important;
20550
     border-color: #0055b3 !important;
20551
     color: #0055b3 !important;
20551
     color: #0055b3 !important;
20552
+}
20553
+
20554
+/* 富文本框高度 */
20555
+#cke_1_contents {
20556
+    height: 80px!important;
20552
 }
20557
 }

+ 6 - 4
assets/js/controllers/customform/customformCtrl.js

@@ -9117,7 +9117,8 @@ appFormly.config(function config(formlyConfigProvider) {
9117
         //认证计费数据获取
9117
         //认证计费数据获取
9118
         $scope.sumInfo = {};
9118
         $scope.sumInfo = {};
9119
         function getSumInfo() {
9119
         function getSumInfo() {
9120
-          $scope.isHk = $rootScope.isHk;
9120
+          // $scope.isHk = $rootScope.isHk;
9121
+          $scope.isHk = true;
9121
           if($rootScope.isHk){
9122
           if($rootScope.isHk){
9122
             //用户信息
9123
             //用户信息
9123
             api_webservice1.fetchDataList("queryUser", { "userId": $scope.model.incident.account }).then(function(response) {
9124
             api_webservice1.fetchDataList("queryUser", { "userId": $scope.model.incident.account }).then(function(response) {
@@ -14683,7 +14684,7 @@ appFormly.config(function config(formlyConfigProvider) {
14683
             api_bpm_data.fetchData("place", model.place.id)
14684
             api_bpm_data.fetchData("place", model.place.id)
14684
                   .then(function (response) {
14685
                   .then(function (response) {
14685
                     if (response.status == 200) {
14686
                     if (response.status == 200) {
14686
-                      text = `姓名:${model.requester?model.requester.name:''}\r\n工号:${model.requester?model.requester.account:''}\r\n来电电话:${model.contactsInformation||''}\r\n地点:${response.data.place||''}\r\n详细地址:${model.houseNumber||''}\r\n事件描述:${model.description||''}`;
14687
+                      text = `姓名:${model.requester?(model.requester.name||''):''}\r\n工号:${model.requester?(model.requester.account||''):''}\r\n来电电话:${model.requester?(model.requester.telephone||''):''}\r\n地点:${response.data.place||''}\r\n详细地址:${model.houseNumber||''}\r\n事件描述:${model.description||''}`;
14687
                       var textarea = document.createElement('textarea');
14688
                       var textarea = document.createElement('textarea');
14688
                       document.body.appendChild(textarea);
14689
                       document.body.appendChild(textarea);
14689
                       // 隐藏此输入框
14690
                       // 隐藏此输入框
@@ -14701,7 +14702,7 @@ appFormly.config(function config(formlyConfigProvider) {
14701
                     }
14702
                     }
14702
                   });
14703
                   });
14703
           }else{
14704
           }else{
14704
-            text = `姓名:${model.contacts||''}\r\n工号:${model.account||''}\r\n来电电话:${model.contactsInformation||''}\r\n地点:${''}\r\n详细地址:${model.houseNumber||''}\r\n事件描述:${model.description||''}`;
14705
+            text = `姓名:${model.requester?(model.requester.name||''):''}\r\n工号:${model.requester?(model.requester.account||''):''}\r\n来电电话:${model.requester?(model.requester.telephone||''):''}\r\n地点:${''}\r\n详细地址:${model.houseNumber||''}\r\n事件描述:${model.description||''}`;
14705
             var textarea = document.createElement('textarea');
14706
             var textarea = document.createElement('textarea');
14706
             document.body.appendChild(textarea);
14707
             document.body.appendChild(textarea);
14707
             // 隐藏此输入框
14708
             // 隐藏此输入框
@@ -15085,7 +15086,8 @@ appFormly.config(function config(formlyConfigProvider) {
15085
         SweetAlert,
15086
         SweetAlert,
15086
         moment
15087
         moment
15087
       ) {
15088
       ) {
15088
-        $scope.isHk = $rootScope.isHk;
15089
+        // $scope.isHk = $rootScope.isHk;
15090
+        $scope.isHk = true;
15089
         $scope.roleidcode = true;
15091
         $scope.roleidcode = true;
15090
         // $scope.options.initialValue = undefined;
15092
         // $scope.options.initialValue = undefined;
15091
         if ($rootScope.user && $rootScope.user.role) {
15093
         if ($rootScope.user && $rootScope.user.role) {

+ 3 - 0
assets/js/controllers/desk/chartCtrl.js

@@ -648,6 +648,9 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
648
     //   $state.go('app.detail', { formKey:'statusform', pdKey:'incident', dataId: data.id,processInstanceId: data.processInstanceId});
648
     //   $state.go('app.detail', { formKey:'statusform', pdKey:'incident', dataId: data.id,processInstanceId: data.processInstanceId});
649
 
649
 
650
     // };
650
     // };
651
+    $scope.onDblClick = function(row) {
652
+        $scope.lookFunction(row.entity);
653
+    }
651
     // $scope.onDblClick = function (row) {
654
     // $scope.onDblClick = function (row) {
652
     //     var data = row.entity;
655
     //     var data = row.entity;
653
     //     var formdata = {
656
     //     var formdata = {

+ 7 - 7
assets/js/controllers/incident/incidentCtrl.js

@@ -1412,7 +1412,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1412
             $scope.memoryfilterData = defaultFilterData = {
1412
             $scope.memoryfilterData = defaultFilterData = {
1413
                 "assignee": loginUser.id,
1413
                 "assignee": loginUser.id,
1414
                 "candidateGroups": loginuserGroup,
1414
                 "candidateGroups": loginuserGroup,
1415
-                "searchType": "todo",
1415
+                "searchType": "all",
1416
                 "idx": 0,
1416
                 "idx": 0,
1417
                 "sum": mun
1417
                 "sum": mun
1418
             };
1418
             };
@@ -1420,7 +1420,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1420
     } else {
1420
     } else {
1421
         $scope.memoryfilterData = defaultFilterData = {
1421
         $scope.memoryfilterData = defaultFilterData = {
1422
             "assignee": loginUser.id,
1422
             "assignee": loginUser.id,
1423
-            "searchType": "todo",
1423
+            "searchType": "all",
1424
             "idx": 0,
1424
             "idx": 0,
1425
             "sum": mun
1425
             "sum": mun
1426
         };
1426
         };
@@ -2612,10 +2612,10 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
2612
         if (JSON.parse($stateParams.model).searchType && JSON.parse($stateParams.model).searchType != null) {
2612
         if (JSON.parse($stateParams.model).searchType && JSON.parse($stateParams.model).searchType != null) {
2613
             $scope.searchType = JSON.parse($stateParams.model).searchType;
2613
             $scope.searchType = JSON.parse($stateParams.model).searchType;
2614
         } else {
2614
         } else {
2615
-            $scope.searchType = "todo";
2615
+            $scope.searchType = "all";
2616
         }
2616
         }
2617
     } else {
2617
     } else {
2618
-        $scope.searchType = "todo";
2618
+        $scope.searchType = "all";
2619
     }
2619
     }
2620
     // if (JSON.parse($stateParams.model).searchType) {
2620
     // if (JSON.parse($stateParams.model).searchType) {
2621
     //     if ($rootScope.user.group) {
2621
     //     if ($rootScope.user.group) {
@@ -2639,14 +2639,14 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
2639
         var defaultFilterData = {
2639
         var defaultFilterData = {
2640
             "assignee": loginUser.id,
2640
             "assignee": loginUser.id,
2641
             "candidateGroups": loginuserGroup,
2641
             "candidateGroups": loginuserGroup,
2642
-            "searchType": "todo",
2642
+            "searchType": "all",
2643
             "idx": 0,
2643
             "idx": 0,
2644
             "sum": mun
2644
             "sum": mun
2645
         };
2645
         };
2646
     } else {
2646
     } else {
2647
         var defaultFilterData = {
2647
         var defaultFilterData = {
2648
             "assignee": $rootScope.user.id,
2648
             "assignee": $rootScope.user.id,
2649
-            "searchType": "todo",
2649
+            "searchType": "all",
2650
             "idx": 0,
2650
             "idx": 0,
2651
             "sum": mun
2651
             "sum": mun
2652
         };
2652
         };
@@ -2683,7 +2683,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
2683
     if($state.params.tab){
2683
     if($state.params.tab){
2684
         $scope.searchstate = $state.params.tab;
2684
         $scope.searchstate = $state.params.tab;
2685
     }else{
2685
     }else{
2686
-        $scope.searchstate = 'todo';//baba
2686
+        $scope.searchstate = 'all';
2687
     }
2687
     }
2688
     $scope.onChange = function (searchType) {
2688
     $scope.onChange = function (searchType) {
2689
         if(searchType === 'all_del'){
2689
         if(searchType === 'all_del'){

+ 33 - 3
assets/js/controllers/mainCtrl.js

@@ -7,6 +7,21 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
7
     if(localStorage.getItem('version_qd')){
7
     if(localStorage.getItem('version_qd')){
8
       $rootScope[localStorage.getItem('version_qd')] = true;
8
       $rootScope[localStorage.getItem('version_qd')] = true;
9
     }
9
     }
10
+    //判断项目归属 start
11
+      //因项目众多,前端为了加以区分,所以用域名加以判断,后期有更好的方式可以自行修改
12
+      // 中南财大
13
+      // $rootScope.isZncd = document.domain === 'itsm.zuel.edu.cn';
14
+      $rootScope.isZncd = false;
15
+      // 华科
16
+      // $rootScope.isHk = document.domain === '192.168.3.110' || document.domain === '192.168.3.69' || document.domain === '172.16.7.91' || document.domain === '192.168.3.105' || document.domain === 'localhost' || document.domain === '192.168.77.59';
17
+      $rootScope.isHk = true;
18
+      if($rootScope.isZncd){
19
+          localStorage.setItem('version_qd','isZncd');
20
+      }
21
+      if($rootScope.isHk){
22
+          localStorage.setItem('version_qd','isHk');
23
+      }
24
+      //判断项目归属 end
10
     // 未读消息数量seimin
25
     // 未读消息数量seimin
11
     $rootScope.getMsgNum = function (id) {
26
     $rootScope.getMsgNum = function (id) {
12
       api_msg.msgDataList({ idx: 0, sum: 1, messageStation: { readStatus: 0, userId: id } }).then(function (data) {
27
       api_msg.msgDataList({ idx: 0, sum: 1, messageStation: { readStatus: 0, userId: id } }).then(function (data) {
@@ -52,6 +67,21 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
52
       if(localStorage.getItem('version_qd')){
67
       if(localStorage.getItem('version_qd')){
53
         $rootScope[localStorage.getItem('version_qd')] = true;
68
         $rootScope[localStorage.getItem('version_qd')] = true;
54
       }
69
       }
70
+      //判断项目归属 start
71
+      //因项目众多,前端为了加以区分,所以用域名加以判断,后期有更好的方式可以自行修改
72
+      // 中南财大
73
+      // $rootScope.isZncd = document.domain === 'itsm.zuel.edu.cn';
74
+      $rootScope.isZncd = false;
75
+      // 华科
76
+      // $rootScope.isHk = document.domain === '192.168.3.110' || document.domain === '192.168.3.69' || document.domain === '172.16.7.91' || document.domain === '192.168.3.105' || document.domain === 'localhost' || document.domain === '192.168.77.59';
77
+      $rootScope.isHk = true;
78
+      if($rootScope.isZncd){
79
+          localStorage.setItem('version_qd','isZncd');
80
+      }
81
+      if($rootScope.isHk){
82
+          localStorage.setItem('version_qd','isHk');
83
+      }
84
+      //判断项目归属 end
55
       if($rootScope.isZncd){
85
       if($rootScope.isZncd){
56
         // 中南财大
86
         // 中南财大
57
         if ((toState.name == 'app.incident.chart' || toState.name == 'app.incident.editor') &&
87
         if ((toState.name == 'app.incident.chart' || toState.name == 'app.incident.editor') &&
@@ -1216,7 +1246,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1216
                                                                                   contactsInformation: response.data.telephone,
1246
                                                                                   contactsInformation: response.data.telephone,
1217
                                                                                   contacts:response.data.name,
1247
                                                                                   contacts:response.data.name,
1218
                                                                                   callID: cdrid,
1248
                                                                                   callID: cdrid,
1219
-                                                                                  source: { id: 1 },
1249
+                                                                                  source: { id: 1547 },
1220
                                                                                 },
1250
                                                                                 },
1221
                                                                               },
1251
                                                                               },
1222
                                                                             };
1252
                                                                             };
@@ -1241,7 +1271,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1241
                                                                   houseNumber: myData.list[0].houseNumber,
1271
                                                                   houseNumber: myData.list[0].houseNumber,
1242
                                                                   contacts:myData.list[0].name,
1272
                                                                   contacts:myData.list[0].name,
1243
                                                                   callID: cdrid,
1273
                                                                   callID: cdrid,
1244
-                                                                  source: { id: 1 },
1274
+                                                                  source: { id: 1547 },
1245
                                                                 },
1275
                                                                 },
1246
                                                               },
1276
                                                               },
1247
                                                             };
1277
                                                             };
@@ -1268,7 +1298,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1268
                                                                               contactsInformation: requester.telephone,
1298
                                                                               contactsInformation: requester.telephone,
1269
                                                                               contacts:requester.name,
1299
                                                                               contacts:requester.name,
1270
                                                                               callID: cdrid,
1300
                                                                               callID: cdrid,
1271
-                                                                              source: { id: 1 },
1301
+                                                                              source: { id: 1547 },
1272
                                                                             },
1302
                                                                             },
1273
                                                                           },
1303
                                                                           },
1274
                                                                         };
1304
                                                                         };

+ 3 - 0
assets/js/controllers/system/user/schedulingplan.js

@@ -142,6 +142,7 @@ app.controller("calendarCtrl", function($scope,$rootScope, $filter, $q, $timeout
142
                 });
142
                 });
143
             }
143
             }
144
             for (var i = 0; i < $scope.selectedDate.length; i++) {
144
             for (var i = 0; i < $scope.selectedDate.length; i++) {
145
+                console.log(moment(date).format('YYYY-MM-DD HH:mm:ss'), moment($scope.selectedDate[i]).format('YYYY-MM-DD HH:mm:ss'));
145
                 if (angular.equals(date, $scope.selectedDate[i]) == true) {
146
                 if (angular.equals(date, $scope.selectedDate[i]) == true) {
146
                     ischeck = false
147
                     ischeck = false
147
                     break
148
                     break
@@ -186,10 +187,12 @@ app.controller("calendarCtrl", function($scope,$rootScope, $filter, $q, $timeout
186
     };
187
     };
187
 
188
 
188
     $scope.prevMonth = function(data) {
189
     $scope.prevMonth = function(data) {
190
+        workdays = data;
189
         $scope.refreshData(data);
191
         $scope.refreshData(data);
190
     };
192
     };
191
 
193
 
192
     $scope.nextMonth = function(data) {
194
     $scope.nextMonth = function(data) {
195
+        workdays = data;
193
         $scope.refreshData(data);
196
         $scope.refreshData(data);
194
     };
197
     };
195
 
198
 

+ 1 - 1
assets/views/customform/tpl/ui-textAreaKnowledge.html

@@ -3,7 +3,7 @@
3
 </div> -->
3
 </div> -->
4
 <div class="jry_tit">事件描述<span class="important_red">*</span>:<span ng-if="!options.templateOptions.isHidden" class="knowledge" tooltip="点击查看可以引用的知识库" tooltip-placement="right" ng-click="openSolution(model[options.key], options, this, $event ,model)">引用知识库</span></div>
4
 <div class="jry_tit">事件描述<span class="important_red">*</span>:<span ng-if="!options.templateOptions.isHidden" class="knowledge" tooltip="点击查看可以引用的知识库" tooltip-placement="right" ng-click="openSolution(model[options.key], options, this, $event ,model)">引用知识库</span></div>
5
 <div>
5
 <div>
6
-	<textarea class="form-control autosize msd-elastic: \n;" maxlength="{{to.maxlength}}" data-ng-model="model[options.key]" ng-change="to['onChange'](model[options.key], options, this, $event ,model);" ng-disabled="{{to.readOnly}}" rows="{{options.templateOptions.rows||0}}"></textarea>
6
+	<textarea style="height: 50px;" class="form-control autosize msd-elastic: \n;" maxlength="{{to.maxlength}}" data-ng-model="model[options.key]" ng-change="to['onChange'](model[options.key], options, this, $event ,model);" ng-disabled="{{to.readOnly}}" rows="{{options.templateOptions.rows||0}}"></textarea>
7
 </div>
7
 </div>
8
 <!-- <div ng-if="dlideboxslide" data-ng-include=" 'assets/views/customform/tpl/searchknowledge.html' " toggleable default=active class="seachknowledge panel panel-default hidden-xs hidden-sm " id="seachknowledge"></div> -->
8
 <!-- <div ng-if="dlideboxslide" data-ng-include=" 'assets/views/customform/tpl/searchknowledge.html' " toggleable default=active class="seachknowledge panel panel-default hidden-xs hidden-sm " id="seachknowledge"></div> -->
9
 <!-- <div class="col-md-12" style="z-indx:1px;" >
9
 <!-- <div class="col-md-12" style="z-indx:1px;" >

+ 2 - 2
assets/views/desk/chart.html

@@ -13,10 +13,10 @@
13
         padding: 6px 10px;
13
         padding: 6px 10px;
14
         border-radius: 2px;
14
         border-radius: 2px;
15
     } */
15
     } */
16
-  .incidentsearch {
16
+  /* .incidentsearch {
17
     width: 30% !important;
17
     width: 30% !important;
18
     margin-right: 16px;
18
     margin-right: 16px;
19
-  }
19
+  } */
20
 
20
 
21
   .iptSize {
21
   .iptSize {
22
     width: 60% !important;
22
     width: 60% !important;

+ 1 - 1
assets/views/incident/list.html

@@ -39,7 +39,7 @@
39
         <div style="background: #F9F9F9 !important;padding-left: 16px;padding-right: 0px;">
39
         <div style="background: #F9F9F9 !important;padding-left: 16px;padding-right: 0px;">
40
             <div class="row wt_searchlistback" id="searchid">
40
             <div class="row wt_searchlistback" id="searchid">
41
 
41
 
42
-                <div class="col-xs-10" style="padding-right: 0px !important;padding-bottom: 10px;">
42
+                <div class="col-xs-10" style="padding-right: 0px !important;">
43
 
43
 
44
                     <form class="form-inline incidentsearchsize" style='padding-top: 8px'>
44
                     <form class="form-inline incidentsearchsize" style='padding-top: 8px'>
45
                         <!-- <div class="form-group incidentsearch">
45
                         <!-- <div class="form-group incidentsearch">