Bladeren bron

文档大量修改

seimin 2 jaren geleden
bovenliggende
commit
cdd7fc4ce4

+ 11 - 6
assets/css/styles.css

@@ -705,7 +705,7 @@
705 705
     margin-top: 1px;
706 706
     margin-bottom: 8px;
707 707
     /* padding: 10px 0px 0px 10px !important; */
708
-    padding-bottom: 10px;
708
+    padding-bottom: 8px;
709 709
     padding-top: 8px;
710 710
     background-color: #f9f9f9 !important;
711 711
     /* border-radius: 8px !important; */
@@ -796,8 +796,8 @@
796 796
 
797 797
 .incidentsearch {
798 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 1840
 .incidentsearch {
1841 1841
     width: 200px;
1842
-    padding-top: 10px;
1843
-    padding-bottom: 5px;
1842
+    /* padding-top: 10px; */
1843
+    /* padding-bottom: 5px; */
1844 1844
 }
1845 1845
 
1846 1846
 .incidentsearchsize {
@@ -19850,7 +19850,7 @@ td.ng-scope.data {
19850 19850
     padding-right: 0;
19851 19851
     padding-bottom: 12px;
19852 19852
     padding-left: 0px;
19853
-    margin-bottom: 15px;
19853
+    margin-bottom: 5px;
19854 19854
 }
19855 19855
 
19856 19856
 @media (max-width: 767px) {
@@ -20549,4 +20549,9 @@ selectList.selected {
20549 20549
     background-color: #fc4c58 !important;
20550 20550
     border-color: #0055b3 !important;
20551 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 9118
         $scope.sumInfo = {};
9119 9119
         function getSumInfo() {
9120
-          $scope.isHk = $rootScope.isHk;
9120
+          // $scope.isHk = $rootScope.isHk;
9121
+          $scope.isHk = true;
9121 9122
           if($rootScope.isHk){
9122 9123
             //用户信息
9123 9124
             api_webservice1.fetchDataList("queryUser", { "userId": $scope.model.incident.account }).then(function(response) {
@@ -14683,7 +14684,7 @@ appFormly.config(function config(formlyConfigProvider) {
14683 14684
             api_bpm_data.fetchData("place", model.place.id)
14684 14685
                   .then(function (response) {
14685 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 14688
                       var textarea = document.createElement('textarea');
14688 14689
                       document.body.appendChild(textarea);
14689 14690
                       // 隐藏此输入框
@@ -14701,7 +14702,7 @@ appFormly.config(function config(formlyConfigProvider) {
14701 14702
                     }
14702 14703
                   });
14703 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 14706
             var textarea = document.createElement('textarea');
14706 14707
             document.body.appendChild(textarea);
14707 14708
             // 隐藏此输入框
@@ -15085,7 +15086,8 @@ appFormly.config(function config(formlyConfigProvider) {
15085 15086
         SweetAlert,
15086 15087
         moment
15087 15088
       ) {
15088
-        $scope.isHk = $rootScope.isHk;
15089
+        // $scope.isHk = $rootScope.isHk;
15090
+        $scope.isHk = true;
15089 15091
         $scope.roleidcode = true;
15090 15092
         // $scope.options.initialValue = undefined;
15091 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 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 654
     // $scope.onDblClick = function (row) {
652 655
     //     var data = row.entity;
653 656
     //     var formdata = {

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

@@ -1412,7 +1412,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1412 1412
             $scope.memoryfilterData = defaultFilterData = {
1413 1413
                 "assignee": loginUser.id,
1414 1414
                 "candidateGroups": loginuserGroup,
1415
-                "searchType": "todo",
1415
+                "searchType": "all",
1416 1416
                 "idx": 0,
1417 1417
                 "sum": mun
1418 1418
             };
@@ -1420,7 +1420,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1420 1420
     } else {
1421 1421
         $scope.memoryfilterData = defaultFilterData = {
1422 1422
             "assignee": loginUser.id,
1423
-            "searchType": "todo",
1423
+            "searchType": "all",
1424 1424
             "idx": 0,
1425 1425
             "sum": mun
1426 1426
         };
@@ -2612,10 +2612,10 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
2612 2612
         if (JSON.parse($stateParams.model).searchType && JSON.parse($stateParams.model).searchType != null) {
2613 2613
             $scope.searchType = JSON.parse($stateParams.model).searchType;
2614 2614
         } else {
2615
-            $scope.searchType = "todo";
2615
+            $scope.searchType = "all";
2616 2616
         }
2617 2617
     } else {
2618
-        $scope.searchType = "todo";
2618
+        $scope.searchType = "all";
2619 2619
     }
2620 2620
     // if (JSON.parse($stateParams.model).searchType) {
2621 2621
     //     if ($rootScope.user.group) {
@@ -2639,14 +2639,14 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
2639 2639
         var defaultFilterData = {
2640 2640
             "assignee": loginUser.id,
2641 2641
             "candidateGroups": loginuserGroup,
2642
-            "searchType": "todo",
2642
+            "searchType": "all",
2643 2643
             "idx": 0,
2644 2644
             "sum": mun
2645 2645
         };
2646 2646
     } else {
2647 2647
         var defaultFilterData = {
2648 2648
             "assignee": $rootScope.user.id,
2649
-            "searchType": "todo",
2649
+            "searchType": "all",
2650 2650
             "idx": 0,
2651 2651
             "sum": mun
2652 2652
         };
@@ -2683,7 +2683,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
2683 2683
     if($state.params.tab){
2684 2684
         $scope.searchstate = $state.params.tab;
2685 2685
     }else{
2686
-        $scope.searchstate = 'todo';//baba
2686
+        $scope.searchstate = 'all';
2687 2687
     }
2688 2688
     $scope.onChange = function (searchType) {
2689 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 7
     if(localStorage.getItem('version_qd')){
8 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 25
     // 未读消息数量seimin
11 26
     $rootScope.getMsgNum = function (id) {
12 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 67
       if(localStorage.getItem('version_qd')){
53 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 85
       if($rootScope.isZncd){
56 86
         // 中南财大
57 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 1246
                                                                                   contactsInformation: response.data.telephone,
1217 1247
                                                                                   contacts:response.data.name,
1218 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 1271
                                                                   houseNumber: myData.list[0].houseNumber,
1242 1272
                                                                   contacts:myData.list[0].name,
1243 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 1298
                                                                               contactsInformation: requester.telephone,
1269 1299
                                                                               contacts:requester.name,
1270 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 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 146
                 if (angular.equals(date, $scope.selectedDate[i]) == true) {
146 147
                     ischeck = false
147 148
                     break
@@ -186,10 +187,12 @@ app.controller("calendarCtrl", function($scope,$rootScope, $filter, $q, $timeout
186 187
     };
187 188
 
188 189
     $scope.prevMonth = function(data) {
190
+        workdays = data;
189 191
         $scope.refreshData(data);
190 192
     };
191 193
 
192 194
     $scope.nextMonth = function(data) {
195
+        workdays = data;
193 196
         $scope.refreshData(data);
194 197
     };
195 198
 

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

@@ -3,7 +3,7 @@
3 3
 </div> -->
4 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 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 7
 </div>
8 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 9
 <!-- <div class="col-md-12" style="z-indx:1px;" >

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

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

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

@@ -39,7 +39,7 @@
39 39
         <div style="background: #F9F9F9 !important;padding-left: 16px;padding-right: 0px;">
40 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 44
                     <form class="form-inline incidentsearchsize" style='padding-top: 8px'>
45 45
                         <!-- <div class="form-group incidentsearch">