rabin 2 years ago
parent
commit
c180f36bbc
1 changed files with 11 additions and 0 deletions
  1. 11 0
      database/province.php

+ 11 - 0
database/province.php

@@ -4,6 +4,12 @@ $info = Dever::load('manage/project.get');
 
 $path = $info['area']['setup'];
 
+$status = array
+(
+	1 => '可以售卖',
+	2 => '不可售卖',
+);
+
 return array
 (
 	# 表名
@@ -85,6 +91,10 @@ return array
 			'default' 	=> '1',
 			'desc' 		=> '请选择状态',
 			'match' 	=> 'is_numeric',
+			'list'		=> true,
+			'edit'		=> true,
+			'search'	=> 'select',
+			'option'	=> $status,
 		),
 		
 		'state'		=> array
@@ -123,6 +133,7 @@ return array
 			(
 				'ids' => array('yes-id', 'in'),
 				'noid' => array('yes-id', 'not in'),
+				'status' => 'yes',
 				'state' => 1,
 			),
 			'type' => 'all',