Commit fa8e59eb9aef86302645629b27f1fefb2fba6e52

Authored by teemitop
1 parent e3198b40

替换参数

@@ -80,22 +80,12 @@ class Area extends Common @@ -80,22 +80,12 @@ class Area extends Common
80 if(Request::isAjax()){ 80 if(Request::isAjax()){
81 $data = Request::except('file'); 81 $data = Request::except('file');
82 $key= input('post.key') ? input('post.key') : ""; 82 $key= input('post.key') ? input('post.key') : "";
83 - $channel = @$key['channel'] ? @$key['channel'] : 1;  
84 83
85 - $address = @$key['address'] ? @$key['address'] : '';  
86 - $prov = @$key['prov'] ? @$key['prov'] : '';  
87 - $city = @$key['city'] ? @$key['city'] : '';  
88 - $area = @$key['area'] ? @$key['area'] : '';  
89 -  
90 - $limit = '';#'&x='.$data["page"].'&y='.$data["limit"]; 84 + $limit = '&agent_name='.@$key['id'];
91 85
92 //获取运营人员列表 86 //获取运营人员列表
93 - $list= file_get_contents(ON_LINE.'App.Agent.getAgentList'.$limit); 87 + $list= file_get_contents(ON_LINE.'App.Agent.GetAgentList'.$limit);
94 $array = json_decode($list,TRUE); 88 $array = json_decode($list,TRUE);
95 - /*foreach ($array['data'][0]['data'] as $key => $value) {  
96 - $array['data'][0]['data'][$key]['cdate'] = date("Y-m-d H:i:s",$value['cdate']);  
97 -  
98 - }*/  
99 return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1];#'count'=>$array['data'][0]['total'] 89 return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1];#'count'=>$array['data'][0]['total']
100 } 90 }
101 $this->assign ( 'title','代理商管理'); 91 $this->assign ( 'title','代理商管理');
@@ -84,19 +84,10 @@ @@ -84,19 +84,10 @@
84 //搜索 84 //搜索
85 $('#search').on('click', function() { 85 $('#search').on('click', function() {
86 var key = $('#key').val(); 86 var key = $('#key').val();
87 - /*if($.trim(key)==='') {  
88 - layer.msg('{:lang("pleaseEnter")}店铺名称!',{icon:0});  
89 - return;  
90 - }*/  
91 tableIn.reload({ 87 tableIn.reload({
92 page:{page: 1}, 88 page:{page: 1},
93 where:{ 89 where:{
94 - key: key,  
95 - address: $('#address').val(),  
96 - channel: $('#channel').val(),  
97 - prov: $("#provid").find("option:selected").text(),  
98 - city: $("#cityid").find("option:selected").text(),  
99 - area: $("#areaid").find("option:selected").text() 90 + key: key
100 } 91 }
101 }); 92 });
102 }); 93 });