Przeglądaj źródła

Merge commit '18c0ae3d412ab1a585d0ce4cd26794c4cd34e16a' into gzb

# Conflicts:
#	index.html
#	sections/history.html
gzb
guozhongbo 1 rok temu
rodzic
commit
6ecb1b902a

+ 23
- 24
index.html Wyświetl plik

@@ -141,7 +141,7 @@
141 141
       id="userAddModal"
142 142
       tabindex="-1"
143 143
       role="dialog"
144
-      aria-labelledby="AddTitle"
144
+      aria-labelledby="addTitle"
145 145
     >
146 146
       <div class="modal-dialog" role="document">
147 147
         <div class="modal-content">
@@ -154,10 +154,10 @@
154 154
             >
155 155
               <span aria-hidden="true">&times;</span>
156 156
             </button>
157
-            <h4 class="modal-title" id="AddTitle">添加用户信息</h4>
157
+            <h4 class="modal-title" id="addTitle">添加用户信息</h4>
158 158
           </div>
159 159
           <div class="modal-body">
160
-            <form class="form-horizontal" id="UserAddForm">
160
+            <form class="form-horizontal" id="userAddForm">
161 161
               <div class="form-group">
162 162
                 <label for="usernameInput" class="col-sm-2 control-label"
163 163
                   >用户姓名</label
@@ -545,15 +545,15 @@
545 545
         });
546 546
         $("#userAddModal .add_save").on("click", function () {
547 547
           // 添加表单验证
548
-          $("#UserAddForm").bootstrapValidator({
548
+          $("#userAddForm").bootstrapValidator({
549 549
             // 默认的提示消息
550 550
             message: "请输入内容",
551 551
             // 表单框里右侧的icon
552
-            feedbackIcons: {
553
-              valid: "glyphicon glyphicon-ok",
554
-              invalid: "glyphicon glyphicon-remove",
555
-              validating: "glyphicon glyphicon-refresh"
556
-            },
552
+            // feedbackIcons: {
553
+            //   valid: "glyphicon glyphicon-ok",
554
+            //   invalid: "glyphicon glyphicon-remove",
555
+            //   validating: "glyphicon glyphicon-refresh",
556
+            // },
557 557
             fields: {
558 558
               username: {
559 559
                 validators: {
@@ -602,9 +602,9 @@
602 602
             }
603 603
           });
604 604
           //先校验,在调是否通过校验的方法
605
-          $("#UserAddForm").data("bootstrapValidator").validate();
605
+          $("#userAddForm").data("bootstrapValidator").validate();
606 606
           //校验表单是否通过
607
-          let flag = $("#UserAddForm").data("bootstrapValidator").isValid();
607
+          let flag = $("#userAddForm").data("bootstrapValidator").isValid();
608 608
           if (flag) {
609 609
             let _url = $.baseUrl + "user/save";
610 610
             $.ajax({
@@ -613,11 +613,11 @@
613 613
               dataType: "json",
614 614
               contentType: "application/json; charset=utf-8",
615 615
               data: JSON.stringify({
616
-                username: $("#UserAddForm #usernameInput").val(),
617
-                loginname: $("#UserAddForm #loginnameInput").val(),
618
-                loginpwd: $("#UserAddForm #loginpwdInput").val(),
616
+                username: $("#userAddForm #usernameInput").val(),
617
+                loginname: $("#userAddForm #loginnameInput").val(),
618
+                loginpwd: $("#userAddForm #loginpwdInput").val(),
619 619
                 createid: $.userInfo.userid,
620
-                userphone: $("#UserAddForm #userphoneInput").val()
620
+                userphone: $("#userAddForm #userphoneInput").val()
621 621
               }),
622 622
               success: function (data) {
623 623
                 if (data.code === 0) {
@@ -639,7 +639,6 @@
639 639
           $("#userModifyModal").modal("show");
640 640
           $.each(userSearch.list, function (_index, _userItem) {
641 641
             if (_userItem.userid === modify_userid) {
642
-              console.log("modify_userid", _userItem);
643 642
               $("#userModifyForm #m_usernameInput").val(_userItem.username);
644 643
               $("#userModifyForm #m_loginnameInput").val(_userItem.loginname);
645 644
               $("#userModifyForm #m_loginpwdInput").val(_userItem.loginpwd);
@@ -653,11 +652,11 @@
653 652
             // 默认的提示消息
654 653
             message: "请输入内容",
655 654
             // 表单框里右侧的icon
656
-            feedbackIcons: {
657
-              valid: "glyphicon glyphicon-ok",
658
-              invalid: "glyphicon glyphicon-remove",
659
-              validating: "glyphicon glyphicon-refresh"
660
-            },
655
+            // feedbackIcons: {
656
+            //   valid: "glyphicon glyphicon-ok",
657
+            //   invalid: "glyphicon glyphicon-remove",
658
+            //   validating: "glyphicon glyphicon-refresh",
659
+            // },
661 660
             fields: {
662 661
               username: {
663 662
                 validators: {
@@ -681,9 +680,9 @@
681 680
               },
682 681
               loginpwd: {
683 682
                 validators: {
684
-                  notEmpty: {
685
-                    message: "请输入登录密码"
686
-                  },
683
+                  // notEmpty: {
684
+                  //   message: "请输入登录密码",
685
+                  // },
687 686
                   stringLength: {
688 687
                     //长度限制
689 688
                     min: 6,

+ 1
- 0
librarys/bootstrap@3.4.1/bootstrap-datepicker.zh-CN.min.js Wyświetl plik

@@ -0,0 +1 @@
1
+!function(a){a.fn.datepicker.dates["zh-CN"]={days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],daysShort:["周日","周一","周二","周三","周四","周五","周六"],daysMin:["日","一","二","三","四","五","六"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],today:"今天",monthsTitle:"选择月份",clear:"清除",format:"yyyy-mm-dd",titleFormat:"yyyy年mm月",weekStart:1}}(jQuery);

+ 499
- 12
sections/history.html Wyświetl plik

@@ -39,7 +39,7 @@
39 39
       .header_left #dhyearPicker {
40 40
         margin-right: 16px;
41 41
       }
42
-      .header_left .history_radio {
42
+      .history_radio {
43 43
         cursor: pointer;
44 44
       }
45 45
       .header_left .searchBtn {
@@ -126,10 +126,223 @@
126 126
         <div class="page_next">&gt;</div> -->
127 127
       </div>
128 128
     </div>
129
-
129
+    <!-- 添加发展历程 -->
130
+    <div
131
+      class="modal fade"
132
+      id="historyAddModal"
133
+      tabindex="-1"
134
+      role="dialog"
135
+      aria-labelledby="addTitle"
136
+    >
137
+      <div class="modal-dialog" role="document">
138
+        <div class="modal-content">
139
+          <div class="modal-header">
140
+            <button
141
+              type="button"
142
+              class="close"
143
+              data-dismiss="modal"
144
+              aria-label="Close"
145
+            >
146
+              <span aria-hidden="true">&times;</span>
147
+            </button>
148
+            <h4 class="modal-title" id="addTitle">添加发展历程</h4>
149
+          </div>
150
+          <div class="modal-body">
151
+            <form class="form-horizontal" id="historyAddForm">
152
+              <div class="form-group">
153
+                <label class="col-sm-2 control-label">类型</label>
154
+                <div class="col-sm-10">
155
+                  <div class="radio-inline">
156
+                    <input
157
+                      id="add_0"
158
+                      class="history_radio"
159
+                      name="history_ltype"
160
+                      type="radio"
161
+                      value="1"
162
+                      checked
163
+                    />
164
+                    <label for="add_0" class="history_radio">中文</label>
165
+                  </div>
166
+                  <div class="radio-inline">
167
+                    <input
168
+                      id="add_1"
169
+                      class="history_radio"
170
+                      name="history_ltype"
171
+                      type="radio"
172
+                      value="2"
173
+                    />
174
+                    <label for="add_1" class="history_radio">英文</label>
175
+                  </div>
176
+                </div>
177
+              </div>
178
+              <div class="form-group">
179
+                <label for="addDhyearPicker" class="col-sm-2 control-label"
180
+                  >日期</label
181
+                >
182
+                <div class="col-sm-10">
183
+                  <div class="input-group date" id="addDhyearPicker">
184
+                    <input
185
+                      type="text"
186
+                      class="form-control"
187
+                      name="history_dhyear"
188
+                    />
189
+                    <span class="input-group-addon">
190
+                      <span class="glyphicon glyphicon-calendar"></span>
191
+                    </span>
192
+                  </div>
193
+                </div>
194
+              </div>
195
+              <div class="form-group">
196
+                <label for="contentInput" class="col-sm-2 control-label"
197
+                  >内容</label
198
+                >
199
+                <div class="col-sm-10">
200
+                  <textarea
201
+                    type="text"
202
+                    class="form-control"
203
+                    id="contentInput"
204
+                    name="history_content"
205
+                    placeholder="请输入内容"
206
+                  ></textarea>
207
+                </div>
208
+              </div>
209
+            </form>
210
+          </div>
211
+          <div class="modal-footer">
212
+            <div type="button" class="btn btn-default" data-dismiss="modal">
213
+              取消
214
+            </div>
215
+            <div type="button" class="btn btn-primary add_save">确定</div>
216
+          </div>
217
+        </div>
218
+      </div>
219
+    </div>
220
+    <!-- 修改发展历程 -->
221
+    <div
222
+      class="modal fade"
223
+      id="historyModifyModal"
224
+      tabindex="-1"
225
+      role="dialog"
226
+      aria-labelledby="modifyTitle"
227
+    >
228
+      <div class="modal-dialog" role="document">
229
+        <div class="modal-content">
230
+          <div class="modal-header">
231
+            <button
232
+              type="button"
233
+              class="close"
234
+              data-dismiss="modal"
235
+              aria-label="Close"
236
+            >
237
+              <span aria-hidden="true">&times;</span>
238
+            </button>
239
+            <h4 class="modal-title" id="modifyTitle">修改发展历程</h4>
240
+          </div>
241
+          <div class="modal-body">
242
+            <form class="form-horizontal" id="historyModifyForm">
243
+              <div class="form-group">
244
+                <label class="col-sm-2 control-label">类型</label>
245
+                <div class="col-sm-10">
246
+                  <div class="radio-inline">
247
+                    <input
248
+                      id="modify_0"
249
+                      class="history_radio"
250
+                      name="m_history_ltype"
251
+                      type="radio"
252
+                      value="1"
253
+                      checked
254
+                    />
255
+                    <label for="modify_0" class="history_radio">中文</label>
256
+                  </div>
257
+                  <div class="radio-inline">
258
+                    <input
259
+                      id="modify_1"
260
+                      class="history_radio"
261
+                      name="m_history_ltype"
262
+                      type="radio"
263
+                      value="2"
264
+                    />
265
+                    <label for="modify_1" class="history_radio">英文</label>
266
+                  </div>
267
+                </div>
268
+              </div>
269
+              <div class="form-group">
270
+                <label for="modifyDhyearPicker" class="col-sm-2 control-label"
271
+                  >日期</label
272
+                >
273
+                <div class="col-sm-10">
274
+                  <div class="input-group date" id="modifyDhyearPicker">
275
+                    <input
276
+                      type="text"
277
+                      class="form-control"
278
+                      name="m_history_dhyear"
279
+                    />
280
+                    <span class="input-group-addon">
281
+                      <span class="glyphicon glyphicon-calendar"></span>
282
+                    </span>
283
+                  </div>
284
+                </div>
285
+              </div>
286
+              <div class="form-group">
287
+                <label for="m_contentInput" class="col-sm-2 control-label"
288
+                  >内容</label
289
+                >
290
+                <div class="col-sm-10">
291
+                  <textarea
292
+                    type="text"
293
+                    class="form-control"
294
+                    id="m_contentInput"
295
+                    name="m_history_content"
296
+                    placeholder="请输入内容"
297
+                  ></textarea>
298
+                </div>
299
+              </div>
300
+            </form>
301
+          </div>
302
+          <div class="modal-footer">
303
+            <div type="button" class="btn btn-default" data-dismiss="modal">
304
+              取消
305
+            </div>
306
+            <div type="button" class="btn btn-primary modify_save">确定</div>
307
+          </div>
308
+        </div>
309
+      </div>
310
+    </div>
311
+    <!-- 删除发展历程弹窗 -->
312
+    <div
313
+      class="modal fade"
314
+      id="historyDelModal"
315
+      tabindex="-1"
316
+      role="dialog"
317
+      aria-labelledby="delTitle"
318
+    >
319
+      <div class="modal-dialog tip_modal" role="document">
320
+        <div class="modal-content">
321
+          <div class="modal-header">
322
+            <button
323
+              type="button"
324
+              class="close"
325
+              data-dismiss="modal"
326
+              aria-label="Close"
327
+            >
328
+              <span aria-hidden="true">&times;</span>
329
+            </button>
330
+            <h4 class="modal-title" id="delTitle">提示</h4>
331
+          </div>
332
+          <div class="modal-body">确定删除选中信息?</div>
333
+          <div class="modal-footer">
334
+            <div type="button" class="btn btn-default" data-dismiss="modal">
335
+              取消
336
+            </div>
337
+            <div type="button" class="btn btn-primary del_save">保存</div>
338
+          </div>
339
+        </div>
340
+      </div>
341
+    </div>
130 342
     <script src="../librarys/jquery@1.12.4/jquery.min.js"></script>
131 343
     <script src="../librarys/bootstrap@3.4.1/bootstrap.js"></script>
132 344
     <script src="../librarys/bootstrap@3.4.1/bootstrap-datepicker.js"></script>
345
+    <script src="../librarys/bootstrap@3.4.1/bootstrap-datepicker.zh-CN.min.js"></script>
133 346
     <script src="../librarys/bootstrapValidator@0.5.3/bootstrapValidator.js"></script>
134 347
     <script src="../utils/index.js"></script>
135 348
     <script>
@@ -214,6 +427,211 @@
214 427
             "&type=" +
215 428
             historySearch.type;
216 429
         });
430
+        $(".history_main .header_box .history_add_btn").click(function () {
431
+          $("#historyAddModal").modal("show");
432
+          $("#historyAddModal #addDhyearPicker")
433
+            .datepicker({
434
+              autoclose: true,
435
+              startView: 1,
436
+              maxViewMode: 2,
437
+              minViewMode: 1,
438
+              format: "yyyy-mm",
439
+              language: "zh-CN"
440
+            })
441
+            .datepicker("setDate", "now");
442
+        });
443
+        $("#historyAddModal .add_save").on("click", function () {
444
+          // 添加表单验证
445
+          $("#historyAddForm").bootstrapValidator({
446
+            // 默认的提示消息
447
+            message: "请输入内容",
448
+            // 表单框里右侧的icon
449
+            // feedbackIcons: {
450
+            //   valid: "glyphicon glyphicon-ok",
451
+            //   invalid: "glyphicon glyphicon-remove",
452
+            //   validating: "glyphicon glyphicon-refresh",
453
+            // },
454
+            fields: {
455
+              history_ltype: {
456
+                validators: {
457
+                  notEmpty: {
458
+                    message: "请选择类型"
459
+                  }
460
+                }
461
+              },
462
+              history_dhyear: {
463
+                validators: {
464
+                  notEmpty: {
465
+                    format: "YYYY-MM",
466
+                    message: "请选择日期"
467
+                  }
468
+                }
469
+              },
470
+              history_content: {
471
+                validators: {
472
+                  notEmpty: {
473
+                    message: "请输入内容"
474
+                  }
475
+                }
476
+              }
477
+            }
478
+          });
479
+          //先校验,在调是否通过校验的方法
480
+          $("#historyAddForm").data("bootstrapValidator").validate();
481
+          //校验表单是否通过
482
+          let flag = $("#historyAddForm").data("bootstrapValidator").isValid();
483
+          if (flag) {
484
+            let _url = $.baseUrl + "dh/save";
485
+            let _dhyear = $(
486
+              "#historyAddForm input[name='history_dhyear']"
487
+            ).val();
488
+            let _dhmonth = _dhyear && _dhyear.split("-")[1];
489
+            $.ajax({
490
+              type: "POST",
491
+              url: _url,
492
+              dataType: "json",
493
+              contentType: "application/json; charset=utf-8",
494
+              data: JSON.stringify({
495
+                dhyear: _dhyear && _dhyear.split("-")[0],
496
+                dhmonth: Number(_dhmonth) + "月",
497
+                content: $(
498
+                  "#historyAddForm textarea[name='history_content']"
499
+                ).val(),
500
+                ltype: $(
501
+                  "#historyAddForm input[name='history_ltype']:checked"
502
+                ).val(),
503
+                createid: $.userInfo.userid
504
+              }),
505
+              success: function (data) {
506
+                if (data.code === 0) {
507
+                  window.location.href =
508
+                    "/sections/history.html?page=1&dhyear=" +
509
+                    historySearch.dhyear +
510
+                    "&type=" +
511
+                    historySearch.type;
512
+                } else {
513
+                  alert(data.msg);
514
+                }
515
+              }
516
+            });
517
+          }
518
+        });
519
+        let modify_dhid = null;
520
+        $(".historyTableBody").on("click", ".modify_btn", function () {
521
+          modify_dhid = $(this).data("dhid");
522
+          $("#historyModifyModal").modal("show");
523
+          $.each(historySearch.list, function (_index, _historyItem) {
524
+            if (_historyItem.dhid === modify_dhid) {
525
+              $(
526
+                "#historyModifyForm input[name='m_history_ltype'][value='" +
527
+                  _historyItem.ltype +
528
+                  "']"
529
+              ).attr("checked", true);
530
+              let _monthStr =
531
+                _historyItem.dhyear && _historyItem.dhmonth
532
+                  ? _historyItem.dhmonth.split("月")[0]
533
+                  : "";
534
+              $("#historyModifyModal #modifyDhyearPicker")
535
+                .datepicker({
536
+                  autoclose: true,
537
+                  startView: 1,
538
+                  maxViewMode: 2,
539
+                  minViewMode: 1,
540
+                  format: "yyyy-mm",
541
+                  language: "zh-CN"
542
+                })
543
+                .datepicker(
544
+                  "setDate",
545
+                  _monthStr
546
+                    ? _historyItem.dhyear +
547
+                        "-" +
548
+                        (Number(_monthStr) < 9 ? "0" + _monthStr : _monthStr)
549
+                    : "now"
550
+                );
551
+              $("#historyModifyForm textarea[name='m_history_content']").val(
552
+                _historyItem.content
553
+              );
554
+            }
555
+          });
556
+        });
557
+        $("#historyModifyModal .modify_save").on("click", function () {
558
+          // 添加表单验证
559
+          $("#historyModifyForm").bootstrapValidator({
560
+            // 默认的提示消息
561
+            message: "请输入内容",
562
+            // 表单框里右侧的icon
563
+            // feedbackIcons: {
564
+            //   valid: "glyphicon glyphicon-ok",
565
+            //   invalid: "glyphicon glyphicon-remove",
566
+            //   validating: "glyphicon glyphicon-refresh",
567
+            // },
568
+            fields: {
569
+              history_ltype: {
570
+                validators: {
571
+                  notEmpty: {
572
+                    message: "请选择类型"
573
+                  }
574
+                }
575
+              },
576
+              history_dhyear: {
577
+                validators: {
578
+                  notEmpty: {
579
+                    format: "YYYY-MM",
580
+                    message: "请选择日期"
581
+                  }
582
+                }
583
+              },
584
+              history_content: {
585
+                validators: {
586
+                  notEmpty: {
587
+                    message: "请输入内容"
588
+                  }
589
+                }
590
+              }
591
+            }
592
+          });
593
+          //先校验,在调是否通过校验的方法
594
+          $("#historyModifyForm").data("bootstrapValidator").validate();
595
+          //校验表单是否通过
596
+          let flag = $("#historyModifyForm")
597
+            .data("bootstrapValidator")
598
+            .isValid();
599
+          if (flag) {
600
+            let _url = $.baseUrl + "dh/update";
601
+            let _dhyear = $(
602
+              "#historyModifyForm input[name='m_history_dhyear']"
603
+            ).val();
604
+            let _dhmonth = _dhyear && _dhyear.split("-")[1];
605
+            $.ajax({
606
+              type: "POST",
607
+              url: _url,
608
+              dataType: "json",
609
+              contentType: "application/json; charset=utf-8",
610
+              data: JSON.stringify({
611
+                dhid: modify_dhid,
612
+                dhyear: _dhyear && _dhyear.split("-")[0],
613
+                dhmonth: Number(_dhmonth) + "月",
614
+                content: $(
615
+                  "#historyModifyForm textarea[name='m_history_content']"
616
+                ).val(),
617
+                ltype: $(
618
+                  "#historyModifyForm input[name='m_history_ltype']:checked"
619
+                ).val()
620
+              }),
621
+              success: function (data) {
622
+                if (data.code === 0) {
623
+                  window.location.href =
624
+                    "/sections/history.html?page=1&dhyear=" +
625
+                    historySearch.dhyear +
626
+                    "&type=" +
627
+                    historySearch.type;
628
+                } else {
629
+                  alert(data.msg);
630
+                }
631
+              }
632
+            });
633
+          }
634
+        });
217 635
         // 获取用户列表
218 636
         function getHistoryList() {
219 637
           $.ajax({
@@ -271,28 +689,28 @@
271 689
           $(".historyTableBody").html(historyTableBodyHtml);
272 690
           let del_dhid = null;
273 691
           $(".historyTableBody").on("click", ".del_btn", function () {
274
-            $("#userDelModal").modal("show");
692
+            $("#historyDelModal").modal("show");
275 693
             del_dhid = $(this).data("dhid");
276 694
           });
277
-          $("#userDelModal .del_save").on("click", function () {
695
+          $("#historyDelModal .del_save").on("click", function () {
278 696
             $.ajax({
279 697
               type: "POST",
280
-              url: $.baseUrl + "user/del",
698
+              url: $.baseUrl + "dh/remove",
281 699
               dataType: "json",
282 700
               contentType: "application/json; charset=utf-8",
283 701
               data: JSON.stringify({
284 702
                 dhid: del_dhid
285 703
               }),
286 704
               success: function (data) {
287
-                $("#userDelModal").modal("hide");
705
+                $("#historyDelModal").modal("hide");
288 706
                 if (data.code === 0) {
289 707
                   window.location.href =
290
-                    "/index.html?page=" +
708
+                    "/sections/history.html?page=" +
291 709
                     historySearch.page +
292
-                    "&userstate=" +
293
-                    historySearch.userstate +
294
-                    "&username=" +
295
-                    historySearch.username;
710
+                    "&dhyear=" +
711
+                    historySearch.dhyear +
712
+                    "&type=" +
713
+                    historySearch.type;
296 714
                 } else {
297 715
                   alert(data.msg);
298 716
                 }
@@ -300,7 +718,76 @@
300 718
             });
301 719
           });
302 720
         }
303
-        function setPageList() {}
721
+        // 设置页码信息
722
+        function setPageList() {
723
+          let pageBoxHtml =
724
+            '<div class="page_prev ' +
725
+            (historySearch.page === 1 ? "disabled" : "") +
726
+            '">&lt;</div>';
727
+          for (
728
+            let _pageIndex = 0;
729
+            _pageIndex < Math.ceil(historySearch.total / historySearch.size);
730
+            _pageIndex++
731
+          ) {
732
+            pageBoxHtml +=
733
+              '<div data-page="' +
734
+              (_pageIndex + 1) +
735
+              '" class="page_num ' +
736
+              (_pageIndex + 1 === historySearch.page ? "selected" : "") +
737
+              '">' +
738
+              (_pageIndex + 1) +
739
+              "</div>";
740
+          }
741
+          pageBoxHtml +=
742
+            '<div class="page_next ' +
743
+            (historySearch.page ===
744
+            Math.ceil(historySearch.total / historySearch.size)
745
+              ? "disabled"
746
+              : "") +
747
+            '">&gt;</div>';
748
+          if (historySearch.total > 0) {
749
+            $(".history_page.page_box").html(pageBoxHtml);
750
+            $(".history_page.page_box").on("click", ".page_prev", function () {
751
+              if (historySearch.page > 1) {
752
+                historySearch.page--;
753
+                window.location.href =
754
+                  "/sections/history.html?page=" +
755
+                  historySearch.page +
756
+                  "&dhyear=" +
757
+                  historySearch.dhyear +
758
+                  "&type=" +
759
+                  historySearch.type;
760
+              }
761
+            });
762
+            $(".history_page.page_box").on("click", ".page_num", function () {
763
+              historySearch.page = $(this).data("page");
764
+              window.location.href =
765
+                "/sections/history.html?page=" +
766
+                historySearch.page +
767
+                "&dhyear=" +
768
+                historySearch.dhyear +
769
+                "&type=" +
770
+                historySearch.type;
771
+            });
772
+            $(".history_page.page_box").on("click", ".page_next", function () {
773
+              if (
774
+                historySearch.page <
775
+                Math.ceil(historySearch.total / historySearch.size)
776
+              ) {
777
+                historySearch.page++;
778
+                window.location.href =
779
+                  "/sections/history.html?page=" +
780
+                  historySearch.page +
781
+                  "&dhyear=" +
782
+                  historySearch.dhyear +
783
+                  "&type=" +
784
+                  historySearch.type;
785
+              }
786
+            });
787
+          } else {
788
+            $(".history_page.page_box").html("");
789
+          }
790
+        }
304 791
         getHistoryList();
305 792
       });
306 793
     </script>

Ładowanie…
Anuluj
Zapisz