Browse Source

维修状态配置4

master
wanghongjun 3 weeks ago
parent
commit
ae237bffd3
  1. 16
      app/Http/Controllers/Admin/ParkingSpaceRepairController.php
  2. 3
      resources/lang/en/service.php
  3. 3
      resources/lang/zh-CN/service.php
  4. 3
      resources/lang/zh-TW/service.php

16
app/Http/Controllers/Admin/ParkingSpaceRepairController.php

@ -608,12 +608,20 @@ class ParkingSpaceRepairController extends BaseController
$color_temp[] = $val; $color_temp[] = $val;
} else { } else {
$type_arr = []; $type_arr = [];
foreach ($type_list as $t_item) { foreach ($type_list as &$t_item) {
if (count($type_arr) >= 2) { if (count($type_arr) <= 2) {
break;
}
$type_arr[] = $t_item['space_type_name']; $type_arr[] = $t_item['space_type_name'];
} }
$space_attr_list = $t_item['space_attr_list'];
$new_list = [];
foreach ($space_attr_list as $key => $t_value) {
$new_list[] = [
'light' => __service('parking_space.'.$key),
'attr_str' => implode('、', $t_value)
];
}
$t_item['space_attr_list'] = $new_list;
}
if ($type_arr) { if ($type_arr) {
$type_str = implode('、', $type_arr); $type_str = implode('、', $type_arr);
} }

3
resources/lang/en/service.php

@ -75,7 +75,8 @@ return [
'space_not' => 'Parking space does not exist', 'space_not' => 'Parking space does not exist',
'abnormal' => 'Abnormal resource usage', 'abnormal' => 'Abnormal resource usage',
'vacant_repair' => 'Vacant Maintenance', 'vacant_repair' => 'Vacant Maintenance',
'occupied_repair' => 'Occupied Maintenance' 'occupied_repair' => 'Occupied Maintenance',
'warning' => 'Alarm'
], ],
'parking_information' => [ 'parking_information' => [
'not_default' => 'Default parking space type not set' 'not_default' => 'Default parking space type not set'

3
resources/lang/zh-CN/service.php

@ -75,7 +75,8 @@ return [
'space_not' => '车位不存在', 'space_not' => '车位不存在',
'abnormal' => '异常占用', 'abnormal' => '异常占用',
'vacant_repair' => '空置维修', 'vacant_repair' => '空置维修',
'occupied_repair' => '已占用维修' 'occupied_repair' => '已占用维修',
'warning' => '警报'
], ],
'parking_information' => [ 'parking_information' => [
'not_default' => '未设置默认车位类型' 'not_default' => '未设置默认车位类型'

3
resources/lang/zh-TW/service.php

@ -75,7 +75,8 @@ return [
'space_not' => '車位不存在', 'space_not' => '車位不存在',
'abnormal' => '異常佔用', 'abnormal' => '異常佔用',
'vacant_repair' => '空置維修', 'vacant_repair' => '空置維修',
'occupied_repair' => '已佔用維修' 'occupied_repair' => '已佔用維修',
'warning' => '警報'
], ],
'parking_information' => [ 'parking_information' => [
'not_default' => '未設定默認車位類型' 'not_default' => '未設定默認車位類型'

Loading…
Cancel
Save