refactor department

This commit is contained in:
2020-10-09 13:55:53 +07:00
parent 31675d0a28
commit 5538d74b1b
7 changed files with 73 additions and 34 deletions

View File

@@ -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);