dialog.vue 1.65 KB
<template>
  <el-dialog
    class="entryDialog classCUploadDialog"
    title="运抵单申报"
    :visible.sync="visible"
    top="8vh"
    width="720px"
    :destroy-on-close="true"
    @close="close()"
  >
    <div class="modelItem">
      <el-descriptions class="margin-top" title="" :column="3" border>
        <el-descriptions-item>
          <template slot="label"> 用户名 </template>
          kooriookami
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label"> 手机号 </template>
          18100000000
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label"> 居住地 </template>
          苏州市
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label"> 备注 </template>
          <el-tag size="small">学校</el-tag>
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label"> 联系地址 </template>
          江苏省苏州市吴中区吴中大道 1188 号
        </el-descriptions-item>
      </el-descriptions>
    </div>
  </el-dialog>
</template>

<script>
export default {
  props: {
    outerVisible: {
      type: Boolean,
      default: false,
    },
    selected: {
      type: Array,
      default: () => {
        return [];
      },
    },
  },
  data() {
    return {
      visible: false,
    };
  },
  watch: {
    outerVisible(val) {
      if (val) {
        this.visible = val;
      }
    },
  },
  methods: {
    close() {
      this.visible = false;
      this.$emit("close", false);
    },
  },
};
</script>

<style lang="scss" scoped>
@import "@/assets/styles/variables.scss";
</style>