|
@@ -68,7 +68,38 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</div> --> |
|
|
</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> |
|
|
<div class="content" v-if="flag == 3">这是楼盘</div> |
|
|
<el-pagination |
|
|
<el-pagination |
|
|
style="margin: 20px auto" |
|
|
style="margin: 20px auto" |
|
@@ -78,7 +109,7 @@ |
|
|
:current-page="currentPage" |
|
|
:current-page="currentPage" |
|
|
:page-size="10" |
|
|
:page-size="10" |
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
:total="40" |
|
|
|
|
|
|
|
|
:total="total" |
|
|
> |
|
|
> |
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
</div> |
|
|
</div> |
|
@@ -91,6 +122,8 @@ export default { |
|
|
flag: 1, |
|
|
flag: 1, |
|
|
currentPage: 1, |
|
|
currentPage: 1, |
|
|
agentName: "", //代理商名称 |
|
|
agentName: "", //代理商名称 |
|
|
|
|
|
companyName:'', |
|
|
|
|
|
total:20, |
|
|
list: [], |
|
|
list: [], |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
@@ -105,6 +138,7 @@ export default { |
|
|
this.getAgentList(); |
|
|
this.getAgentList(); |
|
|
} else if (this.flag == 2) { |
|
|
} else if (this.flag == 2) { |
|
|
// 获取公司 |
|
|
// 获取公司 |
|
|
|
|
|
this.getCompanyList() |
|
|
} else { |
|
|
} else { |
|
|
// 获取楼盘 |
|
|
// 获取楼盘 |
|
|
} |
|
|
} |
|
@@ -115,13 +149,28 @@ export default { |
|
|
getAgentList() { |
|
|
getAgentList() { |
|
|
this.$api.api |
|
|
this.$api.api |
|
|
.zkagentPage({ |
|
|
.zkagentPage({ |
|
|
pageNum: this.currentPage, |
|
|
|
|
|
|
|
|
current: this.currentPage, |
|
|
pageSize: 10, |
|
|
pageSize: 10, |
|
|
agentName: this.agentName, |
|
|
agentName: this.agentName, |
|
|
}) |
|
|
}) |
|
|
.then((res) => { |
|
|
.then((res) => { |
|
|
console.log(res); |
|
|
console.log(res); |
|
|
this.list = res.data.records; |
|
|
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) { |
|
|
chose(item) { |
|
|