commit fix bugs
This commit is contained in:
@@ -78,9 +78,9 @@ import ProgressSpinner from 'primevue/progressspinner';
|
||||
import { computed, onMounted, reactive, ref } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { LoadingStore } from '../../stores/LoadingStore.js';
|
||||
import { UserPrefStore } from '../../stores/UserPrefStore.js';
|
||||
import { ScenarioStore } from '../../stores/ScenarioStore.js';
|
||||
import { ScenarioExecutionStore } from '../../stores/ScenarioExecutionStore.js';
|
||||
import { ScenarioStore } from '../../stores/ScenarioStore.js';
|
||||
import { UserPrefStore } from '../../stores/UserPrefStore.js';
|
||||
|
||||
|
||||
const loadingStore = LoadingStore()
|
||||
@@ -116,7 +116,7 @@ const scenario_execution_store = ScenarioExecutionStore();
|
||||
return data.search
|
||||
.toLowerCase()
|
||||
.split(" ")
|
||||
.every((v) => item.name.toLowerCase().includes(v));
|
||||
.every((v) => item.fe_name.toLowerCase().includes(v));
|
||||
});
|
||||
} else {
|
||||
return data.projects;
|
||||
|
||||
@@ -76,6 +76,16 @@ const isInputFilled = computed(() => {
|
||||
return inputValue && Array.isArray(inputValue) && inputValue.length > 0;
|
||||
}
|
||||
|
||||
// For file uploads, check if the file has been uploaded
|
||||
if (input.type === 'singlefile' || input.type === 'singlefile_acceptall') {
|
||||
return inputValue !== undefined && inputValue !== '';
|
||||
}
|
||||
|
||||
// For multifile, it's optional so always return true
|
||||
if (input.type === 'multifile') {
|
||||
return true;
|
||||
}
|
||||
|
||||
return inputValue !== undefined && inputValue !== '';
|
||||
});
|
||||
});
|
||||
@@ -191,8 +201,13 @@ const onDynamicPickerChange = (inputName, value) => {
|
||||
|
||||
// ============= File Upload Handlers =============
|
||||
const handleFileUpload = (data) => {
|
||||
console.log('handleFileUpload - data.fileName:', data.fileName);
|
||||
console.log('handleFileUpload - data.response:', data.response);
|
||||
console.log('handleFileUpload - data.inputName:', data.inputName);
|
||||
|
||||
if (data.inputName === 'SingleFileUpload') {
|
||||
formData.value['SingleFileUpload'] = data.fileName;
|
||||
formData.value['Folder'] = data.response;
|
||||
numberPrFiles.value += 1;
|
||||
} else {
|
||||
formData.value['MultiFileUpload'] = data.response;
|
||||
|
||||
Reference in New Issue
Block a user