更新 'app/Http/Controllers/ChartController.php'
parent
4389a710b9
commit
567ce7a3e8
|
|
@ -87,7 +87,7 @@ class ChartController extends Controller
|
||||||
$riceShrimpIndustry = $riceShrimpIndustries[$key] ?? null;
|
$riceShrimpIndustry = $riceShrimpIndustries[$key] ?? null;
|
||||||
|
|
||||||
if ($riceShrimpIndustry) {
|
if ($riceShrimpIndustry) {
|
||||||
$areas[] = $riceShrimpIndustry->area;
|
$areas[] = bcdiv($riceShrimpIndustry->area, 1000, 2);
|
||||||
$productOutputs[] = bcdiv($riceShrimpIndustry->product_output, 2000, 2);
|
$productOutputs[] = bcdiv($riceShrimpIndustry->product_output, 2000, 2);
|
||||||
$productValues[] = bcdiv($riceShrimpIndustry->product_value, 10000, 2);;
|
$productValues[] = bcdiv($riceShrimpIndustry->product_value, 10000, 2);;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -105,7 +105,7 @@ class ChartController extends Controller
|
||||||
'data' => $productValues,
|
'data' => $productValues,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'name' => '面积(亩)',
|
'name' => '面积(千亩)',
|
||||||
'data' => $areas,
|
'data' => $areas,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue