2023-11-15 11:53:03 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<view class="search card">
|
|
|
|
|
<u--input
|
|
|
|
|
prefixIcon="search"
|
|
|
|
|
placeholder="请输入关键字"
|
|
|
|
|
border="surround"
|
|
|
|
|
v-model="CORP_NAME"
|
|
|
|
|
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-08-28 16:29:32 +08:00
|
|
|
|
</view>
|
2023-11-15 11:53:03 +08:00
|
|
|
|
</view>
|
|
|
|
|
<u-list @scrolltolower="scrolltolower" v-if="list.length > 0">
|
|
|
|
|
<u-list-item v-for="(item, index) in list" :key="index">
|
|
|
|
|
<view>
|
2023-11-15 16:14:13 +08:00
|
|
|
|
<view class="flex-between">
|
|
|
|
|
<text class="main-title">{{ item.CORP_NAME }}</text>
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<view style="font-size: x-small; padding:5px 5px">
|
|
|
|
|
<u-badge :value="item.cf+item.yh"/>
|
|
|
|
|
</view>
|
2023-11-15 11:53:03 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-between mt-10 subtitle">
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<text v-if="item.CORPINFO_ID != '1'">
|
|
|
|
|
属地:{{ item.prvinceName }}-{{ item.cityName }}-{{ item.countryName }}
|
|
|
|
|
</text>
|
|
|
|
|
<text v-else="item.prvinceName">属地:河北省-秦皇岛市-海港区</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-between mt-10 subtitle">
|
|
|
|
|
<text v-if="item.CORPINFO_ID != '1'">所属行业:{{ item.INDUSTRY_NAME }}</text>
|
2023-11-15 11:53:03 +08:00
|
|
|
|
<text v-else>所属行业:交通运输、仓储和邮政业</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-between mt-10 subtitle">
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<text>重点工程数:{{ item.OUTSOURCED_COUNT }}</text>
|
2024-07-27 15:46:35 +08:00
|
|
|
|
</view>
|
2024-05-11 15:45:21 +08:00
|
|
|
|
<view class="flex-between mt-10 subtitle">
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<text>在线视频数:{{ item.ONLINE_COUNT }}</text>
|
|
|
|
|
<view>
|
|
|
|
|
<u-button type="primary" text="进入" size="mini"
|
|
|
|
|
@click="fnNavigatorDetail(item.CORPINFO_ID)"/>
|
|
|
|
|
</view>
|
2023-11-15 11:53:03 +08:00
|
|
|
|
</view>
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<!-- <view class="flex-between mt-10 subtitle">-->
|
|
|
|
|
<!-- <text>重点工程数:{{ item.OUTSOURCED_COUNT }}</text>-->
|
|
|
|
|
<!-- <text>检查次数:{{ item.CHECK_COUNT }}</text>-->
|
|
|
|
|
<!-- </view>-->
|
|
|
|
|
<!-- <view class="flex-between mt-10 subtitle">-->
|
|
|
|
|
<!-- <text>违约处罚次数:{{ item.PUNISH_COUNT }}</text>-->
|
|
|
|
|
<!-- <text>违约处罚金额:{{ item.AMOUT_SUM }}</text>-->
|
|
|
|
|
<!-- </view>-->
|
|
|
|
|
<!-- <view class="flex-between mt-10 subtitle">-->
|
|
|
|
|
<!-- <text>发现隐患数量:{{ item.HIDDEN_COUNT }}</text>-->
|
|
|
|
|
<!-- <u-button type="primary" text="进入" size="mini" class="bth-mini"-->
|
|
|
|
|
<!-- @click="fnNavigatorDetail(item.CORPINFO_ID)"/>-->
|
|
|
|
|
<!-- </view>-->
|
2023-11-15 11:53:03 +08:00
|
|
|
|
</view>
|
|
|
|
|
</u-list-item>
|
|
|
|
|
</u-list>
|
|
|
|
|
<empty v-else></empty>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {getKeyProjectsListListByCorp} from "../../../api";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
CORP_NAME: '',
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
totalPage: 0,
|
|
|
|
|
list: [],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
this.resetList()
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
userInfo() {
|
|
|
|
|
return this.$store.getters.getUserInfo
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-10-10 10:14:31 +08:00
|
|
|
|
methods: {
|
|
|
|
|
async getData() {
|
2023-11-15 11:53:03 +08:00
|
|
|
|
let resData = await getKeyProjectsListListByCorp({
|
|
|
|
|
CORP_NAME: this.CORP_NAME,
|
|
|
|
|
showCount: this.pageSize,
|
2023-11-15 16:14:13 +08:00
|
|
|
|
loginUserId: this.userInfo.USER_ID,
|
2023-11-15 11:53:03 +08:00
|
|
|
|
currentPage: this.currentPage
|
|
|
|
|
});
|
2024-10-10 10:14:31 +08:00
|
|
|
|
this.list = [...this.list, ...resData.varList];
|
2023-11-15 11:53:03 +08:00
|
|
|
|
this.totalPage = resData.page.totalPage;
|
|
|
|
|
},
|
|
|
|
|
resetList() {
|
2024-10-10 10:14:31 +08:00
|
|
|
|
this.pageSize = 10
|
|
|
|
|
this.currentPage = 1
|
2023-11-15 11:53:03 +08:00
|
|
|
|
this.list = []
|
|
|
|
|
|
|
|
|
|
this.getData()
|
|
|
|
|
},
|
2024-10-10 10:14:31 +08:00
|
|
|
|
fnNavigatorDetail(CORPINFO_ID) {
|
|
|
|
|
// 重点工程
|
|
|
|
|
// 安全环保检查管理
|
|
|
|
|
uni.$u.route({
|
|
|
|
|
url: '/pages/key-project-management/index/index',
|
|
|
|
|
params: {
|
|
|
|
|
CORPINFO_ID
|
|
|
|
|
}
|
|
|
|
|
})
|
2023-11-15 11:53:03 +08:00
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
scrolltolower() {
|
|
|
|
|
this.currentPage++;
|
2024-10-10 10:14:31 +08:00
|
|
|
|
if (this.totalPage >= this.currentPage) this.getData();
|
2023-11-15 11:53:03 +08:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
2024-05-11 15:45:21 +08:00
|
|
|
|
<style scoped>
|
2023-11-15 16:14:13 +08:00
|
|
|
|
.btn-corner-label::before,
|
|
|
|
|
.btn-corner-label::after {
|
2024-10-10 10:14:31 +08:00
|
|
|
|
content: attr(data-label); /* 使用 attr 获取按钮的 data-label 属性的值作为角标内容 */
|
2023-11-15 16:14:13 +08:00
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: 0;
|
2024-10-10 10:14:31 +08:00
|
|
|
|
padding: 5px 10px; /* 根据需要调整角标的大小和位置 */
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.5); /* 设置角标的背景颜色和透明度 */
|
|
|
|
|
color: #fff; /* 设置角标的文本颜色 */
|
|
|
|
|
font-size: 12px; /* 设置角标的字体大小 */
|
|
|
|
|
border-radius: 3px; /* 为角标添加圆角效果 */
|
2023-11-15 16:14:13 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-corner-label::before {
|
|
|
|
|
left: 0;
|
2024-10-10 10:14:31 +08:00
|
|
|
|
transform: skew(-5deg); /* 调整角标的位置使其倾斜,以达到更好的效果 */
|
2023-11-15 16:14:13 +08:00
|
|
|
|
}
|
2023-11-15 11:53:03 +08:00
|
|
|
|
|
2023-11-15 16:14:13 +08:00
|
|
|
|
.btn-corner-label::after {
|
|
|
|
|
right: 0;
|
2024-10-10 10:14:31 +08:00
|
|
|
|
transform: skew(5deg); /* 调整角标的位置使其倾斜,以达到更好的效果 */
|
2023-11-15 16:14:13 +08:00
|
|
|
|
}
|
2024-10-10 10:14:31 +08:00
|
|
|
|
|
|
|
|
|
.wrap {
|
2024-08-28 16:29:32 +08:00
|
|
|
|
width: 200rpx;
|
|
|
|
|
margin: 0 10rpx;
|
|
|
|
|
}
|
2023-11-15 11:53:03 +08:00
|
|
|
|
</style>
|