dever há 4 anos atrás
pai
commit
d80efd7575
2 ficheiros alterados com 25 adições e 8 exclusões
  1. 15 0
      app/content/database/creater.php
  2. 10 8
      app/content/database/xuniren.php

+ 15 - 0
app/content/database/creater.php

@@ -194,6 +194,21 @@ return array
             'col' => 'name as name, id, id as value, "" as selected, "" as disabled|id',
         ),
 
+        'getData' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'id' => array('yes-id', 'in'),
+                'name' => array('yes', 'like'),
+                'status' => 1,
+                'state' => 1,
+            ),
+            'type' => 'all',
+            'order' => array('reorder' => 'desc','cdate' => 'desc'),
+            'col' => '*',
+        ),
+
         'getAll' => array
         (
             # 匹配的正则或函数 选填项

+ 10 - 8
app/content/database/xuniren.php

@@ -140,25 +140,27 @@ return array
         'creater_id'     => array
         (
             'type'      => 'int-11',
-            'name'      => '造物主',
+            'name'      => '造物主-关联单个造物主,废弃',
             'default'   => '-1',
             'desc'      => '造物主',
             'match'     => 'is_numeric',
-            'update'    => 'select',
-            'option'    => $creater,
-            'search'    => 'select',
+            //'update'    => 'select',
+            //'option'    => $creater,
+            //'search'    => 'select',
         ),
 
         'creater_ids'       => array
         (
             'type'      => 'varchar-1000',
-            'name'      => '关联造物主-直接输入造物主名称,将自动进行匹配出来,之后选择一个即可',
+            'name'      => '造物主-直接输入造物主名称,将自动进行匹配出来,之后选择一个即可',
             'default'   => '',
-            'desc'      => '关联造物主',
-            'match'     => 'is_string',
+            'desc'      => '造物主',
+            'match'     => 'option',
             'update'    => 'text',
+            'option'    => $creater,
+            'search'    => 'select',
             //如果要输入带有自动提示的,就打开这个,update=>'text'即可
-            'autocomplete' => array('content/lib/manage.getByCreaterName', 'id', 'content/creater-one#name'),
+            'autocomplete' => array('content/lib/manage.getByCreaterName', 'id', 'content/creater-getData'),
             //'list'        => true,
             //显示
             //'show'  => 'cate=tag/manage.getByCate?cate=',