From 6112bfbf4a069bb88a610f5c7fc124e53e9c1c4c Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Fri, 31 May 2024 13:24:57 +0800 Subject: [PATCH] 1 --- resources/views/admin/home.blade.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/views/admin/home.blade.php b/resources/views/admin/home.blade.php index a8141e8..1669938 100644 --- a/resources/views/admin/home.blade.php +++ b/resources/views/admin/home.blade.php @@ -517,6 +517,12 @@ }) } function hospitalSelectListner () { + if (window.location.search) { + var project_id = window.location.search.split("=") + if (project_id[1]) { + $("[name=hospital-select] option[value="+project_id[1]+"]").prop("selected",true) + } + } $("[name=hospital-select]").change(function () { var url = window.location.origin + window.location.pathname;