<?php
$set = Dever::input('set');
return array
(
    'list' => array
    (
        'data'      => 'collect/web.getData', 
        'button' => array
        (
            //'新增' => 'add',
        ),
        # 列表页每条数据的按钮，默认是快速编辑和删除
        'data_button' => array
        (
            '详情' => array('view', 'collect/web_data?type=view&id=id&set=' . Dever::json_encode($set)),
        ),
        'search' => array
        (
            'value' => array
            (
                'name' => '输入要搜索的数据',
            ),
        ),
    ),
    'update' => array
    (
        'tab' => array
        (
            '基本设置' => 'name,host,logo',
            //'标准请求' => 'collect/api_request_body,collect/api_request_header',
            '采集规则' => 'collect/web_path',
        ),
        'field'    => array
        (
            'name',
            'host',

            'logo' => array
            (
                'type' => 'upload',
                'upload' => '1',
                'yun' => false,
                'multiple' => false,
                'limit' => 1,
                'style' => 'pic',
            ),

            'collect/web_path' => array
            (
                'name' => '采集规则',
                'where'  => array('web_id' => 'id'),
            ),
        ),
    ),
    # 详情页配置
    'view' => 'collect/web.view',
);