| | |
| | | @click="setEditNode(1)" |
| | | type="info" |
| | | icon="el-icon-top" |
| | | size="mini" |
| | | size="small" |
| | | >向上移动</el-button> |
| | | <el-button |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setEditNode(2)" |
| | | type="info" |
| | | icon="el-icon-bottom" |
| | | size="mini" |
| | | size="small" |
| | | >向下移动</el-button> |
| | | <el-button |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setNewNode(1)" |
| | | type="success" |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | size="small" |
| | | >新增同级</el-button> |
| | | <el-button |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setNewNode(2)" |
| | | type="success" |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | size="small" |
| | | >新增子级</el-button> |
| | | <el-button |
| | | @click="setDelNode()" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | type="danger" |
| | | icon="el-icon-delete" |
| | | size="mini" |
| | | size="small" |
| | | >删除</el-button> |
| | | </div> |
| | | |
| | |
| | | v-if="menuStatus.update" |
| | | > |
| | | <el-button |
| | | style=" |
| | | background: #409eff; |
| | | color: white; |
| | | border: 1px solid #409eff; |
| | | " |
| | | size="small" |
| | | type="info" |
| | | @click="updMenu('itemdetail')" |
| | | >{{ $t('common.confirm') }}</el-button> |
| | | <el-button @click="reset('itemdetail')">{{ |
| | | <el-button |
| | | size="small" |
| | | type="primary" |
| | | @click="reset('itemdetail')" |
| | | >{{ |
| | | $t('common.cancel') |
| | | }}</el-button> |
| | | </div> |
| | |
| | | this.getMenuTree(); |
| | | return; |
| | | } else { |
| | | alert('调整失败,请重试!'); |
| | | this.$message.error('调整失败,请重试!'); |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | alert('修改失败,请重试!'); |
| | | this.$message.error('调整失败,请重试!'); |
| | | }); |
| | | }, |
| | | handleNodeClick(data, node) { |
| | |
| | | }, 500); |
| | | }) |
| | | .catch((res) => { |
| | | alert('修改失败,请重试!'); |
| | | this.$message.error('调整失败,请重试!'); |
| | | this.fullscreenLoading = false; |
| | | }); |
| | | } else { |
| | |
| | | } |
| | | }, |
| | | showPermsMenu(res) { |
| | | |
| | | switch (res.tag) { |
| | | case '/delete': |
| | | this.menuStatus.delete = true; |
| | |
| | | getPerms() { |
| | | var val = this.$store.state.currentPerms; |
| | | var permsEntity = this.$store.state.permsEntity; |
| | | |
| | | if (permsEntity.length == 0) { |
| | | getPerms().then((res) => { |
| | | if (res.code == 200) { |