<template>
	<div class="right_five">
    <CommonTitle title="供水管线风险" />
		<div class="content"   v-loading="isLoading"
         element-loading-background="rgba(0, 22, 52, 0.75)">
			<div class="item" v-for="item in arr" :key="item.id">
				<div class="item_top">
					{{item.gxfx}}
				</div>
				<div class="item_bottom center">
					<div class="bottom_left">
						{{item.dggdcd}}
					</div>
					<div class="bottom_right">
						公里
					</div>
				</div>
			</div>
		</div>
	</div>
</template>

<script setup>
	import {
		ref,
		onMounted,
		nextTick
	} from 'vue'
	import {
		getSelectGsgxFxCount
	} from '../service/http.js'
  import CommonTitle from "@/views/c-cpns/CommonTitle.vue";
	let arr = ref([]);
  const isLoading = ref(false);
	onMounted(() => {
    isLoading.value = true;
		getSelectGsgxFxCount().then(res => {
      isLoading.value = false;
			arr.value = res.data.data.Rows
		})
	})
	
</script>

<style lang="scss">
	.center {
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}
	
	.center_center{
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.right_five{
		height: 22%;
		padding-top: 10px;
		box-sizing: border-box;
		.content {
			height: 70%;
			width: 90%;
			margin: 0 20px;
			box-sizing: border-box;
			display: flex;
			flex-wrap: wrap;
			.item{
				width: 50%;
				height: 40%;
				box-sizing: border-box;
				margin-top: 10px;
				.item_top{
					width: 100%;
					height: 23px;
					background: url("@/assets/imgs/gsgxfxwzbj.png") no-repeat;
					font-family: Microsoft YaHei;
					font-weight: bold;
					font-size: 15px;
					color: #D1D6DF;
					line-height: 27px;
					font-style: italic;
					background-color: linear-gradient(0deg, #ACDDFF 0%, #FFFFFF 100%);
					/* -webkit-background-clip: text;
					-webkit-text-fill-color: transparent; */
				}
				.item_bottom{
					height: 80%;
					.bottom_left{
						margin: 0 5px;
						font-family: DIN;
						font-weight: 500;
						font-size: 18px;
						color: #50E0FF;
					}
					.bottom_right{
						font-family: Microsoft YaHei;
						font-weight: 400;
						font-size: 13px;
						color: #D1D6DF;
					}
				}
			}
		}
	}
	
	
</style>