'可用', 2 => '不可用', ); $type = array ( 1 => '默认', ); return array ( # 表名 'name' => 'info', # 显示给用户看的名称 'lang' => '基础设备管理', # 后台菜单排序 'order' => 20, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => '标识ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'search' => 'order', 'order' => 'desc', 'list' => true, ), 'name' => array ( 'type' => 'varchar-40', 'name' => '设备名称', 'default' => '', 'desc' => '设备名称', 'match' => 'is_string', 'update' => 'text', 'search' => 'fulltext', 'list' => true, ), 'num' => array ( 'type' => 'int-11', 'name' => '成品数量', 'default' => '', 'desc' => '成品数量', 'match' => 'is_string', //'update' => 'text', //'search' => 'fulltext', 'list' => true, ), 'type' => array ( 'type' => 'tinyint-1', 'name' => '设备类型', 'default' => '1', 'desc' => '请选择设备类型', 'match' => 'is_numeric', 'option' => $type, 'update' => 'select', 'search' => 'select', 'list' => true, # 开启显示控制,可以控制下边的表单 'show' => 'type', ), 'info' => array ( 'type' => 'varchar-255', 'name' => '说明介绍-选填', 'default' => '', 'desc' => '请输入系统说明', 'match' => 'option', 'update' => 'editor', //'list' => true, ), 'reorder' => array ( 'type' => 'int-11', 'name' => '排序-数值越大越靠前', 'default' => '1', 'desc' => '请输入排序', 'match' => 'option', 'update' => 'text', 'search' => 'order', 'list' => true, 'order' => 'desc', 'edit' => true, ), 'state' => array ( 'type' => 'tinyint-1', 'name' => '状态', 'default' => '1', 'desc' => '请选择状态', 'match' => 'is_numeric', 'option' => $option, 'update' => 'radio', 'list' => true, ), '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 ( # 不允许编辑 //'edit' => false, # 列表页的类型 //'list_type' => 'parent', # 可以删除 'list_button' => array ( //oper_save_jump=system&oper_parent=system 特殊配置 oper_save_jump保存之后跳到那个表的列表页 oper_parent下级列表页中显示返回上一页的链接 21 => array('新增元件', '"element&option_info_id={id}&oper_parent=info"'), 11 => array('元件列表', '"element&search_option_info_id={id}&option_info_id={id}&oper_save_jump=info&oper_parent=info"'), 12 => array('
'), 13 => array('成品列表', '"product&search_option_info_id={id}&option_info_id={id}&oper_save_jump=info&oper_parent=info"'), 23 => array('包装成品', 'modal|showMsg(\'包装成品\',$(this),\''.Dever::url('data.product', 'device').'\',function(){updateMsg(\'sendmsg\')})|"info_id={id}"'), //22 => array('新增设备', '"system&option_element_id={id}&oper_save_jump=system&oper_parent=system"', '{element_id}==-1'), //6 => '删除' ), //'desc' => '注意:命令码', ), # request 请求接口定义 'request' => array ( ), );