clean log

This commit is contained in:
paola.trabucco
2024-08-08 14:59:17 +02:00
parent d8384aa616
commit b1c90a61da
3 changed files with 0 additions and 14 deletions

View File

@@ -127,10 +127,8 @@ const debug_modal = ref(false)
onMounted(() => { onMounted(() => {
loading.value = true loading.value = true
const id = route.params.id; const id = route.params.id;
console.log(id)
axios.get('http://localhost:8081/scenarios/' + id ) axios.get('http://localhost:8081/scenarios/' + id )
.then(response => { .then(response => {
console.log(response);
loading.value = false loading.value = false
scenario.value = response.data scenario.value = response.data
}); });
@@ -158,13 +156,10 @@ onMounted(() => {
inputs: { ...formData.value } inputs: { ...formData.value }
}; };
console.log(data);
axios.post('http://localhost:8081/scenarios/execute', data) axios.post('http://localhost:8081/scenarios/execute', data)
.then(response => { .then(response => {
loading_data.value = false; loading_data.value = false;
data_loaded.value = true; data_loaded.value = true;
console.log(response);
scenario_output.value = response.data.stringOutput; scenario_output.value = response.data.stringOutput;
exec_id.value = response.data.scenarioExecution_id exec_id.value = response.data.scenarioExecution_id
@@ -179,11 +174,8 @@ onMounted(() => {
} }
const openDebug = () => { const openDebug = () => {
console.log("exec_id", exec_id.value)
axios.get('http://localhost:8081/scenarios/execute/'+ exec_id.value).then(resp =>{ axios.get('http://localhost:8081/scenarios/execute/'+ exec_id.value).then(resp =>{
exec_scenario.value = resp.data exec_scenario.value = resp.data
console.log(exec_scenario.value)
debug_modal.value = true debug_modal.value = true
}) })
} }

View File

@@ -88,7 +88,6 @@ import { ScenarioService } from '../../service/ScenarioService.js';
ScenarioService.getScenarios().then(resp=>{ ScenarioService.getScenarios().then(resp=>{
data.scenarios = resp.data data.scenarios = resp.data
loading.value = false loading.value = false
console.log(data.scenarios)
}) })
}); });
@@ -99,10 +98,8 @@ import { ScenarioService } from '../../service/ScenarioService.js';
}) })
const filter = computed(() => { const filter = computed(() => {
console.log("check");
if (data.search) { if (data.search) {
console.log("check1b");
return data.scenarios.filter((item) => { return data.scenarios.filter((item) => {
return data.search return data.search
@@ -111,13 +108,11 @@ import { ScenarioService } from '../../service/ScenarioService.js';
.every((v) => item.name.toLowerCase().includes(v)); .every((v) => item.name.toLowerCase().includes(v));
}); });
} else { } else {
console.log("check2b");
return data.scenarios; return data.scenarios;
} }
}); });
const executeScenario = (id) => { const executeScenario = (id) => {
console.log(id);
router.push({ name: 'scenario-exec', params: { id: id } }); router.push({ name: 'scenario-exec', params: { id: id } });
} }
</script> </script>

View File

@@ -18,7 +18,6 @@ const logoUrl = computed(() => {
}); });
const login = async () => { const login = async () => {
console.log('Username: ', username.value);
try { try {
await auth.login({ await auth.login({
data:{ data:{