miaofuhao 1 年之前
父節點
當前提交
cc82cbbc19

+ 1 - 1
WebUI/CallCenterWeb.UI/Script/Common/huayi.config.js

@@ -5,7 +5,7 @@
5 5
 huayi.config = {
6 6
 	callcenter_url: "http://192.168.8.9:1042/",// 生产环境	39.164.159.226
7 7
 //	callcenter_url: "http://39.164.159.226:1042/",// 生产环境	39.164.159.226
8
-	//	callcenter_url: "http://docking.zwfw.anyang.gov.cn:65527/", // 生产环境 
8
+//		callcenter_url: "http://docking.zwfw.anyang.gov.cn:65527/", // 生产环境 
9 9
 	socket_ip: "ws://39.164.159.226:8081", //ip 
10 10
 	// socket_ip: "wss://12345sp.zwfw.anyang.gov.cn:8082", //ip 
11 11
 	//	translation_socket:"ws://125.45.12.102:12233",

+ 190 - 0
WebUI/CallCenterWeb.UI/spManage/cpns/themeSortEdit.html

@@ -0,0 +1,190 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<title>专题编辑</title>
7
+		<script src="../../Script/Common/huayi.load.js"></script>
8
+		<script src="../../Script/Common/huayi.config.js"></script>
9
+		<link rel="stylesheet" href="../../js/zTree/zTreeStyle.css" />
10
+		<link rel="stylesheet" href="../../css/init.css" />
11
+		<script src="../../js/laydate/laydate.js"></script>
12
+		<style>
13
+			th {
14
+				padding: 5px 8px 5px 0;
15
+				text-align: right;
16
+			}
17
+			
18
+			input {
19
+				background-color: #FFF;
20
+				background-image: none;
21
+				border: 1px solid #ccc;
22
+				border-radius: 1px;
23
+				color: inherit;
24
+				padding: 6px 12px;
25
+				width: 200px;
26
+			}
27
+			
28
+			td {
29
+				padding: 6px 0 5px 10px;
30
+			}
31
+			
32
+			.addts {
33
+				background: #1ab394;
34
+				color: #fff;
35
+				padding: 6px 10px;
36
+				outline: none;
37
+				font-size: 12px;
38
+				margin-left: 15px;
39
+				border: 0;
40
+				border-radius: 3px;
41
+				box-sizing: border-box;
42
+			}
43
+			
44
+			.time-box {
45
+				display: inline-block;
46
+				position: relative;
47
+			}
48
+			
49
+			.tub {
50
+				position: absolute;
51
+				right: 8px;
52
+				top: 10px;
53
+				font-size: 18px;
54
+				color: #00a0ca;
55
+			}
56
+			
57
+			#layui-laydate3 .layui-laydate-header {
58
+				height: 31px;
59
+				padding: 5px;
60
+			}
61
+			
62
+			.laydate-theme-molv .layui-laydate-header i,
63
+			.laydate-theme-molv .layui-laydate-header span {
64
+				top: 2px;
65
+			}
66
+			
67
+			.layui-laydate-header {
68
+				padding: 0;
69
+			}
70
+			
71
+			.laydate-theme-molv .layui-laydate-content {
72
+				height: 195px;
73
+				overflow: hidden;
74
+			}
75
+			
76
+			.laydate-month-list>li {
77
+				margin: 10px 0;
78
+			}
79
+			
80
+			.laydate-footer-btns span:hover {
81
+				color: #00a1cb;
82
+			}
83
+			
84
+			.select {
85
+				width: 200px;
86
+				background-color: #FFF;
87
+				background-image: none;
88
+				border: 1px solid #ccc;
89
+				border-radius: 1px;
90
+				height: 36px;
91
+			}
92
+		</style>
93
+	</head>
94
+
95
+	<body>
96
+		<div style="padding: 10px;">
97
+			<div style="padding: 10px;" class="clearFix">
98
+				<div>
99
+					<div class="box_content">
100
+						<table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
101
+							<tr>
102
+								<th>名称:</th>
103
+								<td>
104
+									<input type="text" disabled="disabled" id="F_DeptName" style="margin-top: 5px;" />
105
+								</td>
106
+							</tr>
107
+							<tr>
108
+								<th>大屏展示:</th>
109
+								<td>
110
+									<input  type="number" id="sort">
111
+								</td>
112
+							</tr>
113
+
114
+						</table>
115
+					</div>
116
+				</div>
117
+				<div class="bton" style="text-align: center;">
118
+					<input class="addts" type="button" value="保存" />
119
+				</div>
120
+			</div>
121
+		</div>
122
+		<script>
123
+			var id = helper.request.queryString("id");
124
+			var F_DeptName = decodeURIComponent(helper.request.queryString("F_DeptName"));
125
+			$(document).ready(function() {
126
+				if(id) {
127
+					$("#F_DeptName").val(F_DeptName)
128
+//					getDetail()
129
+				}
130
+
131
+			});
132
+			$(".addts").click(function() {
133
+				editThemSort()
134
+			})
135
+
136
+			function editThemSort() {
137
+				if($("#sort").val()=='') {
138
+					layer.confirm('请输入排序!', {
139
+						btn: ['确定']
140
+					});
141
+					return;
142
+				}
143
+				$.ajax({
144
+						type: "post",
145
+						url: huayi.config.callcenter_url + "Theme/EditModel",
146
+						async: true,
147
+						dataType: 'json',
148
+						data: {
149
+							id:id,
150
+							sort: $("#sort").val(),
151
+							"token": $.cookie("token")
152
+						},
153
+						success: function(data) {
154
+							if(data.state == "success") {
155
+									layer.msg("操作成功");
156
+									var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
157
+									parent.layer.close(index); //再执行关闭
158
+							}
159
+						}
160
+					});
161
+
162
+				
163
+			}
164
+
165
+			function getDetail() {
166
+				$.getJSON(huayi.config.callcenter_url + 'Theme/GetModel', {
167
+					id: id,
168
+					"token": $.cookie("token")
169
+				}, function(result) {
170
+					if(result.state.toLowerCase() == "success") {
171
+						var content = result.data;
172
+						info = content;
173
+
174
+						$("#name").val(content.F_Name);
175
+						//							$("#types").val(content.F_TypesOf);
176
+						$("#cycle").val(content.F_Cycle);
177
+						$("#time").val(content.F_StatisticsBeginTime + ' - ' + content.F_StatisticsEndTime);
178
+
179
+						if(content.F_IsDisplay) {
180
+							$("#isdisplay").prop("checked", true)
181
+						} else {
182
+							$("#isdisplay").prop("checked", false)
183
+						}
184
+					}
185
+				})
186
+			}
187
+		</script>
188
+	</body>
189
+
190
+</html>

+ 35 - 19
WebUI/CallCenterWeb.UI/spManage/theme.html

@@ -220,9 +220,10 @@
220 220
 								<table id="ThemeIdTable" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
221 221
 									<thead>
222 222
 										<tr>
223
-											<th data-field="F_Name" data-align="center">分类名称</th>
223
+											<th data-field="F_DeptName" data-align="center">单位名称</th>
224
+											<th data-field="F_Sort"  data-align="center">排序</th>
224 225
 											<th data-field="F_CreateTime" data-align="center">创建时间</th>
225
-											<th data-field="F_ID" data-formatter="Dispose" data-align="center">操作</th>
226
+											<th data-field="F_ID" data-formatter="themeDispose" data-align="center">操作</th>
226 227
 										</tr>
227 228
 									</thead>
228 229
 								</table>
@@ -247,7 +248,7 @@
247 248
 
248 249
 		<script>
249 250
 			var table = $("#table1"); //右边表格
250
-			var orderTable = $("#workorder"); //右边表格 selectThemeIdTable
251
+			var orderTable = $("#workorder"); //右边表格 
251 252
 			var ThemeIdTable = $("#ThemeIdTable"); //右边表格
252 253
 			var selectThemeId = '';
253 254
 			var selectTreeNode;
@@ -603,7 +604,13 @@
603 604
 					'<a class="xg" onclick="remove(' + row.F_ID + ')">删除</a>' + '<a class="xg" onclick="getKeys(' + row.F_ID + ')">关键词 </a>' +
604 605
 					'</div>';
605 606
 			}
606
-
607
+			function themeDispose(val, row) {
608
+				
609
+				return '<div class="imgs" >' +
610
+					'<a class="xg" onclick="themeSortHandle(\''+row.F_ID+'\',\''+row.F_DeptName+'\')">编辑</a>' +
611
+					'</div>';
612
+			}
613
+		
607 614
 			function PoolDispose(val, row) {
608 615
 				var optionStr = '<div class="imgs" ><a class="xg" onclick="delPool(\'' + row.F_WorkOrderId + '\')">移除</a>';
609 616
 
@@ -648,6 +655,7 @@
648 655
 					shade: 0,
649 656
 					end: function() {
650 657
 						initOrderTable()
658
+						selectThemeIdTable()
651 659
 					}
652 660
 				});
653 661
 			}
@@ -697,7 +705,18 @@
697 705
 					}
698 706
 				});
699 707
 			}
700
-
708
+			function themeSortHandle(id,F_DeptName){
709
+				layer.open({
710
+					type: 2,
711
+					content: "./cpns/themeSortEdit.html?id=" + id+"&F_DeptName="+encodeURIComponent(F_DeptName), //iframe的url,no代表不显示滚动条
712
+					title: '修改涉及单位排序',
713
+					area: ['40%', '50%'], //宽高
714
+					end: function() {
715
+						selectThemeIdTable()
716
+					}
717
+				});
718
+			}
719
+			
701 720
 			function remove(id) {
702 721
 				layer.confirm('确定删除该分类吗?', function(index) {
703 722
 
@@ -724,13 +743,13 @@
724 743
 				ThemeIdTable.bootstrapTable({
725 744
 					method: "get",
726 745
 					//使用get请求到服务器获取数据
727
-					url: huayi.config.callcenter_url + "Theme/GetList",
746
+					url: huayi.config.callcenter_url + "Theme/GetDeptList",
728 747
 					//获取数据的Servlet地址
729 748
 					striped: true,
730 749
 					//表格显示条纹
731
-					pagination: false,
750
+					pagination: true,
732 751
 					//启动分页
733
-					pageSize: 100,
752
+					pageSize: 10,
734 753
 					//每页显示的记录数
735 754
 					pageNumber: 1,
736 755
 					//当前第几页
@@ -749,30 +768,27 @@
749 768
 					queryParamsType: "undefined",
750 769
 					queryParams: function queryParams(params) {
751 770
 						//设置查询参数
771
+						
752 772
 						var param = {
753 773
 							page: params.pageNumber,
754 774
 							pagesize: params.pageSize,
755 775
 							token: $.cookie("token"),
756
-							type: 2,
757
-							parentid: id,
776
+							id: id,
758 777
 
759 778
 						};
760 779
 						return param;
761 780
 					},
781
+					responseHandler:function(res){
782
+						return{
783
+							"total":res.data.length,
784
+							"rows":res.data
785
+						}
786
+					},
762 787
 					onLoadSuccess: function(data) {
763 788
 						//加载成功时执行
764 789
 						
765 790
 						console.log(data, 'datas')
766 791
 						
767
-						if (data.rows && data.rows.length > 0) {
768
-							// orderClass
769
-							var optionStr = '<option selected="selected" value="">请选择</option>';
770
-							data.rows.forEach(function(o) {
771
-								optionStr += '<option value="'+o.F_ID+'">'+ o.F_Name +'</option>';
772
-							})
773
-							
774
-							$('#orderClass').append(optionStr)
775
-						}
776 792
 						
777 793
 						//layer.msg("加载成功");
778 794
 					},