소스 검색

bug修复

zhangzhang 6 달 전
부모
커밋
edf22123f1
2개의 변경된 파일20개의 추가작업 그리고 3개의 파일을 삭제
  1. 19 2
      src/components/echarts/StackedLine.vue
  2. 1 1
      src/views/cognitiveTask/spatialOrientationAbilityNew/index.vue

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

@@ -70,12 +70,29 @@ export default {
           {
           {
             indicator: _this.indicator,
             indicator: _this.indicator,
             center: ["50%", "55%"],
             center: ["50%", "55%"],
-            radius: "30%",
+            radius: "50%",
             axisName: {
             axisName: {
               color: "#fff",
               color: "#fff",
               backgroundColor: "#666",
               backgroundColor: "#666",
               borderRadius: 3,
               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
                   <van-button
                     :disabled="isSubmit"
                     :disabled="isSubmit"
                     round
                     round
-                    type="primary"
+                    type="info"
                     @click="submitAngle()"
                     @click="submitAngle()"
                     >确定
                     >确定
                   </van-button>
                   </van-button>