| | |
| | | @on-load="onLoad" |
| | | @tree-load="treeLoad"> |
| | | <template slot="menuLeft"> |
| | | <el-button v-if="this.permission.menu.menu_delete" |
| | | <el-button v-if="permissionList.delBtn" |
| | | icon="el-icon-delete" |
| | | plain |
| | | size="small" |
| | | type="danger" |
| | | @click="handleDelete">删 除 |
| | | </el-button> |
| | | <el-button v-if="this.permission.menu.menu_clone" |
| | | <el-button v-if="permissionList.cloneBtn" |
| | | icon="el-icon-connection" |
| | | plain |
| | | size="small" |
| | |
| | | </template> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button |
| | | v-if="userInfo.role_name.includes('admin') && scope.row.category === 1" |
| | | v-if="permissionList.addChildBtn && scope.row.category === 1" |
| | | icon="el-icon-circle-plus-outline" |
| | | size="small" |
| | | type="text" |
| | |
| | | </avue-crud> |
| | | <!-- 从其他菜单克隆按钮 --> |
| | | <el-dialog :visible.sync="cloneOtherMenuButtons.cloneButtonSettingBox" |
| | | class="avue-dialog avue-dialog--top" |
| | | top="0" |
| | | append-to-body |
| | | style="height: 110vh; margin-top: -10vh;" |
| | | title="从其他菜单克隆按钮" |
| | |
| | | cloneButtonSettingBox: false, |
| | | selectCloneButtons: [], |
| | | cloneOption: { |
| | | height: "auto", |
| | | menu: false, |
| | | header: false, |
| | | addBtn: false, |
| | |
| | | addBtn: this.vaildData(this.permission.menu.menu_add, false), |
| | | viewBtn: this.vaildData(this.permission.menu.menu_view, false), |
| | | delBtn: this.vaildData(this.permission.menu.menu_delete, false), |
| | | editBtn: this.vaildData(this.permission.menu.menu_edit, false) |
| | | editBtn: this.vaildData(this.permission.menu.menu_edit, false), |
| | | cloneBtn: this.vaildData(this.permission.menu.menu_clone,false), |
| | | addChildBtn: this.vaildData(this.permission.menu.menu_add_child,false), |
| | | }; |
| | | |
| | | }, |