Просмотр исходного кода

大屏调度专题切换月周

miaofuhao 1 год назад
Родитель
Сommit
2b7830e833

+ 4 - 3
WebChartNewest/index.html

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

+ 15 - 0
WebChartNewest/js/dispatTopic.js

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
 			token: $.cookie("token"),
487
 			token: $.cookie("token"),
488
 			stime: '',
488
 			stime: '',
489
 			etime: '',
489
 			etime: '',
490
-			timetype: MajoreventsDataType
490
+			timetype: MajoreventsDataType,
491
+			type:dispatTopicType
492
+			
491
 		},
493
 		},
492
 		callBack: function(res) {
494
 		callBack: function(res) {
493
 			if(res.state === "notoken") {
495
 			if(res.state === "notoken") {

+ 4 - 2
WebChartNewest/js/second_index.js

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