@@ -25,6 +25,17 @@ if ($cate) {
$type = $type_config;
}
+$product = function()
+{
+ $array = array();
+ $info = Dever::db('product/info')->state();
+ if($info)
+ {
+ $array += $info;
+ }
+ return $array;
+};
+
$is_button = array
(
1 => '显示',
@@ -134,7 +145,7 @@ return array
'list' => true,
//增加预览
'preview' => true,
- 'show' => 'type=3,5,6,31,32',
+ 'show' => 'type=3,5,6,32',
),
'url' => array
@@ -341,7 +352,7 @@ return array
'match' => 'option',
'update' => 'checkbox',
'show' => 'type=31',
- 'update_search' => 'journal/lib/manage.search_product',
+ 'option' => $product,
'text' => array
@@ -159,6 +159,20 @@ return array
'col' => 'name as name, id, id as value, "" as selected, "" as disabled|id',
+ 'getAllByIds' => array
+ (
+ # 匹配的正则或函数 选填项
+ 'option' => array
+ 'ids' => array('yes-id', 'in'),
+ 'id' => 'yes',
+ 'state' => 1,
+ ),
+ 'type' => 'all',
+ 'order' => array('reorder' => 'desc', 'id' => 'desc'),
+ 'col' => '*',
'search' => array
# 匹配的正则或函数 选填项
@@ -8,7 +8,7 @@ class Info
{
public function get($ids)
- $data = Dever::db('product/info')->getByIds($ids);
+ $data = Dever::db('product/info')->getAllByIds($ids);
if (!$data) {
Dever::alert('错误的产品信息');