| | |
| | | <basic-container> |
| | | <div style="height: calc(100vh - 142px);!important;"> |
| | | <div class="headerCon" style="display: flex; flex-wrap: wrap;margin-bottom: 5px"> |
| | | <el-button plain size="small" type="primary" @click="TreeAdd">添加 |
| | | <el-button v-if="permissionList.TreeAddStatus" plain size="small" type="primary" @click="TreeAdd">添加 |
| | | </el-button> |
| | | <el-button v-if="permissionList.TreeEditStatus" plain size="small" type="primary" @click="TreeEdit">修改 |
| | | <el-button v-if="permissionList.TreeEditStatus" v-show="allButtons" plain size="small" type="primary" |
| | | @click="TreeEdit">修改 |
| | | </el-button> |
| | | <el-button v-if="permissionList.TreeDelStatus" plain size="small" type="primary" @click="TreeDel">删除 |
| | | <el-button v-if="permissionList.TreeDelStatus" v-show="allButtons" plain size="small" type="primary" |
| | | @click="TreeDel">删除 |
| | | </el-button> |
| | | <el-button v-if="permissionList.flushedStatus" plain size="small" type="primary" @click="flushed">刷新 |
| | | <el-button v-if="permissionList.flushedStatus" v-show="allButtons" plain size="small" type="primary" |
| | | @click="flushed">刷新 |
| | | </el-button> |
| | | <el-button v-if="permissionList.EnableStatus" plain size="small" type="primary" @click="Enable">启用 |
| | | <el-button v-if="permissionList.EnableStatus" v-show="allButtons" plain size="small" type="primary" |
| | | @click="Enable">启用 |
| | | </el-button> |
| | | <el-button v-if="permissionList.DeactivateStatus" plain size="small" type="primary" @click="Deactivate">停用 |
| | | <el-button v-if="permissionList.DeactivateStatus" v-show="allButtons" plain size="small" type="primary" |
| | | @click="Deactivate">停用 |
| | | </el-button> |
| | | <el-button v-if="permissionList.ImportExcelStatus" plain size="small" type="primary" |
| | | <el-button v-if="permissionList.ImportExcelStatus" v-show="allButtons" plain size="small" type="primary" |
| | | @click.native="ImportExcel">导入 |
| | | </el-button> |
| | | <el-button v-if="permissionList.ExportExcelStatus" plain size="small" type="primary" @click="ExportExcel"> |
| | | <el-button v-if="permissionList.ExportExcelStatus" v-show="allButtons" plain size="small" type="primary" |
| | | @click="ExportExcel"> |
| | | 导出 |
| | | </el-button> |
| | | <el-button v-if="permissionList.flowingBtnStuatus" plain |
| | | <el-button v-if="permissionList.flowingBtnStuatus" v-show="allButtons" plain |
| | | size="small" style="width: 56px;text-align: center;padding-left: 3px" type="primary" |
| | | @click="flowingDependHandler">流水处理 |
| | | </el-button> |
| | | <el-button v-if="permissionList.classifyAuth" plain size="small" |
| | | <el-button v-if="permissionList.classifyAuth" v-show="allButtons" plain size="small" |
| | | style="width: 56px;text-align: center;padding-left: 3px" type="primary" |
| | | @click="classifyAuthHandler">分类授权 |
| | | </el-button> |
| | | <el-button v-if="permissionList.classifyAuth" plain size="small" |
| | | <el-button v-if="permissionList.classifyAuth" v-show="allButtons" plain size="small" |
| | | style="width: 56px;text-align: center;padding-left: 3px" type="primary" |
| | | @click="dataAuthHandler">数据授权 |
| | | </el-button> |
| | |
| | | name: "classifyTrees.vue", |
| | | data() { |
| | | return { |
| | | allButtons: Boolean, |
| | | btnAuthList: [], |
| | | activeName: 'first', |
| | | masterRow: null, |
| | |
| | | this.$refs.tree.setCurrentKey(null); |
| | | this.nodeClickList = {}; |
| | | this.TreeFlagCode = true; |
| | | this.allButtons = false; |
| | | // this.$nextTick(()=>{ |
| | | // this.btnAuthList = []; |
| | | // }) |
| | |
| | | ...mapGetters(["permission"]), |
| | | permissionList() { |
| | | return { |
| | | TreeAddStatus: this.vaildData(this.btnAuthList.tree_add, false), |
| | | TreeAddStatus: this.vaildData(this.permission.classifyTree.tree_add, false), |
| | | TreeEditStatus: this.vaildData(this.btnAuthList.tree_edit, false), |
| | | TreeDelStatus: this.vaildData(this.btnAuthList.tree_delete, false), |
| | | flushedStatus: this.vaildData(this.btnAuthList.tree_break, false), |
| | |
| | | }, |
| | | //树点击事件 |
| | | async nodeClick(data) { |
| | | this.allButtons = true; |
| | | getAuthButtonList({classifyId: data.oid, code: "classifyTree", authType: "classify_auth"}).then(res => { |
| | | this.btnAuthList = res.data.data; |
| | | }).catch(error => { |