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() {
|
async submit() {
|
||||||
let data;
|
let data;
|
||||||
@@ -906,7 +906,7 @@ export default {
|
|||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.isSubmitData = data; // 已 Apply 後,沒有重新改變規則的 Data
|
this.isSubmitData = data; // 已 Apply 後,沒有重新改變規則的 Data
|
||||||
await this.conformanceStore.addLogConformanceTempCheckerId(data);
|
await this.conformanceStore.addLogConformanceTempCheckId(data);
|
||||||
await this.conformanceStore.getLogConformanceTempReport();
|
await this.conformanceStore.getLogConformanceTempReport();
|
||||||
this.isShowBar = false;
|
this.isShowBar = false;
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export default defineStore('conformanceStore', {
|
|||||||
state: () => ({
|
state: () => ({
|
||||||
conformanceLogId: null,
|
conformanceLogId: null,
|
||||||
conformanceFilterId: null,
|
conformanceFilterId: null,
|
||||||
conformanceTempCheckerId: null,
|
conformanceTempCheckId: null,
|
||||||
allConformanceTask: [],
|
allConformanceTask: [],
|
||||||
allCfmSeqStart: [],
|
allCfmSeqStart: [],
|
||||||
allCfmSeqEnd: [],
|
allCfmSeqEnd: [],
|
||||||
@@ -188,7 +188,7 @@ export default defineStore('conformanceStore', {
|
|||||||
*/
|
*/
|
||||||
async getLogConformanceParams() {
|
async getLogConformanceParams() {
|
||||||
let logId = this.conformanceLogId;
|
let logId = this.conformanceLogId;
|
||||||
const api = `/api/log-checkers/params?log_id=${logId}`;
|
const api = `/api/log-checks/params?log_id=${logId}`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await this.$axios.get(api);
|
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;
|
let logId = this.conformanceLogId;
|
||||||
const api = `/api/temp-log-checkers?log_id=${logId}`;
|
const api = `/api/temp-log-checks?log_id=${logId}`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await this.$axios.post(api, data);
|
const response = await this.$axios.post(api, data);
|
||||||
this.conformanceTempCheckerId = response.data.id;
|
this.conformanceTempCheckId = response.data.id;
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
await delay();
|
await delay();
|
||||||
loading.isLoading = true;
|
loading.isLoading = true;
|
||||||
await delay(1000);
|
await delay(1000);
|
||||||
loading.isLoading = false;
|
loading.isLoading = false;
|
||||||
await delay(500);
|
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
|
* Get the Temporary Log Conformance Report
|
||||||
*/
|
*/
|
||||||
async getLogConformanceTempReport() {
|
async getLogConformanceTempReport() {
|
||||||
let checkerId = this.conformanceTempCheckerId;
|
let checkId = this.conformanceTempCheckId;
|
||||||
const api = `/api/temp-log-checkers/${checkerId}`;
|
const api = `/api/temp-log-checks/${checkId}`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await this.$axios.get(api);
|
const response = await this.$axios.get(api);
|
||||||
@@ -250,8 +250,8 @@ export default defineStore('conformanceStore', {
|
|||||||
* Get the detail of a temporary log conformance issue.
|
* Get the detail of a temporary log conformance issue.
|
||||||
*/
|
*/
|
||||||
async getLogConformanceIssue(issueNo) {
|
async getLogConformanceIssue(issueNo) {
|
||||||
let checkerId = this.conformanceTempCheckerId;
|
let checkId = this.conformanceTempCheckId;
|
||||||
const api = `/api/temp-log-checkers/${checkerId}/issues/${issueNo}`;
|
const api = `/api/temp-log-checks/${checkId}/issues/${issueNo}`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await this.$axios.get(api);
|
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.
|
* Get the Trace Details of a Temporary Log Conformance lssue.
|
||||||
*/
|
*/
|
||||||
async getLogConformanceTraceDetail(issueNo, traceId, start) {
|
async getLogConformanceTraceDetail(issueNo, traceId, start) {
|
||||||
let checkerId = this.conformanceTempCheckerId;
|
let checkId = this.conformanceTempCheckId;
|
||||||
const api = `/api/temp-log-checkers/${checkerId}/issues/${issueNo}/traces/${traceId}?start=${start}&page_size=20`;
|
const api = `/api/temp-log-checks/${checkId}/issues/${issueNo}/traces/${traceId}?start=${start}&page_size=20`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await this.$axios.get(api);
|
const response = await this.$axios.get(api);
|
||||||
@@ -293,8 +293,8 @@ export default defineStore('conformanceStore', {
|
|||||||
* Get the Details of a Temporary Log Conformance Loop.
|
* Get the Details of a Temporary Log Conformance Loop.
|
||||||
*/
|
*/
|
||||||
async getLogConformanceLoop(loopNo) {
|
async getLogConformanceLoop(loopNo) {
|
||||||
let checkerId = this.conformanceTempCheckerId;
|
let checkId = this.conformanceTempCheckId;
|
||||||
let api = `/api/temp-log-checkers/${checkerId}/loops/${loopNo}`;
|
let api = `/api/temp-log-checks/${checkId}/loops/${loopNo}`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await this.$axios.get(api);
|
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.
|
* Get the Trace Details of a Temporary Log Conformance Loops.
|
||||||
*/
|
*/
|
||||||
async getLogConformanceLoopsTraceDetail(loopNo, traceId, start) {
|
async getLogConformanceLoopsTraceDetail(loopNo, traceId, start) {
|
||||||
let checkerId = this.conformanceTempCheckerId;
|
let checkId = this.conformanceTempCheckId;
|
||||||
const api = `/api/temp-log-checkers/${checkerId}/loops/${loopNo}/traces/${traceId}?start=${start}&page_size=20`;
|
const api = `/api/temp-log-checks/${checkId}/loops/${loopNo}/traces/${traceId}?start=${start}&page_size=20`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await this.$axios.get(api);
|
const response = await this.$axios.get(api);
|
||||||
|
|||||||
Reference in New Issue
Block a user