<template>
	<el-dialog :title="titleMap[mode]" v-model="visible" :width="600" draggable destroy-on-close @closed="$emit('closed')">
		<el-input placeholder="搜索"></el-input>
		<el-tabs>
			<el-tab-pane label="全部">
				<records-list></records-list>
			</el-tab-pane>
			<el-tab-pane label="文档">
				647658
			</el-tab-pane>
		</el-tabs>
	</el-dialog>
</template>

<script>
import recordsList from "@/views/service/components/recordsList";
export default {
	name:"customerRecords",
	components:{
		recordsList
	},
	emits: ['success', 'closed'],
	data() {
		return {
			mode: "show",
			titleMap: {
				show: '聊天记录',
			},
			visible: false,
			isSave: false,

		}
	},
	mounted() {

	},
	methods: {
		//显示
		open(mode='show'){
			this.mode = mode;
			this.visible = true;
			return this
		},
		//表单注入数据
		async setData(data) {
			let params = {
				page:1,
				pageSize:100,
				to_user_id:data
			}
			await this.$API.customer.recordList.post(params);
		}
	}
}
</script>

<style scoped>

</style>
