记得上下班打卡 | git大法好,push需谨慎

Commit 8f0adf87 authored by dongchun's avatar dongchun Committed by 张国柄

修改id不对问题

parent fdb270b9
...@@ -306,18 +306,16 @@ ...@@ -306,18 +306,16 @@
// type:'get', // type:'get',
// url:phpMallUrl + '/admin/goodListForQuick', // url:phpMallUrl + '/admin/goodListForQuick',
// success:function(e){ // success:function(e){
// console.log(e)
// } // }
// }); // });
}; };
function selectOne(id,name) { function selectOne(id,name) {
console.log(id, showId, 'showId')
$("#searchIpt").val(name); $("#searchIpt").val(name);
showId = id; showId = id;
if (typeOne == 2) { if (typeOne == 2) {
return return
} }
let str = `<option value="0" label="">所有</option>`; let str = `<option value="" label="">所有</option>`;
let obj = {}; let obj = {};
let filterData = []; let filterData = [];
searchData.forEach(item=>{ searchData.forEach(item=>{
...@@ -340,7 +338,6 @@ ...@@ -340,7 +338,6 @@
if (typeOne == 2) { if (typeOne == 2) {
getMallList() getMallList()
} else { } else {
console.log('search')
search() search()
} }
$('#dataList').show() $('#dataList').show()
...@@ -356,16 +353,14 @@ ...@@ -356,16 +353,14 @@
if (typeOne == 2) { if (typeOne == 2) {
getMallList() getMallList()
} else { } else {
console.log('search')
search() search()
} }
}); });
$('#selectTwo').change(function(e){ $('#selectTwo').change(function(e){
selectTwoId = $(this).val(); selectTwoId = $(this).val();
console.log(selectTwoId,'kankna')
selectTwoName = $('#selectTwo').find('option:selected').attr('label'); selectTwoName = $('#selectTwo').find('option:selected').attr('label');
let str = `<option value="0" label="" >所有</option>`; let str = `<option value="" label="" >所有</option>`;
searchData.forEach(item=>{ searchData.forEach(item=>{
if (item.timeId == selectTwoId) { if (item.timeId == selectTwoId) {
str+= `<option value='${item.ticketId}' label='${item.ticketTitle}'>${item.ticketTitle}</option>` str+= `<option value='${item.ticketId}' label='${item.ticketTitle}'>${item.ticketTitle}</option>`
...@@ -385,7 +380,6 @@ ...@@ -385,7 +380,6 @@
$("#searchIpt").attr('placeholder', '全部'); $("#searchIpt").attr('placeholder', '全部');
} }
if (typeOne != 0) { if (typeOne != 0) {
console.log('???')
showId = ''; // 选中演出id showId = ''; // 选中演出id
selectTwoId = ''; // 选中演出下级的ID selectTwoId = ''; // 选中演出下级的ID
selectThreeId = ''; // 选中演出三级的ID selectThreeId = ''; // 选中演出三级的ID
...@@ -520,7 +514,6 @@ ...@@ -520,7 +514,6 @@
} }
busiName = $("#searchIpt").val(); busiName = $("#searchIpt").val();
} }
console.log(showId,busiId, 'showId')
let data = { let data = {
"bindType": Number(typeTwo), // 兑换券/发放 "bindType": Number(typeTwo), // 兑换券/发放
"busiType": Number(typeOne), // 业务类别 "busiType": Number(typeOne), // 业务类别
...@@ -557,7 +550,6 @@ ...@@ -557,7 +550,6 @@
if (sendType != 2) { if (sendType != 2) {
delete data.eventLimit; delete data.eventLimit;
} }
console.log(data,'data')
promiseMethods('/candy/coupon/mgt/add','post',JSON.stringify(data),'application/json').then(res=>{ promiseMethods('/candy/coupon/mgt/add','post',JSON.stringify(data),'application/json').then(res=>{
layer.msg('' + res); layer.msg('' + res);
if (res.code != undefined && res.code != web_status.SUCCESS) { if (res.code != undefined && res.code != web_status.SUCCESS) {
......
...@@ -306,7 +306,7 @@ ...@@ -306,7 +306,7 @@
if (typeOne == 2) { if (typeOne == 2) {
return return
} }
let str = `<option value="0" label="">所有</option>`; let str = `<option value="" label="">所有</option>`;
searchData.forEach(item=>{ searchData.forEach(item=>{
if (item.performancesId == id) { if (item.performancesId == id) {
str+= `<option value='${item.timeId}' label='${item.timeTitle}'>${item.timeTitle}</option>` str+= `<option value='${item.timeId}' label='${item.timeTitle}'>${item.timeTitle}</option>`
...@@ -321,7 +321,6 @@ ...@@ -321,7 +321,6 @@
if (typeOne == 2) { if (typeOne == 2) {
getMallList() getMallList()
} else { } else {
console.log('search')
search() search()
} }
$('#dataList').show() $('#dataList').show()
...@@ -338,9 +337,8 @@ ...@@ -338,9 +337,8 @@
$('#selectTwo').change(function(e){ $('#selectTwo').change(function(e){
selectTwoId = $(this).val(); selectTwoId = $(this).val();
console.log(selectTwoId,'kankna')
selectTwoName = $('#selectTwo').find('option:selected').attr('label'); selectTwoName = $('#selectTwo').find('option:selected').attr('label');
let str = `<option value="0" label="" >所有</option>`; let str = `<option value="" label="" >所有</option>`;
searchData.forEach(item=>{ searchData.forEach(item=>{
if (item.timeId == selectTwoId) { if (item.timeId == selectTwoId) {
str+= `<option value='${item.ticketId}' label='${item.ticketTitle}'>${item.ticketTitle}</option>` str+= `<option value='${item.ticketId}' label='${item.ticketTitle}'>${item.ticketTitle}</option>`
...@@ -459,7 +457,6 @@ ...@@ -459,7 +457,6 @@
if (sendType != 2) { if (sendType != 2) {
delete data.eventLimit; delete data.eventLimit;
} }
console.log(data,'data')
promiseMethods('/candy/coupon/mgt/add','post',JSON.stringify(data),'application/json').then(res=>{ promiseMethods('/candy/coupon/mgt/add','post',JSON.stringify(data),'application/json').then(res=>{
layer.msg('' + res); layer.msg('' + res);
if (res.code != undefined && res.code != web_status.SUCCESS) { if (res.code != undefined && res.code != web_status.SUCCESS) {
......
...@@ -308,7 +308,6 @@ ...@@ -308,7 +308,6 @@
// type:'get', // type:'get',
// url:phpMallUrl + '/admin/goodListForQuick', // url:phpMallUrl + '/admin/goodListForQuick',
// success:function(e){ // success:function(e){
// console.log(e)
// } // }
// }); // });
}; };
...@@ -318,7 +317,7 @@ ...@@ -318,7 +317,7 @@
if (typeOne == 2) { if (typeOne == 2) {
return return
} }
let str = `<option value="0" label="">所有</option>`; let str = `<option value="" label="">所有</option>`;
let obj = {}; let obj = {};
let filterData = []; let filterData = [];
searchData.forEach(item=>{ searchData.forEach(item=>{
...@@ -341,7 +340,6 @@ ...@@ -341,7 +340,6 @@
if (typeOne == 2) { if (typeOne == 2) {
getMallList() getMallList()
} else { } else {
console.log('search')
search() search()
} }
$('#dataList').show() $('#dataList').show()
...@@ -357,16 +355,14 @@ ...@@ -357,16 +355,14 @@
if (typeOne == 2) { if (typeOne == 2) {
getMallList() getMallList()
} else { } else {
console.log('search')
search() search()
} }
}); });
$('#selectTwo').change(function(e){ $('#selectTwo').change(function(e){
selectTwoId = $(this).val(); selectTwoId = $(this).val();
console.log(selectTwoId,'kankna')
selectTwoName = $('#selectTwo').find('option:selected').attr('label'); selectTwoName = $('#selectTwo').find('option:selected').attr('label');
let str = `<option value="0" label="" >所有</option>`; let str = `<option value="" label="" >所有</option>`;
searchData.forEach(item=>{ searchData.forEach(item=>{
if (item.timeId == selectTwoId) { if (item.timeId == selectTwoId) {
str+= `<option value='${item.ticketId}' label='${item.ticketTitle}'>${item.ticketTitle}</option>` str+= `<option value='${item.ticketId}' label='${item.ticketTitle}'>${item.ticketTitle}</option>`
......
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
function selectOne(id,name) { function selectOne(id,name) {
$("#searchIpt").val(name); $("#searchIpt").val(name);
showId = id; showId = id;
let str = `<option value="0" label="">所有</option>`; let str = `<option value="" label="">所有</option>`;
let obj = {}; let obj = {};
let filterData = []; let filterData = [];
searchData.forEach(item=>{ searchData.forEach(item=>{
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
selectTwoId = ''; // 选中演出下级的ID selectTwoId = ''; // 选中演出下级的ID
selectThreeId = ''; // 选中演出三级的ID selectThreeId = ''; // 选中演出三级的ID
$('#selectTwo').empty().append(str); $('#selectTwo').empty().append(str);
$('#selectThree').empty().append('<option value="0" label="">所有</option>'); $('#selectThree').empty().append('<option value="" label="">所有</option>');
}; };
$("#searchIpt").focus(function(){ $("#searchIpt").focus(function(){
search() search()
...@@ -274,9 +274,8 @@ ...@@ -274,9 +274,8 @@
$('#selectTwo').change(function(e){ $('#selectTwo').change(function(e){
selectTwoId = $(this).val(); selectTwoId = $(this).val();
console.log(selectTwoId,'kankna')
selectTwoName = $('#selectTwo').find('option:selected').attr('label'); selectTwoName = $('#selectTwo').find('option:selected').attr('label');
let str = `<option value="0" label="" >所有</option>`; let str = `<option value="" label="" >所有</option>`;
searchData.forEach(item=>{ searchData.forEach(item=>{
if (item.timeId == selectTwoId) { if (item.timeId == selectTwoId) {
str+= `<option value='${item.ticketId}' label='${item.ticketTitle}'>${item.ticketTitle}</option>` str+= `<option value='${item.ticketId}' label='${item.ticketTitle}'>${item.ticketTitle}</option>`
......
...@@ -254,7 +254,6 @@ ...@@ -254,7 +254,6 @@
function selectOne(id,name) { function selectOne(id,name) {
$("#searchIpt").val(name); $("#searchIpt").val(name);
showId = id; showId = id;
console.log(showId, 'showId')
}; };
$("input[name=typeTwo]").change(function(e){ $("input[name=typeTwo]").change(function(e){
typeTwo = e.target.value; typeTwo = e.target.value;
...@@ -320,7 +319,6 @@ ...@@ -320,7 +319,6 @@
busiName = $('#searchIpt').val(); busiName = $('#searchIpt').val();
busiId = showId; busiId = showId;
} }
console.log(showId,busiId, 'showId')
let data = { let data = {
"bindType": Number(typeTwo), // 兑换券/发放 "bindType": Number(typeTwo), // 兑换券/发放
"busiType": 2, // 业务类别 "busiType": 2, // 业务类别
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment