第十三周总结:团队项目
对团队项目的前端进行了一定程度的界面美化
<!-- 安全检查模块 -->
<div class="dropdown">
<button class="dropbtn">安全检查</button>
<div class="dropdown-content">
<el-button v-if="isAdmin" @click="navigateTo('check')">上级安全检查</el-button>
<el-button v-if="isInspector" @click="navigateTo('CompanyInspection')">公司安全检查</el-button>
<el-button v-if="isSafetyOfficer" @click="navigateTo('TaskNotification')">安全检查任务</el-button>
<el-button v-if="isSafetyOfficer" @click="navigateTo('SafetyInspection')">安全检查问题反馈</el-button>
</div>
</div>
<!-- 隐患管理模块 -->
<div class="dropdown">
<button class="dropbtn">隐患管理</button>
<div class="dropdown-content">
<el-button v-if="isAdmin" @click="navigateTo('HiddenDangerView')">安全隐患项点</el-button>
<el-button v-if="isAdmin" @click="navigateTo('Hidden_s')">安全隐患统计</el-button>
<el-button v-if="isInspector" @click="navigateTo('HiddenDangerView')">安全隐患项点审核</el-button>
<el-button v-if="isSafetyOfficer" @click="navigateTo('HiddenDangerView')">安全隐患项点录入</el-button>
<el-button v-if="isInspector" @click="navigateTo('about')">安全隐患历史</el-button>
<el-button v-if="isAdmin" @click="navigateTo('about')">安全隐患历史</el-button>
</div>
</div>
<!-- 管理模块 -->
<div class="dropdown">
<button class="dropbtn">管理</button>
<div class="dropdown-content">
<el-button v-if="isAdmin" @click="navigateTo('PassRegister')">审批注册申请</el-button>
<el-button @click="showUserInfo">用户信息</el-button>
<el-button @click="confirmLogout">退出登录</el-button>
</div>
</div>
<!-- 评估考核模块 -->
<div class="dropdown">
<button class="dropbtn" v-if="isAdmin">评估考核</button>
<div class="dropdown-content">
<el-button v-if="isAdmin" @click="navigateTo('star')">星级评估</el-button>
<el-button v-if="isAdmin" @click="navigateTo('assess')">考核</el-button>
</div>
</div>
<el-dialog
v-model="dialogVisible"
title="用户信息"
width="30%">
<template #content>
<div>姓名: {{ userData.person }}</div>
<div>公司: {{ userData.company }}</div>
<div>部门: {{ userData.department }}</div>
<div>工区: {{ userData.workArea }}</div>
<div>班组: {{ userData.team }}</div>
<div>用户类型: {{ userData.type }}</div>
</template>
<template #footer>
<span class="dialog-footer">
<el-button @click="dialogVisible = false">关闭</el-button>
</span>
</template>
</el-dialog>

浙公网安备 33010602011771号