<template>
    <div class="filemange_container">
        <div class="mkdirm">
            <el-button type="primary" @click="dirbox = true">创建目录</el-button>
        </div>
        <el-dialog title="创建目录" :visible.sync="dirbox">
            <el-form :model="form">
                <el-form-item label="目录名称" :label-width="formLabelWidth">
                <el-input v-model="form.name" autocomplete="off"></el-input>
                </el-form-item>
                <el-form-item label="父级目录" :label-width="formLabelWidth">
                <el-select v-model="form.region" placeholder="请选择父级目录">
                    <el-option label="区域一" value="shanghai"></el-option>
                    <el-option label="区域二" value="beijing"></el-option>
                </el-select>
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button @click="dirbox = false">取 消</el-button>
                <el-button type="primary" @click="dirbox = false">确 定</el-button>
            </div>
        </el-dialog>
    </div>
</template>

<script>

//import { mapGetters } from 'vuex'

export default {
data() {
    return {
        dirbox: false,
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        },
        formLabelWidth: '120px'
    }
},

methods: {

    
}
}
</script>

<style lang="scss" scoped>
.mkdirm{text-align:center;margin:20% 0 0 0;}
</style>
