|
@@ -104,7 +104,7 @@
|
|
|
></el-tree>
|
|
|
</div>
|
|
|
<div class="forestban-right">
|
|
|
- <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="searchFB">
|
|
|
+ <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="filterchang" @change="searchFilterchang(filterchang)">
|
|
|
</el-input>
|
|
|
<el-checkbox-group v-model="changCheckList" @change="handleCheckedCitiesChangeChang">
|
|
|
<el-checkbox v-for="(item,index) in filterchangList" :label="item.farmAddress">
|
|
@@ -383,6 +383,7 @@ export default {
|
|
|
filterchangText: '',
|
|
|
filterbanList: [],
|
|
|
filterchangList: [],
|
|
|
+ filterchangListAll: [],
|
|
|
eventId: null,
|
|
|
eventCode: null,
|
|
|
longitude: null,
|
|
@@ -485,6 +486,7 @@ export default {
|
|
|
banCheckList: [], //林班
|
|
|
changCheckList: [], //林场
|
|
|
searchFB: '',
|
|
|
+ filterchang: '',//林场搜索
|
|
|
btmCurrent: ''
|
|
|
}
|
|
|
},
|
|
@@ -507,8 +509,10 @@ export default {
|
|
|
},
|
|
|
handlechangNodeClick(node,data,value) {
|
|
|
//获取林场列表
|
|
|
+ this.filterchang=''
|
|
|
selectFarmByDeptId({deptId:node.id}).then(res => {
|
|
|
this.filterchangList = res.data
|
|
|
+ this.filterchangListAll = res.data
|
|
|
})
|
|
|
},
|
|
|
// 返回图片列表
|
|
@@ -714,6 +718,20 @@ export default {
|
|
|
} else if (this.btmTipIndent == 'btm-tip-to-right') {
|
|
|
this.btmTipIndent = ''
|
|
|
}
|
|
|
+ },
|
|
|
+ searchFilterchang(filterchang){
|
|
|
+ //林场列表搜索
|
|
|
+ let searchFilterchangnew = []
|
|
|
+ if (filterchang != null && filterchang != '') {
|
|
|
+ for (var i = 0; i < this.filterchangListAll.length; i++) {
|
|
|
+ if (this.filterchangListAll[i].farmName.indexOf(filterchang) > -1) {
|
|
|
+ searchFilterchangnew.push(this.filterchangListAll[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.filterchangList = searchFilterchangnew
|
|
|
+ } else {
|
|
|
+ this.filterchangList = this.filterchangListAll
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|