| | |
| | | <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 }"> |
| | | <span v-html="node.label"></span> |
| | | <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> |
| | | </template> |
| | | </avue-tree> |
| | | <div style="position: absolute; right: 0px; top: -1px;"> |
| | | <div style="position: absolute; right: 3px; top: -1px;"> |
| | | <el-link class="refresh-icon" icon="el-icon-refresh" @click="getTreeLists"></el-link> |
| | | </div> |
| | | </div> |
| | |
| | | type: String, |
| | | default: '' |
| | | }, |
| | | isLoading:{ |
| | | type: Boolean, |
| | | default:false |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | //表格刷新 |
| | | TableRend() { |
| | | this.isLoading = true; |
| | | this.loading = true; |
| | | this.$emit('loading', this.loading) |
| | | TableData({ |
| | | templateOid: this.templateOids, |
| | | codeClassifyOid: this.nodeClickList.oid, |
| | | page: this.currentPage, |
| | | limit: this.pageSize, |
| | | }).then(res => { |
| | | this.isLoading = false; |
| | | // console.log('tab',res) |
| | | this.loading = false; |
| | | this.$emit('loading', this.loading) |
| | | this.tableDataArray = res.data.data; |
| | | this.$emit('tableDataArray', this.tableDataArray) |
| | | this.$emit('total', res.data.total) |
| | |
| | | List.forEach(item => { |
| | | let columnItem = { |
| | | label: item.title, |
| | | prop: item.queryField, |
| | | prop: item.field, |
| | | // type: this.columnType[item.type], |
| | | sortable: item.sort, |
| | | width: item.minWidth |
| | |
| | | margin-left: 6px; |
| | | font-size: 18px; |
| | | } |
| | | #labelSize{ |
| | | font-size: 14px !important; |
| | | } |
| | | </style> |