fix:规范使用的方法

This commit is contained in:
2026-01-12 19:50:26 +08:00
parent 22b2609293
commit b1a7942184
9 changed files with 42 additions and 9 deletions

View File

@@ -9,6 +9,7 @@
:api="demandListApi"
exportFileName="新增待办需求"
:actionList="actionList"
@show="showTaskDetailFun"
>
<template #leftOptions>
<el-button
@@ -60,6 +61,16 @@
</div>
</template>
</Dialog>
<taskDetail
v-if="showTaskDetailDialog"
:taskId="currentTaskInfo.id"
:currentTaskInfo="currentTaskInfo"
:show-footer="false"
:show-task-info="false"
@closeFn="showTaskDetailDialog = false"
>
</taskDetail>
</div>
<attachments :demandId="demandInfo.uuid" v-model:visible="attachmentsVisible"></attachments>
</template>
@@ -83,6 +94,7 @@ import { enableConfigByTenant, TENANT_ENUM } from '@/tenants/tenant';
import { syncDemandList } from '../taskPage';
import { getChildrenNodeListApi } from '@/api/project/node';
import type { Options } from '@/types';
import taskDetail from '@/views/task/projectDetail/components/taskDetail.vue';
const env = import.meta.env;
const PREFIX = env.VITE_API_PREFIX_PROJECT;
@@ -101,7 +113,13 @@ defineProps({
const emits = defineEmits(['visibleDialog', 'loadTableForm', 'changeForm']);
const commonStore = CommonStore();
const currentTaskInfo = ref({ id: '', uuid: '' });
const showTaskDetailDialog = ref(false);
const showTaskDetailFun = (row: any) => {
showTaskDetailDialog.value = true;
currentTaskInfo.value = row;
};
const actionList = ref([
{
title: '编辑',