hejianhao
2025-03-24 7742bdaeedcbaf5f1cf7c5b488019b6023894f81
Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/H5/chongzhou-screen
5个文件已修改
2个文件已添加
1184 ■■■■■ 已修改文件
package-lock.json 84 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/bg.png 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/unbg.png 补丁 | 查看 | 原始文档 | blame | 历史
src/components/datascreen/CenterPanel.vue 218 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/datascreen/RightPanel.vue 880 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package-lock.json
@@ -1878,6 +1878,49 @@
        "webpack-merge": "^5.7.3",
        "webpack-virtual-modules": "^0.4.2",
        "whatwg-fetch": "^3.6.2"
      },
      "dependencies": {
        "@vue/vue-loader-v15": {
          "version": "npm:vue-loader@15.11.1",
          "resolved": "https://mirrors.cloud.tencent.com/npm/vue-loader/-/vue-loader-15.11.1.tgz",
          "integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
          "dev": true,
          "requires": {
            "@vue/component-compiler-utils": "^3.1.0",
            "hash-sum": "^1.0.2",
            "loader-utils": "^1.1.0",
            "vue-hot-reload-api": "^2.3.0",
            "vue-style-loader": "^4.1.0"
          },
          "dependencies": {
            "hash-sum": {
              "version": "1.0.2",
              "resolved": "https://mirrors.cloud.tencent.com/npm/hash-sum/-/hash-sum-1.0.2.tgz",
              "integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
              "dev": true
            }
          }
        },
        "json5": {
          "version": "1.0.2",
          "resolved": "https://mirrors.cloud.tencent.com/npm/json5/-/json5-1.0.2.tgz",
          "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
          "dev": true,
          "requires": {
            "minimist": "^1.2.0"
          }
        },
        "loader-utils": {
          "version": "1.4.2",
          "resolved": "https://mirrors.cloud.tencent.com/npm/loader-utils/-/loader-utils-1.4.2.tgz",
          "integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==",
          "dev": true,
          "requires": {
            "big.js": "^5.2.2",
            "emojis-list": "^3.0.0",
            "json5": "^1.0.1"
          }
        }
      }
    },
    "@vue/cli-shared-utils": {
@@ -2035,47 +2078,6 @@
      "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.13.tgz",
      "integrity": "sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==",
      "dev": true
    },
    "@vue/vue-loader-v15": {
      "version": "npm:vue-loader@15.11.1",
      "resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-15.11.1.tgz",
      "integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
      "dev": true,
      "requires": {
        "@vue/component-compiler-utils": "^3.1.0",
        "hash-sum": "^1.0.2",
        "loader-utils": "^1.1.0",
        "vue-hot-reload-api": "^2.3.0",
        "vue-style-loader": "^4.1.0"
      },
      "dependencies": {
        "hash-sum": {
          "version": "1.0.2",
          "resolved": "https://registry.npmmirror.com/hash-sum/-/hash-sum-1.0.2.tgz",
          "integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
          "dev": true
        },
        "json5": {
          "version": "1.0.2",
          "resolved": "https://registry.npmmirror.com/json5/-/json5-1.0.2.tgz",
          "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
          "dev": true,
          "requires": {
            "minimist": "^1.2.0"
          }
        },
        "loader-utils": {
          "version": "1.4.2",
          "resolved": "https://registry.npmmirror.com/loader-utils/-/loader-utils-1.4.2.tgz",
          "integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==",
          "dev": true,
          "requires": {
            "big.js": "^5.2.2",
            "emojis-list": "^3.0.0",
            "json5": "^1.0.1"
          }
        }
      }
    },
    "@vue/web-component-wrapper": {
      "version": "1.3.0",
package.json
@@ -11,6 +11,7 @@
    "axios": "^1.8.4",
    "core-js": "^3.8.3",
    "echarts": "^5.6.0",
    "echarts-gl": "^2.0.9",
    "register-service-worker": "^1.7.2",
    "vue": "^2.6.14",
    "vue-echarts": "^7.0.3",
src/assets/bg.png
src/assets/unbg.png
src/components/datascreen/CenterPanel.vue
@@ -15,14 +15,16 @@
          <img src="@/assets/center-top-right.png" alt="">
          <div>
            <div class="label">本月应补偿总额(万元)</div>
            <div class="value">{{ data.monthCompensationAmount }} <span>环比</span><span class="value-change value-change-down">{{ data.monthCompensationAmountRate }}</span></div>
            <div class="value">{{ data.monthCompensationAmount }} <span>环比</span><span
                class="value-change value-change-down">{{ data.monthCompensationAmountRate }}</span></div>
          </div>
        </div>
        <div class="data-item">
          <img src="@/assets/center-top-right.png" alt="">
          <div>
            <div class="label">下月应补偿总额(万元)</div>
            <div class="value">{{ data.nextMonthCompensationAmount }} <span>环比</span><span class="value-change value-change-up">{{ data.nextMonthCompensationAmountRate }}</span></div>
            <div class="value">{{ data.nextMonthCompensationAmount }} <span>环比</span><span
                class="value-change value-change-up">{{ data.nextMonthCompensationAmountRate }}</span></div>
          </div>
        </div>
      </div>
@@ -35,7 +37,29 @@
    <!-- 中间下部数据 -->
    <div class="center-bottom panel-item">
      <div class="compensation-table">
        <div class="table-header">
          <div class="batch-number txt-center">安置批次</div>
          <div class="household-count txt-center">安置户数</div>
          <div class="people-count txt-center">安置人数</div>
          <div class="progress-wrapper txt-center">补偿阶段</div>
        </div>
        <div class="table-content">
          <div class="table-row" v-for="(item, index) in compensationList" :key="index">
            <div class="batch-number pl-20">{{ item.batchNumber }}</div>
            <div class="household-count">{{ item.householdCount }}</div>
            <div class="people-count">{{ item.peopleCount }}</div>
            <div class="progress-wrapper">
              <div class="progress-bar">
                <div class="progress-fill">
                  <div class="progress-color" :class="item.point>=25?'progress-yellow':item.point>=50?'progress-green':item.point>=75?'progress-blue':'progress-gray'"></div>
                </div>
              </div>
              <div class="progress-text">{{ item.stage }}/20</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
@@ -59,6 +83,44 @@
        { label: '已受理', value: '2021103000001', percentage: 90 },
        { label: '已审核', value: '2021103000002', percentage: 70 },
        { label: '已完成', value: '2021103000003', percentage: 50 }
      ],
      compensationList: [
        {
          batchNumber: '2021103000001',
          householdCount: '8355',
          peopleCount: '238355',
          progress: 50,
          yellowProgress: 20,
          blueProgress: 30,
          stage: '1'
        },
        {
          batchNumber: '2021103000001',
          householdCount: '8355',
          peopleCount: '238355',
          progress: 60,
          yellowProgress: 25,
          blueProgress: 35,
          stage: '2'
        },
        {
          batchNumber: '2021103000001',
          householdCount: '8355',
          peopleCount: '238355',
          progress: 75,
          yellowProgress: 30,
          blueProgress: 45,
          stage: '2'
        },
        {
          batchNumber: '2021103000001',
          householdCount: '8355',
          peopleCount: '238355',
          progress: 90,
          yellowProgress: 35,
          blueProgress: 55,
          stage: '2'
        }
      ]
    };
  }
@@ -66,6 +128,10 @@
</script>
<style lang="less" scoped>
.pl-20 {
  padding-left: 20px;
}
.center-panel {
  position: absolute;
  left: 481px;
@@ -95,7 +161,152 @@
    height: 245px;
    background: url('@/assets/center-bottom-bg.png') no-repeat center center;
    background-size: 100% 100%;
    padding: 20px;
    .compensation-table {
      height: 100%;
      display: flex;
      flex-direction: column;
      .table-header {
        display: flex;
        align-items: center;
        color: rgba(255, 255, 255, 0.6);
        font-size: 12px;
        // margin-top: 20px;
        margin-bottom: 15px;
        >div {
          margin-right: 40px;
        }
        .batch-number {
          width: 150px;
        }
        .household-count {
          width: 80px;
          text-align: center;
        }
        .people-count {
          width: 100px;
          text-align: center;
        }
        .progress-wrapper {
          flex: 1;
          padding-right: 20px;
          padding-left: 20px;
        }
      }
      .table-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        .table-row {
          display: flex;
          align-items: center;
          color: #fff;
          font-size: 14px;
          padding: 8px 0;
          margin-bottom: 5px;
          box-sizing: border-box;
          >div {
            margin-right: 40px;
          }
          .batch-number {
            width: 150px;
          }
          .household-count {
            width: 80px;
            text-align: center;
          }
          .people-count {
            width: 100px;
            text-align: center;
          }
          .progress-wrapper {
            flex: 1;
            display: flex;
            align-items: center;
            .progress-bar {
              flex: 1;
              height: 10px;
              background: rgba(255, 255, 255, 0.1);
              border-radius: 5px;
              margin-right: 15px;
              overflow: hidden;
              .progress-fill {
                height: 100%;
                display: flex;
                .progress-yellow {
                  height: 100%;
                  background: #FEDB65;
                }
                .progress-blue {
                  height: 100%;
                  background: #00C6FF;
                }
                .progress-green {
                  height: 100%;
                  background: rgba(0, 220, 171, 1);
                }
                .progress-gray {
                  height: 100%;
                  background: rgba(0, 242, 240, 1);
                }
              }
            }
            .progress-text {
              width: 50px;
              text-align: right;
            }
          }
          &:nth-child(2n + 1) {
            background: url('@/assets/bg.png') no-repeat center center;
            border: 2px solid;
            border-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(1, 10, 40, 0), rgba(255, 255, 255, 0.6)) 2 2;
          }
          &:nth-child(2n) {
            background: url('@/assets/unbg.png') no-repeat center center;
            border: 2px solid;
            border-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(1, 10, 40, 0), rgba(255, 255, 255, 0.2)) 2 2;
          }
          &:last-child {
            margin-bottom: 0;
          }
        }
      }
    }
  }
  .txt-center {
    text-align: center;
    font-size: 12px;
    color: #19ECFF;
    line-height: 18px;
  }
  .map-data {
@@ -109,6 +320,7 @@
    .data-item {
      display: flex;
      flex-shrink: 0;
      img {
        width: 94px;
        height: 80px;
src/components/datascreen/RightPanel.vue
@@ -2,22 +2,74 @@
  <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 class="box-title">安置房类型占比</div>
      <div class="house-type-content">
        <div class="cityGreenLand-charts" ref="cityGreenLandCharts"></div>
        <div class="right-content">
          <div class="table-header">
            <div class="header-item">数量</div>
            <div class="header-item">面积</div>
            <div class="header-item">占比</div>
          </div>
          <div class="data-list">
            <div
              class="data-item"
              :class="{ activeItem: item.name === currentType.name }"
              v-for="(item, index) in houseTypeData"
              :key="index"
              @click="changeCurrentType(item)"
            >
              <div class="item-dot" :style="{ background: item.color }"></div>
              <div class="item-name">{{ item.name }}</div>
              <div class="item-value" :style="{ color: item.color }">
                {{ item.value }}
              </div>
              <div class="item-area" :style="{ color: item.color }">
                {{ item.area }}
              </div>
              <div class="item-percent" :style="{ color: item.color }">
                {{ item.percent }}
              </div>
            </div>
          </div>
        </div>
      </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 class="box-title">本月应补偿占比</div>
      <div class="compensation-content">
        <div class="circle-chart">
          <div
            ref="compensationCharts"
            id="compensationCharts"
            style="width: 100%; height: 100%"
          ></div>
          <div class="compensation-list">
            <div class="compensation-center">
              <div class="total-value">{{ (total*1).toFixed(2) }}</div>
              <div class="total-name">总额(万元)</div>
            </div>
            <div class="compensation-item">
              <div
                class="compensation-item-name"
                v-for="item in twoEcharts"
                :key="item.name"
              >
                <div class="item-name">{{ item.value }}%</div>
                <div class="item-value">{{ item.name }}</div>
                <div class="item-dot" :style="{ background: item.color }"></div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 右侧第三块 -->
    <div class="panel-item bottom-panel-item">
      <div class="box-title">各季度应补偿金额</div>
      <div class="box-title">各季度应补偿总额</div>
      <div class="pie-chart">
        <v-chart class="chart" :option="barOption" autoresize />
@@ -27,6 +79,9 @@
</template>
<script>
import * as echarts from "echarts";
import "echarts-gl";
export default {
  name: 'RightPanel',
  props: {
@@ -36,66 +91,97 @@
    }
  },
  data() {
    const houseTypeData = [
      {
        name: "新建商品住房",
        value: 321,
        area: 35344,
        percent: "56.8%",
        color: "#00ffff",
      },
      {
        name: "商业用房",
        value: 321,
        area: 35344,
        percent: "34.5%",
        color: "#34D160",
      },
      {
        name: "停车位",
        value: 321,
        area: 35344,
        percent: "56.8%",
        color: "#F8B551",
      },
      {
        name: "二手住房",
        value: 321,
        area: 35344,
        percent: "56.8%",
        color: "#BF40BF",
      },
    ];
    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)'
              }
            }
          ]
        }]
      },
      houseTypeData,
      currentType: houseTypeData[0],
      total: null,
      barOption: {},
      twoEcharts: [
        {
          name: "首付款",
          value: 78.8,
          color: "#00ffff",
        },
        {
          name: "季度款",
          value: 78.8,
          color: "#34D160",
        },
        {
          name: "过渡补贴",
          value: 78.8,
          color: "#F8B551",
        },
      ],
      typeDistOption: {
        tooltip: {
          trigger: 'item'
          trigger: "item",
        },
        series: [{
          type: 'pie',
          radius: ['65%', '80%'],
        series: [
          {
            type: "pie",
            radius: ["65%", "80%"],
          label: {
            show: false
              show: false,
          },
          data: [
            { value: 40, name: '商品房' },
            { value: 30, name: '安置房' },
            { value: 30, name: '其他' }
              { value: 40, name: "商品房" },
              { value: 30, name: "安置房" },
              { value: 30, name: "其他" },
          ],
          itemStyle: {
            color: function (params) {
              const colorList = ['#00ffff', '#7cb9e8', 'rgba(0,255,255,0.5)'];
                const colorList = ["#00ffff", "#7cb9e8", "rgba(0,255,255,0.5)"];
              return colorList[params.dataIndex];
            }
          }
        }]
      }
              },
            },
          },
        ],
      },
    };
  },
  mounted() {
    // 组件挂载后初始化地图
    this.$nextTick(() => {
      this.init();
      this.initCompensationOption(this.twoEcharts);
      this.initBarChart();
    });
  },
  methods: {
    changeCurrentType(type) {
      this.currentType = type;
    },
    initBarChart() {
      if (!this.data.quarterPayResponses || !this.data.quarterPayResponses[0]) return;
@@ -216,20 +302,379 @@
          }
        ]
      };
    }
  },
  watch: {
    data: {
      handler() {
        this.initBarChart();
    init() {
      const chartDom = this.$refs.cityGreenLandCharts;
      if (!chartDom) return;
      const myChart = echarts.init(chartDom);
      let colors = ["#286DF7ee", "#04F7FDee", "#E23AA9ee", "#FFC852ee"];
      let xData = ["第一产业", "第二产业", "第三产业", "城乡居民生活用电"];
      let yData = [25, 25, 25, 25];
      // 传入数据生成 option
      let optionsData = [];
      for (let i = 0; i < xData.length; i++) {
        optionsData.push({
          name: xData[i],
          value: yData[i],
          itemStyle: {
            color: colors[i],
      },
      deep: true
        });
    }
      const series = this.getPie3D(optionsData, 0.55);
      series.push({
        name: "pie2d",
        type: "pie",
        labelLine: {
          show: false,
          length: 60,
          length2: 60,
        },
        startAngle: -50,
        clockwise: false,
        radius: ["0", "0"],
        center: ["50%", "50%"],
        data: optionsData,
        itemStyle: {
          opacity: 0,
        },
      });
      let option = {
        animation: true,
        labelLine: {
          show: false,
        },
        xAxis3D: {
          min: -1,
          max: 1,
        },
        yAxis3D: {
          min: -1,
          max: 1,
        },
        zAxis3D: {
          min: -1,
          max: 1,
        },
        grid3D: {
          show: false,
          boxHeight: 0.5,
          bottom: "50%",
          viewControl: {
            distance: 280,
            alpha: 30,
            beta: 40,
            zoom: 40,
            rotateSensitivity: 0,
            zoomSensitivity: 0,
            panSensitivity: 0,
            autoRotate: false,
          },
        },
        series: series,
      };
      myChart.setOption(option);
      window.addEventListener("resize", () => {
        myChart.resize();
      });
    },
    getParametricEquation(
      startRatio,
      endRatio,
      isSelected,
      isHovered,
      k,
      height
    ) {
      let midRatio = (startRatio + endRatio) / 2;
      let startRadian = startRatio * Math.PI * 2;
      let endRadian = endRatio * Math.PI * 2;
      let midRadian = midRatio * Math.PI * 2;
      if (startRatio === 0 && endRatio === 1) {
        isSelected = false;
  }
      k = typeof k !== "undefined" ? k : 1 / 3;
      let offsetX = isSelected ? Math.cos(midRadian) * 0.1 : 0;
      let offsetY = isSelected ? Math.sin(midRadian) * 0.1 : 0;
      let hoverRate = isHovered ? 1.05 : 1;
      return {
        u: {
          min: -Math.PI,
          max: Math.PI * 3,
          step: Math.PI / 32,
        },
        v: {
          min: 0,
          max: Math.PI * 2,
          step: Math.PI / 20,
        },
        x: function (u, v) {
          if (u < startRadian) {
            return (
              offsetX +
              Math.cos(startRadian) * (1 + Math.cos(v) * k) * hoverRate
            );
          }
          if (u > endRadian) {
            return (
              offsetX + Math.cos(endRadian) * (1 + Math.cos(v) * k) * hoverRate
            );
          }
          return offsetX + Math.cos(u) * (1 + Math.cos(v) * k) * hoverRate;
        },
        y: function (u, v) {
          if (u < startRadian) {
            return (
              offsetY +
              Math.sin(startRadian) * (1 + Math.cos(v) * k) * hoverRate
            );
          }
          if (u > endRadian) {
            return (
              offsetY + Math.sin(endRadian) * (1 + Math.cos(v) * k) * hoverRate
            );
          }
          return offsetY + Math.sin(u) * (1 + Math.cos(v) * k) * hoverRate;
        },
        z: function (u, v) {
          if (u < -Math.PI * 0.5) {
            return Math.sin(u);
          }
          if (u > Math.PI * 2.5) {
            return Math.sin(u);
          }
          return Math.sin(v) > 0 ? 2 * height : -1;
        },
      };
    },
    getPie3D(pieData, internalDiameterRatio) {
      let series = [];
      let sumValue = 0;
      let startValue = 0;
      let endValue = 0;
      let k =
        typeof internalDiameterRatio !== "undefined"
          ? (1 - internalDiameterRatio) / (1 + internalDiameterRatio)
          : 1 / 3;
      for (let i = 0; i < pieData.length; i++) {
        sumValue += pieData[i].value;
        let seriesItem = {
          name:
            typeof pieData[i].name === "undefined"
              ? `series${i}`
              : pieData[i].name,
          type: "surface",
          parametric: true,
          wireframe: {
            show: false,
          },
          pieData: pieData[i],
          pieStatus: {
            selected: false,
            hovered: false,
            k: k,
          },
        };
        if (typeof pieData[i].itemStyle != "undefined") {
          let itemStyle = {};
          typeof pieData[i].itemStyle.color != "undefined"
            ? (itemStyle.color = pieData[i].itemStyle.color)
            : null;
          typeof pieData[i].itemStyle.opacity != "undefined"
            ? (itemStyle.opacity = pieData[i].itemStyle.opacity)
            : null;
          seriesItem.itemStyle = itemStyle;
        }
        series.push(seriesItem);
      }
      for (let i = 0; i < series.length; i++) {
        endValue = startValue + series[i].pieData.value;
        series[i].pieData.startRatio = startValue / sumValue;
        series[i].pieData.endRatio = endValue / sumValue;
        series[i].parametricEquation = this.getParametricEquation(
          series[i].pieData.startRatio,
          series[i].pieData.endRatio,
          false,
          false,
          k,
          series[i].pieData.value
        );
        startValue = endValue;
      }
      series.push({
        name: "mouseoutSeries",
        type: "surface",
        parametric: true,
        wireframe: {
          show: false,
        },
        itemStyle: {
          opacity: 0,
          color: "#f0f",
        },
        parametricEquation: {
          u: {
            min: 0,
            max: Math.PI * 2,
            step: Math.PI / 20,
          },
          v: {
            min: 0,
            max: Math.PI,
            step: Math.PI / 20,
          },
          x: function (u, v) {
            return ((Math.sin(v) * Math.sin(u) + Math.sin(u)) / Math.PI) * 2;
          },
          y: function (u, v) {
            return ((Math.sin(v) * Math.cos(u) + Math.cos(u)) / Math.PI) * 2;
          },
          z: function (u, v) {
            return Math.cos(v) > 0 ? 0 : -20;
          },
        },
      });
      series.push({
        name: "mouseoutSeries",
        type: "surface",
        parametric: true,
        wireframe: {
          show: false,
        },
        itemStyle: {
          opacity: 0.1,
          color: "#0ff",
        },
        parametricEquation: {
          u: {
            min: 0,
            max: Math.PI * 2,
            step: Math.PI / 20,
          },
          v: {
            min: 0,
            max: Math.PI,
            step: Math.PI / 20,
          },
          x: function (u, v) {
            return ((Math.sin(v) * Math.sin(u) + Math.sin(u)) / Math.PI) * 2;
          },
          y: function (u, v) {
            return ((Math.sin(v) * Math.cos(u) + Math.cos(u)) / Math.PI) * 2;
          },
          z: function (u, v) {
            return Math.cos(v) > 0 ? -15 : -30;
          },
        },
      });
      return series;
    },
    initCompensationOption(data) {
      const chartDom = this.$refs.compensationCharts;
      if (!chartDom) return;
      const chartCompensation = echarts.init(chartDom);
      let option = {
        polar: {
          radius: [50, "70%"],
          center: ["50%", "40%"],
        },
        grid: {
          left: "10%",
          bottom: "40%",
          width: "80%",
          height: "100%",
        },
        angleAxis: {
          max: 7,
          startAngle: 75,
          show: false,
          axisTick: {
            show: false,
          },
          axisLine: { show: false },
          minorSplitLine: { show: false },
        },
        radiusAxis: {
          type: "category",
          show: false,
          data: [],
          axisTick: {
            show: false,
          },
        },
        tooltip: { show: false },
        series: {
          type: "bar",
          barMaxWidth: "11px",
          showBackground: true,
          roundCap: true,
          backgroundStyle: {
            color: "rgba(255, 255, 255, 0.1)",
          },
          data: [],
          coordinateSystem: "polar",
        },
      };
      let max = 0;
      let total = 0;
      let arr = [];
      for (let i = 0; i < data.length; i++) {
        max = Math.max(max, data[i].value);
        total += data[i].value;
        arr.push({
          value: data[i].value,
          itemStyle: { color: data[i].color },
        });
      }
      this.total = total;
      option.angleAxis.max = total;
      option.radiusAxis.data = data.map((item) => item.name);
      option.series.data = arr;
      chartCompensation.setOption(option);
      window.addEventListener("resize", () => {
        chartCompensation.resize();
      });
    },
  },
};
</script>
<style lang="less" scoped>
.water-eval-container {
  width: 100%;
  height: 100%;
}
.cityGreenLand-charts {
  width: 170px;
  height: 100%;
}
.right-panel {
  position: absolute;
  top: 111px;
@@ -243,36 +688,359 @@
  .top-panel-item {
    height: 268px;
    background: url('@/assets/right-top-bg.png') no-repeat center center;
    background: url("@/assets/right-middle-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: 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: url("@/assets/right-bottom-bg.png") no-repeat center center;
    background-size: 100% 100%;
  }
  .box-title {
    font-size: 14px;
    color: #19ECFF;
    color: #19ecff;
    text-align: center;
    padding-top: 9px;
    line-height: 21px;
  }
  .house-type-content {
    height: calc(100% - 30px);
    display: flex;
    padding: 10px 13px;
    .pie-chart {
      position: relative;
      width: 45%;
      height: 100%;
      display: flex;
      align-items: center;
      &::after {
        content: "";
        position: absolute;
        bottom: 15%;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 10px;
        background: radial-gradient(
          ellipse at center,
          rgba(0, 255, 255, 0.3) 0%,
          rgba(0, 0, 0, 0) 70%
        );
        border-radius: 50%;
        filter: blur(3px);
        z-index: 0;
      }
      .center-text {
        position: absolute;
        left: 40%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 2;
        padding: 10px 15px;
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(2px);
        .percent {
          display: block;
          font-size: 28px;
          color: #fff;
          font-weight: bold;
        }
        .type {
          display: block;
          font-size: 14px;
          color: #19ecff;
          margin-top: 5px;
        }
      }
    }
    .type-list {
      flex: 1;
      margin-left: 30px;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      .type-item {
        display: grid;
        grid-template-columns: auto 1fr 1fr 1fr;
        gap: 15px;
        align-items: center;
        cursor: pointer;
        padding: 5px 10px;
        transition: all 0.3s;
        position: relative;
        &:hover {
          background: rgba(25, 236, 255, 0.1);
          border-radius: 4px;
        }
        &::before {
          content: "";
          position: absolute;
          left: 0;
          right: 0;
          bottom: -5px;
          height: 1px;
          background: linear-gradient(
            90deg,
            transparent,
            rgba(25, 236, 255, 0.2),
            transparent
          );
        }
        .dot {
          width: 8px;
          height: 8px;
          border-radius: 50%;
          margin-right: 8px;
          box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
        }
        .name {
          color: #fff;
          font-size: 14px;
        }
        .value {
          color: #00ffff;
          font-size: 14px;
          text-align: center;
        }
        .area {
          color: #00ffff;
          font-size: 14px;
          text-align: center;
        }
        .percent {
          color: #00ffff;
          font-size: 14px;
          text-align: right;
        }
      }
    }
    .right-content {
      flex: 1;
      height: 100%;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      padding-top: 27px;
      .table-header {
        display: flex;
        align-items: center;
        padding: 0 19px 0px 118px;
        margin-bottom: 8px;
        .header-item {
          color: #b6d9fc;
          font-weight: 400;
          font-size: 10px;
          text-align: center;
          &:nth-child(1) {
            width: 60px;
          }
          &:nth-child(2) {
            width: 80px;
          }
          &:nth-child(3) {
            width: 60px;
            text-align: right;
          }
        }
      }
      .data-list {
        flex: 1;
        overflow-y: auto;
        // padding-right: 10px;
        &::-webkit-scrollbar {
          display: none;
        }
        .data-item {
          display: flex;
          align-items: center;
          padding: 5px 7px 5px 4px;
          position: relative;
          margin-bottom: 21px;
          cursor: pointer;
          &:not(:last-child)::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 1px;
            background: linear-gradient(
              90deg,
              transparent,
              rgba(25, 236, 255, 0.2),
              transparent
            );
          }
          .item-dot {
            width: 8px;
            height: 8px;
            flex-shrink: 0;
            border-radius: 50%;
            margin-right: 3px;
            box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
          }
          .item-name {
            width: 100px;
            color: #fff;
            font-weight: 500;
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
          .item-value {
            width: 60px;
            color: #00ffff;
            font-size: 12px;
            text-align: center;
          }
          .item-area {
            width: 80px;
            color: #00ffff;
            font-size: 12px;
            text-align: center;
          }
          .item-percent {
            width: 60px;
            color: #00ffff;
            font-size: 12px;
            text-align: right;
          }
        }
        .activeItem {
          box-sizing: border-box;
          background: rgba(105, 192, 255, 0.12);
          border-radius: 4px;
          border: 1px solid rgba(105, 192, 255, 0.29);
        }
      }
    }
  }
  .chart {
    width: 100%;
    height: 100%;
  }
  .middle-panel-item {
    .compensation-content {
      height: calc(100% - 30px);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px;
      .circle-chart {
        width: 100%;
        height: 260px;
        position: relative;
      }
      .compensation-list {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        margin-top: 20px;
        padding: 0 40px 0px 40px;
        .compensation-center {
          display: flex;
          flex: 1;
          justify-content: center;
          align-items: center;
          flex-direction: column;
          .total-value {
            font-family: PangMenZhengDao;
            font-size: 28px;
            color: #ffffff;
            margin-bottom: 11px;
          }
          .total-name {
            font-family: SourceHanSansCN, SourceHanSansCN;
            font-weight: 400;
            font-size: 12px;
            color: rgba(255, 255, 255, 1);
          }
        }
        .compensation-item {
          width: 100%;
          height: 45px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          .compensation-item-name {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            .item-name {
              font-size: 16px;
              color: #ffffff;
              margin-bottom: 5px;
              font-family: "pangmenzhengdao";
            }
            .item-value {
              font-weight: 400;
              font-size: 12px;
              color: #ffffff;
              margin-bottom: 2px;
            }
            .item-dot {
              width: 8px;
              height: 8px;
              border-radius: 50%;
            }
          }
        }
      }
    }
  }
}
.pie-chart {
src/main.js
@@ -4,6 +4,7 @@
import router from './router'
import store from './store'
import * as echarts from 'echarts';
import 'echarts-gl'
import ECharts from 'vue-echarts';
import 'echarts/lib/chart/pie';
import 'echarts/lib/chart/bar';