liuyifan лет назад: 5
Родитель
Сommit
20622ecc72

+ 5 - 1
WebChart/js/index.js

@@ -8,9 +8,13 @@ function timeLimit () {
8 8
         dataType: 'json',
9 9
         async: false,
10 10
         success: function(data) {
11
-            var contentAuthDate = '授权即将到期 ' + data.AuthDate  
11
+            var contentAuthDate = '<span style="font-size: 20px; color: red">' + 
12
+            '您的系统授权将于' + data.AuthDate + ' 00:00过期,请您尽快联系本项目的项目负责人以获取授权,避免影响您对系统的正常使用。' +
13
+            '</span>'
12 14
             if (parseInt(data.day) < 30) {
13 15
                 layer.confirm(contentAuthDate, {
16
+                    title: ['提示'],
17
+                    area: ['700px', 'auto'],
14 18
                     btn: ['确定'],
15 19
                 });
16 20
             }

+ 9 - 0
WebChartNEW/.project

@@ -69,5 +69,14 @@
69 69
 				<arguments>1.0-name-matches-false-false-node_modules</arguments>
70 70
 			</matcher>
71 71
 		</filter>
72
+		<filter>
73
+			<id>1600943265920</id>
74
+			<name></name>
75
+			<type>26</type>
76
+			<matcher>
77
+				<id>org.eclipse.ui.ide.multiFilter</id>
78
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
79
+			</matcher>
80
+		</filter>
72 81
 	</filteredResources>
73 82
 </projectDescription>

+ 9 - 0
WebChart_2.0/.project

@@ -69,5 +69,14 @@
69 69
 				<arguments>1.0-name-matches-false-false-node_modules</arguments>
70 70
 			</matcher>
71 71
 		</filter>
72
+		<filter>
73
+			<id>1600943353031</id>
74
+			<name></name>
75
+			<type>26</type>
76
+			<matcher>
77
+				<id>org.eclipse.ui.ide.multiFilter</id>
78
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
79
+			</matcher>
80
+		</filter>
72 81
 	</filteredResources>
73 82
 </projectDescription>

+ 2 - 1
WebChart_2.0/index.html

@@ -7,7 +7,7 @@
7 7
 		<!--优先使用 IE 最新版本和 Chrome-->
8 8
 		<meta name="renderer" content="webkit" />
9 9
 		<script src="Script/Common/huayi.load.js"></script>
10
-		<!--<script src="Script/Common/huayi.config.js"></script>-->
10
+		<script src="Script/Common/huayi.config.js"></script>
11 11
 		<link rel="stylesheet" href="css/swiper.min.css" />
12 12
 		<link rel="stylesheet" href="css/animate.min.css" />
13 13
 		<link rel="stylesheet" href="plugins/numbergd/globle.css" />
@@ -673,6 +673,7 @@
673 673
 		<script src="js/ScrollDiv.js"></script>
674 674
 		<script src="js/index.js"></script>
675 675
 		<script src="js/setItervalTime.js"></script>
676
+		<script src="js/layer/layer.js"></script>
676 677
 	</body>
677 678
 
678 679
 </html>

+ 24 - 0
WebChart_2.0/js/index.js

@@ -29,6 +29,8 @@
29 29
 	})
30 30
 	Ajax();
31 31
 	deprtment();// 第五屏部门下拉
32
+	//时限
33
+	timeLimit();
32 34
 	laydate.render({
33 35
 					elem: '#time1',
34 36
 					eventElem:'.data-input-icon1',
@@ -552,3 +554,25 @@ function keyWordDetail(sd, ed) {
552 554
 		fourScreen($('#time4').val() && $('#time4').val().split(' ~ ')[0], $('#time4').val() && $('#time4').val().split(' ~ ')[1])
553 555
         fiveScreen($('#test6').val() && $('#test6').val().split(' ~ ')[0], $('#test6').val() && $('#test6').val().split(' ~ ')[1])
554 556
 }
557
+
558
+function timeLimit () {
559
+    $.ajax({
560
+        type: "get",
561
+        url: huayi.config.callcenter_url + "Login/GetAuAuthDate",
562
+        dataType: 'json',
563
+        async: false,
564
+        success: function(data) {
565
+            var contentAuthDate = '<span style="font-size: 20px; color: red">' + 
566
+            '您的系统授权将于' + data.AuthDate + ' 00:00过期,请您尽快联系本项目的项目负责人以获取授权,避免影响您对系统的正常使用。' +
567
+            '</span>'
568
+            if (parseInt(data.day) < 30) {
569
+                layer.confirm(contentAuthDate, {
570
+                    title: ['提示'],
571
+                    area: ['700px', 'auto'],
572
+                    btn: ['确定'],
573
+                });
574
+            }
575
+        }
576
+    });
577
+}
578
+var timer = setInterval(timeLimit, 1800000);

+ 6 - 1
WebUI/CallCenterWeb.UI/js/index.js

@@ -241,6 +241,7 @@ $(document).ready(function () {
241 241
                     $('.head-pic .lahei .la-before').show();
242 242
                     $('.head-pic .lahei .la-after').hide();
243 243
                 }
244
+                timeLimit();
244 245
             })
245 246
         }
246 247
     })
@@ -1860,9 +1861,13 @@ function timeLimit () {
1860 1861
             token: $.cookie("token")
1861 1862
         },
1862 1863
         success: function(data) {
1863
-            var contentAuthDate = '授权即将到期 ' + data.AuthDate  
1864
+            var contentAuthDate = '<span style="font-size: 20px; color: red">' + 
1865
+            '您的系统授权将于' + data.AuthDate + ' 00:00过期,请您尽快联系本项目的项目负责人以获取授权,避免影响您对系统的正常使用。' +
1866
+            '</span>'
1864 1867
             if (parseInt(data.day) < 30) {
1865 1868
                 layer.confirm(contentAuthDate, {
1869
+                    title: ['提示'],
1870
+                    area: ['700px', '200px'],
1866 1871
                     btn: ['确定'],
1867 1872
                     // yes:function (index, layero) {
1868 1873
                     //     window.location.href = "login.html";