<template>

  <el-dialog
    title="新增"
    :visible.sync="dialogVisible"
    width="80%"
    :before-close="handleClose">
    <el-form ref="editForm" :model="editForm"  label-width="120px" size="mini">
      <el-form-item label="所属燃气公司" prop="a">
        <el-input></el-input>
      </el-form-item>
      <el-form-item label="名称" prop="b">
        <el-input ></el-input>
      </el-form-item>
      <el-form-item label="地址" prop="c">
        <el-input></el-input>
      </el-form-item>
      <el-form-item label="联系人" prop="d">
        <el-input></el-input>
      </el-form-item>
      <el-form-item label="电话" prop="e">
        <el-input></el-input>
      </el-form-item>
      <el-form-item label="型号" prop="f">
        <el-input></el-input>
      </el-form-item>
      <el-form-item label="安装日期" prop="g">
        <el-col :span="11">
          <el-date-picker type="date" placeholder="选择日期" style="width: 100%;"></el-date-picker>
        </el-col>
      </el-form-item>
      <el-form-item label="最后巡检日期" prop="k">
        <el-col :span="11">
          <el-date-picker type="date" placeholder="选择日期" style="width: 100%;"></el-date-picker>
        </el-col>
      </el-form-item>
      <el-form-item label="备注信息" prop="l">
        <el-input type="textarea"></el-input>
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button @click="dialogVisible = false">取 消</el-button>
      <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
  export default {
    props: {
      title: { type: String },
      //message: { type: String },
      //duration: { type: Number, default: 2000 }
    },
    data () {
      return {
       // isShow: false,
        editForm : {},
        dialogVisible : false
      }
    },
    methods: {
      show () {
        //this.isShow = true;
        this.dialogVisible = true;
        /*setTimeout(() => {
          this.hide()
        }, this.duration)*/
      },
      hide () {
        this.isShow = false
        this.remove()
      },
      handleClose(done) {
        this.$confirm('确认关闭？')
          .then(_ => {
            done();
          })
          .catch(_ => {});
      }
    }
  }
</script>

<style lang="scss">
  .notice {
    background: white;
    position: fixed;
    top: 102px;
    right: 0;
    left: 0;
    margin: auto;
    width: 80%;
    height: 80%;
    border: solid 1px;
  }
</style>

