1.18整合

This commit is contained in:
2026-01-18 16:06:37 +08:00
parent 10c3fbb0d7
commit a11d3cc2f8
138 changed files with 7241 additions and 856 deletions

View File

@@ -5,10 +5,10 @@
<image></image>
</view>
<view class="padding-left">
<view class="text-bold">湘西和谐云大数据产业发展有限公司</view>
<view class="text-bold">{{ userInfo.deptName || '未知部门' }}</view>
<view class="flex padding-top-xs">
<view>手机号</view>
<view>17374339800</view>
<view>用户</view>
<view>{{ userInfo.nickName || userInfo.username || '未登录' }}</view>
</view>
<view class="flex justify-between">
<view></view>
@@ -18,11 +18,11 @@
</view>
<view class="padding" style="background: #EBF2FC;">
<view class="bg-white padding radius">
<view class>
<view></view>
<view>功能菜单</view>
<view class="flex margin-bottom-xl">
<view class="border-tite"></view>
<view class="margin-left-xs text-bold " >功能菜单</view>
</view>
<view class=" grid col-3 grid-list">
<view class=" grid col-3 ">
<view class="list " v-for="(item, index) in infoList" :key="index" @click="handleMenuClick(item)">
<image style="width: 102rpx;height: 102rpx;" :src="item.src"></image>
<view>{{ item.name}}</view>
@@ -87,41 +87,41 @@
</view>
</view>
<!-- 我的隐患 -->
<view class="padding bg-white margin-top radius">
<view class="padding bg-white margin-top radius" >
<view class="flex margin-bottom-xl ">
<view class="border-tite"></view>
<view class="text-bold margin-left-xs">我的隐患排查</view>
</view>
<view class="list-list padding">
<view class="list-list padding margin-bottom" v-for="(item,index) in hiddenDangerData" :key="item.id" @click="HazardList()">
<view class="flex text-bold">
<view>隐患</view>
<view class="text-bold margin-left">#15</view>
</view>
<view class="flex margin-top">
<view class="text-gray">标题</view>
<view>有隐患</view>
<view>{{item.title}}</view>
</view>
<view class="flex margin-top">
<view class="text-gray">隐患来源</view>
<view>企业自查</view>
<view>{{item.source}}</view>
</view>
<view class="flex margin-top">
<view class="text-gray" style="white-space: nowrap;">隐患位置</view>
<view>湖南省湘西土家族苗族自治州吉首市人民北路105号</view>
<view>{{item.address}}</view>
</view>
<view class="flex margin-top">
<view class="text-gray">隐患等级</view>
<view>一般隐患</view>
<view>{{item.levelName}}</view>
</view>
<view class="flex margin-top">
<view class="text-gray">隐患状态</view>
<view>待验收</view>
<view>{{item.statusName}}</view>
</view>
<view class="flex margin-top">
<view class="text-gray">发现时间</view>
<view>2025-11-11 17:08:09</view>
<view>{{item.createdAt}}</view>
</view>
<view class="margin-top margin-bottom flex">
<view class="margin-top margin-bottom flex" style="gap: 5rpx;">
<button class="cu-btn round lg light bg-blue " style="white-space: nowrap;">查看详情</button>
<button class="cu-btn round lg light bg-blue " style="white-space: nowrap;">立即整改</button>
<button class="cu-btn round lg bg-blue " style="white-space: nowrap;">立即验收</button>
@@ -129,41 +129,41 @@
</view>
</view>
</view>
<view class="cu-bar tabbar bg-white">
<view class="action">
<view class="cuIcon-cu-image">
<image src="/static/tabbar/组 20264.png"></image>
</view>
<view class="text-blue">首页</view>
</view>
<view class="action">
<view class="cuIcon-cu-image">
<image src="/static/tabbar/组 20261.png"></image>
</view>
<view class="text-gray">一张图</view>
</view>
<view class="action" @click="Inspectionwarning()">
<view class="cuIcon-cu-image">
<image src="/static/tabbar/组 20262.png"></image>
</view>
<view class="text-gray" >预警</view>
</view>
<view class="action" @click="my()">
<view class="cuIcon-cu-image">
<image src="/static/tabbar/组 20263.png"></image>
</view>
<view class="text-gray">我的</view>
</view>
</view>
</view>
</template>
<script setup>
import { ref } from 'vue';
import { ref, reactive } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
import {getCheckPlanList} from '@/request/api.js'
import {getCheckPlanList,getHiddenDangerList} from '@/request/api.js'
const loading = ref(true);
// 用户信息
const userInfo = reactive({
userId: '',
username: '',
nickName: '',
deptId: '',
deptName: ''
});
// 获取用户信息
const getUserInfo = () => {
try {
const storedUserInfo = uni.getStorageSync('userInfo');
if (storedUserInfo) {
const info = JSON.parse(storedUserInfo);
userInfo.userId = info.userId || '';
userInfo.username = info.username || '';
userInfo.nickName = info.nickName || '';
userInfo.deptId = info.deptId || '';
userInfo.deptName = info.deptName || '';
}
} catch (e) {
console.error('获取用户信息失败:', e);
}
};
const infoList = ref([{
name: '成员管理',
src: '../../static/组 19378.png'
@@ -212,18 +212,6 @@
url: `/pages/Inspectionresult/Inspectionresult?id=${item.id}`
})
}
// 预警
const Inspectionwarning = () => {
uni.navigateTo({
url: '/pages/Inspectionwarning/Inspectionwarning'
})
}
// 我的
const my = () => {
uni.navigateTo({
url: '/pages/personalcenter/my'
})
}
// 菜单点击跳转
const handleMenuClick = (item) => {
const menuRoutes = {
@@ -277,7 +265,35 @@
// 页面加载时调用接口
onLoad(() => {
getUserInfo();
getCheckPlanLists();
});
//我的隐患排查
const hiddenDangerParams = ref({
pageNum: 1,
pageSize: 10,
name: ''
});
const hiddenDangerData = ref([]);
const getHiddenDangerLists = async () => {
try {
const res = await getHiddenDangerList(hiddenDangerParams.value);
console.log(res);
if (res.code === 0) {
hiddenDangerData.value = res.data.records;
console.log(hiddenDangerData.value,1111);
}
} catch (error) {
console.error(error);
} finally {
loading.value = false;
}
};
// 页面加载时调用接口
onLoad(() => {
getHiddenDangerLists();
});
</script>
@@ -286,7 +302,8 @@
.content {}
.grid-list {
// gap: 5px 5px;
gap: 30rpx;
margin-top: 30rpx;
}
.list {