<template>
    <view class="flex direction-column height-100pre">
        <easy-tab type="line" @change="onTabChange">
            <easy-tab-item>开料</easy-tab-item>
            <easy-tab-item>断料</easy-tab-item>
            <easy-tab-item>钉架子</easy-tab-item>
            <easy-tab-item>打底</easy-tab-item>
        </easy-tab>
        <view class="flex grow-1 height-0 width-100per">
            <page-dispatch :url="url" :method="method"></page-dispatch>
        </view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                url: 'dispatch/search',
                method: 'get'
            };
        },
        methods: {
            onTabChange(e){
                console.log(e);
            }
        }
    }
</script>

<style lang="scss">

</style>
