<template>
  <div >
    <div class="container normal-panel normal-margin">
      <add :plm_technicalinfoid="this.$route.query.id" @addSuccess="onSuccess"></add>
    </div>
    <div class="container normal-panel ">
      <relation_list ref="list" :id="this.$route.query.id">
        <template v-slot:del="scope">
          <relationDel v-if="tool.checkAuth($route.name,'delete')" :data="scope.data" :type="'text'" @deleteSuccess="onSuccess"></relationDel>
        </template>
      </relation_list>
    </div>
  </div>
</template>

<script>
import relation_list from '../components/relationList'
import add from '../components/add'
import relationDel from '../components/relationDel'
export default {
  name: "relation",
  data() {
    return {

    }
  },
  components:{
    relation_list,
    add,
    relationDel
  },
  methods:{
    onSuccess(){
      this.$refs.list.listData()
    }
  }
}
</script>

<style scoped>

</style>