|
|
@@ -92,13 +92,13 @@
|
|
|
<!-- 待整改 statusId=2:查看、整改、扣分 -->
|
|
|
<template v-else-if="scope.row.statusId === 2">
|
|
|
<ActionButton text="查看" @click="handleView(scope.row.id)" />
|
|
|
- <ActionButton text="整改" @click="handleRectify(scope.row.id)" />
|
|
|
+ <ActionButton text="整改" @click="handleRectify(scope.row.id)" v-if="id === scope.row.rectificationResponsibleIds"/>
|
|
|
<ActionButton text="扣分" @click="handleOpenDeduct(scope.row.id)" />
|
|
|
</template>
|
|
|
<!-- 待复查 statusId=3:查看、复查、扣分 -->
|
|
|
<template v-else-if="scope.row.statusId === 3">
|
|
|
<ActionButton text="查看" @click="handleView(scope.row.id)" />
|
|
|
- <ActionButton text="复查" @click="handleReview(scope.row.id)" />
|
|
|
+ <ActionButton text="复查" @click="handleReview(scope.row.id)" v-if="id === scope.row.reviewPersonId"/>
|
|
|
<ActionButton text="扣分" @click="handleOpenDeduct(scope.row.id)" />
|
|
|
</template>
|
|
|
<!-- 已完成 statusId=4:查看、扣分 -->
|
|
|
@@ -248,6 +248,8 @@
|
|
|
import BatchImport from '@/components/batch-import/BatchImport.vue';
|
|
|
import { useGlobSetting } from '@/hooks/setting';
|
|
|
import urlJoin from 'url-join';
|
|
|
+ import { useUserInfoHook } from '@/hooks/useUserInfoHook'
|
|
|
+ const { id } = useUserInfoHook();
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
|
@@ -298,6 +300,8 @@
|
|
|
currentNode: item.currentNode,
|
|
|
statusName: item.statusName,
|
|
|
statusId: item.statusId,
|
|
|
+ reviewPersonId: item.reviewPersonId,
|
|
|
+ rectificationResponsibleIds: Number(item.rectificationResponsibleIds),
|
|
|
}));
|
|
|
pagination.total = (res as any).totalRow ?? (res as any).total ?? 0;
|
|
|
} else {
|