| | |
| | | this.isRefresh=false; |
| | | } |
| | | }) |
| | | |
| | | }).catch(error => { |
| | | this.$message.error(error); |
| | | }) |
| | |
| | | <template> |
| | | <div style="height: 720px"> |
| | | <avue-tree ref="tree" v-loading="treeLoading" :data="treeData" :option="treeOption" @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="font-size: 15px"> |
| | | <i class="el-icon-s-promotion"></i> |
| | | {{ (node || {}).label }} |
| | | </span> |
| | | </span> |
| | | </avue-tree> |
| | | </div> |
| | | </template> |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log('create'); |
| | | console.log('this.dataStore',this.dataStore); |
| | | }, |
| | | methods: { |
| | | nodeClick(row){ |
| | | nodeClick(row) { |
| | | console.log(row); |
| | | this.$emit("setDataStore", { |
| | | area: 'westAreaInDialog', |
| | | type: 'tree', |
| | | btmType:'workcontext', |
| | | dataStore:[row] |
| | | btmType: 'workcontext', |
| | | dataStore: [row] |
| | | }); |
| | | } |
| | | } |