Commit d56557ee authored by agping's avatar agping Committed by hujun

列表修改

parent b0fd14f2
...@@ -19,7 +19,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin ...@@ -19,7 +19,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin
_objTemp.html('');//先清空 _objTemp.html('');//先清空
if(_id && _id != '0'){ if(_id && _id != '0'){
agent.getDistrictStoreList(_id, function(_data){ agent.getDistrictStoreList(_id, function(_data){
var _str = ''; // var _str = '';
var _str = '<option value="0">全部</option>';
$.each(_data, function(i,item) { $.each(_data, function(i,item) {
_str += '<option value="'+item.id+'">'+item.store_name+'</option>'; _str += '<option value="'+item.id+'">'+item.store_name+'</option>';
}); });
...@@ -139,7 +140,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin ...@@ -139,7 +140,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin
$("[name = district_id]").val(data.data.district_id); $("[name = district_id]").val(data.data.district_id);
if(data.data.district_id){ if(data.data.district_id){
agent.getDistrictStoreList(data.data.district_id, function(_data){ agent.getDistrictStoreList(data.data.district_id, function(_data){
var _str = ''; // var _str = '';
var _str = '<option value="0">全部</option>';
$.each(_data, function(i,item) { $.each(_data, function(i,item) {
_str += '<option value="'+item.id+'">'+item.store_name+'</option>'; _str += '<option value="'+item.id+'">'+item.store_name+'</option>';
}); });
......
...@@ -43,7 +43,8 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin ...@@ -43,7 +43,8 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
_this.next().html('');//先清空 _this.next().html('');//先清空
if(_id && _id != '0'){ if(_id && _id != '0'){
store.getDistrictStoreList(_id, function(_data){ store.getDistrictStoreList(_id, function(_data){
var _str = ''; // var _str = '';
var _str = '<option value="0">全部</option>';
$.each(_data, function(i,item) { $.each(_data, function(i,item) {
_str += '<option value="'+item.store_name+'">'+item.store_name+'</option>'; _str += '<option value="'+item.store_name+'">'+item.store_name+'</option>';
}); });
......
...@@ -30,9 +30,10 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', ' ...@@ -30,9 +30,10 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
_this.next().html('');//先清空 _this.next().html('');//先清空
if(_id && _id != '0'){ if(_id && _id != '0'){
user.getDistrictStoreList(_id, function(_data){ user.getDistrictStoreList(_id, function(_data){
var _str = ''; // var _str = '';
var _str = '<option value="0">全部</option>';
$.each(_data, function(i,item) { $.each(_data, function(i,item) {
_str += '<option value="'+item.store_name+'">'+item.store_name+'</option>'; _str += '<option value="'+item.id+'">'+item.store_name+'</option>';
}); });
_this.next().html(_str); _this.next().html(_str);
}); });
......
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