index.vue 2.01 KB
<template>
  <div>
    <Chart :cdata="cdata" />
    <el-carousel height="40px" indicator-position="none">
      <el-carousel-item v-for="item in 4" :key="item">
        <div class="rotograph">佛坪县</div>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
import Chart from "./chart.vue";
import worktable from "@/api/worktable";
export default {
  data() {
    return {
      cdata: {
        seriesData: [
          { value: 10, name: "土地所有权" },
          { value: 5, name: "建设用地、宅基地使用权" },
          { value: 15, name: "房地产权(项目内多幢房屋)" },
          { value: 25, name: "产地产权(独幢、层、套、间、房屋)" },
          { value: 20, name: "建筑物区分所有权业主共有部分" },
          { value: 35, name: "海域(含无居民海岛)使用权" },
          { value: 10, name: "构(建)筑物所有权" },
          { value: 5, name: "农用地使用权(非林地)" },
          { value: 15, name: "林权" },
          { value: 25, name: "注销登记" },
          { value: 20, name: "异议登记" },
          { value: 35, name: "预告登记" },
          { value: 20, name: "查封登记" },
          { value: 35, name: "抵押权登记" },
          { value: 20, name: "地役权登记" },
        ],
      },
    };
  },
  components: {
    Chart,
  },
  mounted() {
    this.getdjywltotal();
  },
  methods: {
    getdjywltotal() {
      return new Promise(async (resolve) => {
        try {
          let p = {
            DJLX: "A21",
            QLLX: "A8",
            XZQDM: "A20",
          };
          let res = await worktable.getdjywltotal(p);

        } catch (error) {
          this.$refs.msg.messageShow();
        }
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.rotograph {
  margin: auto;
  width: 200px;
  height: 30px;
  background-color: rgb(6, 121, 167);
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  color: #02d9fd;
}
</style>