Renamed "conformance checker" to "conformance check".
This commit is contained in:
@@ -536,7 +536,7 @@ export default {
|
||||
|
||||
},
|
||||
/**
|
||||
* Apply button 發送選項,取得 Checker Id.
|
||||
* Apply button 發送選項,取得 Check Id.
|
||||
*/
|
||||
async submit() {
|
||||
let data;
|
||||
@@ -906,7 +906,7 @@ export default {
|
||||
this.isLoading = true;
|
||||
this.isSubmit = true;
|
||||
this.isSubmitData = data; // 已 Apply 後,沒有重新改變規則的 Data
|
||||
await this.conformanceStore.addLogConformanceTempCheckerId(data);
|
||||
await this.conformanceStore.addLogConformanceTempCheckId(data);
|
||||
await this.conformanceStore.getLogConformanceTempReport();
|
||||
this.isShowBar = false;
|
||||
this.isLoading = false;
|
||||
|
||||
@@ -17,7 +17,7 @@ export default defineStore('conformanceStore', {
|
||||
state: () => ({
|
||||
conformanceLogId: null,
|
||||
conformanceFilterId: null,
|
||||
conformanceTempCheckerId: null,
|
||||
conformanceTempCheckId: null,
|
||||
allConformanceTask: [],
|
||||
allCfmSeqStart: [],
|
||||
allCfmSeqEnd: [],
|
||||
@@ -188,7 +188,7 @@ export default defineStore('conformanceStore', {
|
||||
*/
|
||||
async getLogConformanceParams() {
|
||||
let logId = this.conformanceLogId;
|
||||
const api = `/api/log-checkers/params?log_id=${logId}`;
|
||||
const api = `/api/log-checks/params?log_id=${logId}`;
|
||||
|
||||
try {
|
||||
const response = await this.$axios.get(api);
|
||||
@@ -208,30 +208,30 @@ export default defineStore('conformanceStore', {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Creates a new temporary checker for a log.
|
||||
* Creates a new temporary check for a log.
|
||||
*/
|
||||
async addLogConformanceTempCheckerId(data) {
|
||||
async addLogConformanceTempCheckId(data) {
|
||||
let logId = this.conformanceLogId;
|
||||
const api = `/api/temp-log-checkers?log_id=${logId}`;
|
||||
const api = `/api/temp-log-checks?log_id=${logId}`;
|
||||
|
||||
try {
|
||||
const response = await this.$axios.post(api, data);
|
||||
this.conformanceTempCheckerId = response.data.id;
|
||||
this.conformanceTempCheckId = response.data.id;
|
||||
} catch(error) {
|
||||
await delay();
|
||||
loading.isLoading = true;
|
||||
await delay(1000);
|
||||
loading.isLoading = false;
|
||||
await delay(500);
|
||||
$toast.default('Failed to add the Temporary Checker for a log.',{position: 'bottom'});
|
||||
$toast.default('Failed to add the Temporary Check for a log.',{position: 'bottom'});
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Get the Temporary Log Conformance Report
|
||||
*/
|
||||
async getLogConformanceTempReport() {
|
||||
let checkerId = this.conformanceTempCheckerId;
|
||||
const api = `/api/temp-log-checkers/${checkerId}`;
|
||||
let checkId = this.conformanceTempCheckId;
|
||||
const api = `/api/temp-log-checks/${checkId}`;
|
||||
|
||||
try {
|
||||
const response = await this.$axios.get(api);
|
||||
@@ -250,8 +250,8 @@ export default defineStore('conformanceStore', {
|
||||
* Get the detail of a temporary log conformance issue.
|
||||
*/
|
||||
async getLogConformanceIssue(issueNo) {
|
||||
let checkerId = this.conformanceTempCheckerId;
|
||||
const api = `/api/temp-log-checkers/${checkerId}/issues/${issueNo}`;
|
||||
let checkId = this.conformanceTempCheckId;
|
||||
const api = `/api/temp-log-checks/${checkId}/issues/${issueNo}`;
|
||||
|
||||
try {
|
||||
const response = await this.$axios.get(api);
|
||||
@@ -269,8 +269,8 @@ export default defineStore('conformanceStore', {
|
||||
* Get the Trace Details of a Temporary Log Conformance lssue.
|
||||
*/
|
||||
async getLogConformanceTraceDetail(issueNo, traceId, start) {
|
||||
let checkerId = this.conformanceTempCheckerId;
|
||||
const api = `/api/temp-log-checkers/${checkerId}/issues/${issueNo}/traces/${traceId}?start=${start}&page_size=20`;
|
||||
let checkId = this.conformanceTempCheckId;
|
||||
const api = `/api/temp-log-checks/${checkId}/issues/${issueNo}/traces/${traceId}?start=${start}&page_size=20`;
|
||||
|
||||
try {
|
||||
const response = await this.$axios.get(api);
|
||||
@@ -293,8 +293,8 @@ export default defineStore('conformanceStore', {
|
||||
* Get the Details of a Temporary Log Conformance Loop.
|
||||
*/
|
||||
async getLogConformanceLoop(loopNo) {
|
||||
let checkerId = this.conformanceTempCheckerId;
|
||||
let api = `/api/temp-log-checkers/${checkerId}/loops/${loopNo}`;
|
||||
let checkId = this.conformanceTempCheckId;
|
||||
let api = `/api/temp-log-checks/${checkId}/loops/${loopNo}`;
|
||||
|
||||
try {
|
||||
const response = await this.$axios.get(api);
|
||||
@@ -312,8 +312,8 @@ export default defineStore('conformanceStore', {
|
||||
* Get the Trace Details of a Temporary Log Conformance Loops.
|
||||
*/
|
||||
async getLogConformanceLoopsTraceDetail(loopNo, traceId, start) {
|
||||
let checkerId = this.conformanceTempCheckerId;
|
||||
const api = `/api/temp-log-checkers/${checkerId}/loops/${loopNo}/traces/${traceId}?start=${start}&page_size=20`;
|
||||
let checkId = this.conformanceTempCheckId;
|
||||
const api = `/api/temp-log-checks/${checkId}/loops/${loopNo}/traces/${traceId}?start=${start}&page_size=20`;
|
||||
|
||||
try {
|
||||
const response = await this.$axios.get(api);
|
||||
|
||||
Reference in New Issue
Block a user