Commit a721d630 authored by agping's avatar agping

门店列表修改

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