1
0
Fork 0

调整文件名称后报错

develop
vine_liutk 2023-05-08 18:32:37 +08:00
parent 4c3904f38f
commit 08202b451f
3 changed files with 17 additions and 14 deletions

View File

@ -178,18 +178,18 @@ class CustomRegionController extends AdminController
'tab'=>\amisMake()->Service()->schemaApi(admin_url('crop-plant-detail?id=${id}')),//传id 'tab'=>\amisMake()->Service()->schemaApi(admin_url('crop-plant-detail?id=${id}')),//传id
'unmountOnExit' => true//每次切换tab都要销毁 'unmountOnExit' => true//每次切换tab都要销毁
], ],
[ // [
'title' => '报警记录', // 'title' => '报警记录',
'value' => 'warning', // 'value' => 'warning',
// 'tab'=>\amisMake()->Service()->schemaApi(admin_url('custom-region-detail?id='.$region['id'])), // // 'tab'=>\amisMake()->Service()->schemaApi(admin_url('custom-region-detail?id='.$region['id'])),
'unmountOnExit' => true//每次切换tab都要销毁 // 'unmountOnExit' => true//每次切换tab都要销毁
], // ],
[ // [
'title' => '虫情记录', // 'title' => '虫情记录',
'value' => 'warning', // 'value' => 'warning',
// 'tab'=>\amisMake()->Service()->schemaApi(admin_url('custom-region-detail?id='.$region['id'])), // // 'tab'=>\amisMake()->Service()->schemaApi(admin_url('custom-region-detail?id='.$region['id'])),
'unmountOnExit' => true//每次切换tab都要销毁 // 'unmountOnExit' => true//每次切换tab都要销毁
], // ],
]) ])
]) ])
]) ])

View File

@ -3,6 +3,7 @@
namespace App\Services\Admin; namespace App\Services\Admin;
use App\Models\PlantHarvestLog; use App\Models\PlantHarvestLog;
use App\Filters\Admin\PlantHarvestLogFilter;
/** /**
* @method PlantHarvestLog getModel() * @method PlantHarvestLog getModel()
@ -11,4 +12,6 @@ use App\Models\PlantHarvestLog;
class CropHarvestService extends BaseService class CropHarvestService extends BaseService
{ {
protected string $modelName = PlantHarvestLog::class; protected string $modelName = PlantHarvestLog::class;
protected string $modelFilterName = PlantHarvestLogFilter::class;
} }

View File

@ -3,7 +3,7 @@
namespace App\Services\Admin; namespace App\Services\Admin;
use App\Models\RegionPlantLog; use App\Models\RegionPlantLog;
use App\Filters\Admin\RegionPlantFilter; use App\Filters\Admin\RegionPlantLogFilter;
/** /**
* @method RegionPlantLog getModel() * @method RegionPlantLog getModel()
@ -13,6 +13,6 @@ class CropPlantService extends BaseService
{ {
protected string $modelName = RegionPlantLog::class; protected string $modelName = RegionPlantLog::class;
protected string $modelFilterName = RegionPlantFilter::class; protected string $modelFilterName = RegionPlantLogFilter::class;
} }