dever 4 years ago
parent
commit
9fc1ae366f

+ 18 - 17
app/collection/lib/Manage.php

@@ -158,11 +158,6 @@ class Manage
         if ($data) {
             foreach ($data as $k => $v) {
 
-                Dever::setInput('oper_save_table', 'content');
-                Dever::setInput('oper_save_project', 'collection');
-                Dever::setInput('oper_table', 'info');
-                Dever::setInput('oper_project', 'collection');
-
                 $data[$k]['height'] = 'height: 154px;';
                 $data[$k]['info_height'] = 'height: auto;';
 
@@ -202,26 +197,32 @@ class Manage
                 $project_name = $temp[0];
                 $table_name = $temp[1];
 
-                Dever::setInput('search_option_info_id', $v['info_id']);
-                Dever::setInput('search_option_content_id', $v['id']);
+                $param['search_option_info_id'] = $v['info_id'];
+                $param['search_option_content_id'] = $v['id'];
 
                 # 当前表和项目
-                Dever::setInput('table', $table_name);
-                Dever::setInput('project', $project_name);
+                $param['table'] = $table_name;
+                $param['project'] = $project_name;
 
                 # 保存之后要跳转的表和项目
                 if ($list) {
-                    Dever::setInput('oper_page_type', 1);
-                    Dever::setInput('oper_save_table', $table_name);
-                    Dever::setInput('oper_save_project', $project_name);
+                    $param['oper_page_type'] = 1;
+                    # 更新后要跳转的
+                    $param['oper_save_table'] = $table_name;
+                    $param['oper_save_project'] = $project_name;
                     # 上级表和项目
-                    Dever::setInput('oper_table', 'content');
-                    Dever::setInput('oper_project', 'collection');
-                    Dever::setInput('top_table', 'info');
-                    Dever::setInput('top_project', 'collection');
+                    $param['oper_table'] = 'content';
+                    $param['oper_project'] = 'collection';
+                    $param['top_table'] = 'info';
+                    $param['top_project'] = 'collection';
+                } else {
+                    $param['oper_save_table'] = 'content';
+                    $param['oper_save_project'] = 'collection';
+                    $param['oper_table'] = 'info';
+                    $param['oper_project'] = 'collection';
                 }
                 
-                $data[$k]['data_editurl'] = $database->url($method, $v['id'], $table_name, '', $project_name);
+                $data[$k]['data_editurl'] = $database->url($method, $v['id'], $table_name, '', $project_name, $param);
                 
                 $data[$k]['delete'] = $database->url('delete', $v['id']);
             }

+ 13 - 1
app/content/database/news.php

@@ -196,6 +196,18 @@ return array
 	# request 请求接口定义
 	'request' => array
 	(
-		
+		'getAll' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'info_id' => 'yes',
+                'content_id' => 'yes',
+                'state' => 1,
+            ),
+            'type' => 'all',
+            'order' => array('reorder' => 'desc', 'id' => 'desc'),
+            'col' => '*',
+        ),
 	),
 );

+ 13 - 1
app/content/database/pic.php

@@ -276,6 +276,18 @@ return array
 	# request 请求接口定义
 	'request' => array
 	(
-		
+		'getAll' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'info_id' => 'yes',
+                'content_id' => 'yes',
+                'state' => 1,
+            ),
+            'type' => 'all',
+            'order' => array('reorder' => 'desc', 'id' => 'desc'),
+            'col' => '*',
+        ),
 	),
 );

+ 13 - 1
app/content/database/pic_grid.php

@@ -144,6 +144,18 @@ return array
 	# request 请求接口定义
 	'request' => array
 	(
-		
+		'getAll' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'info_id' => 'yes',
+                'content_id' => 'yes',
+                'state' => 1,
+            ),
+            'type' => 'all',
+            'order' => array('reorder' => 'desc', 'id' => 'desc'),
+            'col' => '*',
+        ),
 	),
 );

+ 13 - 1
app/content/database/video.php

@@ -164,6 +164,18 @@ return array
 	# request 请求接口定义
 	'request' => array
 	(
-		
+		'getAll' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'info_id' => 'yes',
+                'content_id' => 'yes',
+                'state' => 1,
+            ),
+            'type' => 'all',
+            'order' => array('reorder' => 'desc', 'id' => 'desc'),
+            'col' => '*',
+        ),
 	),
 );

+ 13 - 1
app/content/database/video_comment.php

@@ -173,6 +173,18 @@ return array
 	# request 请求接口定义
 	'request' => array
 	(
-		
+		'getAll' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'info_id' => 'yes',
+                'content_id' => 'yes',
+                'state' => 1,
+            ),
+            'type' => 'all',
+            'order' => array('reorder' => 'desc', 'id' => 'desc'),
+            'col' => '*',
+        ),
 	),
 );