<template>
	<view class="page pageList">
		<navbar title="工作" leftClick @leftClick="$utils.navigateBack" />
		
		<view
		style="padding: 10rpx 20rpx;">
			<uv-search
			bgColor="#fff"
			@search="getData"
			:showAction="false"
			searchIconSize="30rpx"
			placeholder="请输入搜索关键字..." 
			v-model="queryParams.title"></uv-search>
		</view>
		
		<view class="">
			<screenRen
			@clickItem="clickItem"/>
		</view>
		
		<!-- <workList ref="workList"/> -->
		
		<view class="list">
			<workItem 
			@click="$utils.navigateTo('/pages_order/work/workDetail?id=' + item.id)"
			:key="index"
			v-for="(item, index) in list"
			:item="item"/>
		</view>
		
	</view>
</template>

<script>
	import mixinsList from '@/mixins/list.js'
	import workItem from '../components/list/workList/workItem.vue'
	import screenRen from '../components/screen/screenRen.vue'
	export default {
		mixins: [mixinsList],
		components : {
			screenRen,
			workItem,
		},
		data() {
			return {
				mixinsListApi : 'getJobPage',
			}
		},
		methods: {
			clickItem(result){
				this.queryParams = {
					pageNo: 1,
					pageSize: 10,
				}
				result.forEach(n => {
					this.queryParams[n.name] = n.value
				})
				this.getData()
			},
		}
	}
</script>

<style scoped lang="scss">
</style>
