2023-11-07 10:08:37 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<view class="search card">
|
|
|
|
|
<u--input
|
|
|
|
|
prefixIcon="search"
|
|
|
|
|
placeholder="请输入关键字"
|
|
|
|
|
border="surround"
|
2025-07-11 18:09:58 +08:00
|
|
|
|
v-model="companyName"
|
2023-11-07 10:08:37 +08:00
|
|
|
|
clearable
|
|
|
|
|
shape="circle"
|
|
|
|
|
></u--input>
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<view class="bth-mini ml-10">
|
|
|
|
|
<u-button type="success" text="确定" @click="resetList"></u-button>
|
2024-07-27 15:13:42 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</view>
|
|
|
|
|
<u-list @scrolltolower="scrolltolower" v-if="list.length > 0">
|
|
|
|
|
<u-list-item v-for="(item, index) in list" :key="index">
|
|
|
|
|
<view>
|
|
|
|
|
<view class="flex-between main-title">
|
2025-07-11 18:09:58 +08:00
|
|
|
|
<text>{{ item.companyName }}</text>
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-between mt-10 subtitle">
|
|
|
|
|
<text>
|
|
|
|
|
属地:
|
2025-07-11 18:09:58 +08:00
|
|
|
|
<template v-if="item.companyCity">{{ item.companyCity }}</template>
|
|
|
|
|
<template v-if="item.companyArea"> -- {{ item.companyArea }}</template>
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-between mt-10 subtitle">
|
2025-07-11 18:09:58 +08:00
|
|
|
|
<text>风险(点)单元:{{ item.riskUnitNum }}</text>
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-between mt-10 subtitle">
|
2025-07-11 18:09:58 +08:00
|
|
|
|
<text>辨识部位:{{ item.identificationNum }}</text>
|
|
|
|
|
<text>存在风险:{{ item.riskNum }}</text>
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</view>
|
2024-07-27 15:13:42 +08:00
|
|
|
|
<view class="flex-end mt-10 see_btn">
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<u-button type="primary" text="查看" size="mini"
|
2025-07-11 18:09:58 +08:00
|
|
|
|
@click="fnNavigatorDetail(item.companyId)"></u-button>
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-list-item>
|
|
|
|
|
</u-list>
|
|
|
|
|
<empty v-else></empty>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-07-11 18:09:58 +08:00
|
|
|
|
import { getCorpInfoRiskStatistics } from "@/api";
|
2023-11-07 10:08:37 +08:00
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2025-07-11 18:09:58 +08:00
|
|
|
|
companyName: '',
|
2023-11-07 10:08:37 +08:00
|
|
|
|
pageSize: 10,
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
totalPage: 0,
|
|
|
|
|
list: [],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad() {
|
|
|
|
|
this.resetList()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
async getData() {
|
2025-07-11 18:09:58 +08:00
|
|
|
|
let { page } = await getCorpInfoRiskStatistics({
|
|
|
|
|
companyName: this.companyName,
|
2023-11-07 10:08:37 +08:00
|
|
|
|
showCount: this.pageSize,
|
|
|
|
|
currentPage: this.currentPage,
|
|
|
|
|
});
|
2025-07-11 18:09:58 +08:00
|
|
|
|
this.list = [...this.list, ...page.list];
|
|
|
|
|
this.totalPage = page.totalCount;
|
2023-11-07 10:08:37 +08:00
|
|
|
|
},
|
|
|
|
|
resetList() {
|
|
|
|
|
this.pageSize = 10
|
|
|
|
|
this.currentPage = 1
|
|
|
|
|
this.list = []
|
|
|
|
|
this.getData()
|
|
|
|
|
},
|
2025-07-11 18:09:58 +08:00
|
|
|
|
fnNavigatorDetail(companyId) {
|
2023-11-07 10:08:37 +08:00
|
|
|
|
uni.$u.route({
|
|
|
|
|
url: '/pages/risk-level-control/risk-management/detail-list',
|
|
|
|
|
params: {
|
2025-07-11 18:09:58 +08:00
|
|
|
|
companyId: companyId,
|
2023-11-07 10:08:37 +08:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
scrolltolower() {
|
|
|
|
|
this.currentPage++;
|
|
|
|
|
if (this.totalPage >= this.currentPage) this.getData();
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
2024-07-27 15:13:42 +08:00
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.search{
|
|
|
|
|
display: flex;
|
|
|
|
|
.ml-10{
|
|
|
|
|
margin-left: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
.bth-mini{
|
|
|
|
|
width: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
.see_btn{
|
2024-10-10 10:14:31 +08:00
|
|
|
|
//width: 100rpx;
|
2024-07-27 15:13:42 +08:00
|
|
|
|
float: right;
|
|
|
|
|
}
|
2023-11-07 10:08:37 +08:00
|
|
|
|
|
|
|
|
|
</style>
|