<template>
  <el-dialog title="合作机构排序" :visible.sync="dialogFormVisible" width="600px">
    <div class="box">
      <div class="t-left">
        <div class="headPhoto"></div>
      </div>
      <el-form :model="form" class="form-el">
        <el-form-item :label-width="formLabelWidth">
          机构名称
        </el-form-item>
        <el-form-item :label-width="formLabelWidth">
          机构类型
        </el-form-item>
        <el-form-item :label-width="formLabelWidth">
          所在城市
        </el-form-item>
        <el-form-item :label-width="formLabelWidth">
          <div class='labelBox'>合作机构平台序号</div></span>
          <el-input v-model="form.name" placeholder="最多三位数字" class="conBox"></el-input>
        </el-form-item>
      </el-form>
    </div>
    <div slot="footer" class="dialog-footer">
      <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>
  export default {
    data() {
      return {
        dialogFormVisible: false,
        form: {
          name: ''
        },
        formLabelWidth: '20px'
      }
    }
  }
</script>

<style scoped>
  .box {
    overflow: hidden;
  }

  .t-left {
    float: left
  }

  .headPhoto {
    width: 100px;
    height: 100px;
    border: 1px solid red;
  }

  .form-el {
    float: left
  }

  .form-el .el-form-item {
    margin-bottom: 5px;
  }

  .labelBox {
    float: left;
    margin-right: 10px;
  }

  .conBox {
    float: left;
    width: 200px;
  }

  .dialog-footer {
    text-align: center;
  }
</style>