Issues #170: done.
This commit is contained in:
@@ -511,6 +511,7 @@ export default {
|
||||
},
|
||||
// header:Filter 發送選取的資料
|
||||
async submit(){
|
||||
this.isLoading = true;
|
||||
let data;
|
||||
let sele = this.selectValue;
|
||||
let isExclude = sele[5] === 'Exclude' ? true : false;
|
||||
@@ -644,7 +645,7 @@ export default {
|
||||
await this.allMapDataStore.checkHasResult();
|
||||
|
||||
// 有 Data 就加進 Funnel,沒有 Data 不加進 Funnel 和跳錯誤訊息
|
||||
if(this.hasResultRule === null) return;
|
||||
if(this.hasResultRule === null) return this.isLoading = false;
|
||||
else if(this.hasResultRule) {
|
||||
if(!this.temporaryData?.length){
|
||||
this.temporaryData.push(...postData);
|
||||
@@ -656,13 +657,13 @@ export default {
|
||||
this.ruleData.push(...postData.map(e => this.setRule(e)))
|
||||
}
|
||||
this.reset(false);
|
||||
this.isLoading = true;
|
||||
// this.isLoading = true;
|
||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
||||
this.isLoading = false;
|
||||
this.$toast.success('Filter applied. Go to Funnel to verify.');
|
||||
}else {
|
||||
this.reset(false);
|
||||
this.isLoading = true;
|
||||
// this.isLoading = true;
|
||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
||||
this.isLoading = false;
|
||||
this.$toast.warning('No Data.');
|
||||
|
||||
Reference in New Issue
Block a user