ソースを参照

投诉举报:增加关键词选择项-20190613需求

zhengbingbing 6 年 前
コミット
f8381474a7
共有2 個のファイルを変更した25 個の追加0 個の削除を含む
  1. 2 0
      WebChart/complaintsReport.html
  2. 23 0
      WebChart/js/complaintsReport.js

+ 2 - 0
WebChart/complaintsReport.html

@@ -174,6 +174,8 @@
174 174
 							<span class="col-line"></span> 投诉关键字统计
175 175
 						</div>
176 176
 						<div class="time_box pull-right form-inline">
177
+							关键字
178
+							<select class="keys selects" style="width: 200px;"></select>
177 179
 							日期<input type="text" id="time2" class="times" />
178 180
 						</div>
179 181
 					</div>

+ 23 - 0
WebChart/js/complaintsReport.js

@@ -51,6 +51,27 @@ $(function() {
51 51
 		partThree($('#time3').val() && $('#time3').val().split(' ~ ')[0], $('#time3').val() && $('#time3').val().split(' ~ ')[1],areaOneVal);
52 52
 //  	Ajax()
53 53
 	});
54
+	$(".keys").change(function() {
55
+		var areaOneVal = helper.cookies.get("areaOneVal");
56
+		partTwo($('#time2').val() && $('#time2').val().split(' ~ ')[0], $('#time2').val() && $('#time2').val().split(' ~ ')[1],areaOneVal);
57
+	})
58
+	
59
+	keylist ();
60
+	//部门下拉框
61
+	function keylist () {
62
+		$.getJSON( huayi.config.callcenter_url +"info/GetKeyList", function(result) {
63
+			if(result.state.toLowerCase() == "success") {
64
+				goodslist = result.data;
65
+				$(".keys").empty();
66
+				$('<option value="">请选择关键词</option>').appendTo($(".keys"));
67
+				$(goodslist).each(function(i, n) {
68
+					$('<option value="' + n.F_ValueId 
69
+					+ '">' + n.F_Value 
70
+					+ '</option>').appendTo($(".keys"));
71
+				})
72
+			}
73
+		});
74
+	}
54 75
 })
55 76
 
56 77
 //区县筛选
@@ -187,6 +208,7 @@ function partOne(start, end,areaOneVal) {
187 208
 //part2 //投诉关键字统计
188 209
 
189 210
 function partTwo(starts, ends, areaOneVal) {
211
+	var keyid=$('.keys').val()
190 212
 	$.ajax({
191 213
 		type: "get",
192 214
 		url: huayi.config.callcenter_url + "Info/GetKeyCountByDateNew",
@@ -195,6 +217,7 @@ function partTwo(starts, ends, areaOneVal) {
195 217
 		data: {
196 218
 			start: starts,
197 219
 			end: ends,
220
+			keyid: keyid,
198 221
 			branchcode:areaOneVal
199 222
 		},
200 223
 		success: function(data) {