<template>
  <div class="dilog">
    <el-dialog :visible.sync="Resultvisible" :before-close="close">
      <div class="img">
        <img
          src="	https://aiguovip2020.oss-cn-shenzhen.aliyuncs.com/erp_img/xianyu.png"
          alt=""
        />
        {{ResultTitle}}
      </div>
      <el-table :data="ResultData" height="300px">
        <el-table-column property="business_id" label="质检码" width="150">
          <template slot-scope="{ row }">
            <span>
              {{ row.business_id }}
            </span>
          </template>
        </el-table-column>

        <el-table-column property="status" label="状态">
          <template slot-scope="{ row }">
            <span>
              {{ row.msg ? row.msg : "成功" }}
            </span>
          </template>
        </el-table-column>
      </el-table>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="close">关 闭</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: ["ResultTitle","Resultvisible", "ResultData"],
  data() {
    return {};
  },

  methods: {
    close() {
      this.$emit("Batchdialogclose");
    },
  },
};
</script>

<style scoped lang='scss'>
::v-deep .el-dialog__header {
  padding: 0px !important;
}
::v-deep .el-dialog__body {
  padding: 0px 30px 20px !important;
}
.img {
  img {
    width: 60px !important;
  }
}
</style>