<template>
  <div>
    <el-button @click="toshow">点我查看</el-button>
    
    <dialogOpen :dialogShow.sync="dialogShow" :dialogData="dialogData" @submit="submit" ></dialogOpen>
  </div>
</template>

<script>
import dialogOpen from "./components/dialog.vue";
export default {
  props: {
  },
  components: {
    dialogOpen
  },
  watch: {
  },
  data() {
    return {
      dialogData:{name:'昂殿',traceList:[]},
      dialogShow:false,
      title: '',
      form: {name:'',mobile:''},
    };
  },
  // 销毁组件时执行
  methods: { 
    toshow(){
      this.dialogShow=true
    },
    submit(form) {
      console.log("编辑数据", form);
    }
  },
};
</script>

<style lang="scss" scoped>

</style>
