合并分支 'akun' 到 'master'
Akun 查看合并请求 !1335
正在显示
3 个修改的文件
包含
20 行增加
和
0 行删除
| @@ -20,6 +20,7 @@ use App\Models\Devops\ServerConfig; | @@ -20,6 +20,7 @@ use App\Models\Devops\ServerConfig; | ||
| 20 | use App\Models\Domain\DomainInfo; | 20 | use App\Models\Domain\DomainInfo; |
| 21 | use App\Models\Domain\DomainInfo as DomainInfoModel; | 21 | use App\Models\Domain\DomainInfo as DomainInfoModel; |
| 22 | use App\Models\HomeCount\Count; | 22 | use App\Models\HomeCount\Count; |
| 23 | +use App\Models\Industry\ProjectIndustry; | ||
| 23 | use App\Models\Inquiry\InquirySet; | 24 | use App\Models\Inquiry\InquirySet; |
| 24 | use App\Models\Manage\BelongingGroup; | 25 | use App\Models\Manage\BelongingGroup; |
| 25 | use App\Models\Manage\ManageHr; | 26 | use App\Models\Manage\ManageHr; |
| @@ -1130,4 +1131,16 @@ class ProjectController extends BaseController | @@ -1130,4 +1131,16 @@ class ProjectController extends BaseController | ||
| 1130 | } | 1131 | } |
| 1131 | $this->response('success'); | 1132 | $this->response('success'); |
| 1132 | } | 1133 | } |
| 1134 | + | ||
| 1135 | + /** | ||
| 1136 | + * 获取项目所有行业列表 | ||
| 1137 | + * @author Akun | ||
| 1138 | + * @date 2025/03/05 11:40 | ||
| 1139 | + */ | ||
| 1140 | + public function industryList() | ||
| 1141 | + { | ||
| 1142 | + $model = new ProjectIndustry(); | ||
| 1143 | + $lists = $model->list(['status' => 1], 'id', ['id', 'industry_name'], 'asc'); | ||
| 1144 | + $this->response('success', Code::SUCCESS, $lists); | ||
| 1145 | + } | ||
| 1133 | } | 1146 | } |
| @@ -21,6 +21,7 @@ use App\Models\Com\UpdateLog; | @@ -21,6 +21,7 @@ use App\Models\Com\UpdateLog; | ||
| 21 | use App\Models\Devops\Servers; | 21 | use App\Models\Devops\Servers; |
| 22 | use App\Models\Devops\ServersIp; | 22 | use App\Models\Devops\ServersIp; |
| 23 | use App\Models\Domain\DomainInfo; | 23 | use App\Models\Domain\DomainInfo; |
| 24 | +use App\Models\Industry\ProjectIndustryRelated; | ||
| 24 | use App\Models\Inquiry\InquiryIP; | 25 | use App\Models\Inquiry\InquiryIP; |
| 25 | use App\Models\Inquiry\InquirySet; | 26 | use App\Models\Inquiry\InquirySet; |
| 26 | use App\Models\Manage\Manage; | 27 | use App\Models\Manage\Manage; |
| @@ -109,6 +110,8 @@ class ProjectLogic extends BaseLogic | @@ -109,6 +110,8 @@ class ProjectLogic extends BaseLogic | ||
| 109 | $info['minor_languages'] = $this->getProjectMinorLanguages($id); | 110 | $info['minor_languages'] = $this->getProjectMinorLanguages($id); |
| 110 | //升级项目采集完成时间 | 111 | //升级项目采集完成时间 |
| 111 | $info['collect_time'] = $info['is_upgrade'] ? UpdateLog::getProjectUpdate($id) : ''; | 112 | $info['collect_time'] = $info['is_upgrade'] ? UpdateLog::getProjectUpdate($id) : ''; |
| 113 | + //获取项目所属行业 | ||
| 114 | + $info['industry'] = ProjectIndustryRelated::where('project_id', $id)->pluck('industry_id')->toArray(); | ||
| 112 | 115 | ||
| 113 | return $this->success($info); | 116 | return $this->success($info); |
| 114 | } | 117 | } |
| @@ -528,6 +528,10 @@ Route::middleware(['aloginauth'])->group(function () { | @@ -528,6 +528,10 @@ Route::middleware(['aloginauth'])->group(function () { | ||
| 528 | Route::any('/', [Aside\Project\AllProjectController::class, 'lists'])->name('admin.all_project_lists'); | 528 | Route::any('/', [Aside\Project\AllProjectController::class, 'lists'])->name('admin.all_project_lists'); |
| 529 | }); | 529 | }); |
| 530 | 530 | ||
| 531 | + //项目行业相关 | ||
| 532 | + Route::prefix('industry')->group(function () { | ||
| 533 | + Route::any('/', [Aside\Project\ProjectController::class, 'industryList'])->name('admin.industryList'); | ||
| 534 | + }); | ||
| 531 | }); | 535 | }); |
| 532 | 536 | ||
| 533 | //无需登录验证的路由组 | 537 | //无需登录验证的路由组 |
-
请 注册 或 登录 后发表评论