refactor department
This commit is contained in:
@@ -101,7 +101,7 @@ class DepartmentController extends Controller {
|
||||
"form" => $this->renderPartial("form", [
|
||||
"model" => $model,
|
||||
"url" => Url::to(["update", "id" => $id]),
|
||||
"departmentArray" => Department::departmentArray()
|
||||
"departmentArray" => Department::departmentArrayWithOut($id)
|
||||
])
|
||||
];
|
||||
}
|
||||
@@ -250,7 +250,7 @@ class DepartmentController extends Controller {
|
||||
'http' => [
|
||||
'header' => "Content-Type: application/json",
|
||||
'method' => "POST",
|
||||
'content' => json_encode(["DeviceIP" => "192.168.1.201"])
|
||||
'content' => json_encode(["DeviceIP" => "192.168.1.200"])
|
||||
]
|
||||
]));
|
||||
return var_dump($test);
|
||||
|
||||
Reference in New Issue
Block a user