refactor: Discover Router Save done.

This commit is contained in:
chiayin
2024-03-19 16:29:29 +08:00
parent 6663b48159
commit 483f6a026d
8 changed files with 9 additions and 68 deletions

View File

@@ -625,8 +625,6 @@ export default {
const inside = (ctx, value) => ctx.p0DataIndex >= start && ctx.p1DataIndex <= end ? value : undefined;
const outside = (ctx, value) => ctx.p0DataIndex < start || ctx.p1DataIndex > end ? value : undefined;
// console.log(formattedXVal);
this.timeChartData = {
labels: formattedXVal,
datasets: [

View File

@@ -49,7 +49,6 @@
</div>
</nav>
</template>
<script>
import { storeToRefs } from 'pinia';
import filesStore from '@/stores/files.js';
@@ -197,10 +196,6 @@ export default {
}
break;
}
// if(this.navViewName === 'DISCOVER') {
// if(name === 'Map' || name === 'CheckMap') this.isActive = 'MAP';
// else if(name === 'Conformance' || name === 'CheckConformance') this.isActive = 'CONFORMANCE';
// }
},
/**
* Save button' modal
@@ -227,7 +222,7 @@ export default {
await saveFilter(this.allMapDataStore.addFilterId);
// 存檔後為 filterID換網址不跳頁使用 push 記錄歷史路由
await this.$router.push(`/discover/filter/${this.createFilterId}/map`);
console.log('Check Map save filter need to check_id');
break;
case 'Conformance':
case 'CheckConformance':
// 先判斷有沒有 check Id有就儲存 return沒有就往下走
@@ -247,7 +242,6 @@ export default {
},
}
</script>
<style scoped>
#searchFiles::-webkit-search-cancel-button{
appearance: none;