master
wangxinglong 2021-12-23 16:56:59 +08:00
parent cb550401ba
commit 164d0abd68
4 changed files with 24 additions and 19 deletions

View File

@ -62,7 +62,7 @@ class Consumer extends Base
$whereMap[] = ['using_count', '>', 0];
if (!empty($params['keyword'])) {
$whereMap[] = ['name', 'like', "%".$params['keyword']."%"];
$whereMap[] = ['name|business_name', 'like', "%".$params['keyword']."%"];
}
if ($params['businessType'] > 0) {
$whereMap[] = ['business_type', '=', $params['businessType']];

View File

@ -70,7 +70,13 @@ layui.use(['laytpl', 'table', 'jquery', 'form', 'miniTab', 'xmSelect',"laydate"]
d.create_time,
]
})
exportData=rdata
exportData=rdata;
$("#exports").on("click",function(){
//console.log(exportData)
table.exportFile(exportDataTitle,exportData, 'xls');
return false;
})
}
});
@ -97,11 +103,6 @@ layui.use(['laytpl', 'table', 'jquery', 'form', 'miniTab', 'xmSelect',"laydate"]
,type: 'datetime'
});
$("#exports").on("click",function(){
//console.log(exportData)
table.exportFile(exportDataTitle,exportData, 'xls');
return false;
})
}

View File

@ -70,6 +70,7 @@ layui.use(['laytpl', 'table', 'jquery', 'form', 'miniTab', 'xmSelect',"laydate"]
// {templet: '#row-operate', minWidth: 200, fixed: 'right', align: 'center', title: '操作'}
]],
done: function (res, curr, count) {
console.log( res.data);
Tools.setInsTb(insTb);
var rdata=[];
res.data.forEach(function (d,index) {
@ -88,14 +89,16 @@ layui.use(['laytpl', 'table', 'jquery', 'form', 'miniTab', 'xmSelect',"laydate"]
]
})
exportData=rdata
exportData=rdata;
$("#exports").on("click",function(){
console.log(exportData)
table.exportFile(exportDataTitle,exportData, 'xls');
return false;
})
}
});
$("#exports").on("click",function(){
//console.log(exportData)
table.exportFile(exportDataTitle,exportData, 'xls');
return false;
})

View File

@ -72,14 +72,15 @@ layui.use(['laytpl', 'table', 'jquery', 'form', 'miniTab', 'xmSelect',"laydate"]
d.balance,
]
})
exportData=rdata
exportData=rdata;
$("#exports").on("click",function(){
//console.log(exportData)
table.exportFile(exportDataTitle,exportData, 'xls');
return false;
})
}
});
$("#exports").on("click",function(){
//console.log(exportData)
table.exportFile(exportDataTitle,exportData, 'xls');
return false;
})