瀏覽代碼

bug修复

zhangzhang 3 月之前
父節點
當前提交
edf22123f1

+ 19 - 2
src/components/echarts/StackedLine.vue

@@ -70,12 +70,29 @@ export default {
           {
             indicator: _this.indicator,
             center: ["50%", "55%"],
-            radius: "30%",
+            radius: "50%",
             axisName: {
               color: "#fff",
               backgroundColor: "#666",
               borderRadius: 3,
-              padding: [3, 5]
+              padding: [3, 5],
+              formatter: function(value) {
+                // 将文本拆分成数组,每5个字一组
+                let words = value.split("");
+                let lines = [];
+                let currentLine = "";
+                for (let i = 0; i < words.length; i++) {
+                  currentLine += words[i];
+                  if (currentLine.length === 5) {
+                    lines.push(currentLine);
+                    currentLine = "";
+                  }
+                }
+                if (currentLine.length > 0) {
+                  lines.push(currentLine);
+                }
+                return lines.join("\n");
+              }
             }
           }
         ],

+ 1 - 1
src/views/cognitiveTask/spatialOrientationAbilityNew/index.vue

@@ -68,7 +68,7 @@
                   <van-button
                     :disabled="isSubmit"
                     round
-                    type="primary"
+                    type="info"
                     @click="submitAngle()"
                     >确定
                   </van-button>