import_log.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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. 'agent-member-name'=> array
  55. (
  56. 'name' => '姓名',
  57. 'default' => '',
  58. 'desc' => '姓名',
  59. 'match' => 'option',
  60. # 读取另外表的关联方式
  61. 'sync' => array('mid', 'id'),
  62. 'search' => array
  63. (
  64. 'api' => 'agent/member-find',
  65. 'col' => 'name',
  66. 'result' => 'id',
  67. ),
  68. 'list' => true,
  69. ),
  70. 'agent-member-mobile'=> array
  71. (
  72. 'name' => '手机号',
  73. 'default' => '',
  74. 'desc' => '手机号',
  75. 'match' => 'option',
  76. # 读取另外表的关联方式
  77. 'sync' => array('mid', 'id'),
  78. 'search' => array
  79. (
  80. 'api' => 'agent/member-find',
  81. 'col' => 'mobile',
  82. 'result' => 'id',
  83. ),
  84. 'list' => true,
  85. ),
  86. 'type' => array
  87. (
  88. 'type' => 'tinyint-1',
  89. 'name' => '类型',
  90. 'default' => '1',
  91. 'desc' => '类型',
  92. 'match' => 'is_numeric',
  93. 'search' => 'select',
  94. 'option' => $type,
  95. 'update' => 'radio',
  96. 'control' => 'type',
  97. 'list' => true,
  98. ),
  99. 'before' => array
  100. (
  101. 'type' => 'varchar-200',
  102. 'name' => '旧系统数据',
  103. 'default' => '',
  104. 'desc' => '旧系统数据',
  105. 'match' => 'is_numeric',
  106. 'update' => 'text',
  107. 'list' => true,
  108. ),
  109. 'after' => array
  110. (
  111. 'type' => 'varchar-200',
  112. 'name' => '导入后数据',
  113. 'default' => '',
  114. 'desc' => '导入后数据',
  115. 'match' => 'is_numeric',
  116. 'update' => 'text',
  117. 'list' => true,
  118. ),
  119. 'status' => array
  120. (
  121. 'type' => 'tinyint-1',
  122. 'name' => '状态',
  123. 'default' => '1',
  124. 'desc' => '状态',
  125. 'match' => 'is_numeric',
  126. 'option' => $status,
  127. 'search' => 'select',
  128. 'list' => true,
  129. 'edit' => true,
  130. ),
  131. 'state' => array
  132. (
  133. 'type' => 'tinyint-1',
  134. 'name' => '状态',
  135. 'default' => '1',
  136. 'desc' => '请选择状态',
  137. 'match' => 'is_numeric',
  138. ),
  139. 'cdate' => array
  140. (
  141. 'type' => 'int-11',
  142. 'name' => '升级时间',
  143. 'match' => array('is_numeric', time()),
  144. 'desc' => '',
  145. # 只有insert时才生效
  146. 'insert' => true,
  147. //'search' => 'date',
  148. //'list' => 'date("Y-m-d H:i", {cdate})',
  149. //'list_order' => 2,
  150. ),
  151. ),
  152. 'manage' => array
  153. (
  154. 'edit' => false,
  155. 'insert' => false,
  156. 'delete' => false,
  157. 'excel' => true,
  158. ),
  159. 'request' => array
  160. (
  161. ),
  162. );