ソースを参照

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
 				<arguments>1.0-name-matches-false-false-node_modules</arguments>
150
 				<arguments>1.0-name-matches-false-false-node_modules</arguments>
151
 			</matcher>
151
 			</matcher>
152
 		</filter>
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
 	</filteredResources>
162
 	</filteredResources>
154
 </projectDescription>
163
 </projectDescription>

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

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