dbms_init...1

This commit is contained in:
최준흠 2025-05-23 18:57:08 +09:00
parent 3f63a5e636
commit ab87b46381
5 changed files with 20 additions and 9 deletions

View File

@ -65,7 +65,7 @@ class ServerController extends EquipmentController
protected function index_process(): array
{
$fields = [
'fields' => ['code', 'type', 'model', 'CPU', 'RAM', 'DISK', 'status'],
'fields' => ['code', 'type', 'model', 'CPU', 'RAM', 'DISK', "raid", 'status'],
];
$this->init('index', $fields);
// $this->modal_type = 'modal_fetch_v2'; //기본은 modal_iframe임

View File

@ -4,9 +4,9 @@
"settings": {
"width": 4000,
"height": 4000,
"scrollTop": -1560.1004,
"scrollLeft": -1690.2815,
"zoomLevel": 1,
"scrollTop": -1710.2928,
"scrollLeft": -1510.0458,
"zoomLevel": 0.31,
"show": 511,
"database": 4,
"databaseName": "",
@ -7462,8 +7462,8 @@
"name": "raid",
"comment": "",
"dataType": "VARCHAR(10)",
"default": "",
"options": 0,
"default": "'default'",
"options": 8,
"ui": {
"keys": 0,
"widthName": 60,
@ -7472,7 +7472,7 @@
"widthDefault": 60
},
"meta": {
"updateAt": 1747993559888,
"updateAt": 1747993949848,
"createAt": 1747993531109
}
}

View File

@ -6,6 +6,7 @@ return [
'type' => "종류",
'model' => "모델",
'price' => "금액",
'raid' => "RAID",
'description' => "설명",
'status' => "상태",
'updated_at' => "수정일",
@ -35,6 +36,13 @@ return [
"12,13,14세대 PC" => "12,13,14세대 PC",
"12,13,14세대 MiniPC" => "12,13,14세대 MiniPC",
],
"RAID" => [
'default' => "없음",
"RAID0" => "RAID0",
"RAID1" => "RAID1",
"RAID5" => "RAID5",
"RAID6" => "RAID6",
],
"STATUS" => [
'default' => "사용가능",
"pause" => "일시정지",

View File

@ -16,6 +16,7 @@ class ServerModel extends EquipmentModel
"code",
"type",
"model",
"raid",
"description",
"status",
"updated_at"
@ -33,6 +34,7 @@ class ServerModel extends EquipmentModel
case "code":
case "model":
case "type":
case "raid":
$rule = "required|trim|string";
break;
default:

View File

@ -29,17 +29,18 @@ class ServerService extends EquipmentService
"code",
"type",
"model",
"raid",
"status",
"description",
];
}
public function getFilterFields(): array
{
return ["type", 'model', 'status'];
return ["type", 'model', "raid", 'status'];
}
public function getBatchJobFields(): array
{
return ["type", 'model', 'status'];
return ["type", 'model', "raid", 'status'];
}
//서비스에서 사용중인 서버를 occupied로 변경
public function setOccupied(ServerEntity $entity): ServerEntity