fix: 找回丢失的代码 6c74ddcd33
This commit is contained in:
@@ -285,12 +285,8 @@
|
||||
v-model="pedigreeVisible"
|
||||
:rowData="currentPedigreeRow"
|
||||
:dataType="currentModel"
|
||||
:pedigreeType="pedigreeType"
|
||||
/>
|
||||
<TaskPedigreeDialog
|
||||
v-model="taskPedigreeVisible"
|
||||
:rowData="currentPedigreeRow"
|
||||
:dataType="currentModel"
|
||||
></TaskPedigreeDialog>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
@@ -334,7 +330,6 @@ import { downloadFileById } from '@/utils/file';
|
||||
import { exportToPdf } from '@/utils/exportPdf';
|
||||
import dayjs from 'dayjs';
|
||||
import { CommonStore } from '@/stores/common';
|
||||
import TaskPedigreeDialog from './components/Taskpedigree/pedigreeDialog.vue';
|
||||
|
||||
const commonStore = CommonStore();
|
||||
|
||||
@@ -350,7 +345,7 @@ const showRunDetailDialog = ref(false);
|
||||
const showPerformanceInfoDialog = ref(false);
|
||||
const showAnalysisDialog = ref(false);
|
||||
const pedigreeVisible = ref(false);
|
||||
const taskPedigreeVisible = ref(false);
|
||||
const pedigreeType = ref<'task' | 'run'>('run');
|
||||
const currentPedigreeRow = ref<any>({});
|
||||
const dictModeOptions = commonStore.getDictData('ALL_FILE_TYPE').A || [];
|
||||
const tableRef = ref();
|
||||
@@ -526,6 +521,7 @@ const actionList = ref<any>([
|
||||
return;
|
||||
}
|
||||
currentPedigreeRow.value = row;
|
||||
pedigreeType.value = 'run';
|
||||
pedigreeVisible.value = true;
|
||||
},
|
||||
hide: (row: any) => {
|
||||
@@ -542,7 +538,8 @@ const actionList = ref<any>([
|
||||
return;
|
||||
}
|
||||
currentPedigreeRow.value = row;
|
||||
taskPedigreeVisible.value = true;
|
||||
pedigreeType.value = 'task';
|
||||
pedigreeVisible.value = true;
|
||||
},
|
||||
hide: (row: any) => {
|
||||
return !row.owntaskId || row.ownRunId;
|
||||
@@ -589,29 +586,15 @@ const searchChangeFun = (searchData: any) => {
|
||||
if (val.uuid) {
|
||||
getChildNodeFun('phase');
|
||||
}
|
||||
clearChildOptions([
|
||||
'phaseNodeId',
|
||||
'machineNodeId',
|
||||
'workspaceNodeId',
|
||||
'taskNodeId',
|
||||
'runId',
|
||||
'disciplineNodeId',
|
||||
]);
|
||||
clearChildOptions(['phaseNodeId', 'machineNodeId', 'workspaceNodeId', 'taskNodeId', 'runId']);
|
||||
}
|
||||
|
||||
if (key === 'phaseNodeId') {
|
||||
if (val) {
|
||||
getChildNodeFun('machine');
|
||||
getChildNodeFun('workspace');
|
||||
getChildNodeFun('discipline');
|
||||
}
|
||||
clearChildOptions([
|
||||
'machineNodeId',
|
||||
'workspaceNodeId',
|
||||
'taskNodeId',
|
||||
'runId',
|
||||
'disciplineNodeId',
|
||||
]);
|
||||
clearChildOptions(['machineNodeId', 'workspaceNodeId', 'taskNodeId', 'runId']);
|
||||
}
|
||||
|
||||
if (key === 'machineNodeId') {
|
||||
@@ -636,9 +619,7 @@ const searchChangeFun = (searchData: any) => {
|
||||
}
|
||||
};
|
||||
|
||||
const getChildNodeFun = (
|
||||
nodeType: 'phase' | 'machine' | 'workspace' | 'task' | 'run' | 'discipline'
|
||||
) => {
|
||||
const getChildNodeFun = (nodeType: 'phase' | 'machine' | 'workspace' | 'task' | 'run') => {
|
||||
const searchParams = tableRef.value?.getSearchParamsFun() || {};
|
||||
const params: any = { nodeType };
|
||||
|
||||
@@ -648,9 +629,6 @@ const getChildNodeFun = (
|
||||
if (nodeType !== 'phase' && searchParams.phaseNodeId) {
|
||||
params.phaseNodeId = searchParams.phaseNodeId;
|
||||
}
|
||||
if (!['phase', 'discipline'].includes(nodeType) && searchParams.disciplineNodeId) {
|
||||
params.disciplineNodeId = searchParams.disciplineNodeId;
|
||||
}
|
||||
if (!['phase', 'machine'].includes(nodeType) && searchParams.machineNodeId) {
|
||||
params.machineNodeId = searchParams.machineNodeId;
|
||||
}
|
||||
@@ -671,9 +649,6 @@ const getChildNodeFun = (
|
||||
if (nodeType === 'phase') {
|
||||
tableRef.value?.setOptionsFun('phaseNodeId', options);
|
||||
}
|
||||
if (nodeType === 'discipline') {
|
||||
tableRef.value?.setOptionsFun('disciplineNodeId', options);
|
||||
}
|
||||
if (nodeType === 'machine') {
|
||||
tableRef.value?.setOptionsFun('machineNodeId', options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user