| | |
| | | option: { |
| | | height: "auto", |
| | | lazy: true, |
| | | columnBtn:false, |
| | | tip: false, |
| | | simplePage: true, |
| | | searchShow: true, |
| | |
| | | cloneOption: { |
| | | height: "auto", |
| | | menu: false, |
| | | header:false, |
| | | addBtn: false, |
| | | lazy: true, |
| | | tip: false, |
| | |
| | | }, |
| | | }, |
| | | 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: { |
| | | |
| | | /** 从其他菜单克隆按钮 */ |
| | | cloneMenuButton(){ |
| | | if(this.selectionList.length != 1 || this.selectionList[0].category === 2){ |
| | |
| | | message: "操作成功!" |
| | | }); |
| | | // 数据回调进行刷新 |
| | | this.onLoad() |
| | | done(row); |
| | | }, error => { |
| | | window.console.log(error); |