refactor: Discover Router done.
This commit is contained in:
@@ -271,7 +271,7 @@ export default {
|
||||
watch: {
|
||||
conformanceTempReportData: {
|
||||
handler: function(newValue) {
|
||||
if(newValue?.rule && newValue.rule.min) {
|
||||
if(newValue?.rule && newValue.rule.min != null) {
|
||||
this.selectDurationTime = {
|
||||
min: newValue.rule.min,
|
||||
max: newValue.rule.max,
|
||||
|
||||
@@ -611,7 +611,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}, 300);
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -149,23 +149,15 @@ export default {
|
||||
},
|
||||
async mounted() {
|
||||
let params = this.$route.params;
|
||||
let parent = this.$route.meta.parent;
|
||||
let file = this.$route.meta.file;
|
||||
let isCheckPage = this.$route.name.includes('Check');
|
||||
|
||||
switch (params.type) {
|
||||
case 'log':
|
||||
this.logId = params.fileId;
|
||||
this.logId = isCheckPage ? file.parent.id : params.fileId;
|
||||
break;
|
||||
case 'filter':
|
||||
this.createFilterId = params.fileId;
|
||||
break;
|
||||
case 'rule':
|
||||
switch (parent.type) {
|
||||
case 'log':
|
||||
this.logId = parent.id;
|
||||
break;
|
||||
case 'filter':
|
||||
this.createFilterId = parent.id;
|
||||
}
|
||||
this.createFilterId = isCheckPage ? file.parent.id : params.fileId;
|
||||
break;
|
||||
}
|
||||
await this.allMapDataStore.getAllMapData();
|
||||
|
||||
Reference in New Issue
Block a user