<?php
return array
(
    'list' => array
    (
        'desc' => '某一个大类即为领域',
        'field'      => array
        (
            'id',
            'name',
            'number',
            'sort' => 'input',
            'status' => array
            (
                'type' => 'switch',
                'show'  => '{status}',
                'active_value' => 1,
                'inactive_value' => 2,
            ),
        ),
        'data_button' => array
        (
            '编辑' => 'fastedit',
            //'删除' => 'recycle',
            //'管理账户列表' => array('route', array('path' => 'set_group/group_user', 'param' => array('set' => array('system_id' => 2, 'relation_id' => 'id')))),
            //'管理账户列表' => array('route', 'set_group/group_user?set[system_id]=2&set[relation_id]=id'),
        ),
    ),
    'update' => array
    (
        'field'    => array
        (
            'name',
            'number' => array
            (
                'desc' => '领域号不能为空，且必须唯一，尽量使用字符串',
                'rules' => true,
            ),
            'mobile' => array
            (
                'show'      => '"{mobile}" ? false : true',
                'type'      => 'text',
                'desc'      => '请输入领域管理员手机号，默认密码123456，领域必须有管理员才能登录',
                'placeholder' => '管理员手机号',
                'rules'     => array
                (
                    array
                    (
                        'required' => true,
                        'trigger' => 'blur',
                        'message' => '请输入手机号',
                    ),
                    array
                    (
                        'len' => 11,
                        'pattern' => Dever::rule('mobile', ''),
                        'trigger' => 'blur',
                        'message' => '手机号错误',
                        'type' => 'string',
                    ),
                ),
            ),
            'sort',
            'status' => 'radio',
        ),
        'check' => 'key',
        'end' => 'manage/system.update?system=sector',
    ),
);