village.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. return array
  3. (
  4. 'list' => array
  5. (
  6. 'field' => array
  7. (
  8. 'id',
  9. 'name',
  10. 'pinyin',
  11. 'pinyin_first',
  12. 'area' => array
  13. (
  14. 'show' => 'Dever::call("area/data.string", "{area}")',
  15. ),
  16. 'sort' => 'input',
  17. 'status' => array
  18. (
  19. 'type' => 'switch',
  20. 'show' => '{status}',
  21. 'active_value' => 1,
  22. 'inactive_value' => 2,
  23. ),
  24. 'cdate',
  25. ),
  26. 'button' => array
  27. (
  28. '新增' => 'fastadd',
  29. ),
  30. 'data_button' => array
  31. (
  32. '编辑' => 'fastedit',
  33. ),
  34. 'search' => array
  35. (
  36. 'name',
  37. 'status',
  38. ),
  39. ),
  40. 'update' => array
  41. (
  42. 'field' => array
  43. (
  44. 'name' => array
  45. (
  46. 'rules' => true,
  47. ),
  48. //'pinyin',
  49. //'pinyin_first',
  50. 'area' => array
  51. (
  52. 'type' => 'cascader',
  53. 'remote' => 'area/data.get&total=3',
  54. ),
  55. //'sort',
  56. ),
  57. 'start' => 'area/manage.up',
  58. ),
  59. );