Conformance: StatusBar done.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user