| | |
| | | <!-- 左侧菜单--> |
| | | <el-aside> |
| | | <basic-container> |
| | | <div style="height: calc(100vh - 144px);!important;"> |
| | | <div ref="TreeBox" style="height: calc(100vh - 144px);!important;"> |
| | | <div class="headerCon" style="display: flex; flex-wrap: wrap;margin-bottom: 5px"> |
| | | <el-button v-if="permissionList.TreeAddStatus" plain size="small" type="primary" @click="TreeAdd">添加 |
| | | </el-button> |
| | |
| | | }, |
| | | { |
| | | label: '描述', |
| | | prop: 'desc', |
| | | prop: 'description', |
| | | type: 'textarea', |
| | | span: 24 |
| | | } |
| | |
| | | mounted() { |
| | | this.type = this.tabOption.column[0] || {label: '基本信息', prop: 'tab1'}; |
| | | this.getAttr(); |
| | | const treeEle = this.$refs.tree.$el |
| | | treeEle.addEventListener('click', (e) => { |
| | | if (e.target.nodeName !== 'SPAN') { |
| | | // const treeEle = this.$refs.tree.$el; |
| | | const TreeBox = this.$refs.TreeBox; |
| | | // console.log(this.$refs.TreeBox) |
| | | // treeEle.addEventListener('click', (e) => { |
| | | // console.log('2') |
| | | // if (e.target.nodeName !== 'SPAN') { |
| | | // this.$refs.tree.setCurrentKey(null); |
| | | // this.nodeClickList = {}; |
| | | // this.TreeFlagCode = true; |
| | | // this.allButtons = false; |
| | | // } |
| | | // }, true) |
| | | TreeBox.addEventListener('click', (e) => { |
| | | if (e.target.nodeName !== 'SPAN' && e.target.nodeName !== 'BUTTON') { |
| | | this.$refs.tree.setCurrentKey(null); |
| | | this.nodeClickList = {}; |
| | | this.TreeFlagCode = true; |
| | | this.allButtons = false; |
| | | // this.$nextTick(()=>{ |
| | | // this.btnAuthList = []; |
| | | // }) |
| | | } |
| | | }, true) |
| | | }, |