<template>
	<NavBar />
	<view class="container">
		<view class="title">
			<PageTitle :title="$t('home.tradeRecord')" />
		</view>
		<ReportTable title="" url="/app/customer/queryMyTradeList" :queryParams="queryParams" defaultDateRangeKey="open_time" >
			<template v-slot="{ showSearchDialog }">
				<view class="filterWrapper">
					<view class="filterButton" @click="showSearchDialog">
						<image src="/static/filter.png" alt="" style="width: 12px; height: 13px" />
						<text class="filterText">筛选</text>
						<uni-icons type="right" size="20" color="#fff"></uni-icons>
					</view>
				</view>
			</template>
		</ReportTable>
	</view>
</template>

<script>
import ReportTable from '@/pages/components/reportTable/index.vue';
export default {
	name: '',
	data() {
		return {
			queryParams: {}
		};
	},
	onLoad(options) {
		this.queryParams = {
			mt4_login: options.mt4_login,
			mt4_server: options.mt4_server
		}
	},
	methods: {},
	components: {
		ReportTable
	}
};
</script>

<style lang="scss" scoped>
@import './index.scss';
</style>
