|
|
|
@ -780,17 +780,6 @@ class CarController extends BaseController |
|
|
|
|
$car_use_items = CarUseT::find()->all(); |
|
|
|
|
// 车辆类型 |
|
|
|
|
$car_type_items = CarTypeT::find()->all(); |
|
|
|
|
// 品牌信息 |
|
|
|
|
$brand_items = BrandT::find()->all(); |
|
|
|
|
// 车系信息 |
|
|
|
|
$series_items = SeriesT::find() |
|
|
|
|
->where('brand_id='.intval($car_info->brand_id)) |
|
|
|
|
->all(); |
|
|
|
|
// 排量信息 |
|
|
|
|
$displacement_items = DisplacementT::find() |
|
|
|
|
->where('series_id='.intval($car_info->series_id)) |
|
|
|
|
->all(); |
|
|
|
|
// $failure_items = InvalidT::getTree(2); |
|
|
|
|
// 无效数据 |
|
|
|
|
$failure_items = InvalidT::getTrees(); |
|
|
|
|
|
|
|
|
@ -916,9 +905,6 @@ class CarController extends BaseController |
|
|
|
|
'sort_value' => $sort_value, |
|
|
|
|
'car_use_items' => $car_use_items, |
|
|
|
|
'car_type_items' => $car_type_items, |
|
|
|
|
'brand_items' => $brand_items, |
|
|
|
|
'series_items' => $series_items, |
|
|
|
|
'displacement_items' => $displacement_items, |
|
|
|
|
'back_params' => $back_params, |
|
|
|
|
'business_group' => $business_group, |
|
|
|
|
'adid' => $aid, |
|
|
|
@ -943,13 +929,6 @@ class CarController extends BaseController |
|
|
|
|
|
|
|
|
|
$car_use_items = CarUseT::find()->all(); |
|
|
|
|
$car_type_items = CarTypeT::find()->all(); |
|
|
|
|
$brand_items = BrandT::find()->all(); |
|
|
|
|
$series_items = SeriesT::find() |
|
|
|
|
->where('brand_id='.intval($car_info->brand_id)) |
|
|
|
|
->all(); |
|
|
|
|
$displacement_items = DisplacementT::find() |
|
|
|
|
->where('series_id='.intval($car_info->series_id)) |
|
|
|
|
->all(); |
|
|
|
|
$failure_items = InvalidT::getTree(2); |
|
|
|
|
|
|
|
|
|
//新礼品 |
|
|
|
@ -1074,9 +1053,6 @@ class CarController extends BaseController |
|
|
|
|
'sort_value' => $sort_value, |
|
|
|
|
'car_use_items' => $car_use_items, |
|
|
|
|
'car_type_items' => $car_type_items, |
|
|
|
|
'brand_items' => $brand_items, |
|
|
|
|
'series_items' => $series_items, |
|
|
|
|
'displacement_items' => $displacement_items, |
|
|
|
|
'back_params' => $back_params, |
|
|
|
|
'business_group' => $business_group, |
|
|
|
|
'business_group_id' => $business_group_id, |
|
|
|
@ -1133,13 +1109,6 @@ class CarController extends BaseController |
|
|
|
|
$pay_type_items = PayTypeT::find()->all(); |
|
|
|
|
$car_use_items = CarUseT::find()->all(); |
|
|
|
|
$car_type_items = CarTypeT::find()->all(); |
|
|
|
|
$brand_items = BrandT::find()->all(); |
|
|
|
|
$series_items = SeriesT::find() |
|
|
|
|
->where('brand_id='.intval($car_info->brand_id)) |
|
|
|
|
->all(); |
|
|
|
|
$displacement_items = DisplacementT::find() |
|
|
|
|
->where('series_id='.intval($car_info->series_id)) |
|
|
|
|
->all(); |
|
|
|
|
$direction_items = DirectionT::find() |
|
|
|
|
->all(); |
|
|
|
|
$range_items = RangeT::find() |
|
|
|
@ -1320,9 +1289,6 @@ class CarController extends BaseController |
|
|
|
|
'pay_type_items' => $pay_type_items, |
|
|
|
|
'car_use_items' => $car_use_items, |
|
|
|
|
'car_type_items' => $car_type_items, |
|
|
|
|
'brand_items' => $brand_items, |
|
|
|
|
'series_items' => $series_items, |
|
|
|
|
'displacement_items' => $displacement_items, |
|
|
|
|
'direction_items' => $direction_items, |
|
|
|
|
'range_items' => $range_items, |
|
|
|
|
'city_items' => $city_items, |
|
|
|
@ -1405,13 +1371,6 @@ class CarController extends BaseController |
|
|
|
|
$pay_type_items = PayTypeT::find()->all(); |
|
|
|
|
$car_use_items = CarUseT::find()->all(); |
|
|
|
|
$car_type_items = CarTypeT::find()->all(); |
|
|
|
|
$brand_items = BrandT::find()->all(); |
|
|
|
|
$series_items = SeriesT::find() |
|
|
|
|
->where('brand_id='.intval($car_info->brand_id)) |
|
|
|
|
->all(); |
|
|
|
|
$displacement_items = DisplacementT::find() |
|
|
|
|
->where('series_id='.intval($car_info->series_id)) |
|
|
|
|
->all(); |
|
|
|
|
$direction_items = DirectionT::find() |
|
|
|
|
->all(); |
|
|
|
|
$range_items = RangeT::find() |
|
|
|
@ -1579,9 +1538,6 @@ class CarController extends BaseController |
|
|
|
|
'pay_type_items' => $pay_type_items, |
|
|
|
|
'car_use_items' => $car_use_items, |
|
|
|
|
'car_type_items' => $car_type_items, |
|
|
|
|
'brand_items' => $brand_items, |
|
|
|
|
'series_items' => $series_items, |
|
|
|
|
'displacement_items' => $displacement_items, |
|
|
|
|
'direction_items' => $direction_items, |
|
|
|
|
'range_items' => $range_items, |
|
|
|
|
'city_items' => $city_items, |
|
|
|
@ -1622,35 +1578,11 @@ class CarController extends BaseController |
|
|
|
|
|
|
|
|
|
$car_use_items = CarUseT::find()->all(); |
|
|
|
|
$car_type_items = CarTypeT::find()->all(); |
|
|
|
|
$brand_items = BrandT::find()->all(); |
|
|
|
|
$factory_items = FactoryT::find() |
|
|
|
|
->where('brand_id='.intval($info->brand_id)) |
|
|
|
|
->all(); |
|
|
|
|
$series_items = SeriesT::find() |
|
|
|
|
->where('factory_id='.intval($info->factory_id)) |
|
|
|
|
->all(); |
|
|
|
|
$displacement_items = DisplacementT::find() |
|
|
|
|
->where('series_id='.intval($info->series_id)) |
|
|
|
|
->all(); |
|
|
|
|
$year_items = YearT::find() |
|
|
|
|
->where('series_id='.intval($info->series_id.' and displacement_id='.intval($info->displacement_id))) |
|
|
|
|
->all(); |
|
|
|
|
$model_items = ModelT::find() |
|
|
|
|
->where('series_id='.intval($info->series_id)) |
|
|
|
|
->andWhere('displacement_id='.intval($info->displacement_id)) |
|
|
|
|
->andWhere('year_id='.intval($info->year_id)) |
|
|
|
|
->all(); |
|
|
|
|
|
|
|
|
|
return $this->render('info-edit',[ |
|
|
|
|
'info' => $info, |
|
|
|
|
'car_use_items' => $car_use_items, |
|
|
|
|
'car_type_items' => $car_type_items, |
|
|
|
|
'brand_items' => $brand_items, |
|
|
|
|
'factory_items' => $factory_items, |
|
|
|
|
'series_items' => $series_items, |
|
|
|
|
'displacement_items' => $displacement_items, |
|
|
|
|
'year_items' => $year_items, |
|
|
|
|
'model_items' => $model_items |
|
|
|
|
]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|