+
{children}
);
diff --git a/ibms_solar/src/page/Energy.jsx b/ibms_solar/src/page/Energy.jsx
index 874fdf7..f407308 100644
--- a/ibms_solar/src/page/Energy.jsx
+++ b/ibms_solar/src/page/Energy.jsx
@@ -5,7 +5,7 @@ import { EnergyTABS } from "@/constant";
import { FaCheckCircle, FaCloudSunRain } from "react-icons/fa";
const Energy = () => {
- const { siteId, setSiteId } = useSite();
+ const { siteId, setSiteId, siteName } = useSite();
const navigate = useNavigate();
const [activeTab, setActiveTab] = useState("realtime");
const tabs = EnergyTABS(siteId);
@@ -26,10 +26,12 @@ const Energy = () => {
上一頁
- {siteId}
+
+ {siteName ? siteName : siteId}
+
-
+
0°C
diff --git a/ibms_solar/src/page/Home.jsx b/ibms_solar/src/page/Home.jsx
index ec15628..60105b0 100644
--- a/ibms_solar/src/page/Home.jsx
+++ b/ibms_solar/src/page/Home.jsx
@@ -5,7 +5,7 @@ import { IframeComponent } from "@/components";
const Home = () => {
const iframeRef = useRef(null);
- const { setSiteId } = useSite();
+ const { setSiteId, setSiteName } = useSite();
const navigate = useNavigate();
// 處理加載後的邏輯
@@ -18,6 +18,10 @@ const Home = () => {
const id = urlParams.get("siteID");
if (id) {
setSiteId(id);
+ const name = urlParams.get("name");
+ if (name) {
+ setSiteName(decodeURIComponent(name));
+ }
navigate("/energy");
} else {
console.log("找不到 siteId 参数");
diff --git a/index.html b/index.html
index 7fb5d27..fffe9ef 100644
--- a/index.html
+++ b/index.html
@@ -2116,7 +2116,11 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
`;
}
});
-
+ strHtml += ``
$("#froLisPage").html(strHtml);
// $("#homeBtn").YTNavbar("init");
diff --git a/solarEnergyItem.html b/solarEnergyItem.html
new file mode 100644
index 0000000..fa40791
--- /dev/null
+++ b/solarEnergyItem.html
@@ -0,0 +1,814 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 6
+
+
+
+
+
+
+
+
\ No newline at end of file