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

Commit 08de62eb authored by 张国柄's avatar 张国柄

Merge remote-tracking branch 'origin/hjc_now' into dev_221101ZGB01

parents 4fcb6947 3cd20dec
......@@ -257,38 +257,14 @@
let playMethod = '1'; // 叠加/限制
let goodsId = '';
$("#scope_application").hide();
function search() {
let data = {
status: '(3,6,8,9)',
title: searchVal
}
let str = '';
promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.value.length>0) {
let filterData = [];
searchData = [...res.value];
let obj = {};
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默认类型为数组,并且初始值为空的数组
$('#dataList').html(str);
} else {
$('#dataList').html('<li style="width:100%;text-align:center;color:#ccc;">--- 暂无数据 ---</li>');
}
})
};
function common (num) {
console.log(num, '?????')
let url = '';
let idField = '';
let keyField = '';
let effectiveFields = '';
let domData = '';
if (!num) {
url = ctx+'compilations/goodsList';
url = ctx+'compilations/goodsList?name=';
idField = 'spuId';
keyField = 'name';
effectiveFields = ['name'];
......@@ -344,23 +320,6 @@
});;
$("#searchIpt").bsSuggest.init
}
function getMallList() {
let data = {
name: searchVal
}
let str = '';
promiseMethods('/compilations/goodsList','get',data).then(res=>{
if (res.data.length>0) {
searchData = [...res.data];
searchData.forEach((item,index)=>{
str+= `<li class="selectData" onclick="selectOne('${item.spuId}','${item.name}')">${item.name}</li>`
})
$('#dataList').html(str);
} else {
$('#dataList').html('<li style="width:100%;text-align:center;color:#ccc;">--- 暂无数据 ---</li>');
}
})
};
function selectOne(id,name) {
console.log(id)
showId = id;
......@@ -505,7 +464,6 @@
});
function create() {
if (!$('#valFace').val() || !$('#title').val() || !$('#num').val() || !$('#ticketTime').val() || !$('#describeTxt').val()) {
return layer.msg('请将必填项输入完整~!');
if (typeTwo == 0) {
......
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