Commit 8c4b7f5e authored by agping's avatar agping Committed by hujun

门店列表修改

parent 79074838
......@@ -158,6 +158,11 @@
list-style: none;
line-height: 30px;
}
.left{
float: left;
display: flex;
align-items: center;
}
</style>
<div id="page-content-wrapper">
<div class="container">
......@@ -184,8 +189,10 @@
<td colspan="9">
<form id="form_search">
<select class="form-control btn2" id="area">
<option value="" class="successModel" >选择区</option>
<!--<select class="form-control btn2" id="area">-->
<!--<label class="left fore-span">所属部门:</label>-->
<select name="qx-store" class="form-control btn2" id="qx-store">
<option value="" selected="selected">选择部门</option>
</select>
<input class="form-control btn2" data-rule-phoneus="false" data-rule-required="false" id="mend_name" placeholder="门店名称" type="text" value="">
......
......@@ -22,7 +22,7 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
store.getList();
store.event();
store.getRegionsDisc();
// store.getDistrict();
store.getDistrict();
},
event: function() {
$("#search").click(function() {
......@@ -291,11 +291,10 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
var params = {};
params.pageNo = store.pageNo;
params.pageSize = store.pageSize;
params.district = $('#area option:selected').val();; //城市区
params.district_id= $("#qx-store option:selected").val();//部门id
params.store_name = $('#mend_name').val(); //门店名
params.agents_name = $('#name').val(); //店长名
params.agents_phone = $('#phone').val(); //手机号
$.ajax({
url: '/index/storeList', //获取列表
type: 'GET',
......@@ -363,12 +362,16 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
var _html = ' <option value="" selected="selected">请选择</option>';
$.each(data.data, function(i, n) {
if (n.district_name == name && (typeof name != undefined)) {
_html += '<option" value="' + n.id + '">' + n.district_name + '</option>';
_html += '<option value="' + n.id + '">' + n.district_name + '</option>';
} else {
_html += '<option value="' + n.id + '">' + n.district_name + '</option>';
}
});
$("#ss-store").html(_html);
$("#qx-store").append(_html);
// $("#qx-store").html(_html);
} else {
alert('获取部门信息失败');
}
......
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