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 @@ + + + + +