<template>
  <div>
    <!-- 课程列表 -->
    <list ref="list">
      <!-- 新增课程 -->
      <el-button slot="add" icon="el-icon-plus" type="primary" size="small" @click="$router.push({path:'/archives_scadd'})">新 增</el-button>
      <el-button slot="detail" type="text" size="small">详 情</el-button>
      <el-button slot="edit" type="text" size="small" class="inline-16">编 辑</el-button>
      <template v-slot:release="scope">
        <release :data="scope.data.data" @onSuccess="onSuccess"></release>
      </template>
      <el-button slot="data_statistics" type="text" size="small">数据分析</el-button>
      <template v-slot:del="scope">
        <on-del :data="scope.data.data" @onSuccess="onSuccess"></on-del>
      </template>
    </list>
  </div>
</template>

<script>
import list from './list/list.vue'
import release from './list/modules/release.vue'
import onDel from './list/modules/delete.vue'

export default {
  components:{
    list,
    release,
    onDel
  },
  methods:{
    onSuccess () {
      this.$refs.list.listData()
    }
  },
  created () {
    
  }
}

</script>
<style>
</style>