<?php
return array
(
    'source' => 'collect/web',
    'list' => array
    (
        'field'      => array
        (
            'id',
            'name',
            'host',
        ),
        'data_button' => array
        (
            '编辑' => 'edit',
            '采集规则' => array('route', array
            (
                'path' => 'collect/web_path_manage',
                'param' => array
                (
                    'set' => array('web_id' => 'id', 'menu' => 'collect/web_info', 'parent' => 'collect/web_info'),
                ),
            ), 'ChatLineSquare'),
        ),
        'button' => array
        (
            '新增' => 'add',
        ),
        'search' => 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'),
            ),
        ),
    ),
);