| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 | 
							- <?php
 
- return array
 
- (
 
-     # 表名
 
-     'name' => 'info_log',
 
-     # 显示给用户看的名称
 
-     'lang' => '线索记录',
 
-     # 后台菜单排序
 
-     'order' => 2,
 
-     'menu' => false,
 
-     # 数据结构
 
-     'struct' => array
 
-     (
 
-         'id'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => 'ID',
 
-             'default'   => '',
 
-             'desc'      => '',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'list'      => true,
 
-             'order'     => 'desc',
 
-         ),
 
-         'info_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '线索信息',
 
-             'default'   => '-1',
 
-             'desc'      => '线索id',
 
-             'match'     => 'is_string',
 
-             // 'update'    => 'text',
 
-             
 
-         ),
 
-         'crate_group_admin'      => array
 
-         (
 
-             'type'      => 'varchar-30',
 
-             'name'      => '操作人和部门',
 
-             'default'   => '-1',
 
-             'desc'      => '操作人',
 
-             'match'     => 'is_string',
 
-             // 'update'    => 'text',
 
-            
 
-         ),
 
-         'crate_group_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '操作人部门',
 
-             'default'   => '-1',
 
-             'desc'      => '操作人',
 
-             'match'     => 'is_string',
 
-             // 'update'    => 'text',
 
-            
 
-         ),
 
-         'crate_admin_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '操作人',
 
-             'default'   => '-1',
 
-             'desc'      => '操作人',
 
-             'match'     => 'is_string',
 
-             // 'update'    => 'text',
 
-            
 
-         ),
 
-         'follow_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '跟进人表id',
 
-             'default'   => '-1',
 
-             'desc'      => '代理商',
 
-             'match'     => 'is_string',
 
-             // 'update'    => 'text',
 
-         ),
 
-         'follow_group_admin'      => array
 
-         (
 
-             'type'      => 'varchar-30',
 
-             'name'      => '跟进人和部门',
 
-             'default'   => '-1',
 
-             'desc'      => '操作人',
 
-             'match'     => 'is_string',
 
-             // 'update'    => 'text',
 
-            
 
-         ),
 
-         'follow_group_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '跟进人部门',
 
-             'default'   => '-1',
 
-             'desc'      => '操作人',
 
-             'match'     => 'is_string',
 
-             // 'update'    => 'text',
 
-            
 
-         ),
 
-         'follow_admin_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '跟进人',
 
-             'default'   => '-1',
 
-             'desc'      => '操作人',
 
-             'match'     => 'is_string',
 
-             // 'update'    => 'text',
 
-            
 
-         ),
 
-         'state'     => array
 
-         (
 
-             'type'      => 'tinyint-1',
 
-             'name'      => '状态',
 
-             'default'   => '1',
 
-             'desc'      => '请选择状态',
 
-             'match'     => 'is_numeric',
 
-         ),
 
-         
 
-         'cdate'     => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '处理时间',
 
-             'match'     => array('is_numeric', time()),
 
-             'desc'      => '',
 
-             # 只有insert时才生效
 
-             'insert'    => true,
 
-             'list'      => 'date("Y-m-d H:i:s", {cdate})',
 
-         ),
 
-     ),
 
-     'manage' => array
 
-     (
 
-     	'insert' => false,
 
-         'delete' => false,
 
-         'edit' => false,
 
-         'page_list' => 'info_log',
 
-     ),
 
-     'request' => array
 
-     (
 
-         'getAll' => array
 
-         (
 
-             # 匹配的正则或函数 选填项
 
-             'option' => array
 
-             (
 
-                 'info_id' => 'yes',
 
-                 'state' => 1,
 
-             ),
 
-             'type' => 'all',
 
-             'order' => array('cdate'=> 'desc'),
 
-             'col' => '*',
 
-         ),
 
-         'getCountAll' => array
 
-         (
 
-             # 匹配的正则或函数 选填项
 
-             'option' => array
 
-             (
 
-                 'start' => array('yes-cdate','>='),
 
-                 'end'=>array('yes-cdate','<='),
 
-                 'follow_group_id' =>'yes',
 
-                 // 'type' =>array('yes','in'),
 
-                 'state' => 1,
 
-             ),
 
-             'type' => 'all',
 
-             // 'order' => array('reorder' => 'desc', 'id' => 'desc'),
 
-             // 'page' => array(5,'list'),
 
-             'col' => '*|follow_admin_id',
 
-         ),
 
-     ),
 
- );
 
 
  |