province.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. $info = Dever::project('area');
  3. $path = $info['setup'];
  4. return array
  5. (
  6. 'list' => array
  7. (
  8. 'desc' => '导入数据请在服务器执行:php '.$path.'index.php \'{"l":"import.load"}\';
  9. 数据来源:' . Dever::load('import', 'area', 'api')->getUrl(),
  10. 'field' => array
  11. (
  12. 'id',
  13. 'name',
  14. 'pinyin',
  15. 'pinyin_first',
  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. //'sort',
  51. ),
  52. 'start' => 'area/manage.up',
  53. ),
  54. );