-
電表
+ {{$t("setting.electricity_meter")}}
- 3D 模型顯示 : 3D 模型顯示 :
+
首頁2D圖上傳 :
+
+ {{ $t("button.submit") }}
+
diff --git a/src/views/system/System.vue b/src/views/system/System.vue
index 71e3fa6..6a1d24c 100644
--- a/src/views/system/System.vue
+++ b/src/views/system/System.vue
@@ -16,6 +16,7 @@ import SystemFloor from "./SystemFloor.vue";
import { twMerge } from "tailwind-merge";
import dayjs from "dayjs";
+const FILE_BASEURL = import.meta.env.VITE_FILE_API_BASEURL;
const buildingStore = useBuildingStore();
const statusList = computed(() => {
@@ -41,7 +42,7 @@ const floors = ref([]);
const deptData = ref([]);
const companyOptions = ref([]);
const selected_dbid = ref([]);
-const showForgeArea = ref(true); // 控制2D/3D切換與內容顯示
+const imgBaseUrl = ref('');
const getFloors = async () => {
const res = await getAssetFloorList();
@@ -129,6 +130,7 @@ watch(
(newBuilding) => {
if (Boolean(newBuilding)) {
getData();
+ imgBaseUrl.value = `${FILE_BASEURL}/upload/setting/previewImage/${newBuilding.building_guid}${buildingStore.previewImageExt}`;
}
},
{
@@ -327,7 +329,7 @@ onBeforeUnmount(() => {