|
|
|
@ -3,11 +3,11 @@ |
|
|
|
<!-- <div style="margin:2px 2px 2px 2px;"> |
|
|
|
<el-input placeholder="输入关键字进行过滤" v-model="filterText" size="small" /> |
|
|
|
</div> --> |
|
|
|
<div :style="'overflow: scroll;height:' +(window.pageHeight < 600 ? 480 : window.pageHeight - 110) + 'px;background-color: #fff;margin-top: 10px;'"> |
|
|
|
<el-tree :data="dataTransOpts.tableM.menu_info" :props="customerOrg.treeprops" |
|
|
|
node-key="id" :filter-node-method="filterNode" |
|
|
|
:default-expanded-keys="customerOrg.defaultExpandedKeys" |
|
|
|
@node-click="treeclick" highlight-current ref="customerOrgTree"> |
|
|
|
<div |
|
|
|
:style="'overflow: scroll;height:' + (window.pageHeight < 600 ? 480 : window.pageHeight - 110) + 'px;background-color: #fff;margin-top: 10px;'"> |
|
|
|
<el-tree :data="dataTransOpts.tableM.menu_info" :props="customerOrg.treeprops" node-key="id" :filter-node-method="filterNode" |
|
|
|
:default-expanded-keys="customerOrg.defaultExpandedKeys" @node-click="treeclick" highlight-current |
|
|
|
ref="customerOrgTree"> |
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }"> |
|
|
|
<div> |
|
|
|
<span class="treeicons"> |
|
|
|
@ -15,12 +15,10 @@ |
|
|
|
class="el-icon-document-remove" |
|
|
|
v-if="data.parentId == null" |
|
|
|
></i> --> |
|
|
|
<img style="width:20px;height:20px;vertical-align: sub;" src="@/assets/images/order.png" v-if="!data.parentId"/> |
|
|
|
<img style="width:20px;height:20px;vertical-align: sub;" src="@/assets/images/order.png" |
|
|
|
v-if="!data.parentId" /> |
|
|
|
</span> |
|
|
|
<span |
|
|
|
:class="!data.parentId ? 'maxtitle' : 'mintitle'" |
|
|
|
>{{ node.label }}</span |
|
|
|
> |
|
|
|
<span :class="!data.parentId ? 'maxtitle' : 'mintitle'">{{ node.label }}</span> |
|
|
|
</div> |
|
|
|
</span> |
|
|
|
</el-tree> |
|
|
|
@ -37,7 +35,7 @@ export default { |
|
|
|
components: {}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
filterText:'' |
|
|
|
filterText: '', |
|
|
|
}; |
|
|
|
}, |
|
|
|
//<el-tree :data="$store.state.customerOrg.customerOrgTree" :props="$store.state.customerOrg.treeprops" @node-click="treeclick"></el-tree> |
|
|
|
@ -109,6 +107,7 @@ export default { |
|
|
|
<style scoped> |
|
|
|
@import "../../assets/css/global.css"; |
|
|
|
@import "../../assets/css/global_tree.css"; |
|
|
|
|
|
|
|
:deep .el-tree-node>.el-tree-node__children { |
|
|
|
overflow: visible; |
|
|
|
} |
|
|
|
|