| | |
| | | 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 |
| | |
| | | cloneOption: { |
| | | height: "auto", |
| | | menu: false, |
| | | header:false, |
| | | addBtn: false, |
| | | lazy: true, |
| | | tip: false, |
| | |
| | | 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){ |
| | |
| | | update(row).then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | message: "操作成功1!" |
| | | }); |
| | | // 数据回调进行刷新 |
| | | this.onLoad() |
| | | done(row); |
| | | }, error => { |
| | | window.console.log(error); |