fix:规范使用的方法
This commit is contained in:
@@ -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: '编辑',
|
||||
|
||||
Reference in New Issue
Block a user