2023-11-07 10:08:37 +08:00
|
|
|
<template>
|
2023-11-10 17:03:46 +08:00
|
|
|
<view class="content">
|
|
|
|
<u-cell-group>
|
|
|
|
<u-cell v-for="(item,index) in baseList" :key="index" isLink :url="item.url">
|
|
|
|
<view slot="title">{{ item.title }}</view>
|
|
|
|
<view slot="value">
|
|
|
|
<u-badge :value="item.NUM"></u-badge>
|
|
|
|
</view>
|
|
|
|
</u-cell>
|
|
|
|
</u-cell-group>
|
|
|
|
</view>
|
2023-11-07 10:08:37 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2023-11-10 17:03:46 +08:00
|
|
|
import {
|
|
|
|
getkeyprojectcount,
|
|
|
|
} from "../../../api";
|
2023-11-07 10:08:37 +08:00
|
|
|
|
2023-11-10 17:03:46 +08:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
count: {},
|
|
|
|
CORPINFO_ID: '',
|
|
|
|
baseList: []
|
|
|
|
}
|
|
|
|
},
|
2023-12-18 17:15:15 +08:00
|
|
|
onLoad(e) {
|
|
|
|
this.CORPINFO_ID = e.CORPINFO_ID
|
|
|
|
console.log(this.CORPINFO_ID);
|
2023-11-10 17:03:46 +08:00
|
|
|
},
|
|
|
|
onShow(event) {
|
|
|
|
|
|
|
|
this.baseList = [{
|
2023-12-18 17:15:15 +08:00
|
|
|
title: '重点工程管理',
|
|
|
|
url: '/pages/key-project-management/positioning_management/index'+ '?CORPINFO_ID='+this.CORPINFO_ID,
|
|
|
|
},
|
|
|
|
{
|
2023-11-10 17:03:46 +08:00
|
|
|
title: '安全环保检查管理',
|
|
|
|
url: '/pages/key-project-management/safety-environmental-inspection/list'+ '?CORPINFO_ID='+this.CORPINFO_ID,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '隐患管理',
|
|
|
|
url: '/pages/key-project-management/hidden-management/list'+'?CORPINFO_ID='+this.CORPINFO_ID,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '处罚管理',
|
|
|
|
url: '/pages/key-project-management/penalty-management/list'+'?CORPINFO_ID='+this.CORPINFO_ID,
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// title: 'AI报警处置',
|
|
|
|
// url: '/pages/key-project-management/AI-warning/list',
|
|
|
|
// },
|
|
|
|
]
|
|
|
|
this.getData();
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
userInfo() {
|
|
|
|
return this.$store.getters.getUserInfo
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
fnNavigator(e) {
|
|
|
|
console.log(this.CORPINFO_ID)
|
|
|
|
uni.$u.route({
|
|
|
|
url: this.baseList[e].url+'?CORPINFO_ID'+this.CORPINFO_ID
|
|
|
|
|
|
|
|
})
|
|
|
|
},
|
|
|
|
async getData() {
|
|
|
|
let resData = await getkeyprojectcount({
|
|
|
|
loginUserId: this.userInfo.USER_ID,
|
|
|
|
CORPINFO_ID: this.CORPINFO_ID
|
|
|
|
})
|
2023-12-18 17:15:15 +08:00
|
|
|
this.$set(this.baseList[0], 'NUM', resData.pd.GC_COUNT)
|
|
|
|
this.$set(this.baseList[2], 'NUM', resData.pd.HIDDEN_COUNT)
|
|
|
|
this.$set(this.baseList[3], 'NUM', resData.pd.CF_COUNT)
|
2023-11-10 17:03:46 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
2023-11-07 10:08:37 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
</style>
|