Browse Source

Merge branch 'pc-repair' of http://git.dashitech.com/seimin/zuel-itsm-3.0.2 into pc-repair

seimin 2 years ago
parent
commit
0ede033834
5 changed files with 41 additions and 89 deletions
  1. 35 49
      index.html
  2. 1 2
      js/index.js
  3. 3 3
      js/login.js
  4. 1 34
      login.html
  5. 1 1
      upload/development.js

+ 35 - 49
index.html

@@ -728,14 +728,12 @@
728
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
728
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
729
             >
729
             >
730
           </li>
730
           </li>
731
-          <li
732
-            class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag"
733
-          >
734
-            <strong>电话:</strong
735
-            ><span
736
-              >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span
737
-            >
731
+          {{if incident.directProcess != 1}}
732
+          <li class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag">
733
+            <strong>电话:</strong>
734
+            <span>{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span>
738
           </li>
735
           </li>
736
+          {{/if}}
739
           <li class="pop1-hd__itemList">
737
           <li class="pop1-hd__itemList">
740
             <strong>处理进度:</strong>
738
             <strong>处理进度:</strong>
741
             <div class="pop1-hd__itemListProcess clearfix">
739
             <div class="pop1-hd__itemListProcess clearfix">
@@ -839,14 +837,12 @@
839
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
837
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
840
             >
838
             >
841
           </li>
839
           </li>
842
-          <li
843
-            class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag"
844
-          >
845
-            <strong>电话:</strong
846
-            ><span
847
-              >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span
848
-            >
840
+          {{if incident.directProcess != 1}}
841
+          <li class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag">
842
+            <strong>电话:</strong>
843
+            <span>{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span>
849
           </li>
844
           </li>
845
+          {{/if}}
850
           <li class="pop1-hd__itemList">
846
           <li class="pop1-hd__itemList">
851
             <strong>处理进度:</strong>
847
             <strong>处理进度:</strong>
852
             <div class="pop1-hd__itemListProcess clearfix">
848
             <div class="pop1-hd__itemListProcess clearfix">
@@ -956,14 +952,12 @@
956
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
952
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
957
             >
953
             >
958
           </li>
954
           </li>
959
-          <li
960
-            class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag"
961
-          >
962
-            <strong>电话:</strong
963
-            ><span
964
-              >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span
965
-            >
955
+          {{if incident.directProcess != 1}}
956
+          <li class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag">
957
+            <strong>电话:</strong>
958
+            <span>{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span>
966
           </li>
959
           </li>
960
+          {{/if}}
967
           <li class="pop1-hd__itemList">
961
           <li class="pop1-hd__itemList">
968
             <strong>处理进度:</strong>
962
             <strong>处理进度:</strong>
969
             <div class="pop1-hd__itemListProcess clearfix">
963
             <div class="pop1-hd__itemListProcess clearfix">
@@ -1079,14 +1073,12 @@
1079
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
1073
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
1080
             >
1074
             >
1081
           </li>
1075
           </li>
1082
-          <li
1083
-            class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag"
1084
-          >
1085
-            <strong>电话:</strong
1086
-            ><span
1087
-              >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span
1088
-            >
1076
+          {{if incident.directProcess != 1}}
1077
+          <li class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag">
1078
+            <strong>电话:</strong>
1079
+            <span>{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span>
1089
           </li>
1080
           </li>
1081
+          {{/if}}
1090
           <li class="pop1-hd__itemList">
1082
           <li class="pop1-hd__itemList">
1091
             <strong>处理进度:</strong>
1083
             <strong>处理进度:</strong>
1092
             <div class="pop1-hd__itemListProcess clearfix">
1084
             <div class="pop1-hd__itemListProcess clearfix">
@@ -1208,14 +1200,12 @@
1208
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
1200
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
1209
             >
1201
             >
1210
           </li>
1202
           </li>
1211
-          <li
1212
-            class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag"
1213
-          >
1214
-            <strong>电话:</strong
1215
-            ><span
1216
-              >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span
1217
-            >
1203
+          {{if incident.directProcess != 1}}
1204
+          <li class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag">
1205
+            <strong>电话:</strong>
1206
+            <span>{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span>
1218
           </li>
1207
           </li>
1208
+          {{/if}}
1219
           <li class="pop1-hd__itemList">
1209
           <li class="pop1-hd__itemList">
1220
             <strong>处理进度:</strong>
1210
             <strong>处理进度:</strong>
1221
             <div class="pop1-hd__itemListProcess clearfix">
1211
             <div class="pop1-hd__itemListProcess clearfix">
@@ -1335,14 +1325,12 @@
1335
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
1325
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
1336
             >
1326
             >
1337
           </li>
1327
           </li>
1338
-          <li
1339
-            class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag"
1340
-          >
1341
-            <strong>电话:</strong
1342
-            ><span
1343
-              >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span
1344
-            >
1328
+          {{if incident.directProcess != 1}}
1329
+          <li class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag">
1330
+            <strong>电话:</strong>
1331
+            <span>{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span>
1345
           </li>
1332
           </li>
1333
+          {{/if}}
1346
           <li class="pop1-hd__itemList">
1334
           <li class="pop1-hd__itemList">
1347
             <strong>处理进度:</strong>
1335
             <strong>处理进度:</strong>
1348
             <div class="pop1-hd__itemListProcess clearfix">
1336
             <div class="pop1-hd__itemListProcess clearfix">
@@ -1462,14 +1450,12 @@
1462
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
1450
               >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.name:'暂无'}}</span
1463
             >
1451
             >
1464
           </li>
1452
           </li>
1465
-          <li
1466
-            class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag"
1467
-          >
1468
-            <strong>电话:</strong
1469
-            ><span
1470
-              >{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span
1471
-            >
1453
+          {{if incident.directProcess != 1}}
1454
+          <li class="pop1-hd__itemList pop1-hd__itemList--five pop1-hd__itemList--tag">
1455
+            <strong>电话:</strong>
1456
+            <span>{{incident.handlingPersonnelUser?incident.handlingPersonnelUser.phone:'暂无'}}</span>
1472
           </li>
1457
           </li>
1458
+          {{/if}}
1473
           <li class="pop1-hd__itemList">
1459
           <li class="pop1-hd__itemList">
1474
             <strong>处理进度:</strong>
1460
             <strong>处理进度:</strong>
1475
             <div class="pop1-hd__itemListProcess clearfix">
1461
             <div class="pop1-hd__itemListProcess clearfix">

+ 1 - 2
js/index.js

@@ -1282,7 +1282,6 @@ $(function () {
1282
     if (type === 0) {
1282
     if (type === 0) {
1283
       $(".opcBg_searchBox").hide();
1283
       $(".opcBg_searchBox").hide();
1284
       postData = {
1284
       postData = {
1285
-        assignee: loginUser.account,
1286
         state: 0,
1285
         state: 0,
1287
         idx: bx_pageNum,
1286
         idx: bx_pageNum,
1288
         sum: 10,
1287
         sum: 10,
@@ -1720,7 +1719,7 @@ $(function () {
1720
       sessionStorage.removeItem("loginUser");
1719
       sessionStorage.removeItem("loginUser");
1721
       sessionStorage.removeItem("repair_main");
1720
       sessionStorage.removeItem("repair_main");
1722
       sessionStorage.removeItem("isSSo");
1721
       sessionStorage.removeItem("isSSo");
1723
-      location.href = "http://" + location.hostname + ":8080/pcreq_logout.jsp";
1722
+      location.href = "http://" + location.hostname + "/pcreq_logout.jsp";
1724
     } else {
1723
     } else {
1725
       $.ajax({
1724
       $.ajax({
1726
         type: "POST",
1725
         type: "POST",

+ 3 - 3
js/login.js

@@ -18,9 +18,9 @@ $(function () {
18
   $("#head").append(
18
   $("#head").append(
19
     template("favicon_temp", { isVersion: sessionStorage.getItem("version_qd") })
19
     template("favicon_temp", { isVersion: sessionStorage.getItem("version_qd") })
20
   );
20
   );
21
-  $("#logo").html(
22
-    template("logo_temp", { isVersion: sessionStorage.getItem("version_qd") })
23
-  );
21
+  // $("#logo").html(
22
+  //   template("logo_temp", { isVersion: sessionStorage.getItem("version_qd") })
23
+  // );
24
   var isSSo = location.search.length > 0; //是否单点登录
24
   var isSSo = location.search.length > 0; //是否单点登录
25
   if (isSSo) {
25
   if (isSSo) {
26
     $(".container").hide();
26
     $(".container").hide();

+ 1 - 34
login.html

@@ -16,29 +16,7 @@
16
   </head>
16
   </head>
17
 
17
 
18
   <body>
18
   <body>
19
-    <div class="container">
20
-      <div class="content">
21
-        <div class="logo" id="logo">
22
-          <!-- <img src="./imgs/logo.png" alt="" />
23
-          <span>网络与信息运维报修平台</span> -->
24
-        </div>
25
-        <div class="login">
26
-          <div class="title">用户登录</div>
27
-          <input id="name" type="text" placeholder="请输入用户名" />
28
-          <input id="pwd" type="password" placeholder="请输入密码" />
29
-          <button id="login">登录</button>
30
-          <p>推荐使用Google浏览器,其他浏览器可能出现兼容性问题</p>
31
-          <!-- <p class="login_reset" style="color: #005395;">账号为您的学工号,初始密码为您的学工号后4位</p> -->
32
-        </div>
33
-        <div class="shadow">
34
-          <img src="./imgs/shadow_login.png" alt="" />
35
-        </div>
36
-      </div>
37
-      <div class="camp">
38
-        <img src="./imgs/logo-ds.png" alt="" />
39
-        <span>武汉大势恒通科技有限责任公司</span>
40
-      </div>
41
-    </div>
19
+
42
   </body>
20
   </body>
43
   <script src="./libs/template-web.min.js"></script>
21
   <script src="./libs/template-web.min.js"></script>
44
   <!-- favicon -->
22
   <!-- favicon -->
@@ -61,17 +39,6 @@
61
     />
39
     />
62
     {{/if}}
40
     {{/if}}
63
   </script>
41
   </script>
64
-  <!-- logo -->
65
-  <script id="logo_temp" type="text/html">
66
-    {{if isVersion === 'isZncd'}}
67
-    <img src="./imgs/logo_zuel.png" alt="" />
68
-    {{else if isVersion === 'isHk'}}
69
-    <img src="./imgs/logo_hk.png" alt="" />
70
-    {{else}}
71
-    <img src="./imgs/logo_default.png" alt="" />
72
-    {{/if}}
73
-    <span>网络与信息运维报修平台</span>
74
-  </script>
75
   <script src="./js/base.js"></script>
42
   <script src="./js/base.js"></script>
76
   <script src="./js/login.js"></script>
43
   <script src="./js/login.js"></script>
77
 </html>
44
 </html>

+ 1 - 1
upload/development.js

@@ -4,7 +4,7 @@ const config = {
4
   ip: "192.168.3.110", // ssh地址
4
   ip: "192.168.3.110", // ssh地址
5
   username: "root", // ssh 用户名
5
   username: "root", // ssh 用户名
6
   port: 22,      //端口
6
   port: 22,      //端口
7
-  password: "DStech@123", // ssh 密码
7
+  password: "123456", // ssh 密码
8
   path: '/home/itsm/project/web/pcReq', // 上传地址,删除地址
8
   path: '/home/itsm/project/web/pcReq', // 上传地址,删除地址
9
   buildPath: '../dist' // 本地打包后文件地址
9
   buildPath: '../dist' // 本地打包后文件地址
10
 }
10
 }