소스 검색

fix: 文字修改

Cooklalala 3 주 전
부모
커밋
a3b1ea6155
3개의 변경된 파일31개의 추가작업 그리고 24개의 파일을 삭제
  1. 8 9
      src/components/Customize/slotCake.vue
  2. 1 1
      src/components/bgBox/index.vue
  3. 22 14
      src/views/page3/index.vue

+ 8 - 9
src/components/Customize/slotCake.vue

@@ -84,13 +84,13 @@ export default {
       type: String,
       default: ``,
     },
-    showSlot:{
+    showSlot: {
       type: Boolean,
       default: true,
     },
     data: {
-      type: Object,
-      default: new Object(),
+      type: Array,
+      default: [],
     },
     barHeight: {
       type: String,
@@ -104,14 +104,12 @@ export default {
       type: String,
       default: ``,
     },
-    titleEn: {
-      type: String,
-      default: `Tongren Tobacco Planting Digital Management Platform`,
-    },
   },
   async mounted() {
+    if (this.data.length > 0) {
+      this.chartData = this.data
+    }
     this.getEchart()
-    console.log(this.showSlot,'111111111111')
   },
   watch: {
     data: {
@@ -270,9 +268,10 @@ export default {
 
 .cakeBox {
   width: 460px;
-  height:80%;
+  height: 80%;
   display: flex;
   align-items: center;
+
   .chartsDom {
     margin: 0 30px;
     width: 150px;

+ 1 - 1
src/components/bgBox/index.vue

@@ -43,7 +43,7 @@ export default {
     return {
       tabs: {
         index: this.$props.tabIndex,
-        list: [`商务平台交易统计`, `全县交易统计`, '电商平台分析'],
+        list: [`商务平台交易统计`, `全县交易统计`, '电商评价分析'],
       },
       dateBox: {
         time: ``,

+ 22 - 14
src/views/page3/index.vue

@@ -10,10 +10,10 @@
     />
     <wordClouds
         :barHeight="'312px'"
-        id="平台订单总交易额趋势(月)"
+        id="区域内评价热词分布"
         style="position: absolute; left: 20px; top: 426px"
         class="animated fadeInLeft"
-        title="平台订单总交易额趋势(月)"
+        title="区域内评价热词分布"
     >
     </wordClouds>
     <weatherForecast
@@ -106,18 +106,26 @@ export default {
       },
       max: 100,
       autoVueFnInit: false,
-      statisticsData: {
-        title: `目标完成率`,
-        value: 0,
-        acrossList: [
-          {name: `年移栽数量`, value: undefined},
-          {name: `年移栽面积`, value: undefined},
-        ],
-        verticalList: [
-          {name: `移栽区域数`, value: undefined},
-          {name: `烟农数量`, value: undefined},
-        ],
-      },
+      statisticsData: [
+        {
+          value: 30,
+          name: "好评",
+          color: '#975fe4',
+          amount: 3395,
+        },
+        {
+          value: 40,
+          name: "中评",
+          color: '#45a5ff',
+          amount: 2323
+        },
+        {
+          value: 50,
+          name: "差评",
+          color: '#ff0000',
+          amount: 3322
+        }
+      ],
       yearName: {
         lastName: `去年`,
         thisName: `今年`,