rabin 3 yıl önce
ebeveyn
işleme
9e01868c4f

+ 7 - 4
src/Database.php

@@ -2488,7 +2488,7 @@ class Database
 
         //print_r($data);die;
         //print_r(Helper::page("current"));die;
-
+        $this->manage_button = false;
         if ($data && isset($config['struct'])) {
             $i = 0;
             $pg = Dever::input('pg', 1);
@@ -2670,9 +2670,7 @@ class Database
                 }
 
                 $button = $this->list_tbody_button($config, $data[$k]);
-                if ($this->manage_button) {
-                    $result[$k] .= $button;
-                }
+                $result[$k] .= $button;
 
                 $return[$i]['manage'] = str_replace(array('<td>', '</td>'), '', $button);
 
@@ -2682,6 +2680,11 @@ class Database
             }
         }
 
+        $result = implode('', $result);
+        if (!$this->manage_button) {
+            $result = str_replace('<td></td>', '', $result);
+        }
+
         /*
         if ($result) { 
             $thead = $this->list_thead();

+ 1 - 1
template/layadmin/project/database/list.php

@@ -35,7 +35,7 @@ $view
 //->loop('#list-tbody-data','manage/database.list_tbody_layui')  
 
 # 数据列表 
-->loop('#list-tbody','manage/database.list_tbody')    
+->fetch('#list-tbody','manage/database.list_tbody')    
 
 # 数据列表的标题 
 //->loop('#list-thead-data', 'manage/database.list_thead_layui')