|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<zj-page-container direction="row">
|
|
|
- <div style="min-width: 240px; max-width: 240px; height: 100%">
|
|
|
+ <div style="min-width: 300px; max-width: 300px; height: 100%">
|
|
|
<zj-page-container>
|
|
|
<div class="title">
|
|
|
<el-button style="margin-right: 5px" size="mini" icon="el-icon-search" @click="getTreeListData"></el-button>
|
|
@@ -17,8 +17,8 @@
|
|
|
:filter-node-method="filterNode"
|
|
|
ref="listTree"
|
|
|
>
|
|
|
- <span class="custom-tree-node" slot-scope="{ node }">
|
|
|
- {{ node.label }}
|
|
|
+ <span class="custom-tree-node" slot-scope="{ node, data }">
|
|
|
+ {{ `(${data.websitId})${node.label}` }}
|
|
|
</span>
|
|
|
</el-tree>
|
|
|
</zj-page-fill>
|
|
@@ -458,8 +458,9 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
filterNode(value, data) {
|
|
|
+ console.log(data)
|
|
|
if (!value) return true
|
|
|
- return data.name.indexOf(value) !== -1
|
|
|
+ return data.name.indexOf(value) !== -1 || data.websitId.indexOf(value) !== -1
|
|
|
},
|
|
|
// 请求属性数据
|
|
|
getTreeListData() {
|