| | |
| | | plain |
| | | @click="cloneMenuButton">从其他菜单克隆按钮 |
| | | </el-button> |
| | | <el-button type="info" |
| | | size="small" |
| | | icon="el-icon-connection" |
| | | plain |
| | | @click="test">test |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="scope" slot="menu"> |
| | | <el-button |
| | |
| | | }, |
| | | }, |
| | | computed: { |
| | | // mapGetters: 辅助函数仅仅将store 中的 getter 映射到局部计算属性 |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList() { |
| | | return { |
| | |
| | | delBtn: this.vaildData(this.permission.menu_delete, false), |
| | | editBtn: this.vaildData(this.permission.menu_edit, false) |
| | | }; |
| | | |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | |
| | | }, |
| | | methods: { |
| | | |
| | | test(){ |
| | | console.log(this.permission) |
| | | }, |
| | | |
| | | /** 从其他菜单克隆按钮 */ |
| | | cloneMenuButton(){ |
| | | if(this.selectionList.length != 1 || this.selectionList[0].category === 2){ |