fix Navbar.
This commit is contained in:
@@ -75,16 +75,6 @@ export default {
|
|||||||
filterName: function(newVal, oldVal) {
|
filterName: function(newVal, oldVal) {
|
||||||
this.filterName = newVal;
|
this.filterName = newVal;
|
||||||
},
|
},
|
||||||
// createfilterId: function(newVal, oldVal) {
|
|
||||||
// // this.filterName = newVal;
|
|
||||||
// console.log(newVal);
|
|
||||||
// console.log(oldVal);
|
|
||||||
// },
|
|
||||||
postRuleData: function(newVal, oldVal) {
|
|
||||||
// this.filterName = newVal;
|
|
||||||
console.log(newVal);
|
|
||||||
console.log(oldVal);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const store = filesStore();
|
const store = filesStore();
|
||||||
@@ -111,14 +101,19 @@ export default {
|
|||||||
},
|
},
|
||||||
getNavViewName() {
|
getNavViewName() {
|
||||||
this.navViewName = this.$route.name.toUpperCase();
|
this.navViewName = this.$route.name.toUpperCase();
|
||||||
|
if(this.navViewName === 'DISCOVERLOG' || this.navViewName === 'DISCOVERFILTER'){
|
||||||
|
this.navViewName = 'DISCOVER';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
showAlert() {
|
showAlert() {
|
||||||
// 先判斷有沒有 filter Id,有就儲存 return,沒有就往下走
|
// 先判斷有沒有 filter Id,有就儲存 return,沒有就往下走
|
||||||
// 沒有 filter Id, 有暫存 tempFilterId Id 可以另存新檔
|
// 沒有 filter Id, 有暫存 tempFilterId Id 可以另存新檔
|
||||||
|
console.log(this.createfilterId);
|
||||||
if(this.createfilterId) {
|
if(this.createfilterId) {
|
||||||
this.allMapDataStore.updataFilter();
|
this.allMapDataStore.updataFilter();
|
||||||
console.log(this.isUpdataFilter);
|
console.log(this.isUpdataFilter);
|
||||||
if(this.isUpdataFilter) savedSuccessfully(this.filterName);
|
if(this.isUpdataFilter) savedSuccessfully(this.filterName);
|
||||||
|
this.tempFilterId = false
|
||||||
}else{
|
}else{
|
||||||
saveFilter(this.allMapDataStore.addFilterId);
|
saveFilter(this.allMapDataStore.addFilterId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user