• 带分页的标签


    原型图

    5640239-fb353704fddd965e.png
    图片.png

    重要的实现代码

    var getMemo = function(pageNo,name){
         $('#dataDiv').html("");
        $.ajax({
              url: basePath + "/signIn/set/getSignSetListPage",
              datatype: 'json',
              type: "POST",
              data: { "pageNo": pageNo,"name":name },
              dataType: "json",
              success: function (data) {
                 
                  if (data != null) 
                  {
                       tPages =  data.totalPages;
                       curPage = data.currentPage;
                       pgSize = data.sizeOfPage;
                       var tableShow = "";
                       $.each(data.signSetList, function(i, item){
                           tableShow += "<div class='col-sm-6 col-md-3 table-bordered table-responsive' style='margin:20px  20px  0  20px;'>";
                           if(item.signState == '1'){
                                 tableShow += "<p class='text-muted'>"+  item.signName + "![](/bison/icon/on.png)</p><hr/>"; 
                             }else{
                                 tableShow += "<p class='text-muted'>"+  item.signName + "![](/bison/icon/off.png)</p><hr/>"; 
                             }
                             tableShow += "<p class='text-capitalize'>" + dealTime(item.beginTime) + " - "+ dealTime(item.endTime) +"</p>";
                             tableShow += "<p class='text-description'>" + dealCircle(item.signCircle) + " </p>";
                             tableShow += "<p class='text-description'>人数:<font >"+ item.count +"</font>人</p>";
                             tableShow += "<div style='text-align: center;'>";
                             tableShow += "<a class='btn btn-default' onclick='updateSignSet("+item .id+")'><i class='glyphicon glyphicon-pencil'></i></a>";
                             tableShow += "<a class='btn btn-default' onclick='deleteSignSet("+item.id+","+item.fenceId+")'><i class='glyphicon glyphicon-trash'></i></a>";
                             tableShow +="</div></div>";
                       });
                       $('#dataDiv').append(tableShow); 
                  }
             }
            
        });
    };
    
  • 相关阅读:
    STP-5-STP配置及分析
    PostgreSQL-10-数据运算与函数
    PostgreSQL-9-别名与动态表复制
    PostgreSQL-8-数据合并
    PostgreSQL-7-数据连接
    PostgreSQL-6-数据分组
    STP-4-每VLAN生成树和Trunk上的STP
    VLAN-6-VLAN Trunk协议(VTP)
    STP-3-收敛到新的STP拓扑
    STP-2-三个选择
  • 原文地址:https://www.cnblogs.com/wangting888/p/9702108.html
Copyright © 2020-2023  润新知