Discover: SidebarFilter Trace button Apply done.
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Timeline>
|
</Timeline>
|
||||||
|
this.postRuleData:{{this.postRuleData}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Button -->
|
<!-- Button -->
|
||||||
@@ -86,7 +87,7 @@ export default {
|
|||||||
async submitAll() {
|
async submitAll() {
|
||||||
this.postRuleData = this.temporaryData.filter(item => item !== 0); // 取得 submit 的資料,有 toggle button 的話,找出並刪除陣列中為 0 的項目
|
this.postRuleData = this.temporaryData.filter(item => item !== 0); // 取得 submit 的資料,有 toggle button 的話,找出並刪除陣列中為 0 的項目
|
||||||
if(!this.postRuleData?.length) return this.$toast.error('Not selected');
|
if(!this.postRuleData?.length) return this.$toast.error('Not selected');
|
||||||
await this.allMapDataStore.checkHasResult();
|
await this.allMapDataStore.checkHasResult(); // 後端快速檢查有沒有結果
|
||||||
|
|
||||||
if(this.hasResultRule === null) return;
|
if(this.hasResultRule === null) return;
|
||||||
else if(this.hasResultRule) {
|
else if(this.hasResultRule) {
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ import AllMapDataStore from '@/stores/allMapData.js';
|
|||||||
import cytoscapeMapTrace from '@/module/cytoscapeMapTrace.js';
|
import cytoscapeMapTrace from '@/module/cytoscapeMapTrace.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
expose: ['selectArea'],
|
||||||
setup() {
|
setup() {
|
||||||
const allMapDataStore = AllMapDataStore();
|
const allMapDataStore = AllMapDataStore();
|
||||||
const { traces, traceTaskSeq, cases } = storeToRefs(allMapDataStore);
|
const { traces, traceTaskSeq, cases } = storeToRefs(allMapDataStore);
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- title: Trace -->
|
<!-- title: Trace -->
|
||||||
<Trace v-if="selectValue[0] === 'Trace'"></Trace>
|
<Trace v-if="selectValue[0] === 'Trace'" ref="filterTraceView"></Trace>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Button -->
|
<!-- Button -->
|
||||||
@@ -347,7 +347,7 @@ export default {
|
|||||||
type = "Timeframe"
|
type = "Timeframe"
|
||||||
break
|
break
|
||||||
case "trace-freq":
|
case "trace-freq":
|
||||||
label = `from ${e.lower} to ${e.upper} ${includeStr}`
|
label = `from #${e.lower} to #${e.upper} ${includeStr}`
|
||||||
type = "Trace"
|
type = "Trace"
|
||||||
break
|
break
|
||||||
};
|
};
|
||||||
@@ -433,6 +433,13 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
} else if(sele[0] === 'Trace'){ // Filter Type 選 Trace 的行為
|
||||||
|
data = {
|
||||||
|
type: 'trace-freq',
|
||||||
|
lower: this.$refs.filterTraceView.selectArea[0]+1,
|
||||||
|
upper: this.$refs.filterTraceView.selectArea[1],
|
||||||
|
is_exclude: isExclude,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 將資料指向 Vue data 雙向綁定
|
// 將資料指向 Vue data 雙向綁定
|
||||||
const postData = Array.isArray(data) ? data : [data];
|
const postData = Array.isArray(data) ? data : [data];
|
||||||
|
|||||||
Reference in New Issue
Block a user