<template>
  <div>
    <el-button @click='addSilder'>添加按钮</el-button>
    <el-button @click='removeSilder'>删除按钮</el-button>
    <el-button @click='resetSilder'>修改按钮</el-button>
    <el-button @click="lookSilder"
               type='error'>查询</el-button>
  </div>
</template>
<script>
import { addSilder, getSilder, deleteSilder, resetSilder } from '@/api/silder'
export default {
  data () {
    return {
    }
  },
  mounted () {

  },
  methods: {
    /**
     * {
        path:'/teamDetail',
        component: 'Layout',
        name:'业务管理',
        sysMenus:[
          // 乐团管理
          // 小课管理
          // 老师管理
          // 学员管理
        ]
      }
     */
    //  Layout
    addSilder () {
      addSilder({
        // path: 'branchActive',
        // component: 'branchActive',
        // name: '分部活动设置',
        // permission: '/branchActive',
        // sort: '1',
        // parentId: '24'
      }).then(res => {

      })
    },
    removeSilder () {
      deleteSilder().then(res => {
        console.log(res);
      })
    },
    lookSilder () {
      getSilder().then(res => {
        console.log(res);
      })
    },
    // 修改菜单栏
    resetSilder () {
      resetSilder({
        // path: 'insideSetting',
        // component: 'insideSetting',
        // name: '分部内部设置',
        // permission: '/insideSetting',
        // sort: '1',
        // parentId: '21',
        // id: '24'
      }).then(res => {
        console.log(res)
      })
    }

  },
}
</script>
<style lang="scss">
</style>