town.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. 'type',
  17. 'sort' => 'input',
  18. 'status' => array
  19. (
  20. 'type' => 'switch',
  21. 'show' => '{status}',
  22. 'active_value' => 1,
  23. 'inactive_value' => 2,
  24. ),
  25. 'cdate',
  26. ),
  27. 'button' => array
  28. (
  29. '新增' => 'fastadd',
  30. ),
  31. 'data_button' => array
  32. (
  33. '编辑' => 'fastedit',
  34. ),
  35. 'search' => array
  36. (
  37. 'name',
  38. 'status',
  39. ),
  40. ),
  41. 'update' => array
  42. (
  43. 'field' => array
  44. (
  45. 'name' => array
  46. (
  47. 'rules' => true,
  48. ),
  49. //'pinyin',
  50. //'pinyin_first',
  51. 'area' => array
  52. (
  53. 'type' => 'cascader',
  54. 'remote' => 'area/data.get&total=3',
  55. ),
  56. 'type' => 'radio',
  57. //'sort',
  58. ),
  59. 'start' => 'area/manage.up',
  60. ),
  61. );