浏览代码

no message

linwenxin 5 月之前
父节点
当前提交
9115beb8e9
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/views/workOrder/automaticDispatchConfig/streetConfiguration/index.vue

+ 5 - 4
src/views/workOrder/automaticDispatchConfig/streetConfiguration/index.vue

@@ -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() {