瀏覽代碼

mod:来电弹屏知识库增加搜索

weieryang 1 年之前
父節點
當前提交
720dfed001
共有 2 個文件被更改,包括 54 次插入10 次删除
  1. 9 0
      WebUI/CallCenterWeb.UI/.project
  2. 45 10
      WebUI/CallCenterWeb.UI/CommonHtml/LDTPZSK.html

+ 9 - 0
WebUI/CallCenterWeb.UI/.project

@@ -150,5 +150,14 @@
150 150
 				<arguments>1.0-name-matches-false-false-node_modules</arguments>
151 151
 			</matcher>
152 152
 		</filter>
153
+		<filter>
154
+			<id>1709080029180</id>
155
+			<name></name>
156
+			<type>26</type>
157
+			<matcher>
158
+				<id>org.eclipse.ui.ide.multiFilter</id>
159
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
160
+			</matcher>
161
+		</filter>
153 162
 	</filteredResources>
154 163
 </projectDescription>

+ 45 - 10
WebUI/CallCenterWeb.UI/CommonHtml/LDTPZSK.html

@@ -46,6 +46,10 @@
46 46
 			</div>
47 47
 			<div class="detail-con">
48 48
 				<div class="tableWarpper1">
49
+					<div style="display: flex; margin-bottom: 15px;">
50
+						<input type="text" placeholder="请输入关键字" class="searCon rightSearchKey1" />
51
+						<button href="javaScript:;" class="stb rightSearch" style="width: 80px; height: 23px;"></button>
52
+					</div>
49 53
 					<table id="tableList1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
50 54
 						<thead>
51 55
 							<tr>
@@ -62,6 +66,10 @@
62 66
 					</table>
63 67
 				</div>
64 68
 				<div class="tableWarpper2">
69
+					<div style="display: flex; margin-bottom: 15px;">
70
+						<input type="text" placeholder="请输入关键字" class="searCon rightSearchKey2" />
71
+						<button href="javaScript:;" class="stb rightSearch" style="width: 80px; height: 23px;"></button>
72
+					</div>
65 73
 					<table id="tableList2" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
66 74
 						<thead>
67 75
 							<tr>
@@ -81,6 +89,10 @@
81 89
 					</table>
82 90
 				</div>
83 91
 				<div class="tableWarpper3">
92
+					<div style="display: flex; margin-bottom: 15px;">
93
+						<input type="text" placeholder="请输入关键字" class="searCon rightSearchKey3" />
94
+						<button href="javaScript:;" class="stb rightSearch" style="width: 80px; height: 23px;"></button>
95
+					</div>
84 96
 					<table id="tableList3" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
85 97
 						<thead>
86 98
 							<tr>
@@ -100,6 +112,10 @@
100 112
 					</table>
101 113
 				</div>
102 114
 				<div class="tableWarpper4">
115
+					<div style="display: flex; margin-bottom: 15px;">
116
+						<input type="text" placeholder="请输入关键字" class="searCon rightSearchKey4" />
117
+						<button href="javaScript:;" class="stb rightSearch" style="width: 80px; height: 23px;"></button>
118
+					</div>
103 119
 					<table id="tableList4" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
104 120
 						<thead>
105 121
 							<tr>
@@ -119,6 +135,10 @@
119 135
 					</table>
120 136
 				</div>
121 137
 				<div class="tableWarpper5">
138
+					<div style="display: flex; margin-bottom: 15px;">
139
+						<input type="text" placeholder="请输入关键字" class="searCon rightSearchKey5" />
140
+						<button href="javaScript:;" class="stb rightSearch" style="width: 80px; height: 23px;"></button>
141
+					</div>
122 142
 					<table id="tableList5" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
123 143
 						<thead>
124 144
 							<tr>
@@ -138,6 +158,10 @@
138 158
 					</table>
139 159
 				</div>
140 160
 				<div class="tableWarpper6">
161
+					<div style="display: flex; margin-bottom: 15px;">
162
+						<input type="text" placeholder="请输入关键字" class="searCon rightSearchKey6" />
163
+						<button href="javaScript:;" class="stb rightSearch" style="width: 80px; height: 23px;"></button>
164
+					</div>
141 165
 					<table id="tableList6" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
142 166
 						<thead>
143 167
 							<tr>
@@ -158,8 +182,8 @@
158 182
 				</div>
159 183
 				<div class="tableWarpper7">
160 184
 					<div style="display: flex; margin-bottom: 15px;">
161
-						<input type="text" placeholder="请输入关键字" class="searCon rightSearchKey" />
162
-						<button href="javaScript:;" class="stb" id="rightSearch" style="width: 80px; height: 23px;"></button>
185
+						<input type="text" placeholder="请输入关键字" class="searCon rightSearchKey7" />
186
+						<button href="javaScript:;" class="stb rightSearch" style="width: 80px; height: 23px;"></button>
163 187
 					</div>
164 188
 
165 189
 					<table id="tableList7" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
@@ -196,14 +220,21 @@
196 220
 		<script src="../js/ztreeSelect.js"></script>	
197 221
 		<script src="../js/voiceToTextSocket/socket.js"></script>-->
198 222
 		<script>
223
+			var clickType = '1';
199 224
 			$(function() {
200 225
 				$("ul li").eq(0).trigger("click");
201 226
 			})
202 227
 			$(".ldcrb-top ul li").click(function() {
203 228
 				$(this).addClass("activity").siblings().removeClass("activity");
204 229
 				var type = $(this).attr("data-type");
230
+				clickType = type;
205 231
 				loadZSK(type);
206 232
 			});
233
+			$('.rightSearch').click(function() {
234
+				console.log('111')
235
+				loadZSK(clickType);
236
+			})
237
+	
207 238
 			//获取知识库
208 239
 			function loadZSK(type = "1") {
209 240
 				var table = $("#tableList" + type);
@@ -212,6 +243,11 @@
212 243
 					.siblings()
213 244
 					.hide();
214 245
 				table.bootstrapTable("destroy");
246
+				
247
+				var serchVal = $('.rightSearchKey' + type).val()
248
+				
249
+				console.log(serchVal)
250
+				
215 251
 				if(type === "1") {
216 252
 					//初始化表格,动态从服务器加载数据
217 253
 					table.bootstrapTable({
@@ -236,7 +272,7 @@
236 272
 								page: params.pageNumber,
237 273
 								pagesize: params.pageSize,
238 274
 								token: $.cookie("token"),
239
-								keyvalue: "",
275
+								keyvalue: serchVal,
240 276
 								stime: "",
241 277
 								etime: "",
242 278
 							};
@@ -275,7 +311,7 @@
275 311
 								page: params.pageNumber,
276 312
 								pagesize: params.pageSize,
277 313
 								token: $.cookie("token"),
278
-								keyvalue: "",
314
+								keyvalue: serchVal,
279 315
 								key: "",
280 316
 								stime: "",
281 317
 								etime: "",
@@ -315,7 +351,7 @@
315 351
 								page: params.pageNumber,
316 352
 								pagesize: params.pageSize,
317 353
 								token: $.cookie("token"),
318
-								keyvalue: "",
354
+								keyvalue: serchVal,
319 355
 								key: "",
320 356
 								stime: "",
321 357
 								etime: "",
@@ -355,7 +391,7 @@
355 391
 								page: params.pageNumber,
356 392
 								pagesize: params.pageSize,
357 393
 								token: $.cookie("token"),
358
-								keyvalue: "",
394
+								keyvalue: serchVal,
359 395
 								key: "",
360 396
 								stime: "",
361 397
 								etime: "",
@@ -395,7 +431,7 @@
395 431
 								page: params.pageNumber,
396 432
 								pagesize: params.pageSize,
397 433
 								token: $.cookie("token"),
398
-								keyvalue: "",
434
+								keyvalue: serchVal,
399 435
 								key: "",
400 436
 								stime: "",
401 437
 								etime: "",
@@ -435,8 +471,7 @@
435 471
 								page: params.pageNumber,
436 472
 								pagesize: params.pageSize,
437 473
 								token: $.cookie("token"),
438
-								keyvalue: "",
439
-								key: "",
474
+								keyvalue: serchVal,
440 475
 								stime: "",
441 476
 								etime: "",
442 477
 							};
@@ -476,7 +511,7 @@
476 511
 								pagesize: params.pageSize,
477 512
 								token: $.cookie("token"),
478 513
 								type: 1,
479
-								key: $('.rightSearchKey').val(),
514
+								key: serchVal,
480 515
 							};
481 516
 							return param;
482 517
 						},