Merge pull request '1.28功能提交' (#131) from feature/add_item into release

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/131
master
郑永星 4 years ago
commit 42550a32fb

@ -75,6 +75,7 @@ class SocietyInfoController extends ThinkController
$query = $model->where($map)->order("communication_time desc");
$count = $query->count();
if($is_export){
$map['id'] = ['in',$_REQUEST['ids']];
$parseData = $query->field("province, city, company_name, register_capital, functionary, phone, wechat, qq, game_type, game_name, join_platform, promote_scale,sociaty_level, turnover, address, league_info, is_potential, remark, interface_person, create_time, communication_time, create_account")
->where($map)
->order("communication_time desc")

@ -107,7 +107,7 @@
</div>
<div class="input-list">
<if condition="$role_export_check eq true ">
<a class="sch-btn" href="javascript:;" id="downloadexcel" url="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}">导出</a>
<a class="sch-btn" href="javascript:;" id="downloadexcel" url="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')),false)}">导出</a>
</if>
</div>
<div class="input-list">
@ -451,7 +451,16 @@
$("#downloadexcel").on("click",function(){
var url = $(this).attr("url");
window.location.href = url;
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
return $(elem).val();
}).get();
if(text.length < 1){
layer.msg("<font style='color:white'>" + '没有选择需要导出的数据' + "</font>");
return;
}
window.location.href = url+"/ids/"+text;
});
//搜索功能

Loading…
Cancel
Save