|
@@ -37,7 +37,7 @@
|
|
|
:isActive="activeId === item.id"
|
|
:isActive="activeId === item.id"
|
|
|
@toggle="handleCollapseToggle(item.id)"
|
|
@toggle="handleCollapseToggle(item.id)"
|
|
|
>
|
|
>
|
|
|
- <template #viewOperation>
|
|
|
|
|
|
|
+ <template #view-operation>
|
|
|
<el-tooltip
|
|
<el-tooltip
|
|
|
:content="item.tableData[0].disasterReportRecordDetailList.length ? '查看' : '任务无损失'"
|
|
:content="item.tableData[0].disasterReportRecordDetailList.length ? '查看' : '任务无损失'"
|
|
|
placement="top"
|
|
placement="top"
|
|
@@ -49,6 +49,7 @@
|
|
|
'collapse-item__icon',
|
|
'collapse-item__icon',
|
|
|
{ 'collapse-item__icon--disabled': !item.tableData[0].disasterReportRecordDetailList.length },
|
|
{ 'collapse-item__icon--disabled': !item.tableData[0].disasterReportRecordDetailList.length },
|
|
|
]"
|
|
]"
|
|
|
|
|
+ @click="handleViewTask(item.handleTaskId, item.taskName)"
|
|
|
/>
|
|
/>
|
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
</template>
|
|
</template>
|
|
@@ -90,7 +91,10 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template #action="scope">
|
|
<template #action="scope">
|
|
|
<div class="action-container" v-if="scope.row.fixStatus === FIX_STATUS.TO_BE_RECTIFIED">
|
|
<div class="action-container" v-if="scope.row.fixStatus === FIX_STATUS.TO_BE_RECTIFIED">
|
|
|
- <ActionButton text="查看" />
|
|
|
|
|
|
|
+ <ActionButton
|
|
|
|
|
+ text="查看"
|
|
|
|
|
+ @click="handleViewTask(item.handleTaskId, item.taskName, scope.row.id, scope.row.fixTaskId)"
|
|
|
|
|
+ />
|
|
|
<ActionButton
|
|
<ActionButton
|
|
|
text="去整改"
|
|
text="去整改"
|
|
|
@click="
|
|
@click="
|
|
@@ -109,7 +113,10 @@
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="action-container" v-else>
|
|
<div class="action-container" v-else>
|
|
|
- <ActionButton text="查看" />
|
|
|
|
|
|
|
+ <ActionButton
|
|
|
|
|
+ text="查看"
|
|
|
|
|
+ @click="handleViewTask(item.handleTaskId, item.taskName, scope.row.id, scope.row.fixTaskId)"
|
|
|
|
|
+ />
|
|
|
<ActionButton
|
|
<ActionButton
|
|
|
text="去整改"
|
|
text="去整改"
|
|
|
@click="
|
|
@click="
|
|
@@ -169,7 +176,6 @@
|
|
|
import { getfixStatus } from './src/util';
|
|
import { getfixStatus } from './src/util';
|
|
|
import type { PersonGroupItem } from '@/types/person-group/type';
|
|
import type { PersonGroupItem } from '@/types/person-group/type';
|
|
|
import type {
|
|
import type {
|
|
|
- disasterReportTaskInfoListResponse,
|
|
|
|
|
DisposalManagementCollapseListResponse,
|
|
DisposalManagementCollapseListResponse,
|
|
|
LossRecordTableResponse,
|
|
LossRecordTableResponse,
|
|
|
disasterReportRecordDetailListResponse,
|
|
disasterReportRecordDetailListResponse,
|
|
@@ -182,7 +188,6 @@
|
|
|
DISPOSAL_MANAGEMENT_TABLE_OPTIONS,
|
|
DISPOSAL_MANAGEMENT_TABLE_OPTIONS,
|
|
|
} from './src/config';
|
|
} from './src/config';
|
|
|
import { DEFAULT_PAGE_SIZE, DISASTER_CONTROL_PAGE_SIZE_CONFIG, FIX_STATUS } from './src/constant';
|
|
import { DEFAULT_PAGE_SIZE, DISASTER_CONTROL_PAGE_SIZE_CONFIG, FIX_STATUS } from './src/constant';
|
|
|
- import { ACTIVE_STATUS } from '@/views/disaster/constant';
|
|
|
|
|
import Empty from 'assets/images/empty@1X.png';
|
|
import Empty from 'assets/images/empty@1X.png';
|
|
|
import ViewDocument from './src/svg/view-document.svg';
|
|
import ViewDocument from './src/svg/view-document.svg';
|
|
|
|
|
|
|
@@ -228,16 +233,6 @@
|
|
|
|
|
|
|
|
const taskIds = ref<number[]>([]);
|
|
const taskIds = ref<number[]>([]);
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
- const Table_RouterName = 'disaster-control-disposal-management-item';
|
|
|
|
|
- const handleEditDisposalManagement = (id: number) => {
|
|
|
|
|
- router.push({
|
|
|
|
|
- name: Table_RouterName,
|
|
|
|
|
- query: {
|
|
|
|
|
- id,
|
|
|
|
|
- operate: 'edit',
|
|
|
|
|
- },
|
|
|
|
|
- });
|
|
|
|
|
- };
|
|
|
|
|
|
|
|
|
|
const handleCollapseToggle = (itemId: number) => {
|
|
const handleCollapseToggle = (itemId: number) => {
|
|
|
if (activeId.value === itemId) {
|
|
if (activeId.value === itemId) {
|
|
@@ -331,12 +326,18 @@
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- const isViewTask = (disasterReportTaskInfoList: disasterReportTaskInfoListResponse[]) => {
|
|
|
|
|
- return disasterReportTaskInfoList.some((item) => item.status === ACTIVE_STATUS.ACTIVE);
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- const handleViewTask = (id: number) => {
|
|
|
|
|
- console.log('查看任务ID' + id);
|
|
|
|
|
|
|
+ const handleViewTask = (handleTaskId: number, taskName: string, lossTaskId?: number, fixTaskId?: number) => {
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ name: 'disaster-control-disposal-rectification-item-detail',
|
|
|
|
|
+ params: {
|
|
|
|
|
+ id: handleTaskId,
|
|
|
|
|
+ },
|
|
|
|
|
+ query: {
|
|
|
|
|
+ taskName,
|
|
|
|
|
+ lossTaskId,
|
|
|
|
|
+ fixTaskId,
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|