| | |
| | | <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="Treedata" :defaultExpandAll="false" |
| | | :option="Treeoption" style="width: fit-content;" @node-click="nodeClick"> |
| | | <template slot-scope="{ node }"> |
| | | <el-tooltip class="item" effect="dark" open-delay="350" :content="$createElement('div', { domProps: { innerHTML: node.label } })" placement="right-start"> |
| | | <span id="labelSize" v-html="node.label" ></span> |
| | | <el-tooltip :content="$createElement('div', { domProps: { innerHTML: node.label } })" class="item" effect="dark" |
| | | open-delay="350" placement="right-start"> |
| | | <span id="labelSize" v-html="node.label"></span> |
| | | </el-tooltip> |
| | | </template> |
| | | </avue-tree> |
| | |
| | | const index = this.$route.query.id.indexOf('@'); |
| | | const result = this.$route.query.id.substring(0, index); |
| | | this.idData = result; |
| | | getTreeList({'conditionMap[id]': this.idData}).then(res => { |
| | | this.removeList(); |
| | | let conditionMaps = {}; |
| | | conditionMaps["conditionMap[id]"] = this.idData; |
| | | conditionMaps["conditionMap[authType]"] = "data_auth"; |
| | | // 数据授权中是否具备查看权限 |
| | | conditionMaps["conditionMap[menuCode]"] = "data_view"; |
| | | getTreeList(conditionMaps).then(res => { |
| | | if (res) { |
| | | if (res.data.length === 0) { |
| | | this.$message.error("主数据分类查询为空!"); |
| | |
| | | this.$message.error(res) |
| | | }); |
| | | }, |
| | | |
| | | removeList() { |
| | | this.$emit('tableHeadDataFateher', []); |
| | | this.$emit('tableHeadFindData', []); |
| | | this.$emit('tableHeadBttoms', []); |
| | | this.$emit('tableDataArray', []) |
| | | this.$emit('total', null) |
| | | }, |
| | | //定义一个修改数据属性名的方法 |
| | | ModifyProperties(obj, oldName, newName) { |
| | | for (let key in obj) { |
| | |
| | | <style lang="scss" scoped> |
| | | .app { |
| | | overflow: auto; |
| | | height: calc(100vh - 150px); |
| | | height: calc(100vh - 145px); |
| | | } |
| | | |
| | | .app::-webkit-scrollbar { |
| | |
| | | margin-left: 6px; |
| | | font-size: 18px; |
| | | } |
| | | #labelSize{ |
| | | |
| | | #labelSize { |
| | | font-size: 14px !important; |
| | | } |
| | | </style> |