|
|
@@ -68,7 +68,38 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</div> --> |
|
|
|
<div class="content" v-if="flag == 2">这是公司</div> |
|
|
|
<div class="content" v-if="flag == 2"> |
|
|
|
<div class="search"> |
|
|
|
<el-input |
|
|
|
placeholder="请输入内容" |
|
|
|
style="width: 200px; margin-left: 40px; margin-right: 30px" |
|
|
|
v-model="companyName" |
|
|
|
clearable |
|
|
|
> |
|
|
|
</el-input> |
|
|
|
<el-button |
|
|
|
style="height: 32px; line-height: 13px" |
|
|
|
type="primary" |
|
|
|
size="medium" |
|
|
|
@click="getCompanyList" |
|
|
|
>搜索</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
<div class="con"> |
|
|
|
<div v-for="item in list" :key="item.id" class="tab" @click="chose(item)"> |
|
|
|
<div class="text-1">{{ item.agentName }}</div> |
|
|
|
<!-- <div class="text-2"> |
|
|
|
服务状态: |
|
|
|
<span |
|
|
|
style="font-size: 12px" |
|
|
|
:style="item.residueTime > 0 ? 'color:green;' : 'color:red;'" |
|
|
|
>{{ item.residueTime > 0 ? "服务中" : "已过期" }}</span |
|
|
|
> |
|
|
|
</div> --> |
|
|
|
<div class="text-3">{{ item.address }}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="content" v-if="flag == 3">这是楼盘</div> |
|
|
|
<el-pagination |
|
|
|
style="margin: 20px auto" |
|
|
@@ -78,7 +109,7 @@ |
|
|
|
:current-page="currentPage" |
|
|
|
:page-size="10" |
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
:total="40" |
|
|
|
:total="total" |
|
|
|
> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
@@ -91,6 +122,8 @@ export default { |
|
|
|
flag: 1, |
|
|
|
currentPage: 1, |
|
|
|
agentName: "", //代理商名称 |
|
|
|
companyName:'', |
|
|
|
total:20, |
|
|
|
list: [], |
|
|
|
}; |
|
|
|
}, |
|
|
@@ -105,6 +138,7 @@ export default { |
|
|
|
this.getAgentList(); |
|
|
|
} else if (this.flag == 2) { |
|
|
|
// 获取公司 |
|
|
|
this.getCompanyList() |
|
|
|
} else { |
|
|
|
// 获取楼盘 |
|
|
|
} |
|
|
@@ -115,13 +149,28 @@ export default { |
|
|
|
getAgentList() { |
|
|
|
this.$api.api |
|
|
|
.zkagentPage({ |
|
|
|
pageNum: this.currentPage, |
|
|
|
current: this.currentPage, |
|
|
|
pageSize: 10, |
|
|
|
agentName: this.agentName, |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
console.log(res); |
|
|
|
this.list = res.data.records; |
|
|
|
this.total=res.data.total |
|
|
|
}); |
|
|
|
}, |
|
|
|
getCompanyList() { |
|
|
|
this.$api.api |
|
|
|
.zkorg({ |
|
|
|
current: this.currentPage, |
|
|
|
pageSize: 10, |
|
|
|
name: this.companyName, |
|
|
|
orgType:localStorage.getItem('orgType') |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
console.log(res); |
|
|
|
this.list = res.data.records; |
|
|
|
this.total=res.data.total |
|
|
|
}); |
|
|
|
}, |
|
|
|
chose(item) { |
|
|
|