|
@@ -70,7 +70,7 @@
|
|
|
<option value=0>全局模式</option>
|
|
|
<option value=1>部门模式</option>
|
|
|
<option value=2>标签模式</option>
|
|
|
-<!-- <option value=3>部门+标签模式</option>-->
|
|
|
+ <!-- <option value=3>部门+标签模式</option>-->
|
|
|
<option value=4 selected>规则模式</option>
|
|
|
</select>
|
|
|
</div>
|
|
@@ -109,14 +109,23 @@
|
|
|
<div class="col-sm-2">
|
|
|
<select class="form-control selectpicker" id="dataTableSelect">
|
|
|
<option value="0" selected>历史数据表</option>
|
|
|
- <option value="1">接口数据表</option>
|
|
|
+ <option value="1">API数据表</option>
|
|
|
<option value="2">商机管理数据表</option>
|
|
|
</select>
|
|
|
- {{/*<script>
|
|
|
- $('#extfiledselect').on("change", function () {
|
|
|
- dataMap["i_datatable"] = $('#dataTableSelect option:selected').val();
|
|
|
- })
|
|
|
- </script>*/}}
|
|
|
+ <script>
|
|
|
+ $('#dataTableSelect').on("change", function () {
|
|
|
+ var val = $('#dataTableSelect option:selected').val();
|
|
|
+ console.log("表的选择:", val)
|
|
|
+ if (val == 2) {
|
|
|
+ $("#pushIsDup option[value='" + 1 + "']").attr("selected", true);
|
|
|
+ $("button[data-id=pushIsDup]").find(".filter-option-inner-inner").text("是");
|
|
|
+ } else {
|
|
|
+ $("#pushIsDup option[value='" + 1 + "']").attr("selected", false);
|
|
|
+ $("#pushIsDup option[value='" + 0 + "']").attr("selected", true);
|
|
|
+ $("button[data-id=pushIsDup]").find(".filter-option-inner-inner").text("否");
|
|
|
+ }
|
|
|
+ })
|
|
|
+ </script>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
@@ -151,11 +160,11 @@
|
|
|
<option value="4">高级字段包+部门名称+规则名称</option>
|
|
|
<option value="5">河南移动字段包</option>
|
|
|
</select>
|
|
|
-<!-- <script>-->
|
|
|
-<!-- $('#extfiledselect').on("change", function () {-->
|
|
|
-<!-- dataMap["i_extfieldstype"] = $('#extfiledselect option:selected').val();-->
|
|
|
-<!-- })-->
|
|
|
-<!-- </script>-->
|
|
|
+ <!-- <script>-->
|
|
|
+ <!-- $('#extfiledselect').on("change", function () {-->
|
|
|
+ <!-- dataMap["i_extfieldstype"] = $('#extfiledselect option:selected').val();-->
|
|
|
+ <!-- })-->
|
|
|
+ <!-- </script>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -365,13 +374,13 @@
|
|
|
} else {
|
|
|
$('#pushSwitch').bootstrapSwitch('state', false);
|
|
|
}
|
|
|
- if (dataMap.i_pushmodel != undefined){
|
|
|
+ if (dataMap.i_pushmodel != undefined) {
|
|
|
$('#pushModelSelect').val(dataMap.i_pushmodel);
|
|
|
}
|
|
|
- if (dataMap.i_extfieldstype != undefined){
|
|
|
+ if (dataMap.i_extfieldstype != undefined) {
|
|
|
$('#extfiledselect').val(dataMap.i_extfieldstype);
|
|
|
}
|
|
|
- if (dataMap.i_pushtype != undefined){
|
|
|
+ if (dataMap.i_pushtype != undefined) {
|
|
|
$('#pushTypeSelect').val(dataMap.i_pushtype);
|
|
|
}
|
|
|
// if (dataMap.i_pushtype == 0) {
|
|
@@ -388,14 +397,9 @@
|
|
|
$('#expandSelect').find("option[value = enterpise]").attr("selected", "selected");
|
|
|
}
|
|
|
$("#sendMail").val(dataMap.sendMail);
|
|
|
- if (dataMap.isDup != undefined){
|
|
|
+ if (dataMap.isDup != undefined) {
|
|
|
$("#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.i_projectdup == 1) {
|
|
|
$("button[data-id=projectIsDup]").find(".filter-option-inner-inner").text("是");
|
|
|
} else {
|
|
@@ -404,14 +408,19 @@
|
|
|
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("接口数据表");
|
|
|
+ $("button[data-id=dataTableSelect]").find(".filter-option-inner-inner").text("API数据表");
|
|
|
} else {
|
|
|
$("button[data-id=dataTableSelect]").find(".filter-option-inner-inner").text("历史数据表");
|
|
|
}
|
|
|
- if (dataMap.i_datatable != undefined){
|
|
|
+ if (dataMap.i_datatable != undefined) {
|
|
|
$('#dataTableSelect').val(dataMap.i_datatable);
|
|
|
}
|
|
|
- console.log(dataMap.isDup, dataMap.i_projectdup, dataMap.i_datatable)
|
|
|
+ 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("否");
|
|
|
+ }
|
|
|
+ // console.log(dataMap.isDup, dataMap.i_projectdup, dataMap.i_datatable)
|
|
|
$("#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);
|
|
@@ -542,7 +551,7 @@
|
|
|
|
|
|
function saveCuser() {
|
|
|
// dataMap.send_mode = document.getElementById("pushModelSelect").selectedIndex;
|
|
|
- dataMap.send_mode =$("#pushModelSelect option:selected").val();
|
|
|
+ dataMap.send_mode = $("#pushModelSelect option:selected").val();
|
|
|
dataMap.push_type = document.getElementById("pushTypeSelect").selectedIndex;
|
|
|
// dataMap.s_extends = document.getElementById("expandSelect").selectedIndex;
|
|
|
dataMap.isDup = $("#pushIsDup option:selected").val();
|