|
|
@@ -183,16 +183,16 @@ $(".xl_box").on("click", "li", function() {
|
|
183
|
183
|
obj.find(".xl_common").hide();
|
|
184
|
184
|
})
|
|
185
|
185
|
// 承办单位搜索
|
|
186
|
|
-//$(".inps").bind("input propertychange", function() {
|
|
187
|
|
-// $(".xlAdd").css("display", "none");
|
|
188
|
|
-// $(".selDpart1").css("display", "block");
|
|
189
|
|
-// if($(".inps").val() == "") {
|
|
190
|
|
-// $(".selDpart1").css("display", "none");
|
|
191
|
|
-// return;
|
|
192
|
|
-// }
|
|
193
|
|
-// var debounceDepart = debounce(depart, 500);
|
|
194
|
|
-// debounceDepart($(".inps").val());
|
|
195
|
|
-//});
|
|
|
186
|
+$(".inps").bind("input propertychange", function() {
|
|
|
187
|
+ $(".xlAdd").css("display", "none");
|
|
|
188
|
+ $(".selDpart1").css("display", "block");
|
|
|
189
|
+ if($(".inps").val() == "") {
|
|
|
190
|
+ $(".selDpart1").css("display", "none");
|
|
|
191
|
+ return;
|
|
|
192
|
+ }
|
|
|
193
|
+ var debounceDepart = debounce(depart, 500);
|
|
|
194
|
+ debounceDepart($(".inps").val());
|
|
|
195
|
+});
|
|
196
|
196
|
$("#reflectCategoryList").on("click", "li", function() {
|
|
197
|
197
|
$(".reflectCategoryList-wrapper").hide();
|
|
198
|
198
|
$("#reflectCategory").val($(this).attr("indexName"));
|
|
|
@@ -204,39 +204,41 @@ $("#sponsor").on("click", "li", function() {
|
|
204
|
204
|
$("#PID").val($(this).attr("index"));
|
|
205
|
205
|
$("#Dpment").val($(this).attr("index"));
|
|
206
|
206
|
$(".Cleans").show();
|
|
|
207
|
+ console.log($("#PID").val())
|
|
207
|
208
|
});
|
|
208
|
209
|
|
|
209
|
210
|
///部门
|
|
210
|
|
-//function depart(dept) {
|
|
211
|
|
-// $("#sponsor").empty();
|
|
212
|
|
-// $.getJSON(
|
|
213
|
|
-// huayi.config.callcenter_url + "Department/GetDeptList", {
|
|
214
|
|
-// token: $.cookie("token"),
|
|
215
|
|
-// dept: dept,
|
|
216
|
|
-// },
|
|
217
|
|
-// function(data) {
|
|
218
|
|
-// if(data.state.toLowerCase() == "success") {
|
|
219
|
|
-// var content = data.data;
|
|
220
|
|
-// console.log(content)
|
|
221
|
|
-// $(content).each(function(i, n) {
|
|
222
|
|
-// $(
|
|
223
|
|
-// "<li index='" +
|
|
224
|
|
-// n.F_DeptId +
|
|
225
|
|
-// "'>" +
|
|
226
|
|
-// n.F_DeptName +
|
|
227
|
|
-// "</li>"
|
|
228
|
|
-// ).appendTo("#sponsor");
|
|
229
|
|
-// });
|
|
230
|
|
-// }
|
|
231
|
|
-// }
|
|
232
|
|
-// );
|
|
233
|
|
-//}
|
|
|
211
|
+function depart(dept) {
|
|
|
212
|
+ $("#sponsor").empty();
|
|
|
213
|
+ $.getJSON(
|
|
|
214
|
+ huayi.config.callcenter_url + "Department/GetDeptList", {
|
|
|
215
|
+ token: $.cookie("token"),
|
|
|
216
|
+ iscbdw:iscbdw,
|
|
|
217
|
+ deptname: dept,
|
|
|
218
|
+ },
|
|
|
219
|
+ function(data) {
|
|
|
220
|
+ if(data.state.toLowerCase() == "success") {
|
|
|
221
|
+ var content = data.data;
|
|
|
222
|
+ console.log(content)
|
|
|
223
|
+ $(content).each(function(i, n) {
|
|
|
224
|
+ $(
|
|
|
225
|
+ "<li index='" +
|
|
|
226
|
+ n.F_DeptId +
|
|
|
227
|
+ "'>" +
|
|
|
228
|
+ n.F_DeptName +
|
|
|
229
|
+ "</li>"
|
|
|
230
|
+ ).appendTo("#sponsor");
|
|
|
231
|
+ });
|
|
|
232
|
+ }
|
|
|
233
|
+ }
|
|
|
234
|
+ );
|
|
|
235
|
+}
|
|
234
|
236
|
|
|
235
|
|
-function tree(iscbdw) {
|
|
|
237
|
+function tree() {
|
|
236
|
238
|
$.get(
|
|
237
|
239
|
huayi.config.callcenter_url + "Department/GetDeptList", {
|
|
238
|
240
|
token: $.cookie("token"),
|
|
239
|
|
- iscbdw
|
|
|
241
|
+ iscbdw:iscbdw
|
|
240
|
242
|
},
|
|
241
|
243
|
function(result) {
|
|
242
|
244
|
result = $.parseJSON(result);
|