From 7a793f9f86f32284bc62df7510458d417f360778 Mon Sep 17 00:00:00 2001 From: hzz Date: Tue, 16 May 2023 14:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E6=A2=B0=E5=88=86=E5=8E=82=E8=BD=A6?= =?UTF-8?q?=E9=97=B4=E7=8E=AF=E5=A2=83=E9=A1=B5=E9=9D=A2=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PaintShopView/components/verticalNum.vue | 399 +++++++++--------- 1 file changed, 202 insertions(+), 197 deletions(-) diff --git a/src/views/PaintShopView/components/verticalNum.vue b/src/views/PaintShopView/components/verticalNum.vue index 7f98493..a726480 100644 --- a/src/views/PaintShopView/components/verticalNum.vue +++ b/src/views/PaintShopView/components/verticalNum.vue @@ -8,128 +8,132 @@ * 版权信息 : 2023 by ${再登软件}, All Rights Reserved. --> - - - - - - let refborder3 = ref(); - let numBox1 = ref(); - const classBox1 = ref() - let timer: any = null; - onMounted(() => { - - }); - onUnmounted(() => { - clearInterval(timer); - }) - - const boxSize = reactive({ - height: '', - width: '' - }) - - function setchartWH(width: any, height: any) { - boxSize.height = height + 'px' - boxSize.width = width + 'px' - refborder3.value.resetWH(); - } - - const setData = ( - data?: object[] | null, - iconname?: string, - quota?: number | null, - unit?: string - ) => { - let temp_data = data.map((item: any) => { - return { - name: item.name.split("车间")[1]||item.name, - val: item.val, - }; - }); - value.data = temp_data; - value.iconname = iconname; - value.quota = quota; - value.unit = unit; - keynum.value++; - - clearInterval(timer); - timer = setInterval(() => { - i.value++; - if (i.value >= value.data.length) { - i.value = 0; - } - }, 5000); - }; - - defineExpose({ - setchartWH, - setData, - }); - - - + + 100% {} +} + \ No newline at end of file