<template>
	<view>
		<view class="case_top_wrap">
			<ld-select :list="options" label-key="label" value-key="value" placeholder="选择搜索类型"
				v-model="queryParams.condition" class="conditionSelect" @change="handleConditionChange" :isShowIcon="true"></ld-select>
			<up-input shape="circle" clearable prefixIcon="search" v-model="queryParams.conditionContent"
				placeholder="整合搜索" @blur="handleKeyword" @clear="handleKeywordClear"></up-input>
		</view>
		<view class="queryParams_wrap">
			<view class="sort" @click="handleShowSort">
				<view style="margin-right: 10rpx;">排序</view>
				<up-icon name="arrow-down-fill" color="#aaa" size="10"></up-icon>
			</view>
			<view class="sort" @click="handleShowTag">
				<view style="margin-right: 10rpx;">标签</view>
				<up-icon name="arrow-down-fill" color="#aaa" size="10"></up-icon>
			</view>
			<view class="query" @click="handleshowFilter">
				<view style="margin-right: 10rpx;">筛选</view>
				<up-icon name="arrow-down-fill" color="#aaa" size="10"></up-icon>
			</view>
		</view>
		<view class="clue_state_wrap">
			<scroll-view scroll-x="true">
				<view class="clue_state_list">
					<view @click="handleClueStateClick(item)" v-for="(item, index) in clueStateList " :key="index"
						class="clue_state_item" :class="{ active : queryParams.clueState === item.clueState }">
						<text>{{item.clueStateName}}</text>
						<text>({{item.count}})</text>
					</view>
				</view>
			</scroll-view>
		</view>
		<view class="case_wrap">
			<show-emtry v-if="listData.length === 0"></show-emtry>
			<view class="case_main_wrap" v-else>
				<post v-for="(item,index) in listData" :key="item.id + index" :item="item" :dicts="dicts"
					:type="queryParams.type" @click.native="handleToDetail(item)">
				</post>
				<up-loadmore :status="finished ? 'nomore' : loadStatus" icon line />
			</view>
		</view>
		<sort ref="sort" v-model="queryParams" @getList="resetData" :mapHeight="mapHeight"></sort>
		<filter-query ref="filter" v-model="queryParams" @getList="resetData" :mapHeight="mapHeight"
			:dicts="dicts"></filter-query>
		<group-select class="clueTagsSelect" :list="clueTagGroupVoList" scrollHeight="720rpx" groupName="groupName"
			groupChild="clueTagDataList" label-key="name" value-key="id" placeholder="请选择线索标签"
			v-model="queryParams.allTagList" multiple clearable ref="clueTag"
			@confirm="handleClueTagConfirm"></group-select>
			
			
		<view class="suspension_button">
			新增
		</view>

	</view>
</template>

<script>
	import clue from "@/pages/clue/mixins/clue.js";
	export default {
		mixins: [clue],
	}
</script>

<style lang="scss" scoped>
	@import "@/pages/clue/scss/clue.scss";
</style>