Conformance: StatusBar done.

This commit is contained in:
chiayin
2023-07-12 15:52:03 +08:00
parent 9db7b73d2c
commit 6955f376ca
3 changed files with 87 additions and 31 deletions

View File

@@ -11,8 +11,8 @@ let delay = (s = 0) => new Promise((resolve, reject) => setTimeout(resolve, s))
export default defineStore('conformanceStore', {
state: () => ({
logId: null,
filterId: null,
conformanceLogId: null,
conformanceFilterId: null,
allConformanceTask: [],
selectedRuleType: 'Have activity', // radio
selectedActivitySequence: 'Start & End', // radio
@@ -31,16 +31,13 @@ export default defineStore('conformanceStore', {
* fetch Log Conformance Parameters api for Rule Settings.
*/
async getLogConformanceParams() {
let logId = this.logId;
let logId = this.conformanceLogId;
const api = `/api/log-checkers/params?log_id=${logId}`;
try {
const response = await this.$axios.get(api);
console.log(response);
this.allConformanceTask = response.data.tasks;
} catch(error) {
console.log(error);
await delay();
loading.isLoading = true;
await delay(1000);