Issues #182: done.

This commit is contained in:
chiayin
2023-11-10 14:19:43 +08:00
parent 03cacd5a9b
commit 9118497f09
3 changed files with 5 additions and 3 deletions

View File

@@ -215,8 +215,8 @@ export default {
ticks: { // 設定間隔數值
display: false, // 隱藏數值,只顯示格線
min: 0,
max: this.traceList[0].ratio,
stepSize: (this.traceList[0].ratio)/4,
max: this.traceList[0]?.ratio,
stepSize: (this.traceList[0]?.ratio)/4,
},
grid: {
color: 'rgba(100,116,139)',

View File

@@ -228,7 +228,7 @@ export default defineStore('allMapDataStore', {
this.allBaseCase = response.data.cases;
this.allBaseCase.map(c => {
c.started_at = moment(c.started_at).format('YYYY/MM/DD HH:mm');
c.completed_at = moment(c.completed_at).format('YYYY/MM/DD HH:mm');
c.completed_at = moment(c.completed_at).format('YYYY/MM/DD HH:mm');
c.attributes.map(att => {
switch (att.type) {
case 'date':
@@ -335,6 +335,7 @@ export default defineStore('allMapDataStore', {
this.temporaryData = response.data.rules;
this.logId = response.data.log.id;
this.filterName = response.data.name;
this.baseLogId = response.data.log.id;
}catch(error) {
apiError(error, 'Failed to get Filter Detail.');
}

View File

@@ -330,6 +330,7 @@ export default {
// Log 檔前往 Map Log 頁, Filter 檔前往 Map Filter 頁
if(this.$route.params.type === 'log'){
this.logId = this.$route.params.fileId;
this.baseLogId = this.$route.params.fileId;
}else if(this.$route.params.type === 'filter') {
this.createFilterId = this.$route.params.fileId;
// 取得 logID 和上次儲存的 Funnel