province.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. $info = Dever::project('area');
  3. $path = $info['setup'];
  4. return [
  5. 'list' => [
  6. 'desc' => '导入数据请在服务器执行:php '.$path.'index.php \'{"l":"import.json"}\';
  7. 数据来源:' . Dever::load('import/json', 'area')->getUrl(),
  8. 'field' => [
  9. 'id',
  10. 'name',
  11. 'pinyin',
  12. 'pinyin_first',
  13. 'sort' => 'input',
  14. 'status' => [
  15. 'type' => 'switch',
  16. 'show' => '{status}',
  17. 'active_value' => 1,
  18. 'inactive_value' => 2,
  19. ],
  20. 'cdate',
  21. ],
  22. 'button' => [
  23. '新增' => 'fastadd',
  24. ],
  25. 'data_button' => [
  26. '编辑' => 'fastedit',
  27. ],
  28. 'search' => [
  29. 'name',
  30. 'pinyin',
  31. 'pinyin_first',
  32. 'status',
  33. ],
  34. ],
  35. 'update' => [
  36. 'field' => [
  37. 'name' => [
  38. 'rules' => true,
  39. ],
  40. //'pinyin',
  41. //'pinyin_first',
  42. //'sort',
  43. ],
  44. 'start' => 'area/manage.up',
  45. ],
  46. ];