Commit 90bc30301116cccd8ec1d98551495a5ec562880d

Authored by teemitop
1 parent c4b2ffd6

PC商家列表增加筛选条件

@@ -12,8 +12,9 @@ class Seller extends Common @@ -12,8 +12,9 @@ class Seller extends Common
12 if(Request::isAjax()){ 12 if(Request::isAjax()){
13 $data = Request::except('file'); 13 $data = Request::except('file');
14 $key= input('post.key') ? input('post.key') : ""; 14 $key= input('post.key') ? input('post.key') : "";
15 - $channel= input('post.channel') ? input('post.channel') : 1; 15 + $channel = @$key['channel'] ? @$key['channel'] : 1;
16 $limit = '&x='.$data["page"].'&y='.$data["limit"].'&keywords='.@$key['id'].'&channel='.$channel; 16 $limit = '&x='.$data["page"].'&y='.$data["limit"].'&keywords='.@$key['id'].'&channel='.$channel;
  17 +
17 //获取运营人员列表 18 //获取运营人员列表
18 $list= file_get_contents(ON_LINE.'App.Seller.GetSellerList'.$limit); 19 $list= file_get_contents(ON_LINE.'App.Seller.GetSellerList'.$limit);
19 $array = json_decode($list,TRUE); 20 $array = json_decode($list,TRUE);
@@ -102,6 +102,7 @@ @@ -102,6 +102,7 @@
102 var $ = layui.$, active = { 102 var $ = layui.$, active = {
103 reload: function(){ 103 reload: function(){
104 var key = $('#key'); 104 var key = $('#key');
  105 + var channel = $('#channel');
105 //执行重载 106 //执行重载
106 table.reload('testReload', { 107 table.reload('testReload', {
107 page: { 108 page: {
@@ -109,7 +110,8 @@ @@ -109,7 +110,8 @@
109 } 110 }
110 ,where: { 111 ,where: {
111 key: { 112 key: {
112 - id: key.val() 113 + id: key.val(),
  114 + channel: channel.val()
113 } 115 }
114 } 116 }
115 }); 117 });