|
|
@@ -8,14 +8,18 @@
|
|
|
<img :src="ywdbIcon" alt="" />
|
|
|
待办
|
|
|
</span>
|
|
|
-<!-- <el-button link type="default"-->
|
|
|
-<!-- >查看更多 <el-icon><ArrowRight /></el-icon-->
|
|
|
-<!-- ></el-button>-->
|
|
|
+ <!-- <el-button link type="default"-->
|
|
|
+ <!-- >查看更多 <el-icon><ArrowRight /></el-icon-->
|
|
|
+ <!-- ></el-button>-->
|
|
|
</div>
|
|
|
</template>
|
|
|
<div v-if="showTodoList" class="audit-list">
|
|
|
<template v-for="todo in todoList" :key="todo.title">
|
|
|
- <div v-show="todo.task > 0" class="audit-item cursor-pointer" @click="() => handleRouteTo(todo)">
|
|
|
+ <div
|
|
|
+ v-show="todo.task > 0"
|
|
|
+ class="audit-item cursor-pointer"
|
|
|
+ @click="() => handleRouteTo(todo)"
|
|
|
+ >
|
|
|
<img :src="todo.iconUrl" alt="" />
|
|
|
<div>
|
|
|
<i v-if="typeof todo.task === 'number'">{{ todo.task }}</i>
|
|
|
@@ -37,9 +41,9 @@
|
|
|
<img :src="ywdbIcon" alt="" />
|
|
|
审批
|
|
|
</span>
|
|
|
-<!-- <el-button link type="default"-->
|
|
|
-<!-- >查看更多 <el-icon><ArrowRight /></el-icon-->
|
|
|
-<!-- ></el-button>-->
|
|
|
+ <!-- <el-button link type="default"-->
|
|
|
+ <!-- >查看更多 <el-icon><ArrowRight /></el-icon-->
|
|
|
+ <!-- ></el-button>-->
|
|
|
</div>
|
|
|
</template>
|
|
|
<div v-if="showAuditList" class="audit-list">
|
|
|
@@ -63,55 +67,6 @@
|
|
|
</div>
|
|
|
<el-empty v-else description="暂无审批数据" />
|
|
|
</el-card>
|
|
|
- <el-card class="box-card">
|
|
|
- <template #header>
|
|
|
- <div class="card-header">
|
|
|
- <span>
|
|
|
- <img :src="fxIcon" alt="" />
|
|
|
- 风险预警
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <div class="todo-list">
|
|
|
- <div
|
|
|
- v-for="todo in riskTodoList"
|
|
|
- :key="todo.title"
|
|
|
- class="flex-1 items-center flex risk-todo-item cursor-pointer"
|
|
|
- @click="() => handleRouteTo(todo)"
|
|
|
- >
|
|
|
- <img :src="todo.iconUrl" alt="" />
|
|
|
- <div>
|
|
|
- <span>{{ todo.title }}</span>
|
|
|
- <i>{{ todo.task }}</i>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-card class="box-card">
|
|
|
- <template #header>
|
|
|
- <div class="card-header">
|
|
|
- <span>
|
|
|
- <img :src="kjrkIcon" alt="" />
|
|
|
- 快捷入口
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <div class="todo-list quick-access-list">
|
|
|
- <div
|
|
|
- v-for="todo in quickAccessList"
|
|
|
- :key="todo.title"
|
|
|
- class="todo-item quick-access-item cursor-pointer"
|
|
|
- @click="() => handleRouteTo(todo)"
|
|
|
- >
|
|
|
- <img :src="todo.iconUrl" alt="" />
|
|
|
- <div>
|
|
|
- <span>{{ todo.title }}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
<el-card class="box-card">
|
|
|
<template #header>
|
|
|
<div class="card-header">
|
|
|
@@ -119,9 +74,9 @@
|
|
|
<img :src="tzIcon" alt="" />
|
|
|
通知公告
|
|
|
</span>
|
|
|
-<!-- <el-button v-if="noticeList.length" link type="default" @click="toMoreNotice"-->
|
|
|
-<!-- >查看更多 <el-icon><ArrowRight /></el-icon-->
|
|
|
-<!-- ></el-button>-->
|
|
|
+ <!-- <el-button v-if="noticeList.length" link type="default" @click="toMoreNotice"-->
|
|
|
+ <!-- >查看更多 <el-icon><ArrowRight /></el-icon-->
|
|
|
+ <!-- ></el-button>-->
|
|
|
</div>
|
|
|
</template>
|
|
|
<div class="todo-list">
|
|
|
@@ -160,14 +115,59 @@
|
|
|
</div>
|
|
|
</el-card>
|
|
|
</el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="risk-alert-wrap">
|
|
|
+ <RiskAlertCard
|
|
|
+ equip-type="boiler"
|
|
|
+ :fetch-my="getBoilerMyAlert"
|
|
|
+ :fetch-dept="getBoilerDeptAlert"
|
|
|
+ />
|
|
|
+ <RiskAlertCard
|
|
|
+ equip-type="pipe"
|
|
|
+ :fetch-my="getPipeMyAlert"
|
|
|
+ :fetch-dept="getPipeDeptAlert"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <el-card class="box-card">
|
|
|
+ <template #header>
|
|
|
+ <div class="card-header">
|
|
|
+ <span>
|
|
|
+ <img :src="kjrkIcon" alt="" />
|
|
|
+ 快捷入口
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <div class="todo-list quick-access-list">
|
|
|
+ <div
|
|
|
+ v-for="todo in quickAccessList"
|
|
|
+ :key="todo.title"
|
|
|
+ class="todo-item quick-access-item cursor-pointer"
|
|
|
+ @click="() => handleRouteTo(todo)"
|
|
|
+ >
|
|
|
+ <img :src="todo.iconUrl" alt="" />
|
|
|
+ <div>
|
|
|
+ <span>{{ todo.title }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
|
import { useUserStore } from '@/store/modules/user'
|
|
|
import { useWatermark } from '@/hooks/web/useWatermark'
|
|
|
import { ArrowRight, List } from '@element-plus/icons-vue'
|
|
|
-import { getTodoList, getAuditTodoList } from '@/api/common/home'
|
|
|
+import {
|
|
|
+ getTodoList,
|
|
|
+ getAuditTodoList,
|
|
|
+ getBoilerMyAlert,
|
|
|
+ getBoilerDeptAlert,
|
|
|
+ getPipeMyAlert,
|
|
|
+ getPipeDeptAlert
|
|
|
+} from '@/api/common/home'
|
|
|
import { IndexTodoApi } from '@/api/pressure2/indextodo'
|
|
|
+import RiskAlertCard from './components/RiskAlertCard.vue'
|
|
|
|
|
|
import yjIcon from '@/assets/imgs/index_imgs/约检@2x.png'
|
|
|
import jhpqIcon from '@/assets/imgs/index_imgs/计划排期@2x.png'
|
|
|
@@ -202,41 +202,215 @@ const msgTypeMap = {
|
|
|
|
|
|
// 业务待办列表(锅炉和管道分别显示)
|
|
|
const todoList = ref([
|
|
|
- { title: '计划表', key: 'boilerScheduleCount', equipType: 'boiler', iconUrl: zlfpIcon, task: 0, routerName: 'ScheduleBoiler' },
|
|
|
- { title: '任务确认', key: 'boilerTaskOrderConfirmCount', equipType: 'boiler', iconUrl: jhpqIcon, task: 0, routerName: 'BoilerCheckerTaskList' },
|
|
|
- { title: '检验录入', key: 'boilerMyTaskCount', equipType: 'boiler', iconUrl: jhdtIcon, task: 0, routerName: 'BoilerMyTask'},
|
|
|
- { title: '报告编制', key: 'boilerPrepareReportCount', equipType: 'boiler', iconUrl: zlfpIcon, task: 0, routerName: 'BoilerReportPreparationList' },
|
|
|
- { title: '计划表', key: 'pipeScheduleCount', equipType: 'pipe', iconUrl: zlfpIcon, task: 0, routerName: 'SchedulePipe' },
|
|
|
- { title: '任务确认', key: 'pipeTaskOrderConfirmCount', equipType: 'pipe', iconUrl: jhpqIcon, task: 0, routerName: 'PipeCheckerTaskList' },
|
|
|
- { title: '检验录入', key: 'pipeMyTaskCount', equipType: 'pipe', iconUrl: jhdtIcon, task: 0, routerName: 'PipeMyTask'},
|
|
|
- { title: '报告编制', key: 'pipePrepareReportCount', equipType: 'pipe', iconUrl: zlfpIcon, task: 0, routerName: 'PipeReportPreparationList' },
|
|
|
+ {
|
|
|
+ title: '计划表',
|
|
|
+ key: 'boilerScheduleCount',
|
|
|
+ equipType: 'boiler',
|
|
|
+ iconUrl: zlfpIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'ScheduleBoiler'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '任务确认',
|
|
|
+ key: 'boilerTaskOrderConfirmCount',
|
|
|
+ equipType: 'boiler',
|
|
|
+ iconUrl: jhpqIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'BoilerCheckerTaskList'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '检验录入',
|
|
|
+ key: 'boilerMyTaskCount',
|
|
|
+ equipType: 'boiler',
|
|
|
+ iconUrl: jhdtIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'BoilerMyTask'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '报告编制',
|
|
|
+ key: 'boilerPrepareReportCount',
|
|
|
+ equipType: 'boiler',
|
|
|
+ iconUrl: zlfpIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'BoilerReportPreparationList'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '计划表',
|
|
|
+ key: 'pipeScheduleCount',
|
|
|
+ equipType: 'pipe',
|
|
|
+ iconUrl: zlfpIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'SchedulePipe'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '任务确认',
|
|
|
+ key: 'pipeTaskOrderConfirmCount',
|
|
|
+ equipType: 'pipe',
|
|
|
+ iconUrl: jhpqIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'PipeCheckerTaskList'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '检验录入',
|
|
|
+ key: 'pipeMyTaskCount',
|
|
|
+ equipType: 'pipe',
|
|
|
+ iconUrl: jhdtIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'PipeMyTask'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '报告编制',
|
|
|
+ key: 'pipePrepareReportCount',
|
|
|
+ equipType: 'pipe',
|
|
|
+ iconUrl: zlfpIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'PipeReportPreparationList'
|
|
|
+ }
|
|
|
])
|
|
|
|
|
|
// 业务审批列表(锅炉和管道分别显示)
|
|
|
const auditLoading = ref(false)
|
|
|
const auditTodoList = ref([
|
|
|
- { title: '模板审核', key: 'reportTemplateCount', iconUrl: bgspIcon, task: 0, routerName: 'TemplateAudit' },
|
|
|
-
|
|
|
- { title: '记录校核', key: 'boilerRecheckOrderItemCount', equipType: 'boiler', iconUrl: jljhIcon, task: 0, routerName: 'BoilerCheckerRecordCheck' },
|
|
|
- { title: '上报市局审核', key: 'boilerReportCityBureauCount', equipType: 'boiler', iconUrl: rwdshIcon, task: 0, routerName: 'appointmentconfirmorderCityBureauListPressure2' },
|
|
|
- { title: '受理单审核', key: 'boilerAcceptOrderCount', equipType: 'boiler', iconUrl: jljhIcon, task: 0, routerName: 'AcceptOrderAuditBoiler' },
|
|
|
- { title: '缴费单待校核', key: 'boilerPressureNonTaxCount', equipType: 'boiler', iconUrl: zlshIcon, task: 0, routerName: 'PaymentReceiptApprovePressure2' },
|
|
|
- { title: '任务单修改审核', key: 'boilerTaskOrderCount', equipType: 'boiler', iconUrl: rwdshIcon, task: 0, routerName: 'TaskOrderReviewBoiler' },
|
|
|
- { title: '检验意见通知书审核', key: 'boilerPressureInspectionOpinionNoticeCount', equipType: 'boiler', iconUrl: jljhIcon, task: 0, routerName: 'AuditInspectionCommentsNoticeBoiler' },
|
|
|
- { title: '检验方案审核', key: 'boilerPressureInspectionSchemeCount', equipType: 'boiler', iconUrl: zlshIcon, task: 0, routerName: 'InspectionPlanAuditBoiler' },
|
|
|
- { title: '操作指导书审核', key: 'boilerPressureWorkingInstructionCount', equipType: 'boiler', iconUrl: rwdshIcon, task: 0, routerName: 'WorkInstructionAuditBoiler' },
|
|
|
+ {
|
|
|
+ title: '模板审核',
|
|
|
+ key: 'reportTemplateCount',
|
|
|
+ iconUrl: bgspIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'TemplateAudit'
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ title: '记录校核',
|
|
|
+ key: 'boilerRecheckOrderItemCount',
|
|
|
+ equipType: 'boiler',
|
|
|
+ iconUrl: jljhIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'BoilerCheckerRecordCheck'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '上报市局审核',
|
|
|
+ key: 'boilerReportCityBureauCount',
|
|
|
+ equipType: 'boiler',
|
|
|
+ iconUrl: rwdshIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'appointmentconfirmorderCityBureauListPressure2'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '受理单审核',
|
|
|
+ key: 'boilerAcceptOrderCount',
|
|
|
+ equipType: 'boiler',
|
|
|
+ iconUrl: jljhIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'AcceptOrderAuditBoiler'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '缴费单待校核',
|
|
|
+ key: 'boilerPressureNonTaxCount',
|
|
|
+ equipType: 'boiler',
|
|
|
+ iconUrl: zlshIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'PaymentReceiptApprovePressure2'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '任务单修改审核',
|
|
|
+ key: 'boilerTaskOrderCount',
|
|
|
+ equipType: 'boiler',
|
|
|
+ iconUrl: rwdshIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'TaskOrderReviewBoiler'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '检验意见通知书审核',
|
|
|
+ key: 'boilerPressureInspectionOpinionNoticeCount',
|
|
|
+ equipType: 'boiler',
|
|
|
+ iconUrl: jljhIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'AuditInspectionCommentsNoticeBoiler'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '检验方案审核',
|
|
|
+ key: 'boilerPressureInspectionSchemeCount',
|
|
|
+ equipType: 'boiler',
|
|
|
+ iconUrl: zlshIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'InspectionPlanAuditBoiler'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作指导书审核',
|
|
|
+ key: 'boilerPressureWorkingInstructionCount',
|
|
|
+ equipType: 'boiler',
|
|
|
+ iconUrl: rwdshIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'WorkInstructionAuditBoiler'
|
|
|
+ },
|
|
|
// OA流程:锅炉审核/审批
|
|
|
{ title: '锅炉审核', key: 'boilerCheckCount', equipType: 'boiler', iconUrl: bgspIcon, task: 0, routerPath: '/gljy/report-check-boiler', oaType: true },
|
|
|
{ title: '锅炉审批', key: 'boilerRatifyCount', equipType: 'boiler', iconUrl: bgspIcon, task: 0, routerPath: '/gljy/report-ratify-boiler', oaType: true },
|
|
|
|
|
|
- { title: '记录校核', key: 'pipeRecheckOrderItemCount', equipType: 'pipe', iconUrl: jljhIcon, task: 0, routerName: 'PipeCheckerRecordCheck' },
|
|
|
- { title: '上报市局审核', key: 'pipeReportCityBureauCount', equipType: 'pipe', iconUrl: rwdshIcon, task: 0, routerName: 'appointmentconfirmorderCityBureauListPressure2' },
|
|
|
- { title: '受理单审核', key: 'pipeAcceptOrderCount', equipType: 'pipe', iconUrl: jljhIcon, task: 0, routerName: 'AcceptOrderAuditPipe' },
|
|
|
- { title: '缴费单待校核', key: 'pipePressureNonTaxCount', equipType: 'pipe', iconUrl: zlshIcon, task: 0, routerName: 'PaymentReceiptApprovePressure2' },
|
|
|
- { title: '任务单修改审核', key: 'pipeTaskOrderCount', equipType: 'pipe', iconUrl: rwdshIcon, task: 0, routerName: 'TaskOrderReviewPipe' },
|
|
|
- { title: '检验意见通知书审核', key: 'pipePressureInspectionOpinionNoticeCount', equipType: 'pipe', iconUrl: jljhIcon, task: 0, routerName: 'AuditInspectionCommentsNoticePipe' },
|
|
|
- { title: '检验方案审核', key: 'pipePressureInspectionSchemeCount', equipType: 'pipe', iconUrl: zlshIcon, task: 0, routerName: 'InspectionPlanAuditPipe' },
|
|
|
- { title: '操作指导书审核', key: 'pipePressureWorkingInstructionCount', equipType: 'pipe', iconUrl: rwdshIcon, task: 0, routerName: 'WorkInstructionAuditPipe' },
|
|
|
+ {
|
|
|
+ title: '记录校核',
|
|
|
+ key: 'pipeRecheckOrderItemCount',
|
|
|
+ equipType: 'pipe',
|
|
|
+ iconUrl: jljhIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'PipeCheckerRecordCheck'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '上报市局审核',
|
|
|
+ key: 'pipeReportCityBureauCount',
|
|
|
+ equipType: 'pipe',
|
|
|
+ iconUrl: rwdshIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'appointmentconfirmorderCityBureauListPressure2'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '受理单审核',
|
|
|
+ key: 'pipeAcceptOrderCount',
|
|
|
+ equipType: 'pipe',
|
|
|
+ iconUrl: jljhIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'AcceptOrderAuditPipe'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '缴费单待校核',
|
|
|
+ key: 'pipePressureNonTaxCount',
|
|
|
+ equipType: 'pipe',
|
|
|
+ iconUrl: zlshIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'PaymentReceiptApprovePressure2'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '任务单修改审核',
|
|
|
+ key: 'pipeTaskOrderCount',
|
|
|
+ equipType: 'pipe',
|
|
|
+ iconUrl: rwdshIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'TaskOrderReviewPipe'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '检验意见通知书审核',
|
|
|
+ key: 'pipePressureInspectionOpinionNoticeCount',
|
|
|
+ equipType: 'pipe',
|
|
|
+ iconUrl: jljhIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'AuditInspectionCommentsNoticePipe'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '检验方案审核',
|
|
|
+ key: 'pipePressureInspectionSchemeCount',
|
|
|
+ equipType: 'pipe',
|
|
|
+ iconUrl: zlshIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'InspectionPlanAuditPipe'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作指导书审核',
|
|
|
+ key: 'pipePressureWorkingInstructionCount',
|
|
|
+ equipType: 'pipe',
|
|
|
+ iconUrl: rwdshIcon,
|
|
|
+ task: 0,
|
|
|
+ routerName: 'WorkInstructionAuditPipe'
|
|
|
+ },
|
|
|
// OA流程:管道审核/审批
|
|
|
{ title: '管道审核', key: 'pipeCheckCount', equipType: 'pipe', iconUrl: bgspIcon, task: 0, routerPath: '/gdjy/report-check-pipe', oaType: true },
|
|
|
{ title: '管道审批', key: 'pipeRatifyCount', equipType: 'pipe', iconUrl: bgspIcon, task: 0, routerPath: '/gdjy/report-ratify-pipe', oaType: true },
|
|
|
@@ -355,7 +529,7 @@ const fetchOATodoCount = async () => {
|
|
|
}
|
|
|
|
|
|
// 旧逻辑保留(注释)
|
|
|
-// const fetchTodoList = ...
|
|
|
+// const fetchTodoList = ...
|
|
|
// const fetchAuditTodoList = ...
|
|
|
|
|
|
// 通知公告
|
|
|
@@ -844,4 +1018,10 @@ selectNoticeList()
|
|
|
.equip-tag-pipe {
|
|
|
color: #67c23a !important;
|
|
|
}
|
|
|
+.risk-alert-wrap {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 16px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+}
|
|
|
</style>
|