|
@@ -1,4 +1,8 @@
|
1
|
1
|
@model PriceAnnouncementIndexModel
|
|
2
|
+@{
|
|
3
|
+ var startTime = Model.StartTime.HasValue ? Model.StartTime.Value.ToString("yyyy-MM-dd") : null;
|
|
4
|
+ var endTime = Model.EndTime.HasValue ? Model.EndTime.Value.ToString("yyyy-MM-dd") : null;
|
|
5
|
+}
|
2
|
6
|
@section style{
|
3
|
7
|
<link rel="stylesheet" href="@ConfigHelper.GetCDNPrefix()/assets/css/info.css">
|
4
|
8
|
<link href="@ConfigHelper.GetCDNPrefix()/assets/css/rate.css" rel="stylesheet" />
|
|
@@ -115,6 +119,7 @@
|
115
|
119
|
<script src="/assets/plugins/date/moment.js"></script>
|
116
|
120
|
<script src="/assets/plugins/page/jquery.page.js"></script>
|
117
|
121
|
<script>
|
|
122
|
+ window.dataMark = "0$15231983314041342$$15231983721956102$";
|
118
|
123
|
$('.filSelect').click(function () {
|
119
|
124
|
if ($('.filOption').css('display') === "none") {
|
120
|
125
|
$('.filOption').slideDown();
|
|
@@ -135,8 +140,6 @@
|
135
|
140
|
$('table tr th').eq(0).css("width", "46%")
|
136
|
141
|
}
|
137
|
142
|
})
|
138
|
|
-
|
139
|
|
-
|
140
|
143
|
// 日期
|
141
|
144
|
var i18n = { // 本地化
|
142
|
145
|
previousMonth: '上个月',
|
|
@@ -196,8 +199,8 @@
|
196
|
199
|
}
|
197
|
200
|
var productId= $('.filSeleKey').attr('data-id'),
|
198
|
201
|
start= $('#date_start').attr('date-start'),
|
199
|
|
- end= $('#date_end').attr('date-end')
|
200
|
|
- window.location.href = "@Url.Action("Index","PriceAnnouncement")" + "?TypeId=" + productId + "&startTime=" + start + "&endTime=" + end;
|
|
202
|
+ end = $('#date_end').attr('date-end')
|
|
203
|
+ window.location.href = "@Url.Action("Index","PriceAnnouncement")" + "?TypeId=" + productId + "&startTime=" + start + "&endTime=" + end ;
|
201
|
204
|
})
|
202
|
205
|
</script>
|
203
|
206
|
|
|
@@ -242,7 +245,7 @@
|
242
|
245
|
}]
|
243
|
246
|
};
|
244
|
247
|
var res = "";
|
245
|
|
-
|
|
248
|
+
|
246
|
249
|
$(".ul-test").append(dataText(data));
|
247
|
250
|
|
248
|
251
|
function dataText(item) {
|
|
@@ -258,19 +261,16 @@
|
258
|
261
|
}
|
259
|
262
|
res += "</li>"
|
260
|
263
|
}
|
261
|
|
-
|
262
|
264
|
}
|
263
|
265
|
return res;
|
264
|
266
|
}
|
265
|
|
-
|
266
|
|
-
|
267
|
267
|
})
|
268
|
268
|
</script>
|
269
|
269
|
@*分页*@
|
270
|
270
|
<script>
|
271
|
271
|
//分页
|
272
|
|
- var pageSize =10;
|
273
|
|
- var rowsCount = @(Model.RowsCount);
|
|
272
|
+ var pageSize =@(Model.PageSize);
|
|
273
|
+ var rowsCount =@(Model.RowsCount);
|
274
|
274
|
var pageIndex = @(Model.PageIndex);
|
275
|
275
|
$(".pageDiv").createPage({
|
276
|
276
|
pageCount: Math.ceil(rowsCount / pageSize), //总页数
|
|
@@ -278,7 +278,7 @@
|
278
|
278
|
turndown: 'false',
|
279
|
279
|
backFn: function (p) {
|
280
|
280
|
pageIndex = p;
|
281
|
|
- location.href = "@Url.Action("Index", "publicInfo", new {TypeId= Model.TypeId})&pageIndex=" + pageIndex + "&pageSize=" + pageSize;
|
|
281
|
+ location.href = "@Url.Action("Index", "PriceAnnouncement", new {typeId= Model.TypeId})&pageIndex=" + pageIndex + "&pageSize=" + pageSize +'&startTime=@startTime&endTime=@endTime';
|
282
|
282
|
}
|
283
|
283
|
});
|
284
|
284
|
</script>
|