-
容器 {{ container.id }}:
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
{{
+ container.capacityTotal - container.capacityUsed
+ }}
+
+
+ {{ container.capacityTotal - container.capacityUsed }}/ {{ container.capacityTotal }}
+
+
@@ -18,9 +45,15 @@
import { useSettingStore } from "@/stores/setting";
import { updateContainer, type Container } from "@/services/sysConfig/sysConfig";
import { showToast } from "vant";
-
+import { computed } from "vue";
+import type { Liquid } from "@/services/liquid/liquidManage";
const settingStore = useSettingStore();
+const liquidList = computed(() => {
+ const dummy: Liquid = { id: 0, name: "空" };
+ return [dummy, ...(settingStore.liquidList || [])];
+});
+
function onChange(value: number, container: Container) {
updateContainer(container.id, value).then(res => {
if (res.success) {
@@ -29,4 +62,14 @@ function onChange(value: number, container: Container) {
}
});
}
+function liquidOptionDisabled(liquidId: number) {
+ return !!settingStore.heatContainers.find(h => h.solutionId !== 0 && h.solutionId === liquidId);
+}
+
diff --git a/src/views/debug/debug.vue b/src/views/debug/debug.vue
index 5f640a8..fd884c6 100644
--- a/src/views/debug/debug.vue
+++ b/src/views/debug/debug.vue
@@ -88,7 +88,7 @@
{{
- (statusStore.status?.heater || []).map(h => h.temperature).join(",")
+ (statusStore.status?.heatArea || []).map(h => h.temperature).join(",")
}}
diff --git a/src/views/graphite/components/CraftList.vue b/src/views/graphite/components/CraftList.vue
index 8dd677a..5792db1 100644
--- a/src/views/graphite/components/CraftList.vue
+++ b/src/views/graphite/components/CraftList.vue
@@ -1,7 +1,7 @@