<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ### 批量設置數據列 ~~~ return TBuilder('table',$this)->addTopButton([ //添加頂部按鈕 'type' => 'add', 'icon_class'=> 'fa fa-plus-circle', 'href' => url('add',['module'=>$module]), ]) ->addTopButton([ 'type' => 'custom', 'title' => '列表查看', 'icon_class'=> 'fa fa-list', 'href' => url('index',['module'=>$module]), ]) ->setColumns([ // 批量設置數據列 ['id', 'ID'], ['title.text', '名稱'], //以普通文本編輯 ['pid', '上級菜單',['func'=>'get_parent_menu_name']], ['user_id', '用戶',['table_field'=>'admin_member|username'] ], ['pro_cover_id', '封面', ['type'=>'img']], //顯示圖片(傳入圖片ID) ['group', '分組',], //['group_id.select', '分組',['data'=>M('Group')->select(),'data_field'=>'id|title']], ['url', 'URL',['type'=>'url', 'url'=>'menu/index', 'p'=>'id.pid']], ['icon_class', 'ICON',], ['sort', '排序',], ['description.textarea', '描述',], //以多行文本編輯 ['status.select', '狀態',['func'=>'c_name','config_name'=>'status'] ], ['is_dev', '僅開發者模式顯示', ['func'=>'yes_no']], ['hide', '隱藏', ['func'=>'yes_no']], ['edit.edit_data|id+title,del', '操作', ['type'=>'btn']] ]) // 添加相關操作按鈕 ->addListButton([ 'type' => 'edit', 'icon_class'=> 'fa fa-pencil', ]) ->addListButton([ 'title' => '別表查看', 'href_base' => 'menu/index', 'href_param'=> 'pid.id', 'icon_class'=> 'fa fa-list', ]) ->fetch(); ~~~ ### setColumns參數為多維數組 > * 批量設置數據列 * @param array $columns * [[field,name,config]] * 參數1 字段信息 * field展示類型,如果可以直接編輯則以.號分割,其后加入編輯類型 * 參數2 字段名稱 * 參數3 展示配置 * type 展示類型 * field // field . xedit type * url * btn // type . url | 參數 * * //type為field,對顯示內容進行二次處理的函數 * func 對字段處理的函數名稱,參數為當前值 * func_param 當存在對字段處理的函數時,此值為為該函數的第二個參數 * * config_name 配置參數名。當func為c_name時且func_param未傳值,此值可替代func_param。 * 當type為field且可編輯時,此為編輯選擇數據源。 * * //附加數據select2 * data 下拉的數據 * data_field 使用的字段,使用 | 分割值與顯示用字段,'id|name' * * table_field 獲取指定表的指定字段的值,使用 | 分割表與表字段(影響速度,不建議使用) * * icon_prefix_class_field 前置圖標字段名稱 * icon_prefix_class 前置圖標class值 * * //type為btn有效 * btn_config 按鈕相關配置 * * //type為url有效 * url 展示類型為url時,當type為url時生效 * url_param 展示類型為url時參數配置,當type為url時生效 * * //樣式相關 * 'style' => '', * * // 字段前后附加內容 * 'prepend_content' => '', // 向前追加 * 'append_content' => '', // 向后追加 * 'bottom_html' => '', // 換行追加 當type為btn時,參數1(字段信息)為按鈕配置信息,多個按鈕以英文逗號分割,格式為 > ‘預定義按鈕類型.URL別名|數據參數1+數據參數2,預定義按鈕類型’ ### 一、換行內容設置 ~~~ ['title', '試卷',[ 'bottom_html'=>'作答時間{{$expected_duration}}分鐘,卷面總分{{$project_total_score}}分,題目{{$topic_num}}道' ]], ~~~ ![](https://box.kancloud.cn/ac28aea305160fde93fa025bd5db6a99_1485x128.png) ### 二、可選項/鍵值數組關聯 #### ① 讀取配置 ~~~ //狀態 (config.php中配置項) 'status' => [ '1' => '啟用', '0' => '禁用', ], ~~~ ~~~ ->setColumns([ ['status.select', '狀態',['func'=>'c_name','config_name'=>'status'] ], ]) ~~~ #### ② 鍵值數組 ~~~ $organization_ids_name = [ 10001=>'組織A', 10002=>'組織B', ]; ~~~ ~~~ ->setColumns([ ['organization_id', '所屬組織',['listdata'=>$organization_ids_name]], ]) ~~~ #### ③ 多維數組
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看