Fix typos: createfilterId, sidevarFilterRef, selecteName, namber

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 09:15:35 +08:00
parent 802a5e51fd
commit 3eec131ae0
4 changed files with 24 additions and 24 deletions

View File

@@ -127,12 +127,12 @@ export default defineStore('allMapDataStore', {
async getAllMapData() {
const logId = this.logId;
const tempFilterId = this.tempFilterId;
const createfilterId = this.createFilterId
const createFilterId = this.createFilterId
let api = '';
// 先判斷暫存 再判斷 filter 最後 log
if(tempFilterId != null) api = `/api/temp-filters/${tempFilterId}/discover`;
else if(createfilterId!= null) api = `/api/filters/${createfilterId}/discover`;
else if(createFilterId!= null) api = `/api/filters/${createFilterId}/discover`;
else api = `/api/logs/${logId}/discover`;
try {
@@ -151,14 +151,14 @@ export default defineStore('allMapDataStore', {
async getAllTrace() {
const logId = this.logId;
const tempFilterId = this.tempFilterId;
const createfilterId = this.createFilterId;
const createFilterId = this.createFilterId;
const baseLogId = this.baseLogId;
const baseApi = `/api/logs/${baseLogId}/traces`;
let api = '';
// 先判斷暫存 再判斷 filter 最後 log
if(tempFilterId != null) api = `/api/temp-filters/${tempFilterId}/traces`;
else if(createfilterId!= null) api = `/api/filters/${createfilterId}/traces`;
else if(createFilterId!= null) api = `/api/filters/${createFilterId}/traces`;
else api = `/api/logs/${logId}/traces`;
try {
@@ -180,13 +180,13 @@ export default defineStore('allMapDataStore', {
const logId = this.logId;
const traceId = this.traceId;
const tempFilterId = this.tempFilterId;
const createfilterId = this.createFilterId;
const createFilterId = this.createFilterId;
const start = this.infiniteStart;
let api = '';
// 先判斷暫存 再判斷 filter 最後 log
if(tempFilterId != null) api = `/api/temp-filters/${tempFilterId}/traces/${traceId}?start=${start}&page_size=20`;
else if(createfilterId!= null) api = `/api/filters/${createfilterId}/traces/${traceId}?start=${start}&page_size=20`;
else if(createFilterId!= null) api = `/api/filters/${createFilterId}/traces/${traceId}?start=${start}&page_size=20`;
else api = `/api/logs/${logId}/traces/${traceId}?start=${start}&page_size=20`;
try {
@@ -336,12 +336,12 @@ export default defineStore('allMapDataStore', {
},
/**
* Get Filter Detail
* @param {namber} createfilterId filter type ID
* @param {number} createFilterId filter type ID
*/
async fetchFunnel(createfilterId) {
const api = `/api/filters/${createfilterId}`;
async fetchFunnel(createFilterId) {
const api = `/api/filters/${createFilterId}`;
if(createfilterId){
if(createFilterId){
try {
const response = await this.$axios.get(api);
this.temporaryData = response.data.rules;

View File

@@ -49,7 +49,7 @@
<SidebarTraces v-model:visible="sidebarTraces" :cases="cases" @switch-Trace-Id="switchTraceId" ref="tracesView"></SidebarTraces>
<SidebarFilter v-model:visible="sidebarFilter" :filterTasks="filterTasks" :filterStartToEnd="filterStartToEnd"
:filterEndToStart="filterEndToStart" :filterTimeframe="filterTimeframe" :filterTrace="filterTrace"
@submit-all="createCy(mapType)" @switch-Trace-Id="switchTraceId" ref="sidevarFilterRef"></SidebarFilter>
@submit-all="createCy(mapType)" @switch-Trace-Id="switchTraceId" ref="sidebarFilterRef"></SidebarFilter>
</template>
<script>
@@ -476,7 +476,7 @@
// 取得 logID 和上次儲存的 Funnel
await this.allMapDataStore.fetchFunnel(this.createFilterId);
this.isRuleData = await Array.from(this.temporaryData);
this.ruleData = await this.isRuleData.map(e => this.$refs.sidevarFilterRef.setRule(e));
this.ruleData = await this.isRuleData.map(e => this.$refs.sidebarFilterRef.setRule(e));
break;
}
// 取得 logId 後才 call api

View File

@@ -57,7 +57,7 @@
</SidebarTraces>
<SidebarFilter v-model:visible="sidebarFilter" :filterTasks="filterTasks" :filterStartToEnd="filterStartToEnd"
:filterEndToStart="filterEndToStart" :filterTimeframe="filterTimeframe" :filterTrace="filterTrace"
@submit-all="createCy(mapType)" @switch-Trace-Id="switchTraceId" ref="sidevarFilterRef"></SidebarFilter>
@submit-all="createCy(mapType)" @switch-Trace-Id="switchTraceId" ref="sidebarFilterRef"></SidebarFilter>
</template>
<script>
@@ -494,7 +494,7 @@ export default {
// 取得 logID 和上次儲存的 Funnel
await this.allMapDataStore.fetchFunnel(this.createFilterId);
this.isRuleData = await Array.from(this.temporaryData);
this.ruleData = await this.isRuleData.map(e => this.$refs.sidevarFilterRef.setRule(e));
this.ruleData = await this.isRuleData.map(e => this.$refs.sidebarFilterRef.setRule(e));
break;
}
// 取得 logId 後才 call api

View File

@@ -248,7 +248,7 @@
selectedFile: null, // 右鍵選單 item
selectedType: null,
selectedId: null,
selecteName: null,
selectedName: null,
items: [
{
label: 'Rename',
@@ -429,7 +429,7 @@
onRightClick(event, file) {
this.selectedType = file.type;
this.selectedId = file.id;
this.selecteName = file.name;
this.selectedName = file.name;
this.$refs.fileRightMenu.show(event)
},
/**
@@ -439,7 +439,7 @@
onRightClickTable(event) {
this.selectedType = event.data.type;
this.selectedId = event.data.id;
this.selecteName = event.data.name;
this.selectedName = event.data.name;
this.$refs.fileRightMenu.show(event.originalEvent)
},
/**
@@ -450,7 +450,7 @@
onGridCardClick(file, index) {
this.selectedType = file.type;
this.selectedId = file.id;
this.selecteName = file.name;
this.selectedName = file.name;
this.isActive = index;
},
/**
@@ -464,9 +464,9 @@
if(type && id && source === 'list-hover') {
this.selectedType = type;
this.selectedId = id;
this.selecteName = fileName;
this.selectedName = fileName;
}
renameModal(this.store.rename, this.selectedType, this.selectedId, this.selecteName);
renameModal(this.store.rename, this.selectedType, this.selectedId, this.selectedName);
},
/**
* Delete file
@@ -481,7 +481,7 @@
if(type && id && name && source === 'list-hover') {
this.selectedType = type;
this.selectedId = id;
this.selecteName = name;
this.selectedName = name;
}
// 取得相依性檔案
await this.store.getDependents(this.selectedType, this.selectedId);
@@ -502,7 +502,7 @@
srt += content;
});
}
deleteFileModal(srt, this.selectedType, this.selectedId, this.selecteName);
deleteFileModal(srt, this.selectedType, this.selectedId, this.selectedName);
srt = '';
},
/**
@@ -538,9 +538,9 @@
if(type && id && source === 'list-hover' && name) {
this.selectedType = type;
this.selectedId = id;
this.selecteName = name;
this.selectedName = name;
}
this.store.downloadFileCSV(this.selectedType, this.selectedId, this.selecteName);
this.store.downloadFileCSV(this.selectedType, this.selectedId, this.selectedName);
},
/**
* Delete Compare Primary log