|
@@ -4,12 +4,12 @@
|
|
|
<!--主体-->
|
|
|
<div class="con_left">
|
|
|
<div style="color: #FFF;display: flex;justify-content: space-between">
|
|
|
- <div class="left-top-botton " :class="index === botIndex ? 'active':''" v-for="(item,index) in enterpriseList"
|
|
|
+ <div class="left-top-botton " :class="item.id === botIndex ? 'active':''" v-for="(item,index) in enterpriseList"
|
|
|
@click="getCommunityByDeptId(item.id)">{{ item.name }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-input
|
|
|
- placeholder="请输入用户姓名"
|
|
|
+ placeholder="请输入小区名称"
|
|
|
suffix-icon="el-icon-search"
|
|
|
v-model="input1">
|
|
|
</el-input>
|
|
@@ -163,6 +163,7 @@ export default {
|
|
|
methods: {
|
|
|
getCommunityByDeptId(id){
|
|
|
getCommunityByDeptId(id).then(req => {
|
|
|
+ this.botIndex=id
|
|
|
this.communityList = req.data;
|
|
|
})
|
|
|
},
|