<template>
    <el-dialog title="加载预案" :visible.sync="loadPrePlanModal" width="700px">
        <el-form :model="form">
            <el-form-item label="选择需要加载的预案" :label-width="formLabelWidth">
                <el-select v-model="form.preplanId" placeholder="请选择" value="">

                </el-select>
            </el-form-item>
        </el-form>
        <div slot="footer" class="dialog-footer">
            <el-button @click="loadPrePlanModal = false">取 消</el-button>
            <el-button type="primary" @click="loadPrePlanModal = false">确 定</el-button>
        </div>
    </el-dialog>
</template>

<script>
    import PubSub from 'pubsub-js'

    export default {
        data() {
            return {
                loadPrePlanModal:false,
                form: {
                    preplanId:''
                },
                formLabelWidth: '150px'
            }
        },
        mounted() {
            PubSub.subscribe('loadPrePlan',(msg,data) => {
                this.loadPrePlanModal = true
            })
        }
    }
</script>

<style scoped>

</style>
