info_log.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. 'appoint_id' => array
  51. (
  52. 'type' => 'int-11',
  53. 'name' => '指派工单id',
  54. 'default' => '-1',
  55. 'desc' => '代理商',
  56. 'match' => 'is_string',
  57. // 'update' => 'text',
  58. ),
  59. 'fdate' => array
  60. (
  61. 'type' => 'int-11',
  62. 'name' => '完成时间',
  63. 'default' => '',
  64. 'match' => 'is_numeric',
  65. 'search' => 'date',
  66. ),
  67. 'cloce_date' => array
  68. (
  69. 'type' => 'int-11',
  70. 'name' => '完成关闭时间',
  71. 'default' => '',
  72. 'match' => 'is_numeric',
  73. 'search' => 'date',
  74. ),
  75. 'state' => array
  76. (
  77. 'type' => 'tinyint-1',
  78. 'name' => '状态',
  79. 'default' => '1',
  80. 'desc' => '请选择状态',
  81. 'match' => 'is_numeric',
  82. ),
  83. 'cdate' => array
  84. (
  85. 'type' => 'int-11',
  86. 'name' => '处理时间',
  87. 'match' => array('is_numeric', time()),
  88. 'desc' => '',
  89. # 只有insert时才生效
  90. 'insert' => true,
  91. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  92. ),
  93. ),
  94. 'manage' => array
  95. (
  96. 'insert' => false,
  97. 'delete' => false,
  98. 'edit' => false,
  99. 'page_list' => 'info_log',
  100. ),
  101. 'request' => array
  102. (
  103. 'getAll' => array
  104. (
  105. # 匹配的正则或函数 选填项
  106. 'option' => array
  107. (
  108. 'info_id' => 'yes',
  109. 'state' => 1,
  110. ),
  111. 'type' => 'all',
  112. 'order' => array('cdate'=> 'desc'),
  113. 'col' => '*',
  114. ),
  115. ),
  116. );