123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <?php
- $type = array
- (
- 2 => '直推人数错误',
- 3 => '团队业绩错误',
- 4 => '地区导入提醒',
- 5 => '新系统不存在该地区',
- 6 => '金额异常',
- 7 => '创客名额',
- 8 => '角色金额不正确',
- 9 => '区域异常',
- );
- $status = array
- (
- 1 => '待处理',
- 2 => '已处理',
- );
- $role = function()
- {
- $array = array(
- 0 => array
- (
- 'id' => 0,
- 'name' => '选择角色',
- ),
- );
- $data = Dever::load('setting/lib/manage.role');
- if($data)
- {
- $array += $data;
- }
- return $array;
- };
- return array
- (
- # 表名
- 'name' => 'import_log',
- # 显示给用户看的名称
- 'lang' => '导入对比记录',
- 'order' => 9,
- 'menu' => false,
- # 数据结构
- 'struct' => array
- (
-
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- 'search' => 'order',
- 'update' => 'hidden',
- //'list' => true,
- ),
- 'mid' => array
- (
- 'type' => 'int-11',
- 'name' => '代理商姓名/手机号',
- 'default' => '-1',
- 'desc' => '代理商',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => array
- (
- 'api' => 'agent/member-getSearch',
- 'col' => 'col',
- 'result' => 'id',
- 'search' => 'mid',
- ),
- //'list_name' => '姓名',
- //'list' => 'Dever::load("agent/lib/member.getOne", {mid}, "agent/member", true)',
- //'list_order' => 1,
- ),
- 'agent-member-name' => array
- (
- 'type' => 'int-11',
- 'name' => '姓名',
- 'default' => '',
- 'desc' => '姓名',
- 'match' => 'is_numeric',
- 'sync' => array('mid', 'id'),
- 'list' => true,
- ),
- 'agent-member-mobile' => array
- (
- 'type' => 'int-11',
- 'name' => '手机号',
- 'default' => '',
- 'desc' => '手机号',
- 'match' => 'is_numeric',
- 'sync' => array('mid', 'id'),
- 'list' => true,
- ),
- 'agent-member-role' => array
- (
- 'type' => 'int-11',
- 'name' => '代理角色',
- 'default' => '',
- 'desc' => '代理角色',
- 'match' => 'is_numeric',
- 'search' => array
- (
- 'api' => 'agent/member-all',
- 'col' => 'role',
- 'result' => 'id',
- 'search' => 'mid',
- 'option' => $role,
- ),
- 'sync' => array('mid', 'id'),
- 'list' => 'Dever::load("setting/role-one#name", "{agent-member-role}")',
- ),
- 'type' => array
- (
- 'type' => 'tinyint-1',
- 'name' => '类型',
- 'default' => '1',
- 'desc' => '类型',
- 'match' => 'is_numeric',
- 'search' => 'select',
- 'option' => $type,
- 'update' => 'radio',
- 'control' => 'type',
- 'list' => true,
- ),
- 'before' => array
- (
- 'type' => 'varchar-200',
- 'name' => '旧系统数据',
- 'default' => '',
- 'desc' => '旧系统数据',
- 'match' => 'is_numeric',
- 'update' => 'text',
- 'list' => true,
- ),
- 'after' => array
- (
- 'type' => 'varchar-200',
- 'name' => '导入后数据',
- 'default' => '',
- 'desc' => '导入后数据',
- 'match' => 'is_numeric',
- 'update' => 'text',
- 'list' => '{type} == 5 ? "无对应关系,无法导入" : "{after}"',
- ),
- 'status' => array
- (
- 'type' => 'tinyint-1',
- 'name' => '状态',
- 'default' => '1',
- 'desc' => '状态',
- 'match' => 'is_numeric',
- 'option' => $status,
- 'search' => 'select',
- 'list' => true,
- 'edit' => true,
- ),
- 'state' => array
- (
- 'type' => 'tinyint-1',
- 'name' => '状态',
- 'default' => '1',
- 'desc' => '请选择状态',
- 'match' => 'is_numeric',
- ),
-
- 'cdate' => array
- (
- 'type' => 'int-11',
- 'name' => '升级时间',
- 'match' => array('is_numeric', time()),
- 'desc' => '',
- # 只有insert时才生效
- 'insert' => true,
- //'search' => 'date',
- //'list' => 'date("Y-m-d H:i", {cdate})',
- //'list_order' => 2,
- ),
- ),
- 'manage' => array
- (
- 'edit' => false,
- 'insert' => false,
- //'delete' => false,
- 'excel' => true,
- ),
- 'request' => array
- (
-
- ),
- );
|