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() { async getAllMapData() {
const logId = this.logId; const logId = this.logId;
const tempFilterId = this.tempFilterId; const tempFilterId = this.tempFilterId;
const createfilterId = this.createFilterId const createFilterId = this.createFilterId
let api = ''; let api = '';
// 先判斷暫存 再判斷 filter 最後 log // 先判斷暫存 再判斷 filter 最後 log
if(tempFilterId != null) api = `/api/temp-filters/${tempFilterId}/discover`; 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`; else api = `/api/logs/${logId}/discover`;
try { try {
@@ -151,14 +151,14 @@ export default defineStore('allMapDataStore', {
async getAllTrace() { async getAllTrace() {
const logId = this.logId; const logId = this.logId;
const tempFilterId = this.tempFilterId; const tempFilterId = this.tempFilterId;
const createfilterId = this.createFilterId; const createFilterId = this.createFilterId;
const baseLogId = this.baseLogId; const baseLogId = this.baseLogId;
const baseApi = `/api/logs/${baseLogId}/traces`; const baseApi = `/api/logs/${baseLogId}/traces`;
let api = ''; let api = '';
// 先判斷暫存 再判斷 filter 最後 log // 先判斷暫存 再判斷 filter 最後 log
if(tempFilterId != null) api = `/api/temp-filters/${tempFilterId}/traces`; 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`; else api = `/api/logs/${logId}/traces`;
try { try {
@@ -180,13 +180,13 @@ export default defineStore('allMapDataStore', {
const logId = this.logId; const logId = this.logId;
const traceId = this.traceId; const traceId = this.traceId;
const tempFilterId = this.tempFilterId; const tempFilterId = this.tempFilterId;
const createfilterId = this.createFilterId; const createFilterId = this.createFilterId;
const start = this.infiniteStart; const start = this.infiniteStart;
let api = ''; let api = '';
// 先判斷暫存 再判斷 filter 最後 log // 先判斷暫存 再判斷 filter 最後 log
if(tempFilterId != null) api = `/api/temp-filters/${tempFilterId}/traces/${traceId}?start=${start}&page_size=20`; 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`; else api = `/api/logs/${logId}/traces/${traceId}?start=${start}&page_size=20`;
try { try {
@@ -336,12 +336,12 @@ export default defineStore('allMapDataStore', {
}, },
/** /**
* Get Filter Detail * Get Filter Detail
* @param {namber} createfilterId filter type ID * @param {number} createFilterId filter type ID
*/ */
async fetchFunnel(createfilterId) { async fetchFunnel(createFilterId) {
const api = `/api/filters/${createfilterId}`; const api = `/api/filters/${createFilterId}`;
if(createfilterId){ if(createFilterId){
try { try {
const response = await this.$axios.get(api); const response = await this.$axios.get(api);
this.temporaryData = response.data.rules; 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> <SidebarTraces v-model:visible="sidebarTraces" :cases="cases" @switch-Trace-Id="switchTraceId" ref="tracesView"></SidebarTraces>
<SidebarFilter v-model:visible="sidebarFilter" :filterTasks="filterTasks" :filterStartToEnd="filterStartToEnd" <SidebarFilter v-model:visible="sidebarFilter" :filterTasks="filterTasks" :filterStartToEnd="filterStartToEnd"
:filterEndToStart="filterEndToStart" :filterTimeframe="filterTimeframe" :filterTrace="filterTrace" :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> </template>
<script> <script>
@@ -476,7 +476,7 @@
// 取得 logID 和上次儲存的 Funnel // 取得 logID 和上次儲存的 Funnel
await this.allMapDataStore.fetchFunnel(this.createFilterId); await this.allMapDataStore.fetchFunnel(this.createFilterId);
this.isRuleData = await Array.from(this.temporaryData); 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; break;
} }
// 取得 logId 後才 call api // 取得 logId 後才 call api

View File

@@ -57,7 +57,7 @@
</SidebarTraces> </SidebarTraces>
<SidebarFilter v-model:visible="sidebarFilter" :filterTasks="filterTasks" :filterStartToEnd="filterStartToEnd" <SidebarFilter v-model:visible="sidebarFilter" :filterTasks="filterTasks" :filterStartToEnd="filterStartToEnd"
:filterEndToStart="filterEndToStart" :filterTimeframe="filterTimeframe" :filterTrace="filterTrace" :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> </template>
<script> <script>
@@ -494,7 +494,7 @@ export default {
// 取得 logID 和上次儲存的 Funnel // 取得 logID 和上次儲存的 Funnel
await this.allMapDataStore.fetchFunnel(this.createFilterId); await this.allMapDataStore.fetchFunnel(this.createFilterId);
this.isRuleData = await Array.from(this.temporaryData); 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; break;
} }
// 取得 logId 後才 call api // 取得 logId 後才 call api

View File

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