import_log.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?php
  2. $type = array
  3. (
  4. 2 => '直推人数错误',
  5. 3 => '团队业绩错误',
  6. 4 => '地区导入提醒',
  7. 5 => '新系统不存在该地区',
  8. );
  9. $status = array
  10. (
  11. 1 => '待处理',
  12. 2 => '已处理',
  13. );
  14. return array
  15. (
  16. # 表名
  17. 'name' => 'import_log',
  18. # 显示给用户看的名称
  19. 'lang' => '导入对比记录',
  20. 'order' => 9,
  21. 'menu' => false,
  22. # 数据结构
  23. 'struct' => array
  24. (
  25. 'id' => array
  26. (
  27. 'type' => 'int-11',
  28. 'name' => 'ID',
  29. 'default' => '',
  30. 'desc' => '',
  31. 'match' => 'is_numeric',
  32. 'search' => 'order',
  33. 'update' => 'hidden',
  34. //'list' => true,
  35. ),
  36. 'mid' => array
  37. (
  38. 'type' => 'int-11',
  39. 'name' => '代理商',
  40. 'default' => '-1',
  41. 'desc' => '代理商',
  42. 'match' => 'is_string',
  43. 'update' => 'text',
  44. 'searchs' => array
  45. (
  46. 'api' => 'agent/member-find',
  47. 'col' => 'mobile',
  48. 'result' => 'id',
  49. ),
  50. 'search' => 'hidden',
  51. 'list' => 'Dever::load("agent/lib/member.getOne", {mid})',
  52. 'list_order' => 1,
  53. ),
  54. 'type' => array
  55. (
  56. 'type' => 'tinyint-1',
  57. 'name' => '类型',
  58. 'default' => '1',
  59. 'desc' => '类型',
  60. 'match' => 'is_numeric',
  61. 'search' => 'select',
  62. 'option' => $type,
  63. 'update' => 'radio',
  64. 'control' => 'type',
  65. 'list' => true,
  66. ),
  67. 'before' => array
  68. (
  69. 'type' => 'varchar-200',
  70. 'name' => '旧系统数据',
  71. 'default' => '',
  72. 'desc' => '旧系统数据',
  73. 'match' => 'is_numeric',
  74. 'update' => 'text',
  75. 'list' => true,
  76. ),
  77. 'after' => array
  78. (
  79. 'type' => 'varchar-200',
  80. 'name' => '导入后数据',
  81. 'default' => '',
  82. 'desc' => '导入后数据',
  83. 'match' => 'is_numeric',
  84. 'update' => 'text',
  85. 'list' => true,
  86. ),
  87. 'status' => array
  88. (
  89. 'type' => 'tinyint-1',
  90. 'name' => '状态',
  91. 'default' => '1',
  92. 'desc' => '状态',
  93. 'match' => 'is_numeric',
  94. 'option' => $status,
  95. 'search' => 'select',
  96. 'list' => true,
  97. 'edit' => true,
  98. ),
  99. 'state' => array
  100. (
  101. 'type' => 'tinyint-1',
  102. 'name' => '状态',
  103. 'default' => '1',
  104. 'desc' => '请选择状态',
  105. 'match' => 'is_numeric',
  106. ),
  107. 'cdate' => array
  108. (
  109. 'type' => 'int-11',
  110. 'name' => '升级时间',
  111. 'match' => array('is_numeric', time()),
  112. 'desc' => '',
  113. # 只有insert时才生效
  114. 'insert' => true,
  115. 'search' => 'date',
  116. 'list' => 'date("Y-m-d H:i", {cdate})',
  117. 'list_order' => 2,
  118. ),
  119. ),
  120. 'manage' => array
  121. (
  122. 'edit' => false,
  123. 'insert' => false,
  124. 'delete' => false,
  125. ),
  126. 'request' => array
  127. (
  128. ),
  129. );