update:仿真执行节点操作选择文件优化

This commit is contained in:
2026-04-08 09:39:42 +08:00
parent b3dd6f437b
commit f454060317
3 changed files with 26 additions and 6 deletions

View File

@@ -106,7 +106,7 @@ const fileList = ref<any>([]);
const rowInfo = ref<any>({});
const uploalLocal = ref('online');
const uploadRef = ref();
const AllFileList = ref<any>(props.selectFileList);
const AllFileList = ref<any>([]);
const selectOnlineFileFun = () => {
visible.value = true;
@@ -185,6 +185,19 @@ watch(
}
);
watch(
() => props.selectFileList,
(newVal) => {
if (newVal) {
AllFileList.value = newVal;
}
},
{
immediate: true,
deep: true,
}
);
defineExpose({
// queryFileList,
});

View File

@@ -1,6 +1,8 @@
<template>
<div class="flow-node-param-page">
<div class="table-box">
<!-- :data="tableData" -->
<BaseTable
ref="baseTableRef"
hide-pagination
@@ -12,7 +14,6 @@
rowField: 'vModel',
childrenField: 'children',
}"
:data="tableData"
:full-height="true"
:show-setting="false"
>
@@ -624,6 +625,10 @@ watch(
}
formatDataFun(tableData.value, 0);
nextTick(() => {
baseTableRef.value.setDataFun(tableData.value);
});
}
},
{

View File

@@ -143,7 +143,7 @@
<div class="tabs-info-content">
<flowNodeParamTable
ref="flowNodeParamTableRef"
v-show="nodeActiveName === 'info'"
v-if="nodeActiveName === 'info'"
:node-params="nodeParamDataList"
:current-node="flowNode"
:page-info="flowNodeData"
@@ -437,9 +437,11 @@ const toggleRightFullScreenFun = () => {
const handleLeftClickFun = async () => {
if (nodeActiveName.value === 'info') {
if (flowNodeParamTableRef.value) {
await flowNodeParamTableRef.value.queryFileList(flowNodeData.value.inputDirId);
}
setTimeout(() => {
if (flowNodeParamTableRef.value) {
flowNodeParamTableRef.value.queryFileList(flowNodeData.value.inputDirId);
}
}, 200);
}
};