<template>
  <el-dialog
    title="流程"
    :visible.sync="visibleDialog"
    width="80%"
    @close="close"
  >
    <div>这是流程弹窗</div>
  </el-dialog>
</template>

<script>
export default {
  props: {
    showProcess: {
      type: Boolean,
      default: false,
    },
    selectRow: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {
      visibleDialog: false,
    };
  },
  watch: {
    showProcess: {
      handler(nv) {
        this.visibleDialog = nv;
      },
    },
  },
  mounted() {},
  methods: {
    close() {
      console.log('关闭了');
      this.visibleDialog = false;
      this.$emit('update:showProcess', false);
    },
    getProcessData() {
      // 获取流程信息
    },
  },
};
</script>

<style lang="scss" scoped></style>
