<template>
  <div>
    <div class="detail-head">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item v-for="(item,index) in breads" :key="index">{{ item }}</el-breadcrumb-item>
      </el-breadcrumb>
      <h3>审核</h3>
      <div style="margin-bottom: 10px;">{{ title }}</div>
    </div>
    <div class="examine-head">
      <div class="flex-colunm">
        <div style="margin-top: 30px;">
          <span>项目名称：满城区漕河沿线傍水村庄污水治理项目</span>
          <span>项目编号：I1301000075022215001</span>
        </div>
        <h1>公告名称公告名称公告名称公告名称公告名称</h1>
        <div>
          <img src="@static/images/content.png" alt="">
        </div>
        <div class="operation">
          <el-button size="medium" @click="back">退出审核</el-button>
          <el-button size="medium" @click="dialogFormVisible = true">审核拒绝</el-button>
          <el-button type="primary" size="medium">审核通过</el-button>
        </div>
        <el-dialog :visible.sync="dialogFormVisible" title="审核拒绝" width="30%">
          <el-form :model="form">
            <el-form-item :label-width="100" label="拒绝原因">
              <el-input v-model="form.reason" :rows="3" type="textarea" style="width:400px" placeholder="请输入1-100个字符" maxlength="100"></el-input>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="dialogFormVisible = false">取 消</el-button>
            <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
          </div>
        </el-dialog>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'examineDetail',
  props: {
    breads: {
      type: Array,
      default() {
        return []
      }
    },
    title: {
      type: String,
      default: '标题'
    }
  },
  data() {
    return {
      dialogFormVisible: false,
      form: {
        reason: ''
      }
    }
  },
  methods: {
    back() {
      this.$router.go(-1)
    }

  }
}
</script>

<style scoped>
	.examine-head{
		box-sizing: border-box;
		padding:30px;
		background: #F0F2F5;
	}
	.examine-head>div{
		background: #fff;
	}
	.examine-head h1 {
		margin: 30px 0
	}

	.examine-head span {
		margin-right: 50px;
	}

	.operation {
		margin: 30px 0;
	}
	.detail-head>h3{
		margin-top: 20px;
		margin-bottom: 20px;
	}
</style>
