From e319ce87a54021c01c30c13dbfcf70a7a8e2434d Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Fri, 3 Jan 2025 19:46:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=9D=E6=AD=A5=E6=BB=91?= =?UTF-8?q?=E5=9D=97=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Index/Regular/Consumables.vue | 13 ++ .../Index/components/Consumables/DragAreaEx.vue | 141 +++++++++++++++++++++ .../Index/components/Consumables/SliderArea.vue | 113 +++++++++++++++++ .../Index/components/Consumables/SliderAreaEx.vue | 121 ++++++++++++++++++ 4 files changed, 388 insertions(+) create mode 100644 src/pages/Index/components/Consumables/DragAreaEx.vue create mode 100644 src/pages/Index/components/Consumables/SliderArea.vue create mode 100644 src/pages/Index/components/Consumables/SliderAreaEx.vue diff --git a/src/pages/Index/Regular/Consumables.vue b/src/pages/Index/Regular/Consumables.vue index cd38f3c..d8914bc 100644 --- a/src/pages/Index/Regular/Consumables.vue +++ b/src/pages/Index/Regular/Consumables.vue @@ -49,6 +49,9 @@
+ +
import { MoveLiquidArea, SpttingPlates, MainComponent } from '../components' +import SliderAreaEx from '../components/Consumables/SliderAreaEx.vue'; +import DragAreaEx from '../components/Consumables/DragAreaEx.vue'; import { ref, onMounted, onActivated, onBeforeUnmount, watch } from 'vue' import { getInitState, @@ -114,6 +119,14 @@ import { ElMessage } from 'element-plus' const { wsUrl } = getServerInfo('/api/v1/app/ws/state') const socket = createWebSocket(wsUrl) +const sliderValue = ref(25); // 初始值 +const totalVal = ref(50) + +const hVal = ref(10) +const hTotal = ref(60) +const vVal = ref(10) +const vTotal = ref(60) + const consumableStore = useConsumablesStore() const emergencyStore = useEmergencyStore() const deviceStore = useDeviceStore() diff --git a/src/pages/Index/components/Consumables/DragAreaEx.vue b/src/pages/Index/components/Consumables/DragAreaEx.vue new file mode 100644 index 0000000..df93773 --- /dev/null +++ b/src/pages/Index/components/Consumables/DragAreaEx.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/src/pages/Index/components/Consumables/SliderArea.vue b/src/pages/Index/components/Consumables/SliderArea.vue new file mode 100644 index 0000000..ff28fc6 --- /dev/null +++ b/src/pages/Index/components/Consumables/SliderArea.vue @@ -0,0 +1,113 @@ + + + + + diff --git a/src/pages/Index/components/Consumables/SliderAreaEx.vue b/src/pages/Index/components/Consumables/SliderAreaEx.vue new file mode 100644 index 0000000..d7ea32e --- /dev/null +++ b/src/pages/Index/components/Consumables/SliderAreaEx.vue @@ -0,0 +1,121 @@ + + + + +