fix:规范使用的方法
This commit is contained in:
@@ -36,6 +36,7 @@ const handleCloseFun = () => {
|
||||
<style lang="scss" scoped>
|
||||
.vision-page {
|
||||
width: 100%;
|
||||
height: 600px;
|
||||
// height: 600px;
|
||||
height: calc(100% - 20px);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<template #footer v-if="showFooter">
|
||||
<div>
|
||||
<el-button @click="closeFun">关闭</el-button>
|
||||
<el-button type="primary" @click="updateFun">确定</el-button>
|
||||
@@ -170,10 +170,14 @@ const props = defineProps({
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
showFooter: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
});
|
||||
|
||||
const dialogVisible = ref(true);
|
||||
const activeTab = ref(props.showTaskInfo ? 'info' : 'model');
|
||||
const activeTab = ref(props.showTaskInfo ? 'info' : 'model-3d');
|
||||
const taskPerformanceRef = ref();
|
||||
const taskInfoRef = ref();
|
||||
const approvaVisable = ref(false);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
:searchLimitNum="searchLimitNum"
|
||||
exportFileName="所有任务列表"
|
||||
:actionList="canOperate ? actionList : []"
|
||||
@nameClick="showTaskDetailFun"
|
||||
@show="showTaskDetailFun"
|
||||
>
|
||||
</taskTable>
|
||||
<taskDetail
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
:params="{ type: 1 }"
|
||||
exportFileName="我关注的任务列表"
|
||||
:actionList="actionList"
|
||||
@nameClick="showTaskDetailFun"
|
||||
@show="showTaskDetailFun"
|
||||
>
|
||||
</taskTable>
|
||||
<taskDetail
|
||||
|
||||
@@ -76,6 +76,11 @@
|
||||
<template #tMemberList="{ row }">
|
||||
{{ disposeMemberList(row, 'tMemberList') }}
|
||||
</template>
|
||||
<template #demandName="{ row }">
|
||||
<span class="see-relation-task-btn" @click="nameClickFun(row)">
|
||||
{{ row.phaseName }}
|
||||
</span>
|
||||
</template>
|
||||
</BaseTable>
|
||||
<attachments :demandId="demandInfo.uuid" v-model:visible="attachmentsVisible"></attachments>
|
||||
<TaskListDialog
|
||||
@@ -129,6 +134,7 @@ defineProps({
|
||||
const commonStore = CommonStore();
|
||||
|
||||
const { DEMAND_TYPE } = useDict('DEMAND_TYPE');
|
||||
const emits = defineEmits(['show']);
|
||||
|
||||
const attachmentsVisible = ref(false);
|
||||
|
||||
@@ -196,6 +202,10 @@ const showTaskListDialogFun = (row: any) => {
|
||||
showTaskListDialog.value = true;
|
||||
};
|
||||
|
||||
const nameClickFun = (row: any) => {
|
||||
emits('show', row);
|
||||
};
|
||||
|
||||
// const searchChange = async (val: any) => {
|
||||
// const optionList = await getPhaseList(nodeType, nodeId);
|
||||
// tableFormRef.value.setOptionsFun(nextKey, optionList);
|
||||
|
||||
@@ -199,7 +199,7 @@ const props = defineProps({
|
||||
},
|
||||
});
|
||||
|
||||
const emits = defineEmits(['nameClick']);
|
||||
const emits = defineEmits(['show']);
|
||||
|
||||
const { TASK_APPROVE_STATUS, TASK_PROGRESS_STATUS, TASK_ABNORMAL } = useDict(
|
||||
'TASK_APPROVE_STATUS',
|
||||
@@ -426,7 +426,7 @@ const seeDemandDetailDialogFun = (demandUid: string) => {
|
||||
};
|
||||
|
||||
const nameClickFun = (row: any) => {
|
||||
emits('nameClick', row);
|
||||
emits('show', row);
|
||||
};
|
||||
|
||||
defineExpose({
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
tableName="SIMULATION_TASK_EXECUTE_LIST"
|
||||
:params="{ type: 0 }"
|
||||
:actionList="actionList"
|
||||
@name-click="editTaskFun"
|
||||
@show="editTaskFun"
|
||||
>
|
||||
</taskTable>
|
||||
<Dialog
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
:params="{ type: 3 }"
|
||||
exportFileName="我分发的任务列表"
|
||||
:action-list="actionList"
|
||||
@name-click="editTaskFun"
|
||||
@show="editTaskFun"
|
||||
>
|
||||
</taskTable>
|
||||
<Dialog
|
||||
|
||||
@@ -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