update:bug修复
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
</div>
|
||||
|
||||
<div class="upload-page" v-if="setectType === 2">
|
||||
<el-select v-model="rowInfo.defaultValue" multiple @change="updateFun">
|
||||
<el-select v-model="rowInfo.defaultValue" :disabled="readonly" multiple @change="updateFun">
|
||||
<el-option
|
||||
v-for="item in selectFileList"
|
||||
:key="item.id"
|
||||
|
||||
@@ -155,17 +155,21 @@ const queryRunDirFun = async (param: any) => {
|
||||
fileId: props.fileId,
|
||||
};
|
||||
const res: any = await queryRunDirApi(params);
|
||||
const res2: any = await previewNodeInputFilesApi(props.onlineFileParam);
|
||||
const data = res2.data.map((item: any) => {
|
||||
return {
|
||||
...item,
|
||||
originalName: item.fileName,
|
||||
objectKey: item.filePath.replace('/home/simulation/', ''),
|
||||
fileSize: Number(item.fileSize) ? item.fileSize : 1024,
|
||||
localFile: true,
|
||||
};
|
||||
});
|
||||
res.data.data = res.data.data.concat(data);
|
||||
|
||||
if (props.onlineFileParam?.beforeNodeId) {
|
||||
const res2: any = await previewNodeInputFilesApi(props.onlineFileParam);
|
||||
const data = res2.data.map((item: any) => {
|
||||
return {
|
||||
...item,
|
||||
originalName: item.fileName,
|
||||
objectKey: item.filePath.replace('/home/simulation/', ''),
|
||||
fileSize: Number(item.fileSize) ? item.fileSize : 1024,
|
||||
localFile: true,
|
||||
};
|
||||
});
|
||||
res.data.data = res.data.data.concat(data);
|
||||
}
|
||||
|
||||
return res;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user