<template>
  <el-dialog  title="审批原因(注：请先点击保存按钮保存下方数据)" :visible.sync="visible" width="40%" custom-class="common-dialog ">
    <div class="approval-operat" style="margin: 20px">
      <div>
        <el-input
          v-model="msg"
          type="textarea"
          placeholder="请输入处理说明"
          maxlength="300"
          show-word-limit
        />
      </div>
      <div class="btns-wrap" style="text-align: center;">
        <el-button type="primary"  size="small" style="margin: 20px;" @click="save">确认</el-button>
      </div>
    </div>
  </el-dialog>
</template>

<script>
    export default {
        name: 'dialog-approve',
        created(){
        },
        methods: {
          save(){
            this.$emit('saveMsg', this.msg);
            this.visible = false;
          }
        },
        data () {
            return {
                visible: false,
                msg:''
            }
        }
    }
</script>

<style type="text/css"  lang="scss">
  .el-dialog {
  .item-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  .input-div{
    display: flex;
  .el-input, .el-select{
    margin-right: 10px;
  }
  }
  }
  }
</style>
