123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <template>
- <view class="hcdata">
- <div class="nameTitle">当前监测图斑外业举证</div>
- <uni-row>
- <uni-col :span="6">
- <view class="status" @click.stop="golist({stepState:0})">
- <view class="num">{{ hccount.hz }}个</view>
- <view>全部图斑</view>
- </view>
- </uni-col>
- <uni-col :span="18">
- <view class='countview'>
- <div class="hcitem" v-for="(item, key) in hclist" :key="key" @click.stop="golist(item)">
- <image class="logo" src="@/static/logo.png"></image>
- {{item.name}}{{hccount[item.prop]}}个
- </div>
- </view>
- </uni-col>
- </uni-row>
- </view>
- </template>
- <script>
- import {
- getHcCount
- } from "@/api/dkjbxx.js";
- import {hcs}from "../config.js";
- export default {
- name: "hcCounts",
- components: {},
- data() {
- return {
- loading: false,
- hccount: {},
- hclist:hcs
- };
- },
- onLoad() {},
- created() {},
- mounted() {
- this.getList();
- },
- onReady() {
- //this.$refs.form.setRules(this.rules)
- },
- methods: {
- getList() {
- this.loading = true;
- getHcCount().then((res) => {
- this.hccount = res.data;
- this.loading = false;
- });
- },
- //跳转到详情页
- golist(data) {
- console.log(data, '----')
- this.$emit('golist', data, this.hccount)
- },
- },
- };
- </script>
- <style lang="scss">
- .hcdata {
- background: #fff;
- padding: 20rpx;
- border-radius: 20rpx;
- margin-bottom: 30rpx;
- height: 240rpx;
- .nameTitle {
- //color: red;
- line-height: 50rpx;
- font-weight: bold;
- margin-bottom: 20rpx;
- }
- .status {
- width: 130rpx;
- height: 130rpx;
- text-align: center;
- line-height: 40rpx !important;
- padding: 10rpx 0;
- background: #D2EFFC;
- border: 2rpx solid #02A7F0;
- border-radius: 10rpx;
- cursor: pointer;
- .num {
- color: #02A7F0;
- font-weight: 600;
- }
- }
- .countview {
- .hcitem {
- width: 40%;
- display: inline-block;
- .logo {
- width: 40rpx;
- height: 40rpx;
- }
- }
- }
- }
- </style>
|