|
@@ -388,31 +388,27 @@
|
|
|
$('#expandSelect').find("option[value = enterpise]").attr("selected", "selected");
|
|
|
}
|
|
|
$("#sendMail").val(dataMap.sendMail);
|
|
|
- if (dataMap.isDup != undefined){
|
|
|
- $("#pushIsDup").val(dataMap.isDup);
|
|
|
+ $("#pushIsDup").val(dataMap.isDup);
|
|
|
+ if (dataMap.isDup == 1) {
|
|
|
+ $("button[data-id=pushIsDup]").find(".filter-option-inner-inner").text("是");
|
|
|
+ } else {
|
|
|
+ $("button[data-id=pushIsDup]").find(".filter-option-inner-inner").text("否");
|
|
|
}
|
|
|
- // if (dataMap.isDup == 1) {
|
|
|
- // $("button[data-id=pushIsDup]").find(".filter-option-inner-inner").text("是");
|
|
|
- // } else {
|
|
|
- // $("button[data-id=pushIsDup]").find(".filter-option-inner-inner").text("否");
|
|
|
- // }
|
|
|
if (dataMap.i_projectdup == 1) {
|
|
|
$("button[data-id=projectIsDup]").find(".filter-option-inner-inner").text("是");
|
|
|
} else {
|
|
|
$("button[data-id=projectIsDup]").find(".filter-option-inner-inner").text("否");
|
|
|
}
|
|
|
- // if (dataMap.i_datatable == 2) {
|
|
|
- // $("button[data-id=dataTableSelect]").find(".filter-option-inner-inner").text("商机管理数据表");
|
|
|
- // } else if (dataMap.i_datatable == 1) {
|
|
|
- // $("button[data-id=dataTableSelect]").find(".filter-option-inner-inner").text("接口数据表");
|
|
|
- // } else {
|
|
|
- // $("button[data-id=dataTableSelect]").find(".filter-option-inner-inner").text("历史数据表");
|
|
|
- // }
|
|
|
- if (dataMap.i_datatable != undefined){
|
|
|
- $('#dataTableSelect').val(dataMap.i_datatable);
|
|
|
+ if (dataMap.i_datatable == 2) {
|
|
|
+ $("button[data-id=dataTableSelect]").find(".filter-option-inner-inner").text("商机管理数据表");
|
|
|
+ } else if (dataMap.i_datatable == 1) {
|
|
|
+ $("button[data-id=dataTableSelect]").find(".filter-option-inner-inner").text("接口数据表");
|
|
|
+ } else {
|
|
|
+ $("button[data-id=dataTableSelect]").find(".filter-option-inner-inner").text("历史数据表");
|
|
|
}
|
|
|
+ $('#dataTableSelect').val(dataMap.i_datatable);
|
|
|
console.log(dataMap.isDup, dataMap.i_projectdup, dataMap.i_datatable)
|
|
|
- // $("#pushIsDup option[value='" + dataMap.isDup + "']").attr("selected", true);
|
|
|
+ $("#pushIsDup option[value='" + dataMap.isDup + "']").attr("selected", true);
|
|
|
$("#projectIsDup option[value='" + dataMap.i_projectdup + "']").attr("selected", true);
|
|
|
$("#dataTableSelect option[value='" + dataMap.i_datatable + "']").attr("selected", true);
|
|
|
}
|