|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <template>
- <view class="dailyDetail">
- <view class="title">
- <view class="text">
- <text class="h1">01月27日接待指标概览数据报告</text>
- <text class="h4">生成时间:2022-01-27 01:22</text>
- </view>
- </view>
-
- <view class="donutChart">
- <qiun-data-charts
- :key="000"
- type="ring"
- :chartData="chartData"
- :canvas2d="true"
- :canvasId='wangxiaohuahahahahaha000'
- :opts='opts'
- background="#FFFFFF"/>
- </view>
- </view>
- </template>
-
- <script>
- export default {
- data() {
- return {
- chartData: {
- series: [{
- data: [{
- "name": "明显下跌",
- "value": 9
- },
- {
- "name": "明显上涨",
- "value": 8
- },
- {
- "name": "稳定",
- "value": 8
- }
- ]
- }
-
- ],
- },
- opts:{
- "legend":{
- "show": false,
- },
- "title": {
- "name": "总共",
- "fontSize": 18,
- "color": "#666666"
- },
- "subtitle":{
- "name": "9个",
- "fontSize": 14,
- },
- "extra": {
- "title": {
- "name": "总共",
- },
- "ring": {
- "ringWidth":50,
- "centerColor": "#FFFFFF",
- "activeOpacity": 0.5,
- "activeRadius": 10,
- "offsetAngle": 0,
- "customRadius": 0,
- "labelWidth": 12,
- "border": false,
- "borderWidth": 3,
- "borderColor": "#FFFFFF",
- "linearType": "none",
- },
- }
- }
- }
- },
- methods: {
-
- }
- }
- </script>
-
- <style lang="scss">
- .dailyDetail {
- background: #F3F3F3;
- // position: relative;
-
- .title {
- // position: fixed;
- top: 0;
- padding: 26rpx 0 0;
- width: 100%;
- height: 300rpx;
- background-color: #008EF2;
-
- text {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- color: #FFFFFF;
- }
-
- .h1 {
- font-size: 40rpx;
- font-weight: bold;
- }
-
- .h4 {
- font-size: 30rpx;
- font-weight: bold;
- }
- }
-
- .donutChart {
- width: 100%;
- }
- }
- </style>
|