info_log.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?php
  2. #1代理商,期权账户,小程序用户,
  3. $type = array
  4. (
  5. 1 => '代理商',
  6. 2 => '期权账户',
  7. 3 => '小程序用户',
  8. );
  9. return array
  10. (
  11. # 表名
  12. 'name' => 'info_log',
  13. # 显示给用户看的名称
  14. 'lang' => '工单记录',
  15. # 后台菜单排序
  16. 'order' => 2,
  17. 'menu' => false,
  18. # 数据结构
  19. 'struct' => array
  20. (
  21. 'id' => array
  22. (
  23. 'type' => 'int-11',
  24. 'name' => 'ID',
  25. 'default' => '',
  26. 'desc' => '',
  27. 'match' => 'is_numeric',
  28. 'search' => 'order',
  29. 'list' => true,
  30. 'order' => 'desc',
  31. ),
  32. 'info_id' => array
  33. (
  34. 'type' => 'int-11',
  35. 'name' => '工单信息',
  36. 'default' => '-1',
  37. 'desc' => '工单id',
  38. 'match' => 'is_string',
  39. // 'update' => 'text',
  40. ),
  41. 'admin_id' => array
  42. (
  43. 'type' => 'varchar-500',
  44. 'name' => '操作人',
  45. 'default' => '-1',
  46. 'desc' => '操作人',
  47. 'match' => 'is_string',
  48. // 'update' => 'text',
  49. ),
  50. 'app_admin_id' => array
  51. (
  52. 'type' => 'varchar-500',
  53. 'name' => '指派人id',
  54. 'default' => '-1',
  55. 'desc' => '指派人id',
  56. 'match' => 'is_string',
  57. // 'update' => 'text',
  58. ),
  59. 'appoint_id' => array
  60. (
  61. 'type' => 'int-11',
  62. 'name' => '指派工单id',
  63. 'default' => '-1',
  64. 'desc' => '代理商',
  65. 'match' => 'is_string',
  66. // 'update' => 'text',
  67. ),
  68. 'fdate' => array
  69. (
  70. 'type' => 'int-11',
  71. 'name' => '完成时间',
  72. 'default' => '',
  73. 'match' => 'is_numeric',
  74. 'search' => 'date',
  75. ),
  76. 'cloce_date' => array
  77. (
  78. 'type' => 'int-11',
  79. 'name' => '完成关闭时间',
  80. 'default' => '',
  81. 'match' => 'is_numeric',
  82. 'search' => 'date',
  83. ),
  84. 'state' => array
  85. (
  86. 'type' => 'tinyint-1',
  87. 'name' => '状态',
  88. 'default' => '1',
  89. 'desc' => '请选择状态',
  90. 'match' => 'is_numeric',
  91. ),
  92. 'cdate' => array
  93. (
  94. 'type' => 'int-11',
  95. 'name' => '处理时间',
  96. 'match' => array('is_numeric', time()),
  97. 'desc' => '',
  98. # 只有insert时才生效
  99. 'insert' => true,
  100. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  101. ),
  102. ),
  103. 'manage' => array
  104. (
  105. 'insert' => false,
  106. 'delete' => false,
  107. 'edit' => false,
  108. 'page_list' => 'info_log',
  109. ),
  110. 'request' => array
  111. (
  112. 'getAll' => array
  113. (
  114. # 匹配的正则或函数 选填项
  115. 'option' => array
  116. (
  117. 'info_id' => 'yes',
  118. 'state' => 1,
  119. ),
  120. 'type' => 'all',
  121. 'order' => array('cdate'=> 'asc'),
  122. 'col' => '*',
  123. ),
  124. 'getmyAll' => array
  125. (
  126. # 匹配的正则或函数 选填项
  127. 'option' => array
  128. (
  129. 'app_admin_id' => 'yes',
  130. 'admin_id' => 'yes',
  131. 'state' => 1,
  132. ),
  133. 'type' => 'all',
  134. 'order' => array('id' => 'desc'),
  135. 'col' => '*|info_id',
  136. ),
  137. ),
  138. );