<?php
$web_id = Dever::input('set')['web_id'] ?? 0;
return array
(
    'source' => 'collect/web_path',
    'list' => array
    (
        'where' => array('web_id' => $web_id),
        'field'      => array
        (
            'id',
            'name',
            'uri',
        ),
        'data_button' => array
        (
            '编辑' => 'edit',
            '数据' => array('route', array
            (
                'path' => 'collect/web_data',
                'param' => array
                (
                    'set' => array('web_path_id' => 'id', 'menu' => 'collect/web_info', 'parent' => 'collect/web_path_manage', 'parent_param' => array('web_id' => $web_id, 'menu' => 'collect/web_info', 'parent' => 'collect/web_info')),
                ),
            ), 'ChatLineSquare'),
            '调试' => array('link', Dever::url('collect/test.web', array('test' => 1))),
        ),
        'button' => array
        (
            //'新增' => 'add',
        ),
        'search' => array
        (
            'name',
            'web_id' => 'hidden',
        ),
    ),
    'update' => array
    (
        'tab' => array
        (
            '基本设置' => 'name,uri,rule,collect/web_path_col',
            '分页设置' => 'page_rule,page_num',
        ),
        'field'    => array
        (
            'name',
            'uri',
            'rule' => array
            (
                'type' => 'textarea',
            ),
            'collect/web_path_col' => array
            (
                'name' => '采集字段设置',
                'where'  => array('web_path_id' => 'id'),
                'desc' => '字段采集说明：<br />
1、采集规则：如采集标题，.text_box a，如需要采集某个链接中的字段，则输入类似link->.article p，link->为link字段获取到的链接<br />
2、采集属性：采集的属性，如html、href等，如带有s，则采集多条，如果值为list，则获取多条，仅限->模式<br />
3、过滤规则：加号为保留某标签，减号为过滤span标签<br />
4、回调方法：支持php内置方法和Dever内置方法，如Dever::load("view", "upload")->file({c}, {domain}, 1)，就是将文件做转换，第三个参数不传就不保存到本地',
            ),
            'page_rule',
            'page_num',
        ),
    ),
);