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

Commit dba6a74e authored by dongchun's avatar dongchun

修改创建成功之后的跳转

parent 74da956c
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
<ul id="dataList" style="position: absolute;"></ul> <ul id="dataList" style="position: absolute;"></ul>
</div> </div>
<select name="bindType" id="selectTwo" placeholder="请选择场次"> <select name="bindType" id="selectTwo" placeholder="请选择场次">
<option value="">所有111</option> <option value="">所有</option>
</select> </select>
<select name="bindType" id="selectThree" placeholder="请选择票种"> <select name="bindType" id="selectThree" placeholder="请选择票种">
<option value="">所有</option> <option value="">所有</option>
......
...@@ -267,9 +267,16 @@ ...@@ -267,9 +267,16 @@
promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.value.length>0) { if (res.value.length>0) {
searchData = res.value; searchData = res.value;
searchData.forEach((item,index)=>{ let obj = {};
str+= `<li class="selectData" onclick="selectOne('${item.performancesId}','${item.title}')">${item.title}</li>` searchData.reduce((cur,next) => {
}) if (!obj[next.performancesId]) {
obj[next.performancesId] = true
str+= `<li class="selectData" onclick="selectOne('${next.performancesId}','${next.title}')">${next.title}</li>`
}
},[]) //设置cur默认类型为数组,并且初始值为空的数组
// searchData.forEach((item,index)=>{
// str+= `<li class="selectData" onclick="selectOne('${item.performancesId}','${item.title}')">${item.title}</li>`
// })
$('#dataList').html(str); $('#dataList').html(str);
} else { } else {
$('#dataList').html('<li style="width:100%;text-align:center;color:#ccc;">--- 暂无数据 ---</li>'); $('#dataList').html('<li style="width:100%;text-align:center;color:#ccc;">--- 暂无数据 ---</li>');
......
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