<template>
  <el-dialog
    title="sample结果详情"
    v-model="innerVisible"
    width="520px"
  >
    <div class="dialog-body">
      <span class="label"><span class="required">*</span> sample 结果</span>
      <el-table :data="rows" border stripe size="small" style="margin-top: 8px">
        <el-table-column prop="index" label="序号" width="100" align="center" />
        <el-table-column prop="customerId" label="客户号" align="center" />
      </el-table>
    </div>
    <template #footer>
      <div class="dialog-footer">
        <el-button type="primary" @click="innerVisible = false">返 回</el-button>
      </div>
    </template>
  </el-dialog>
</template>

<script>
export default {
  name: 'SampleDetailDialog',
  props: {
    modelValue: { type: Boolean, default: false },
    rows: { type: Array, default: () => [] }
  },
  emits: ['update:modelValue'],
  computed: {
    innerVisible: {
      get() { return this.modelValue },
      set(v) { this.$emit('update:modelValue', v) }
    }
  }
}
</script>

<style scoped>
.dialog-body .label { font-weight: 600; color: #303133; }
.required { color: #F56C6C; margin-right: 4px; }
.dialog-footer { text-align: center; }
</style>
