瀏覽代碼

大屏调度专题切换月周

miaofuhao 1 年之前
父節點
當前提交
2b7830e833
共有 4 個文件被更改,包括 26 次插入6 次删除
  1. 4 3
      WebChartNewest/index.html
  2. 15 0
      WebChartNewest/js/dispatTopic.js
  3. 3 1
      WebChartNewest/js/index.js
  4. 4 2
      WebChartNewest/js/second_index.js

+ 4 - 3
WebChartNewest/index.html

@@ -82,7 +82,7 @@
82 82
 				<!-- 调度专题 -->
83 83
 				<div class="accept_channel">
84 84
 					<div class="title_img">
85
-						<h2>调度专题</h2>
85
+						<h2 class="cutDispatchHandle">调度专题</h2>
86 86
 					</div>
87 87
 					<div class="btn_rank">
88 88
 						<span data-state='0' id="themeRate"></span>
@@ -1076,7 +1076,7 @@
1076 1076
 <script src="js/map/anyangMap2.js"></script>
1077 1077
 <!-- 二级页面js -->
1078 1078
 <script src="js/second_index.js"></script>
1079
-<!-- 二级页面js  热线整合受理情况&重大事件新建了一个js -->
1079
+<!-- 二级页面js  热线整合受理情况&重大事件新建了一个js--2024-07 -->
1080 1080
 <script src="js/second_1.js"></script>
1081 1081
 <!-- 三级(工单列表)js -->
1082 1082
 <script src="js/workOrder.js"></script>
@@ -1086,5 +1086,6 @@
1086 1086
 <script src="js/newAdd/operationEvent.js"></script>
1087 1087
 <!-- 2023-06-06 坐席监控修改 -->
1088 1088
 <script src="js/newSeats.js"></script>
1089
-
1089
+<!-- 2024-07-17 调度专题月周切换 -->
1090
+<script src="js/dispatTopic.js"></script>
1090 1091
 </html>

+ 15 - 0
WebChartNewest/js/dispatTopic.js

@@ -0,0 +1,15 @@
1
+//热线整合受理情况&重大事件
2
+var dispatTopicType		// 1 周 2月
3
+$('.cutDispatchHandle').click(function (e) {
4
+	
5
+	console.log($(this).text())
6
+	if ($(this).text() === '月调度专题') {
7
+		dispatTopicType = 1
8
+		$(this).text('周调度专题')
9
+		getHotThings()
10
+	} else if($(this).text() === '周调度专题'){
11
+		dispatTopicType = 2
12
+		$(this).text('月调度专题')
13
+		getHotThings()
14
+	}
15
+})

+ 3 - 1
WebChartNewest/js/index.js

@@ -487,7 +487,9 @@ if (type == '1') url = '/InfoNew/GetThemeDept1';
487 487
 			token: $.cookie("token"),
488 488
 			stime: '',
489 489
 			etime: '',
490
-			timetype: MajoreventsDataType
490
+			timetype: MajoreventsDataType,
491
+			type:dispatTopicType
492
+			
491 493
 		},
492 494
 		callBack: function(res) {
493 495
 			if(res.state === "notoken") {

+ 4 - 2
WebChartNewest/js/second_index.js

@@ -1965,7 +1965,8 @@ function getThemeStatics() {
1965 1965
 			token: $.cookie("token"),
1966 1966
 			stime: '',
1967 1967
 			etime: '',
1968
-			timetype: MajoreventsDataType
1968
+			timetype: MajoreventsDataType,
1969
+			type:dispatTopicType
1969 1970
 		},
1970 1971
 		callBack: function(res) {
1971 1972
 			if(res.state === "notoken") {
@@ -2003,7 +2004,8 @@ function getThemeStatics() {
2003 2004
 			token: $.cookie("token"),
2004 2005
 			stime: '',
2005 2006
 			etime: '',
2006
-			timetype: MajoreventsDataType
2007
+			timetype: MajoreventsDataType,
2008
+			type:dispatTopicType
2007 2009
 		},
2008 2010
 		callBack: function(res) {
2009 2011
 			if(res.state === "notoken") {