Parcourir la source

[feat]彩虹图页面合并

byq il y a 2 semaines
Parent
commit
adc8811d3d

+ 4 - 1
src/views/xjc-integratedmachine/wakeup/rainbow/FollowRingChart.vue

@@ -44,7 +44,7 @@
 
             series: [{
                 type: 'pie',
-                radius: ['80%', '85%'],
+                radius: [radiusMax,radiusMin],
                 startAngle: 180,
                 endAngle: 360,
                 avoidLabelOverlap: false,
@@ -134,6 +134,7 @@
         const deltaY = y - centerY
         const angle = Math.atan2(deltaY, deltaX) * 180 / Math.PI
         return (angle + 450) % 360 // 调整为0-360度
+
     }
 
     onMounted(() => {
@@ -156,6 +157,8 @@
     const height = props.chartProps.height
     const left = props.chartProps.left
     const top = props.chartProps.top
+    const radiusMax = props.chartProps.radiusMax
+    const radiusMin = props.chartProps.radiusMin
     const center_x = left + width / 2
     const center_y = top + height / 2
 

+ 5 - 5
src/views/xjc-integratedmachine/wakeup/rainbow/index.vue

@@ -36,8 +36,8 @@ const chartPrpps1 = ref({
   borderColor : "#998877",
   color :"#ff00ff",
   bncolor : "#ffffff",
-  radiusMax : '85%',
-  radiusMin : '80%',
+  radiusMax : '100%',
+  radiusMin : '97%',
   isFinish : false
 })
 const position = reactive({ x: 10, y: 10 });
@@ -83,9 +83,9 @@ onMounted(() => {
 </script>
 
 <style scoped lang="scss">
-body,html{
-  overflow: hidden;
-}
+//body,html{
+//  overflow: hidden;
+//}
 p{
   margin: 0;
   padding: 0;