| | |
| | | </el-form-item> |
| | | <div class="btnBox" v-if="menuStatus.update"> |
| | | <el-button |
| | | class="el-button-sure" |
| | | type="primary" |
| | | style=" |
| | | background: #409eff; |
| | | border: 1px solid #409eff; |
| | | color: white; |
| | | " |
| | | @click="updDep('itemdetail')" |
| | | >{{ $t('common.submit') }}</el-button |
| | | > |
| | | <el-button |
| | | class="el-button-sure" |
| | | type="primary" |
| | | @click="reset('itemdetail')" |
| | | >{{ $t('common.cancel') }}</el-button |
| | | > |
| | | <el-button @click="reset('itemdetail')">{{ |
| | | $t('common.cancel') |
| | | }}</el-button> |
| | | </div> |
| | | </el-form> |
| | | </div> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button class="el-button-sure" @click="resetForm('ruleForm')">{{ |
| | | <el-button @click="resetForm('ruleForm')">{{ |
| | | $t('common.cancel') |
| | | }}</el-button> |
| | | <el-button |
| | | class="el-button-remove" |
| | | type="primary" |
| | | style="background: #409eff; border: 1px solid #409eff; color: white" |
| | | @click="submitForm('ruleForm')" |
| | | v-loading.fullscreen.lock="fullscreenLoading" |
| | | >{{ $t('common.submit') }}</el-button |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | getDepTree() { |
| | | getMenuTree() { |
| | | //获取目录树最大ID,新建节点使用 |
| | | // queryMaxId().then((res) => { |
| | | // this.id = res.data; |
| | |
| | | message: '添加成功', |
| | | type: 'success', |
| | | }); |
| | | this.getMenuTree(); |
| | | |
| | | this.itemdetail = {}; |
| | | this.ruleForm = {}; |
| | | this.dialogFormVisible = false; |
| | | this.$refs[formName].resetFields(); |
| | | this.getMenuTree(); |
| | | } |
| | | }, 500); |
| | | }) |
| | |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.getDepTree(); |
| | | this.getMenuTree(); |
| | | }, |
| | | created() { |
| | | var val = this.$store.state.currentPerms; |
| | |
| | | } |
| | | /deep/.el-form-item__label { |
| | | color: white; |
| | | } |
| | | .el-button-sure { |
| | | width: 116px; |
| | | height: 40px; |
| | | background: linear-gradient(180deg, #002992, #080472); |
| | | border: 1px solid #000000; |
| | | box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.21); |
| | | border-radius: 3px; |
| | | } |
| | | .el-button-remove { |
| | | width: 116px; |
| | | height: 40px; |
| | | background: linear-gradient(180deg, #002992, #080472); |
| | | border: 1px solid #000000; |
| | | box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.21); |
| | | opacity: 0.5; |
| | | border-radius: 3px; |
| | | } |
| | | } |
| | | </style> |