pyt
2025-03-24 feb57f3e36df96eb6b8da834561eecf3ac9b05e6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<template>
  <div class="right-panel">
    <!-- 右侧第一块 -->
    <div class="panel-item top-panel-item">
      <div class="box-title">本月进度值比</div>
      <div class="circle-progress">
        <!-- <v-chart class="chart" :option="circleOption" autoresize /> -->
      </div>
    </div>
 
    <!-- 右侧第二块 -->
    <div class="panel-item middle-panel-item">
      <div class="box-title">各季度进度值统计</div>
      <div class="bar-chart">
        <!-- <v-chart class="chart" :option="barOption" autoresize /> -->
      </div>
    </div>
 
    <!-- 右侧第三块 -->
    <div class="panel-item bottom-panel-item">
      <div class="box-title">安置房类型分布</div>
      <div class="pie-chart">
        <!-- <v-chart class="chart" :option="typeDistOption" autoresize /> -->
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  name: 'RightPanel',
  data() {
    return {
      circleOption: {
        series: [{
          type: 'pie',
          radius: ['75%', '80%'],
          label: {
            show: false
          },
          data: [
            { 
              value: 78.8, 
              name: '完成率',
              itemStyle: {
                color: '#00ffff'
              }
            },
            { 
              value: 21.2, 
              name: '剩余',
              itemStyle: {
                color: 'rgba(0,255,255,0.2)'
              }
            }
          ]
        }]
      },
      barOption: {
        tooltip: {
          trigger: 'axis'
        },
        xAxis: {
          type: 'category',
          data: ['2023年4月', '2023年5月', '2023年7月', '2023年10月'],
          axisLine: {
            lineStyle: {
              color: '#7cb9e8'
            }
          },
          axisLabel: {
            color: '#7cb9e8'
          }
        },
        yAxis: {
          type: 'value',
          axisLine: {
            lineStyle: {
              color: '#7cb9e8'
            }
          },
          axisLabel: {
            color: '#7cb9e8'
          },
          splitLine: {
            lineStyle: {
              color: 'rgba(124,185,232,0.1)'
            }
          }
        },
        series: [{
          data: [120, 200, 150, 80],
          type: 'bar',
          itemStyle: {
            color: '#00ffff'
          }
        }]
      },
      typeDistOption: {
        tooltip: {
          trigger: 'item'
        },
        series: [{
          type: 'pie',
          radius: ['65%', '80%'],
          label: {
            show: false
          },
          data: [
            { value: 40, name: '商品房' },
            { value: 30, name: '安置房' },
            { value: 30, name: '其他' }
          ],
          itemStyle: {
            color: function(params) {
              const colorList = ['#00ffff', '#7cb9e8', 'rgba(0,255,255,0.5)'];
              return colorList[params.dataIndex];
            }
          }
        }]
      }
    };
  }
};
</script>
 
<style lang="less" scoped>
.right-panel {
  position: absolute;
  top: 111px;
  right: 20px;
  width: 440px;
  bottom: 20px;
 
  .panel-item {
    border-radius: 10px;
  }
 
  .top-panel-item {
    height: 268px;
    background: url('@/assets/right-top-bg.png') no-repeat center center;
    background-size: 100% 100%;
  }
 
  .middle-panel-item {
    margin-top: 21px;
    height: 303px;
    background: url('@/assets/right-middle-bg.png') no-repeat center center;
    background-size: 100% 100%;
  }
 
  .bottom-panel-item {
    margin-top: 21px;
    height: 335px;
    background: url('@/assets/right-bottom-bg.png') no-repeat center center;
    background-size: 100% 100%;
  }
 
  .box-title {
    font-size: 14px;
    color: #19ECFF;
    text-align: center;
    padding-top: 9px;
    line-height: 21px;
  }
 
  .chart {
    width: 100%;
    height: calc(100% - 35px);
  }
}
</style>