step1.vue 1.42 KB
<template>
    <div>
        <Row>
            <Form :model="formItem" :label-width="80">
                <Form-item label="品 牌*">
                    <Select v-model="formItem.select" placeholder="请选择">
                        <Option value="beijing">北京市</Option>
                        <Option value="shanghai">上海市</Option>
                        <Option value="shenzhen">深圳市</Option>
                    </Select>
                </Form-item>

                <Form-item label="类目*">
                    <Select v-model="formItem.select" placeholder="请选择">
                        <Option value="beijing">北京市</Option>
                        <Option value="shanghai">上海市</Option>
                        <Option value="shenzhen">深圳市</Option>
                    </Select>
                </Form-item>
            </Form>
        </Row>

        <div>
            <Button type="primary" @click="nextStep">下一步</Button>
        </div>
    </div>
</template>

<script>
    export default {
        props: ['step'],
        data() {
            return {
                formItem: {
                    brand: '',
                }
            }
        },
        methods: {
            nextStep: function() {
                this.step.value = 1;
                this.$router.push({name:'product.create.step2'});
            }
        }
    }
</script>

<style lang="scss" scoped>

</style>