<template>
	<view>
		<view class="list">
			<view class="item" v-for="(item,index) in list" :key="index" @click="go_container(item.id,item.gzm_name)">
				<view class="left">
					<view class="icon"></view>
					<view class="name">{{item.gzm_name}}</view>
				</view>
				<view class="right">
					<uni-icons type="arrowright"></uni-icons>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"p-production-report-inner-3",
		props:[
			"mine",
			"org_num"
		],
		data() {
			return {
				list:[]
			};
		},
		created() {
			this.$p_api.coalmine_working_face({
				mine:this.mine,
				org_num:this.org_num
			}).then((res)=>{
				// console.log(res.data.data)
				this.list = res.data.data
			})
		},
		methods:{
			go_container(id,title){
				uni.navigateTo({
					url:"../../production/production_report/detail/detail?id=" + id + "&title=" + title
				})
			}
		}
	}
</script>

<style lang="scss">
	.list{
		box-sizing: border-box;
		padding: 0 20rpx;
		.item{
			display: flex;
			justify-content: space-between;
			
			line-height: 90rpx;
			border-bottom: 1rpx solid #eee;
			.left{
				display: flex;
				align-items: baseline;
				.icon{
					width: 25rpx;
					height: 27rpx;
					background-image: url(./icon/icon.png);
					background-size: cover;
				}
				.name{
					margin-left: 12rpx;
					
					font-size: 28rpx;
					color: #1e1e1e;
				}
			}
			.right{}
		}
	}
</style>
