unaudit.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?php
  2. /**
  3. * tester
  4. */
  5. $status = array
  6. (
  7. 1 => '撤回中',
  8. 2 => '撤回成功',
  9. 3 => '撤回失败',
  10. );
  11. $user = function()
  12. {
  13. $array = array();
  14. $info = Dever::load('component/user-state');
  15. if($info)
  16. {
  17. $array += $info;
  18. }
  19. return $array;
  20. };
  21. $template = function()
  22. {
  23. $array = array();
  24. $info = Dever::load('component/template-state');
  25. if($info)
  26. {
  27. $array += $info;
  28. }
  29. return $array;
  30. };
  31. $version = function()
  32. {
  33. $array = array();
  34. $info = Dever::load('component/version-state');
  35. if($info)
  36. {
  37. $array += $info;
  38. }
  39. return $array;
  40. };
  41. return array
  42. (
  43. # 表名
  44. 'name' => 'unaudit',
  45. # 显示给用户看的名称
  46. 'lang' => '审核撤回历史',
  47. 'order' => 1,
  48. # 数据结构
  49. 'struct' => array
  50. (
  51. 'id' => array
  52. (
  53. 'type' => 'int-11',
  54. 'name' => 'ID',
  55. 'default' => '',
  56. 'desc' => '',
  57. 'match' => 'is_numeric',
  58. 'search' => 'order',
  59. //'list' => true,
  60. ),
  61. 'project_id' => array
  62. (
  63. 'type' => 'int-11',
  64. 'name' => '项目',
  65. 'default' => '',
  66. 'desc' => '请输入项目',
  67. 'match' => 'is_numeric',
  68. 'list' => true,
  69. 'edit' => true,
  70. ),
  71. 'version_id' => array
  72. (
  73. 'type' => 'int-11',
  74. 'name' => '版本',
  75. 'default' => '',
  76. 'desc' => '版本',
  77. 'match' => 'is_numeric',
  78. //'search' => 'order,fulltext',
  79. 'update' => 'checkbox',
  80. 'option' => $version,
  81. 'list' => true,
  82. ),
  83. 'user_id' => array
  84. (
  85. 'type' => 'int-11',
  86. 'name' => '用户',
  87. 'default' => '',
  88. 'desc' => '用户',
  89. 'match' => 'is_numeric',
  90. //'search' => 'order,fulltext',
  91. 'update' => 'select',
  92. 'option' => $user,
  93. 'list' => true,
  94. ),
  95. 'result' => array
  96. (
  97. 'type' => 'text-255',
  98. 'name' => '微信返回信息',
  99. 'default' => '',
  100. 'desc' => '微信返回信息',
  101. 'match' => 'option',
  102. 'update' => 'textarea',
  103. 'list' => true,
  104. 'modal' => '查看详情',
  105. ),
  106. 'status' => array
  107. (
  108. 'type' => 'tinyint-1',
  109. 'name' => '撤回状态',
  110. 'default' => '1',
  111. 'desc' => '撤回状态',
  112. 'match' => 'is_numeric',
  113. 'update' => 'select',
  114. 'option' => $status,
  115. 'list' => true,
  116. ),
  117. 'state' => array
  118. (
  119. 'type' => 'tinyint-1',
  120. 'name' => '状态',
  121. 'default' => '1',
  122. 'desc' => '请选择状态',
  123. 'match' => 'is_numeric',
  124. ),
  125. 'cdate' => array
  126. (
  127. 'type' => 'int-11',
  128. 'name' => '提交时间',
  129. 'match' => array('is_numeric', time()),
  130. 'desc' => '',
  131. # 只有insert时才生效
  132. 'insert' => true,
  133. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  134. ),
  135. ),
  136. 'top' => Dever::config('base', 'component')->top,
  137. 'manage' => array
  138. (
  139. 'edit' => false,
  140. 'delete' => false,
  141. 'insert' => false,
  142. ),
  143. );