|
|
@@ -65,8 +65,8 @@
|
|
65
|
65
|
</div>
|
|
66
|
66
|
<div class="fr" style="margin-bottom: 20px; text-align: right;">
|
|
67
|
67
|
<p style="margin-right: 10px;">
|
|
68
|
|
-
|
|
69
|
|
-
|
|
|
68
|
+ 店面:<input class="photo x-color" id="store" type="text" />
|
|
|
69
|
+ <input type="button" value="搜索" class="btns Seach" />
|
|
70
|
70
|
</p>
|
|
71
|
71
|
<p>
|
|
72
|
72
|
<button class="btns drBtn">导入</button>
|
|
|
@@ -163,7 +163,9 @@
|
|
163
|
163
|
<script src="../Script/Common/huayi.config.js"></script>
|
|
164
|
164
|
<script src="../js/visit/ajaxfileupload.js"></script>
|
|
165
|
165
|
<script>
|
|
166
|
|
- $(function() {
|
|
|
166
|
+ $(function () {
|
|
|
167
|
+ getDr();
|
|
|
168
|
+ Finish();
|
|
167
|
169
|
$("#aa").click(function() {
|
|
168
|
170
|
ajaxFileUpload();
|
|
169
|
171
|
});
|
|
|
@@ -174,8 +176,11 @@
|
|
174
|
176
|
$('.closed').click(function () {
|
|
175
|
177
|
$('.daoRu').hide();
|
|
176
|
178
|
})
|
|
177
|
|
- getDr();
|
|
178
|
|
- Finish();
|
|
|
179
|
+ //搜索
|
|
|
180
|
+ $(".Seach").click(function () {
|
|
|
181
|
+ store = $("#store").val();
|
|
|
182
|
+ Finish(store)
|
|
|
183
|
+ });
|
|
179
|
184
|
});
|
|
180
|
185
|
function getDr() {
|
|
181
|
186
|
$('.seeDr tbody').html('');
|
|
|
@@ -225,7 +230,7 @@
|
|
225
|
230
|
});
|
|
226
|
231
|
|
|
227
|
232
|
}
|
|
228
|
|
- function Finish() {
|
|
|
233
|
+ function Finish(store) {
|
|
229
|
234
|
var $tableLeft = $('#tbResult');
|
|
230
|
235
|
$tableLeft.bootstrapTable('destroy');
|
|
231
|
236
|
//初始化表格,动态从服务器加载数据
|
|
|
@@ -248,11 +253,12 @@
|
|
248
|
253
|
//设置为limit可以获取limit, offset, search, sort, order
|
|
249
|
254
|
queryParamsType: "undefined",
|
|
250
|
255
|
queryParams: function queryParams(params) { //设置查询参数
|
|
251
|
|
- var param = {
|
|
252
|
|
- page: params.pageNumber,
|
|
253
|
|
- pagesize: params.pageSize,
|
|
254
|
|
- token: $.cookie("token"),
|
|
255
|
|
- };
|
|
|
256
|
+ var param = {
|
|
|
257
|
+ page: params.pageNumber,
|
|
|
258
|
+ pagesize: params.pageSize,
|
|
|
259
|
+ store: store,
|
|
|
260
|
+ token: $.cookie("token"),
|
|
|
261
|
+ };
|
|
256
|
262
|
return param;
|
|
257
|
263
|
},
|
|
258
|
264
|
onLoadSuccess: function() { //加载成功时执行
|