|
|
@@ -32,7 +32,7 @@
|
|
|
v-for="item in myStats"
|
|
|
:key="item.checkType"
|
|
|
class="status-tag cursor-pointer"
|
|
|
- @click.stop="handleClick(item.checkType, item.equipCodes)"
|
|
|
+ @click.stop="handleClick(item.checkType, item.equipCodes,1)"
|
|
|
>
|
|
|
<span class="status-label">{{ item.checkTypeName }}</span>
|
|
|
<span class="status-count">{{ item.count }}</span>
|
|
|
@@ -78,7 +78,7 @@
|
|
|
v-for="item in child.checkTypeStats"
|
|
|
:key="item.checkType"
|
|
|
class="status-tag cursor-pointer"
|
|
|
- @click.stop="handleClick(item.checkType, item.equipCodes)"
|
|
|
+ @click.stop="handleClick(item.checkType, item.equipCodes,2)"
|
|
|
>
|
|
|
<span class="status-label">{{ item.checkTypeName }}</span>
|
|
|
<span class="status-count">{{ item.count }}</span>
|
|
|
@@ -157,14 +157,23 @@ const onDeptChange = (val: string | null) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-const handleClick = (checkType: number, equipCodes: string[]) => {
|
|
|
+const handleClick = (checkType: number, equipCodes: string[], type: number) => {
|
|
|
+ const { id } = userStore.getUser
|
|
|
sessionStorage.setItem('riskAlertEquipCodes', JSON.stringify(equipCodes))
|
|
|
sessionStorage.setItem('riskAlertCheckType', String(checkType))
|
|
|
sessionStorage.setItem('riskAlertEquipType', props.equipType)
|
|
|
if (props.equipType === 'boiler') {
|
|
|
- router.push({ name: 'BoilerMyTask', query: { from: 'riskAlert' } })
|
|
|
+ if (type == 1){
|
|
|
+ router.push({ name: 'BoilerMyTask', query: { from: 'riskAlert',searchUserId: id} })
|
|
|
+ }else if (type == 2){
|
|
|
+ router.push({ name: 'BoilerMyTask', query: { from: 'riskAlert'} })
|
|
|
+ }
|
|
|
} else {
|
|
|
- router.push({ name: 'PipeMyTask', query: { from: 'riskAlert' } })
|
|
|
+ if (type == 1){
|
|
|
+ router.push({ name: 'PipeMyTask', query: { from: 'riskAlert',searchUserId: id } })
|
|
|
+ }else if (type == 2){
|
|
|
+ router.push({ name: 'PipeMyTask', query: { from: 'riskAlert' } })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|