<template>
	<z-paging ref="paging" @query="queryList" v-model="dataList" :auto-show-system-loading="true"
		empty-view-text="抱歉，暂时还没有相关数据！">
		<template #top>
			<!-- 顶部导航栏 -->
			<custom-nav-bar :left="true" @leftClick="" title="批量控制">
				<!-- <template v-slot:right>
					<view class="fixed">
						<view align="right" class="icon iconfont icon-jia" @click="editItem"></view>
					</view>
				</template> -->
			</custom-nav-bar>
		</template>
		<view class="card" v-for="item in dataList">
			<!-- <view class="content">
				<view class="cards-content">
					<view class="txt-list" @click="openStepPop(item)">
						<view class="left">
							<view><text>设备名称：</text><text>{{ item.operSubject}}</text></view>
							<view><text>执行内容：</text><text>{{ item.operContent}}</text></view>
							<view><text>操作人员：</text><text>{{ item.operUser}}</text></view>
							<view><text>操作时间：</text><text>{{ item.occurTime}}</text></view>
						</view>
						<view class="right">
							<view class="iconfont icon-you">
							</view>
						</view>
					</view>
				</view>
			</view> -->
		</view>
	</z-paging>
</template>
<script>
	export default {
		data() {
			return {
				land: null,
				dataList: [],
				queryParams: {
					landId: -1, //地块id
				},
			}
		},
		onLoad(par) {},
		onShow() {
			if (getApp().ijs.land) {
				this.land = getApp().ijs.land;
			}
		},
		mounted() {},
		methods: {
			queryList() {
				this.$refs.paging.completeByTotal([]);
				// userlog.getlist(this.queryParams).then(res => {
				// 	this.$refs.paging.completeByTotal(res.rows, res.total);
				// });
			},
			// 新增
			editItem(id = null) {
				uni.navigateTo({
					url: `/pages/batch-control/edit?landId=${this.land.id}&id=${this.land.id}`
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	.popup-content {
		padding: 10px;
	}

	.u-search {
		padding: 10px;
	}
</style>