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