欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

基于layui數(shù)據(jù)表格以及傳數(shù)據(jù)的方式

 更新時(shí)間:2018年08月19日 09:48:34   作者:*眉間緣*  
今天小編就為大家分享一篇基于layui數(shù)據(jù)表格以及傳數(shù)據(jù)的方式,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧

如下所示:

數(shù)據(jù)表格一:

<div style="margin:0px; background-color: white; margin:0 10px;">
    <blockquote class="layui-elem-quote">
    <div class="layui-btn-group demoTable">
      <button class="layui-btn" data-type="getCheckData">下載</button></div>
      <form class="layui-form" style="float:right;">
        <div class="layui-form-item" style="margin:0;">
          <label class="layui-form-label">名稱</label>
          <div class="layui-input-inline">
            <input type="text" name="zname" placeholder="輸入作業(yè)名稱" autocomplete="off" class="layui-input">
          </div>
          <div class="layui-form-mid layui-word-aux" style="padding:0;">
            <button id="cha" lay-filter="search" class="layui-btn" lay-submit><i class="fa fa-search" aria-hidden="true"></i> 查詢</button>
          </div>
        </div>
      </form>
    </blockquote>
  </div>
<table class="layui-table" lay-data="{url:'../task/selectTask.do', page:true, id:'test2'}">
 <thead>
  <tr>
   <th lay-data="{checkbox:true,fixed:true}"></th>
   <th lay-data="{field:'id', width:60, sort: true}">ID</th>
   <th lay-data="{field:'cid', width:150, sort: true}">課程id</th>
   <th lay-data="{field:'tid', width:150, sort: true}">教師id</th>
   <th lay-data="{field:'zname', width:150, sort: true}">作業(yè)名稱</th>
   <th lay-data="{field:'ztime', width:150, sort: true,toolbar: '#timeTpl'}">提交時(shí)間</th>
   <th lay-data="{field:'zcontext', width:150, sort: true}">作業(yè)內(nèi)容</th>
   <th lay-data="{field:'zremarks', width:150, sort: true}">備注</th>
   <th lay-data="{fixed: 'right', width:100, align:'center', toolbar: '#barDemo1'}"></th>
  </tr>
 </thead>
</table>

數(shù)據(jù)傳輸方式

<script type="text/html" id="barDemo1">
 <a href="/?zname={{d.zname}}" rel="external nofollow" class="layui-btn layui-btn-mini" lay-event="edit">下載</a>
</script>

將參數(shù)綁定傳入后臺(tái)

jo.put("code", 0);
    jo.put("msg",":");
    jo.put("count", 1000);
    jo.put("data", list);

后臺(tái)數(shù)據(jù)傳入前臺(tái)的方式

數(shù)據(jù)表格二:

<div class="admin-main">

      <blockquote class="layui-elem-quote">
        <a href="javascript:;" rel="external nofollow" rel="external nofollow" class="layui-btn layui-btn-small" id="add">
          <i class="layui-icon">&#xe608;</i> 添加信息
        </a>
        <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="layui-btn layui-btn-small" id="import">
          <i class="layui-icon">&#xe608;</i> 導(dǎo)入信息
        </a>
        <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="layui-btn layui-btn-small">
          <i class="fa fa-shopping-cart" aria-hidden="true"></i> 導(dǎo)出信息
        </a>
        <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="layui-btn layui-btn-small" id="getSelected">
          <i class="fa fa-shopping-cart" aria-hidden="true"></i> 獲取全選信息
        </a>
        <a href="javascript:;" rel="external nofollow" rel="external nofollow" class="layui-btn layui-btn-small" id="search">
          <i class="layui-icon">&#xe615;</i> 搜索
        </a>
      </blockquote>
      <fieldset class="layui-elem-field">
        <legend>數(shù)據(jù)列表</legend>
        <div class="layui-field-box layui-form">
          <table class="layui-table admin-table">
            <thead>
              <tr>
                <th style="width: 30px;"><input type="checkbox" lay-filter="allselector" lay-skin="primary"></th>
                <th>編號(hào)</th>
                <th>用戶名</th>
                <th>真實(shí)姓名</th>
                <th>性別</th>
                <th>電話</th>
                <th>郵箱</th>
                <th>公司</th>
                <th>職位</th>
                <th>政治面貌</th>
                <th>培訓(xùn)狀態(tài)</th>
                <th>賬號(hào)狀態(tài)</th>
                <th>角色</th>
                <th>創(chuàng)建時(shí)間</th>
                <th>備注</th>
            
              </tr>
            </thead>
            <tbody id="content">
            </tbody>
          </table>
        </div>
      </fieldset>
      <div class="admin-table-page">
        <div id="paged" class="page">
        </div>
      </div>
    </div>

以上這篇基于layui數(shù)據(jù)表格以及傳數(shù)據(jù)的方式就是小編分享給大家的全部?jī)?nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論